From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1398 invoked by alias); 18 Mar 2003 20:26:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 1340 invoked by uid 71); 18 Mar 2003 20:26:00 -0000 Resent-Date: 18 Mar 2003 20:26:00 -0000 Resent-Message-ID: <20030318202600.1338.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, areuwho@freenet.de Received: (qmail 24879 invoked by uid 48); 18 Mar 2003 20:24:18 -0000 Message-Id: <20030318202418.24876.qmail@sources.redhat.com> Date: Tue, 18 Mar 2003 20:26:00 -0000 From: areuwho@freenet.de Reply-To: areuwho@freenet.de To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: bootstrap/10140: Cross-compiling gcc 3.3 for sh-elf: gnu-regex.c:undefined reference to: ___mempcpy X-SW-Source: 2003-03/txt/msg01230.txt.bz2 List-Id: >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@freenet.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: