This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

1.5.18-1: undefined reference to `ffs' in mno-cygwin mode


Hi,

I'm experiencing some problem with building QEMU with -O0 -mno-cygwin options.

I was successfully built QEMU with -mno-cygwin and -O2 (default debug option).
But -O0 gives me the following:

make -C arm-softmmu all
make[1]: Entering directory `/cygdrive/d/Dvs/Project/qemu-0.9.1/arm-softmmu'
gcc -mno-cygwin -g -mno-cygwin -o qemu-system-arm.exe vl.o osdep.o
monitor.o pci.o loader.o isa_mmio.o block-raw-win32.o lsi53c895a.o
usb-ohci.o eeprom93xx.o eepro100.o ne2000.o pcnet.o rtl8139.o
integratorcp.o versatilepb.o ps2.o smc91c111.o arm_pic.o arm_timer.o
arm_boot.o pl011.o pl031.o pl050.o pl080.o pl110.o pl181.o pl190.o
versatile_pci.o ptimer.o realview_gic.o realview.o arm_sysctl.o
mpcore.o armv7m.o armv7m_nvic.o stellaris.o pl022.o stellaris_enet.o
pl061.o arm-semi.o pxa2xx.o pxa2xx_pic.o pxa2xx_gpio.o pxa2xx_timer.o
pxa2xx_dma.o pxa2xx_lcd.o pxa2xx_mmci.o pxa2xx_pcmcia.o
pxa2xx_keypad.o pflash_cfi01.o gumstix.o spitz.o ide.o serial.o nand.o
ecc.o omap.o omap_lcdc.o omap1_clk.o omap_mmc.o omap_i2c.o palm.o
tsc210x.o mst_fpga.o mainstone.o gdbstub.o ../libqemu_common.a
libqemu.a  -lm -lz -lwinmm -lws2_32 -liphlpapi -L/usr/lib -lmingw32
-lSDLmain -lSDL -mconsole
pxa2xx_gpio.o: In function `pxa2xx_gpio_handler_update':
/cygdrive/d/Dvs/Project/qemu-0.9.1/hw/pxa2xx_gpio.c:129: undefined
reference to `ffs'
spitz.o: In function `scoop_writeb':
/cygdrive/d/Dvs/Project/qemu-0.9.1/hw/spitz.c:561: undefined reference to `ffs'
/cygdrive/d/Dvs/Project/qemu-0.9.1/hw/spitz.c:561: undefined reference to `ffs'
omap.o: In function `omap_inth_sir_update':
/cygdrive/d/Dvs/Project/qemu-0.9.1/hw/omap.c:118: undefined reference to `ffs'
/cygdrive/d/Dvs/Project/qemu-0.9.1/hw/omap.c:125: undefined reference to `ffs'
omap.o:/cygdrive/d/Dvs/Project/qemu-0.9.1/hw/omap.c:3650: more
undefined references to `ffs' follow
make[1]: Leaving directory `/cygdrive/d/Dvs/Project/qemu-0.9.1/arm-softmmu'
make: Leaving directory `/cygdrive/d/Dvs/Project/qemu-0.9.1'
make[1]: *** [qemu-system-arm.exe] Error 1

With the help of disassembler I found that with -O2 option, ffs was
replaced with some inline code.
Most likely, with -O0 gcc tries to link it with some function, but CRT
for -mno-cygwin mode seems does not contain such a function.

Is there any way to fix this problem?

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]