This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
gcc: installation problem, cannot exec `cc1': No such file or directory
- From: "Ernest L. Williams Jr." <ernesto at ornl dot gov>
- To: gcc-help at gcc dot gnu dot org
- Cc: ernesto at slac dot stanford dot edu
- Date: Thu, 13 Sep 2007 07:30:05 -0700
- Subject: gcc: installation problem, cannot exec `cc1': No such file or directory
Hi,
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
==========================================================================
Is there a way around this, without having to rebuild the toolChain and
GCC?
I don't want to have to rebuild; every time I decide to zip up a GCC
distro and move to a different directory.
Or is this just the way it is?
================== From the GCC-HELP archives ==========================
gcc -print-search-dirs
This tells where your GCC-driver ('gcc') tries to find the 'programs'
like 'cpp', 'cc1*', 'as', 'ld' etc. first, before trying the PATH.
The 'cpp', 'cc1*' etc. belonging to a specific version of GCC,
SHOULDN'T be on the PATH, how else one could install several
GCC-versions on the same machine if it would be allowed?
The native 'as' and 'ld' may be there but the $prefix/$target/bin
will be searched first so the GNU as and GNU ld can be put there and
GCC finds them before those in the PATH...
=======================================================================
Thanks,
Ernesto