delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/01/22/09:33:46

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_21,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Thu, 22 Jan 2009 17:32:58 +0300
Message-ID: <dd5065570901220632u32917372pcc06036f24ef87a7@mail.gmail.com>
Subject: 1.5.18-1: undefined reference to `ffs' in mno-cygwin mode
From: Dmitry Smirnov <divis1969 AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019