[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug 1885247] Re: Build error in Intel 32-bit hosts
From: |
Peter Maydell |
Subject: |
[Bug 1885247] Re: Build error in Intel 32-bit hosts |
Date: |
Fri, 26 Jun 2020 09:10:32 -0000 |
I suspect an extra uintptr_t cast will fix this:
p = (void *)(uintptr_t)(((uintptr_t)iter->map & TARGET_PAGE_MASK) |
off_in_page);
Which looks kind of ugly but then the code is taking a host void*
(iter->map), casting it to integer to do arithmetic on and then wanting
to get it back to a void* which is inherently going to result in a mess
of casting...
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1885247
Title:
Build error in Intel 32-bit hosts
Status in QEMU:
New
Bug description:
The code base is on master, checked out on Thursday June25th 2020,
0250c595c9d. The build procedure:
$ mkdir build-gcc
$ cd build-gcc
$ ../configure
$ make
The build error message is:
CC x86_64-softmmu/hw/hyperv/hyperv.o
CC x86_64-softmmu/hw/hyperv/hyperv_testdev.o
CC x86_64-softmmu/hw/hyperv/vmbus.o
/home/rtrk/Build/qemu-master/hw/hyperv/vmbus.c: In function ‘gpadl_iter_io’:
/home/rtrk/Build/qemu-master/hw/hyperv/vmbus.c:386:13: error: cast to pointer
from integer of different size [-Werror=int-to-pointer-cast]
p = (void *)(((uintptr_t)iter->map & TARGET_PAGE_MASK) |
off_in_page);
^
cc1: all warnings being treated as errors
make[1]: *** [/home/rtrk/Build/qemu-master/rules.mak:69: hw/hyperv/vmbus.o]
Error 1
make: *** [Makefile:527: x86_64-softmmu/all] Error 2
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1885247/+subscriptions
[Bug 1885247] Re: Build error in Intel 32-bit hosts,
Peter Maydell <=