This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
bootstrap/10140: Cross-compiling gcc 3.3 for sh-elf: gnu-regex.c:undefined reference to: ___mempcpy
- From: areuwho at freenet dot de
- To: gcc-gnats at gcc dot gnu dot org
- Date: 18 Mar 2003 20:24:18 -0000
- Subject: bootstrap/10140: Cross-compiling gcc 3.3 for sh-elf: gnu-regex.c:undefined reference to: ___mempcpy
- Reply-to: areuwho at freenet dot de
>Number: 10140
>Category: bootstrap
>Synopsis: Cross-compiling gcc 3.3 for sh-elf: gnu-regex.c:undefined reference to: ___mempcpy
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Mar 18 20:26:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: areuwho at freenet dot de
>Release: gcc-3.3 (snapshot 20030317)
>Organization:
>Environment:
linux-2.4.19, host binutils 2.13.2.1, host gcc 2.95.2 (also tried with 3.3)
>Description:
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-headers --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 -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -I. -I.. -I../../../gcc-20030317/gcc/fixinc -I../../../gcc-20030317/gcc/fixinc/.. -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 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)
>How-To-Repeat:
reply to paras DOT rasmatazz AT gmx DOT net please
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: