Hi Andreas, On Fri, Feb 15, 2013 at 7:03 PM, Andreas Färber <afaer...@suse.de> wrote: > Hi Jacob, > > 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": >> >> block.o: In function `bdrv_set_dirty_tracking': >> /home/sejakr/Projects/flexemu/qemu/block.c:4316: undefined reference to `ffs' >> block/qcow2.o: In function `qcow2_create2': >> /home/sejakr/Projects/flexemu/qemu/block/qcow2.c:1184: undefined >> reference to `ffs' >> block/qed.o: In function `bdrv_qed_open': >> /home/sejakr/Projects/flexemu/qemu/block/qed.c:429: undefined reference to >> `ffs' >> /home/sejakr/Projects/flexemu/qemu/block/qed.c:431: undefined reference to >> `ffs' >> collect2: error: ld returned 1 exit status >> make[1]: *** [qemu-img.exe] Error 1 >> make[1]: Leaving directory `/home/sejakr/Projects/flexemu/qemu' >> make: *** [qemu-build] Error 2 >> >> Same problem happens when linking qemu-io.exe and qemu-system-i386w.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. I can email the config.log file if you think it would be of any use to you. Regards Jacob