This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


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

Re: gcc gets stuck after reinstalling OS.


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


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