From mboxrd@z Thu Jan 1 00:00:00 1970 From: oupegt@hotmail.com.nospam To: help-gcc@gnu.org Subject: Re: gcc:installation problem Date: Mon, 11 Oct 1999 12:54:00 -0000 Message-id: <38023734.23266742@news.interpath.net> References: <37fe39f8.27851908@news.interpath.net> X-SW-Source: 1999-10/msg00177.html I used "find" to locate cpp in the /opt/local/lib/gcc-lib/sparc-sun-solaris2.6/2.7.2.2 directory so I added a symlink /opt/local/lib2 to that directory. I then included the symlink to my path and tried to configure again: sun1% ../gcc2951/configure Configuring for a sparc-sun-solaris2.6 host. Created "Makefile" in /data2/home/thomas/misc/compdir/gccod using "mh-frag" ld: fatal: file crt1.o: open failed: No such file or directory ld: fatal: file crti.o: open failed: No such file or directory ld: fatal: file crtbegin.o: open failed: No such file or directory ld: fatal: library -lgcc: not found ld: fatal: library -lgcc: not found ld: fatal: file crtend.o: open failed: No such file or directory ld: fatal: file crtn.o: open failed: No such file or directory ld: fatal: File processing errors. No output written to conftest *** The command 'gcc -o conftest -g -O2 conftest.c' failed. *** You must set the environment variable CC to a working compiler. This is what I get when I type the command: sun1% /opt/local/bin/gcc -v -o conftest -g conftest.c gcc: conftest.c: No such file or directory gcc version 2.7.2.2 these are the permissions on my /opt/local directories: -rw-r--r-- 1 bin bin 345 Feb 25 1997 README.gcc.solaris drwxr-xr-x 2 bin bin bin drwxr-xr-x 2 bin bin doc drwxr-xr-x 2 bin bin include drwxr-xr-x 2 bin bin info drwxr-xr-x 3 bin bin lib lrwxrwxrwx 1 root other lib2 -> /opt/local/lib/gcc-lib/sparc-sun-solaris2.6/2.7.2.2 drwxr-xr-x 3 bin bin man drwxr-xr-x 3 bin bin sparc-sun-solaris2.6 My path has been set up in the following way: sun1% echo $path /bin /usr/bin /etc /usr/local/bin /opt/local/bin /usr/ccs/bin /opt/local/lib2 /usr/ccs/lib /usr/include /usr/ucb The directory /opt/local/lib2 is just a link to /opt/local/lib/gcc-lib/sparc-sun-solaris2.6/2.7.2.2: sun1% pwd /opt/local/lib/gcc-lib/sparc-sun-solaris2.6/2.7.2.2 sun1% ls SYSCALLS.c.X cc1plus crtbegin.o crtn.o libgcc.a cc1 cppcrtend.o gmon.o libobjc.a cc1obj crt1.o crti.o include specs sun1% ls -ld . drwxr-xr-x 3 bin bin 512 Oct 7 14:47 . I am now completely confused. Emile G. Thomas to send e-mail, remove ".nospam" from the address. On 08 Oct 1999 17:35:59 -0400, psmith@baynetworks.com (Paul D. Smith) wrote: >%% oupegt@hotmail.com.nospam writes: > > o> I'm running a Solaris 2.6 on a Sparc20 and I want to install > o> gcc-2.9.5.1 from the source code on my machine. I have installed > o> gcc-2.7.2 in my /opt/local/bin directory from a package I got from > o> sunfreeware.com. When I run the configure command though, I keep > o> getting an error. > > o> gcc: installation problem, cannot exec `cpp': No such file or > o> directory > o> *** The command '/opt/local/bin/gcc -o conftest -g conftest.c' > o> failed. > o> *** You must set the environment variable CC to a working compiler. > >Run this: > > $ /opt/local/bin/gcc -v -o conftest -g conftest.c > >It'll print the pathname of the cpp it's trying to execute; it should be >in /opt/local/lib/gcc-lib/... somewhere. > >Wherever it is, make sure that exists, the directories are >readable/executable by you, etc. etc. > >-- >------------------------------------------------------------------------------- > 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. From mboxrd@z Thu Jan 1 00:00:00 1970 From: oupegt@hotmail.com.nospam To: help-gcc@gnu.org Subject: Re: gcc:installation problem Date: Sun, 31 Oct 1999 13:57:00 -0000 Message-ID: <38023734.23266742@news.interpath.net> References: <37fe39f8.27851908@news.interpath.net> X-SW-Source: 1999-10n/msg00177.html Message-ID: <19991031135700.ePq4fdHHL8eJFW_IQCNNuvVYqcTkH2Pbm7jOZTb5dWk@z> I used "find" to locate cpp in the /opt/local/lib/gcc-lib/sparc-sun-solaris2.6/2.7.2.2 directory so I added a symlink /opt/local/lib2 to that directory. I then included the symlink to my path and tried to configure again: sun1% ../gcc2951/configure Configuring for a sparc-sun-solaris2.6 host. Created "Makefile" in /data2/home/thomas/misc/compdir/gccod using "mh-frag" ld: fatal: file crt1.o: open failed: No such file or directory ld: fatal: file crti.o: open failed: No such file or directory ld: fatal: file crtbegin.o: open failed: No such file or directory ld: fatal: library -lgcc: not found ld: fatal: library -lgcc: not found ld: fatal: file crtend.o: open failed: No such file or directory ld: fatal: file crtn.o: open failed: No such file or directory ld: fatal: File processing errors. No output written to conftest *** The command 'gcc -o conftest -g -O2 conftest.c' failed. *** You must set the environment variable CC to a working compiler. This is what I get when I type the command: sun1% /opt/local/bin/gcc -v -o conftest -g conftest.c gcc: conftest.c: No such file or directory gcc version 2.7.2.2 these are the permissions on my /opt/local directories: -rw-r--r-- 1 bin bin 345 Feb 25 1997 README.gcc.solaris drwxr-xr-x 2 bin bin bin drwxr-xr-x 2 bin bin doc drwxr-xr-x 2 bin bin include drwxr-xr-x 2 bin bin info drwxr-xr-x 3 bin bin lib lrwxrwxrwx 1 root other lib2 -> /opt/local/lib/gcc-lib/sparc-sun-solaris2.6/2.7.2.2 drwxr-xr-x 3 bin bin man drwxr-xr-x 3 bin bin sparc-sun-solaris2.6 My path has been set up in the following way: sun1% echo $path /bin /usr/bin /etc /usr/local/bin /opt/local/bin /usr/ccs/bin /opt/local/lib2 /usr/ccs/lib /usr/include /usr/ucb The directory /opt/local/lib2 is just a link to /opt/local/lib/gcc-lib/sparc-sun-solaris2.6/2.7.2.2: sun1% pwd /opt/local/lib/gcc-lib/sparc-sun-solaris2.6/2.7.2.2 sun1% ls SYSCALLS.c.X cc1plus crtbegin.o crtn.o libgcc.a cc1 cppcrtend.o gmon.o libobjc.a cc1obj crt1.o crti.o include specs sun1% ls -ld . drwxr-xr-x 3 bin bin 512 Oct 7 14:47 . I am now completely confused. Emile G. Thomas to send e-mail, remove ".nospam" from the address. On 08 Oct 1999 17:35:59 -0400, psmith@baynetworks.com (Paul D. Smith) wrote: >%% oupegt@hotmail.com.nospam writes: > > o> I'm running a Solaris 2.6 on a Sparc20 and I want to install > o> gcc-2.9.5.1 from the source code on my machine. I have installed > o> gcc-2.7.2 in my /opt/local/bin directory from a package I got from > o> sunfreeware.com. When I run the configure command though, I keep > o> getting an error. > > o> gcc: installation problem, cannot exec `cpp': No such file or > o> directory > o> *** The command '/opt/local/bin/gcc -o conftest -g conftest.c' > o> failed. > o> *** You must set the environment variable CC to a working compiler. > >Run this: > > $ /opt/local/bin/gcc -v -o conftest -g conftest.c > >It'll print the pathname of the cpp it's trying to execute; it should be >in /opt/local/lib/gcc-lib/... somewhere. > >Wherever it is, make sure that exists, the directories are >readable/executable by you, etc. etc. > >-- >------------------------------------------------------------------------------- > 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.