[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Undefined reference to 'ffs' when building for win64
From: |
Andreas Färber |
Subject: |
Re: [Qemu-devel] Undefined reference to 'ffs' when building for win64 |
Date: |
Fri, 15 Feb 2013 20:40:06 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130105 Thunderbird/17.0.2 |
Am 15.02.2013 19:29, schrieb Jacob Kroon:
> On Fri, Feb 15, 2013 at 7:03 PM, Andreas Färber <address@hidden> wrote:
>> Am 06.02.2013 14:12, schrieb Jacob Kroon:
>>> I'm trying to cross-build qemu for win64 on a Fedora 18/x86_64 system,
>>> using all the necessary mingw64 packages from Fedora. Using latest
>>> qemu from git (5f876756c57c15f5e14d4136fc432b74f05f082b), I get an
>>> error when linking "qemu-img.exe":
>>
>> Has this been resolved in the meantime? MinGW64 cross-build of my patch
>> queue works fine.
>
> I tried again with latest from git,
> 571f65ec20fbcb991d7bce51787248ab9d325e3f, I still get the linking
> errors though.
>
> The configure-script command-line I use is:
>
> ./configure --cross-prefix=x86_64-w64-mingw32- --disable-guest-agent
> --disable-vnc --disable-werror --enable-debug
> --target-list=i386-softmmu
>
> I'm on a Fedora 18 system, updated with latest packages.
Okay, so I can reproduce it now by adding --enable-debug:
.../configure --cross-prefix=x86_64-w64-mingw32- --enable-debug
LINK arm-softmmu/qemu-system-armw.exe
../block.o: In function `bdrv_set_dirty_tracking':
/home/andreas/QEMU/qemu-cpu/block.c:4316: undefined reference to `ffs'
../block/qcow2.o: In function `qcow2_create2':
/home/andreas/QEMU/qemu-cpu/block/qcow2.c:1184: undefined reference to `ffs'
../block/qed.o: In function `bdrv_qed_open':
/home/andreas/QEMU/qemu-cpu/block/qed.c:429: undefined reference to `ffs'
/home/andreas/QEMU/qemu-cpu/block/qed.c:431: undefined reference to `ffs'
../hw/bt-sdp.o: In function `sdp_service_record_build':
/home/andreas/QEMU/qemu-cpu/hw/bt-sdp.c:710: undefined reference to `ffs'
../hw/max7310.o:/home/andreas/QEMU/qemu-cpu/hw/max7310.c:94: more
undefined references to `ffs' follow
collect2: error: ld returned 1 exit status
make[1]: *** [qemu-system-armw.exe] Fehler 1
make: *** [subdir-arm-softmmu] Fehler 2
Jacob, for now just drop --enable-debug from your command line or try
tweaking --extra-cflags with some higher -O optimization option.
Paolo, Stefan, any ideas how to fix?
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
- [Qemu-devel] Undefined reference to 'ffs' when building for win64, Jacob Kroon, 2013/02/06
- Re: [Qemu-devel] Undefined reference to 'ffs' when building for win64, Andreas Färber, 2013/02/15
- Re: [Qemu-devel] Undefined reference to 'ffs' when building for win64, Jacob Kroon, 2013/02/15
- Re: [Qemu-devel] Undefined reference to 'ffs' when building for win64,
Andreas Färber <=
- Re: [Qemu-devel] Undefined reference to 'ffs' when building for win64, Stefan Weil, 2013/02/15
- Re: [Qemu-devel] Undefined reference to 'ffs' when building for win64, Andreas Färber, 2013/02/15
- Re: [Qemu-devel] Undefined reference to 'ffs' when building for win64, Jacob Kroon, 2013/02/15
- [Qemu-devel] [PATCH] w32: Always compile with __builtin_ffs, Stefan Weil, 2013/02/16
- Re: [Qemu-devel] [PATCH] w32: Always compile with __builtin_ffs, Jacob Kroon, 2013/02/16
- Re: [Qemu-devel] Undefined reference to 'ffs' when building for win64, Kevin Wolf, 2013/02/18
- Re: [Qemu-devel] Undefined reference to 'ffs' when building for win64, Richard Henderson, 2013/02/18