Re: gcc: installation problem, cannot exec `cc1': No such file or directory

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

 



Ian Lance Taylor wrote:
"Ernest L.  Williams Jr." <ernesto@xxxxxxxx> writes:

I looked through the gcc-help archives and was able to locate the
problem that I am having:

I would like to relocate a gcc installation to another directory on
another computer but I get the famous:
==========================================================================
gcc: installation problem, cannot exec `cc1': No such file or directory
==========================================================================

Usually this just works, assuming you move the entire installed tree
as a unit without rearranging subdirectories.  There was a time that
it didn't work, but you neglected to mention which version of gcc you
are using, so I don't know whether it is an old one.
[ernesto@lcls-dev2 bin]$ ./powerpc-rtems-gcc -v
Using built-in specs.
Target: powerpc-rtems
Configured with: /afs/slac/package/rtems/4.7/host/src/gcc-4.0.2//configure --target=powerpc-rtems --prefix=/afs/slac/package/rtems/4.7/host --exec-prefix=/afs/slac/package/rtems/4.7/host/i386_linux24 --mandir=/afs/slac/package/rtems/4.7/doc/man --infodir=/afs/slac/package/rtems/4.7/doc/info --enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib --verbose --with-system-zlib --disable-nls --enable-version-specific-runtime-libs --enable-threads=rtems
Thread model: rtems
gcc version 4.0.2



For cases where it doesn't work, you can use the -B option, or the
GCC_EXEC_PREFIX or COMPILER_PATH environment variables.  See the
friendly manual.

I tried  "-B"  but it did not work:
=============================================================================

/ade/rtems/rtems-4.7/host/i386_linux24/bin/powerpc-rtems-gcc --pipe -B/ade/rtems/rtems-4.7/target/powerpc-rtems/beatnik/lib/ -specs bsp_specs -qrtems -fasm -c -mcpu=7450 -Dmpc7455 -mno-altivec -mabi=altivec -mvrsave=no -mmultiple -mstring -mstrict-align -I/ade/rtems/rtems-4.7/target/powerpc-rtems/include -I/ade/rtems/rtems-4.7/target/ssrlApps/powerpc-rtems/beatnik//include -I/ade/rtems/rtems-4.7/target/ssrlApps/powerpc-rtems/beatnik/include -ansi -g -O3 -Wall -DMY_DO_BOOTP=NULL -DHAVE_MOTLOAD -B -I. -I.. -I../../../src/libCom/bucketLib -I../../../src/libCom/ring -I../../../src/libCom/calc -I../../../src/libCom/cvtFast -I../../../src/libCom/cppStd -I../../../src/libCom/cxxTemplates -I../../../src/libCom/dbmf -I../../../src/libCom/ellLib -I../../../src/libCom/env -I../../../src/libCom/error -I../../../src/libCom/fdmgr -I../../../src/libCom/freeList -I../../../src/libCom/gpHash -I../../../src/libCom/logClient -I../../../src/libCom/macLib -I../../../src/libCom/misc -I../../../src/libCom/osi -I../../../src/libCom/taskwd -I../../../src/libCom/timer -I../../../src/libCom/tsDefs -I../../../include/os/RTEMS -I../../../include -I/ade/rtems/rtems-4.7/host/i386_linux24/powerpc-rtems/include ../../../src/libCom/bucketLib/bucketLib.c powerpc-rtems-gcc: installation problem, cannot exec 'cc1': No such file or directory
make[1]: *** [bucketLib.o] Error 1
make[1]: Leaving directory `/ade/epics/supTop/base/base-R3-14-8-2-lcls1/src/libCom/O.RTEMS-beatnik'
make: *** [install.RTEMS-beatnik] Error 2
===============================================================================================



-- Ernest




Ian


[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