This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

Crosstool-NG 1.6.2 GCC search dirs issue


I've managed to get 1.6.2 to finish building a more modern toolchain on Mac
OS X (GCC 4.3.3, Linux 2.6.32.7, GLIBC 2.9) for an Arm processor.

However, if I try to run execute the file named g++, I get:

g++: error trying to exec 'cc1plus': execvp: No such file or directory

Which I know to be a problem with the search directories.  These are as
follows:

install: 
/Volumes/Crosstool/arm-ep9312-linux-gnueabi/arm-ep9312-linux-gnueabi/bin/../
lib/gcc/arm-ep9312-linux-gnueabi/4.3.3/
programs: =
/Volumes/Crosstool/arm-ep9312-linux-gnueabi/arm-ep9312-linux-gnueabi/bin/../
libexec/gcc/arm-ep9312-linux-gnueabi/4.3.3/
/Volumes/Crosstool/arm-ep9312-linux-gnueabi/arm-ep9312-linux-gnueabi/bin/../
libexec/gcc/
/Volumes/Crosstool/arm-ep9312-linux-gnueabi/arm-ep9312-linux-gnueabi/bin/../
lib/gcc/arm-ep9312-linux-gnueabi/4.3.3/../../../../arm-ep9312-linux-gnueabi/
bin/arm-ep9312-linux-gnueabi/4.3.3/
/Volumes/Crosstool/arm-ep9312-linux-gnueabi/arm-ep9312-linux-gnueabi/bin/../
lib/gcc/arm-ep9312-linux-gnueabi/4.3.3/../../../../arm-ep9312-linux-gnueabi/
bin/
libraries: =
/Volumes/Crosstool/arm-ep9312-linux-gnueabi/arm-ep9312-linux-gnueabi/bin/../
lib/gcc/arm-ep9312-linux-gnueabi/4.3.3/
/Volumes/Crosstool/arm-ep9312-linux-gnueabi/arm-ep9312-linux-gnueabi/bin/../
lib/gcc/
/Volumes/Crosstool/arm-ep9312-linux-gnueabi/arm-ep9312-linux-gnueabi/bin/../
lib/gcc/arm-ep9312-linux-gnueabi/4.3.3/../../../../arm-ep9312-linux-gnueabi/
lib/arm-ep9312-linux-gnueabi/4.3.3/
/Volumes/Crosstool/arm-ep9312-linux-gnueabi/arm-ep9312-linux-gnueabi/bin/../
lib/gcc/arm-ep9312-linux-gnueabi/4.3.3/../../../../arm-ep9312-linux-gnueabi/
lib/
/Volumes/Crosstool/arm-ep9312-linux-gnueabi/arm-ep9312-linux-gnueabi//sys-ro
ot/lib/arm-ep9312-linux-gnueabi/4.3.3/
/Volumes/Crosstool/arm-ep9312-linux-gnueabi/arm-ep9312-linux-gnueabi//sys-ro
ot/lib/
/Volumes/Crosstool/arm-ep9312-linux-gnueabi/arm-ep9312-linux-gnueabi//sys-ro
ot/usr/lib/arm-ep9312-linux-gnueabi/4.3.3/
/Volumes/Crosstool/arm-ep9312-linux-gnueabi/arm-ep9312-linux-gnueabi//sys-ro
ot/usr/lib/

I think there is a missing ../ in the one or more of program paths.

Then it gets even stranger.  If I try to run this:
/Volumes/Crosstool/arm-ep9312-linux-gnueabi/bin/arm-ep9312-linux-gnueabi-g++
helloworld.c

I get this:
readlink: illegal option -- m
usage: readlink [-n] [-f] symlink [...]

But if I try to run this:
/Volumes/Crosstool/arm-ep9312-linux-gnueabi/bin/.arm-ep9312-linux-gnueabi-g+
+ helloworld.c
Note the period character in the name.  It compiles nicely.


Blair M. Burtan
Northern Lights Tactical
www.northernlightstactical.com




--
For unsubscribe information see http://sourceware.org/lists.html#faq


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