This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

build/2138: Build fails when environment variable CROSS_COMPILE is set


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]