From mboxrd@z Thu Jan 1 00:00:00 1970 From: psmith@baynetworks.com (Paul D. Smith) To: help-gcc@gnu.org Subject: Re: gcc:installation problem Date: Sun, 31 Oct 1999 13:57:00 -0000 Message-ID: References: <37fe39f8.27851908@news.interpath.net> <38023734.23266742@news.interpath.net> X-SW-Source: 1999-10n/msg00178.html Message-ID: <19991031135700.bKrXyiC4HT0NDKDacJPcjj23niJLE-npvzcqJ1jVvSQ@z> %% oupegt@hotmail.com.nospam writes: o> I used "find" to locate cpp in the o> /opt/local/lib/gcc-lib/sparc-sun-solaris2.6/2.7.2.2 directory so I o> added a symlink /opt/local/lib2 to that directory. You don't need to do anything like that. GCC should have the right path built into the exe; if it doesn't there'll be lots more problems so making that symlink is relatively useless. Take that link back out again. I just wanted to know where GCC was looking, and if the file was actually there. o> ld: fatal: file crt1.o: open failed: No such file or directory o> ld: fatal: file crti.o: open failed: No such file or directory o> ld: fatal: file crtbegin.o: open failed: No such file or See? Those should be in the directory GCC is looking at, too. It's looking more and more like an installation problem; you have the files in /opt/local/lib/gcc-lib/sparc-sun-solaris2.6/2.7.2.2, but GCC is looking somewhere else. o> This is what I get when I type the command: o> sun1% /opt/local/bin/gcc -v -o conftest -g conftest.c o> gcc: conftest.c: No such file or directory o> gcc version 2.7.2.2 Oops. Well, that's not useful, of course. Do this: $ touch conftest.c $ gcc -v -o conftest conftest.c You'll get a link error at the end, but before that you'll see lots of stuff like: Reading specs from /usr/global/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.60/specs gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release) /usr/global/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.60/cpp -lang-c ... GNU CPP version egcs-2.91.60 19981201 (egcs-1.1.1 release) (sparc) #include "..." search starts here: #include <...> search starts here: Here we can see that GCC is looking for its internal programs and other files in /usr/global/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.60. Where is your GCC looking? Why isn't the stuff there, but rather somewhere else? That's what you need to fix. -- ------------------------------------------------------------------------------- Paul D. Smith Network Management Development "Please remain calm...I may be mad, but I am a professional." --Mad Scientist ------------------------------------------------------------------------------- These are my opinions---Nortel Networks takes no responsibility for them.