Re: [Qemu-devel] Undefined reference to 'ffs' when building for win64

2013-02-18 Thread Richard Henderson
On 2013-02-18 01:52, Kevin Wolf wrote: On Fri, Feb 15, 2013 at 10:16:11PM +0100, Stefan Weil wrote: It looks like most (but not all) versions of gcc emit built-in code for ffs() even for compilations without optimisation. I have to provide additional compiler options (e.g. -fno-builtin-ffs) to g

Re: [Qemu-devel] Undefined reference to 'ffs' when building for win64

2013-02-18 Thread Kevin Wolf
On Fri, Feb 15, 2013 at 10:16:11PM +0100, Stefan Weil wrote: > It looks like most (but not all) versions of gcc emit built-in code > for ffs() even for compilations without optimisation. I have to provide > additional compiler options (e.g. -fno-builtin-ffs) to get a real > function call. > Only th

Re: [Qemu-devel] Undefined reference to 'ffs' when building for win64

2013-02-15 Thread Jacob Kroon
Hi Stefan, [...] On Fri, Feb 15, 2013 at 10:16 PM, Stefan Weil wrote: > > earlier versions of QEMU provided an implementation of ffs() > because it was needed for w32 compilations without optimisation. > > Later w32 used libiberty.a which provides ffs(). w64 never needed > the ffs() implementati

Re: [Qemu-devel] Undefined reference to 'ffs' when building for win64

2013-02-15 Thread Andreas Färber
Am 15.02.2013 22:16, schrieb Stefan Weil: > Am 15.02.2013 20:40, schrieb Andreas Färber: >> Am 15.02.2013 19:29, schrieb Jacob Kroon: >>> On Fri, Feb 15, 2013 at 7:03 PM, Andreas Färber wrote: Am 06.02.2013 14:12, schrieb Jacob Kroon: > I'm trying to cross-build qemu for win64 on a Fedora

Re: [Qemu-devel] Undefined reference to 'ffs' when building for win64

2013-02-15 Thread Stefan Weil
Am 15.02.2013 20:40, schrieb Andreas Färber: > Am 15.02.2013 19:29, schrieb Jacob Kroon: >> On Fri, Feb 15, 2013 at 7:03 PM, Andreas Färber 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

Re: [Qemu-devel] Undefined reference to 'ffs' when building for win64

2013-02-15 Thread Andreas Färber
Am 15.02.2013 19:29, schrieb Jacob Kroon: > On Fri, Feb 15, 2013 at 7:03 PM, Andreas Färber 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

Re: [Qemu-devel] Undefined reference to 'ffs' when building for win64

2013-02-15 Thread Jacob Kroon
Hi Andreas, On Fri, Feb 15, 2013 at 7:03 PM, Andreas Färber 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 (5f876756c5

Re: [Qemu-devel] Undefined reference to 'ffs' when building for win64

2013-02-15 Thread Andreas Färber
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"

[Qemu-devel] Undefined reference to 'ffs' when building for win64

2013-02-06 Thread Jacob Kroon
Hi, 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