undefined symbol when compiling under cygwin

Christoph Baumann cb@sorcus.com
Mon Aug 4 13:12:00 GMT 2003


Hi!

I managed to build a GNU/Linux(i386) to xscale-elf CrossGCC (binutils,
GCC and newlib). When I tried the same under Cygwin the GCC build
failed:

make[2]: Entering directory
`/cygdrive/d/cb/cygwin-xscale-elf/build/gcc-build/gcc/fixinc'
gcc -DIN_GCC -DHAVE_CONFIG_H -DIN_GCC -DCROSS_COMPILE -g -O2 -W -Wall -W
write-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pe
dantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE  -W -Wall -Wwrite
-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedanti
c -Wno-long-long -I. -I.. -I../../../gcc-3.1/gcc/fixinc -I../../../gcc-3
.1/gcc/fixinc/.. -I../../../gcc-3.1/gcc/fixinc/../config -I../../../gcc-
3.1/gcc/fixinc/../../include  -ofixincl.exe fixincl.o fixtests.o
fixfixes.o server.o procopen.o gnu-regex.o fixlib.o
../../libiberty/libiberty.a
gnu-regex.o(.text+0x6556): In function `regerror':
/cygdrive/d/cb/cygwin-xscale-elf/build/gcc-build/gcc/fixinc/../../../gcc
-3.1/gcc/fixinc/gnu-regex.c:5723: undefined refe
rence to `___mempcpy'
collect2: ld returned 1 exit status
make[2]: *** [full-stamp] Error 1
make[2]: Leaving directory
`/cygdrive/d/cb/cygwin-xscale-elf/build/gcc-build/gcc/fixinc'
make[1]: *** [fixinc.sh] Error 2
make[1]: Leaving directory
`/cygdrive/d/cb/cygwin-xscale-elf/build/gcc-build/gcc'
make: *** [all-gcc] Error 2


Any ideas where this comes from?


Mit freundlichen Gruessen / Best regards
Dipl.-Phys. Christoph Baumann
---
SORCUS Computer GmbH
Im Breitspiel 11 c
D-69126 Heidelberg

Tel.: +49(0)6221/3206-0
Fax: +49(0)6221/3206-66


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list