This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Cross-Compiling gcc 3.3 (20030317) for sh-elf: gnu-regex.c: undefined reference to '___mempcpy'
- From: paras dot rasmatazz at t-online dot de (Christian Herrmann)
- To: <gcc-help at gcc dot gnu dot org>
- Date: Tue, 18 Mar 2003 06:27:13 +0100
- Subject: Cross-Compiling gcc 3.3 (20030317) for sh-elf: gnu-regex.c: undefined reference to '___mempcpy'
Hello,
I'm having trouble cross-compiling the newest gcc-snapshot for the sh-elf
(dreamcast) target. Here's my configure:
In the BUILD-GCC directory:
../gcc-20030317/configure --target=sh-elf --prefix=/usr/local/dc --without-h
eaders --with-newlib --enable-languages=c
after typing make all, it gives me this output after compiling various
things:
make[2]: Entering directory `/gcc/build-gcc/gcc/fixinc'
gcc -DIN_GCC -DHAVE_CONFIG_H -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrit
e-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -
Wno-long -long -DHAVE_CONFIG_H -DGENERATOR_FILE -W -Wall -Wwrite-strings -W
strict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-lon
g -I. -I.. -I../../../gcc-20030317/gcc/fixinc -I../../../gcc-20030317/gcc/f
ixinc/.. -I../../../gcc-20030317/gcc/fixinc/../config -I../../../gcc-2003031
7/gcc/fixinc/../../include -o fixincl.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':
/gcc/build-gcc/gcc/fixinc/../../../gcc-20030317/gcc/fixinc/gnu-regex.c:5723:
undefined reference to `___mempcpy'
collect2: ld returned 1 exit status
make[2]: *** [full-stamp] Error 1
make[2]: Leaving directory `/gcc/build-gcc/gcc/fixinc'
make[1]: *** [fixinc.sh] Error 2
make[1]: Leaving directory `/gcc/build-gcc/gcc'
make: *** [all-gcc] Error 2
I also successfully compiled the binutils (2.13.2.1) for the sh-elf target
I am using the cygwin release from 2003-03-12 (i tried the same with my SuSE
Linux too, with the same error)
I was following the tutorial on
http://www.hangar-eleven.de/en/devdc-index.html , except I replaced
binutils-2.11.2 with version 2.13.2.1 and gcc-3.0.4 with gcc-3.3 (snapshot
20030317)