gcc 4.3.0 -- program search path issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, 

I managed to compile gcc 4.3.0 is SuSE Linux Enterprise Server 9 (32-bit
& 64-bit), and I have run into this issue where gcc or g++ cannot find
it's internal programs (cc1, cc1plus, etc) while try to compile my code.

I am using binutils 2.18 for this build.

Here is an example:

host1> gcc hello.c -o hello.r
gcc: error trying to exec 'cc1': execvp: No such file or directory
host1> which gcc
/usr/gcc-4.3.0/bin/gcc


If I specify the full path where 'gcc' lives, the compile goes through
OK.

host1> /usr/gcc-4.3.0/bin/gcc hello.c -o hello.r
gcc: error trying to exec 'cc1': execvp: No such file or directory

host1> /usr/gcc-4.3.0/bin/gcc hello.c -o hello.r
host1> ./hello.r
hello, world

'-print-search-dirs' output shows that that '/usr/gcc-4.3.0' is not in
the programs search path.

I am not sure what needs to be done at this stage to fix this issue.

If anyone can give me an  hand with this, that would be very much
appreciated!

Thanks


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux