This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc gets stuck after reinstalling OS.
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Mallik <mallikarjun_t at infosys dot com>, gcc-help at gcc dot gnu dot org
- Date: Thu, 09 Sep 2004 14:51:30 -0500
- Subject: Re: gcc gets stuck after reinstalling OS.
- References: <00e201c4964b$906099a0$15bccac6@itlpc27531>
Hi Mallik,
When GCC is built on a SunOS box, it is very sensitive to the SunOS version
-- INCLUDING the patch version.
If you patch your SunOS box, you should rebuild GCC. Why? Because some
patch versions update the OS include files, and GCC caches (now stale)
tweaked versions of those include files. (There may be a way to update
just the GCC cache of modified OS include files -- I don't know how to do
that.)
To help you figure out where it's going off the rails, make sure your path
is set to where GCC is installed. Make sure GCC is installed where it
expects to be installed (GCC contains some hard coded paths to find its
components... if you move GCC, you break it).
Use the "-v" switch, for maximum verbosity to help diagnose where things go
awry:
gcc -v blah.cpp
If you are using bash shell, make sure things are accessible in your path:
type -a gcc
type -a ld
type -a as
HTH,
--Eljay