This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
build/2138: Build fails when environment variable CROSS_COMPILE is set
- From: Thomas dot Viehweger at marconi dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 23 Jun 2006 08:43:15 -0000
- Subject: build/2138: Build fails when environment variable CROSS_COMPILE is set
- Reply-to: Thomas dot Viehweger at marconi dot com
>Number: 2138
>Category: build
>Synopsis: Build fails when environment variable CROSS_COMPILE is set
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Jun 23 08:48:04 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Thomas Viehweger
>Release: GNU gdb 6.5
>Organization:
>Environment:
>Description:
When the environment variable CROSS_COMPILE is set to e.g. powerpc-linux- the build fails in the directory readline:
>How-To-Repeat:
setenv CROSS_COMPILE powerpc-linux-
./configure
make
...
make[2]: Entering directory `/usr/src/gdb-6.5/readline'
rm -f readline.o
gcc -c -DHAVE_CONFIG_H powerpc-linux- -I. -I.././readline -DRL_LIBRARY_VERSION='"5.1"' -g -O2 readline.c
gcc: powerpc-linux-: Datei oder Verzeichnis nicht gefunden
make[2]: *** [readline.o] Fehler 1
make[2]: Leaving directory `/usr/src/gdb-6.5/readline'
make[1]: *** [all-readline] Fehler 2
make[1]: Leaving directory `/usr/src/gdb-6.5'
make: *** [all] Fehler 2
>Fix:
Change configure script to use the environment variable only when really cross compiling
>Release-Note:
>Audit-Trail:
>Unformatted: