On 6/26/20 11:20 AM, Thomas Huth wrote:
> On 26/06/2020 11.13, Philippe Mathieu-Daudé wrote:
>> On 6/26/20 9:37 AM, Aleksandar Markovic wrote:
>>> пет, 26. јун 2020. у 09:11 Aleksandar Markovic
>>> <email address hidden> је написао/ла:
>>>>
>>>> Public bug reported:
>>>>
>>>> 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
>>
>> FWIW there is no CI job covering x86 KVM on 32-bit host build.
>> Should this be covered? I guess the problem is no CI services
>> provide 32-bit x86...
>
> You can certainly provide either a container, or install the 32-bit
> libraries in a 64-bit environment. Then run
>
> PKG_CONFIG_LIBDIR=... ./configure --extra-cflags=-m32
>
> and it should be possible to build 32-bit binaries, too.
>
> Alternatively, we could add a cross-compilation job that builds with
> i686-w64-mingw32 in 32-bit.
On 6/26/20 11:20 AM, Thomas Huth wrote: softmmu/ hw/hyperv/ hyperv. o softmmu/ hw/hyperv/ hyperv_ testdev. o softmmu/ hw/hyperv/ vmbus.o Build/qemu- master/ hw/hyperv/ vmbus.c: In function Build/qemu- master/ hw/hyperv/ vmbus.c: 386:13: error: cast int-to- pointer- cast] t)iter- >map & TARGET_PAGE_MASK) | rtrk/Build/ qemu-master/ rules.mak: 69: LIBDIR= ... ./configure --extra-cflags=-m32
> On 26/06/2020 11.13, Philippe Mathieu-Daudé wrote:
>> On 6/26/20 9:37 AM, Aleksandar Markovic wrote:
>>> пет, 26. јун 2020. у 09:11 Aleksandar Markovic
>>> <email address hidden> је написао/ла:
>>>>
>>>> Public bug reported:
>>>>
>>>> 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-
>>>> CC x86_64-
>>>> CC x86_64-
>>>> /home/rtrk/
>>>> ‘gpadl_iter_io’:
>>>> /home/rtrk/
>>>> to pointer from integer of different size [-Werror=
>>>> p = (void *)(((uintptr_
>>>> off_in_page);
>>>> ^
>>>> cc1: all warnings being treated as errors
>>>> make[1]: *** [/home/
>>>> hw/hyperv/vmbus.o] Error 1
>>>> make: *** [Makefile:527: x86_64-softmmu/all] Error 2
>>
>> FWIW there is no CI job covering x86 KVM on 32-bit host build.
>> Should this be covered? I guess the problem is no CI services
>> provide 32-bit x86...
>
> You can certainly provide either a container, or install the 32-bit
> libraries in a 64-bit environment. Then run
>
> PKG_CONFIG_
>
> and it should be possible to build 32-bit binaries, too.
>
> Alternatively, we could add a cross-compilation job that builds with
> i686-w64-mingw32 in 32-bit.
Oh, this case is covered: /app.shippable. com/github/ qemu/qemu/ runs/2437/ 2/console
https:/
But this doesn't use KVM ;)