* gcc:installation problem
@ 1999-10-08 11:58 oupegt
1999-10-08 14:43 ` Paul D. Smith
1999-10-31 13:57 ` oupegt
0 siblings, 2 replies; 14+ messages in thread
From: oupegt @ 1999-10-08 11:58 UTC (permalink / raw)
To: help-gcc
I'm running a Solaris 2.6 on a Sparc20 and I want to install
gcc-2.9.5.1 from the source code on my machine. I have installed
gcc-2.7.2 in my /opt/local/bin directory from a package I got from
sunfreeware.com. When I run the configure command though, I keep
getting an error.
--------------------------------------------------------------------------------------------------------------
sun1% setenv CC /opt/local/bin/gcc
sun1% ../gcc2951/configure
Configuring for a sparc-sun-solaris2.6 host.
Created "Makefile" in /data2/home/thomas/misc/compdir/gccod using
"mh-frag"
gcc: installation problem, cannot exec `cpp': No such file or
directory
*** The command '/opt/local/bin/gcc -o conftest -g conftest.c'
failed.
*** You must set the environment variable CC to a working compiler.
sun1(74)% gcc -v
gcc version 2.7.2.2
-------------------------------------------------------------------------------------------------------------
I have tried this with /usr/ucb set both before and after my gcc bin
directory but to no avail. Can anyone figure out what's going on?
Please respond both to this newsgroup and via e-mail.
May care go with you and Peace,
Emile G. Thomas
oupegt@hotmail.com.nospam <remove ".nospam" to send real e-mail>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: gcc:installation problem
1999-10-08 11:58 gcc:installation problem oupegt
@ 1999-10-08 14:43 ` Paul D. Smith
1999-10-11 12:54 ` oupegt
1999-10-31 13:57 ` Paul D. Smith
1999-10-31 13:57 ` oupegt
1 sibling, 2 replies; 14+ messages in thread
From: Paul D. Smith @ 1999-10-08 14:43 UTC (permalink / raw)
To: help-gcc
%% 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 <psmith@baynetworks.com> 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.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: gcc:installation problem
1999-10-08 14:43 ` Paul D. Smith
@ 1999-10-11 12:54 ` oupegt
1999-10-11 14:12 ` Paul D. Smith
1999-10-31 13:57 ` oupegt
1999-10-31 13:57 ` Paul D. Smith
1 sibling, 2 replies; 14+ messages in thread
From: oupegt @ 1999-10-11 12:54 UTC (permalink / raw)
To: help-gcc
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 <psmith@baynetworks.com> 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.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: gcc:installation problem
1999-10-11 12:54 ` oupegt
@ 1999-10-11 14:12 ` Paul D. Smith
1999-10-12 10:35 ` gcc:installation problem -- now make bootstrap fail oupegt
1999-10-31 13:57 ` gcc:installation problem Paul D. Smith
1999-10-31 13:57 ` oupegt
1 sibling, 2 replies; 14+ messages in thread
From: Paul D. Smith @ 1999-10-11 14:12 UTC (permalink / raw)
To: help-gcc
%% 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 <psmith@baynetworks.com> 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.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: gcc:installation problem -- now make bootstrap fail
1999-10-11 14:12 ` Paul D. Smith
@ 1999-10-12 10:35 ` oupegt
1999-10-12 12:29 ` Paul D. Smith
1999-10-31 13:57 ` oupegt
1999-10-31 13:57 ` gcc:installation problem Paul D. Smith
1 sibling, 2 replies; 14+ messages in thread
From: oupegt @ 1999-10-12 10:35 UTC (permalink / raw)
To: help-gcc
On 11 Oct 1999 17:04:44 -0400, psmith@baynetworks.com (Paul D. Smith)
wrote:
> 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.
Thanks a lot Paul, I took a chance and removed the package that I had
installed and installed the package for gcc 2.8.1 and `configure`
worked just fine. Unfortunately, now `make bootstrap` dies when it
tries to "make all-recursive".
# make bootstrap
if [ x"no" = xyes ] && [ ! -d pic ]; then \
mkdir pic; \
else true; fi
touch stamp-picdir
test x"no" != xyes || \
gcc -c -DHAVE_CONFIG_H -g -O2 -I.
-I../../gcc2951/libiberty/../include ../.o
gcc -c -DHAVE_CONFIG_H -g -O2 -I.
-I../../gcc2951/libiberty/../include ../../gc
[BIG SNIP OF gcc -c DHAVE_CONFIGs ....]
gcc -c -DHAVE_CONFIG_H -g -O2 -I.
-I../../gcc2951/libiberty/../include ../../gc
rm -f libiberty.a
ar rc libiberty.a \
argv.o choose-temp.o concat.o cplus-dem.o
fdmatch.o fnmatch.o getopt.o getop
true libiberty.a
rm -f needed-list; touch needed-list; \
for f in atexit calloc memchr memcmp
memcpy memmove memset rename strchr strer\
for g in asprintf.o mkstemps.o setenv.o
sigsetmask.o vasprintf.o ; do \
case "$g" in \
*$f*) echo $g >> needed-list ;; \
esac; \
done; \
done
echo argv.o choose-temp.o concat.o cplus-dem.o
fdmatch.o fnmatch.o getopt.o get
make all-recursive
Making all in intl
Making all in lib
gcc -DHAVE_CONFIG_H -I. -I../../../gcc2951/
texinfo/lib -I.. -I../intl -g -O2 -c
gcc -DHAVE_CONFIG_H -I. -I../../../gcc2951/
texinfo/lib -I.. -I../intl -g -O2 -c
gcc -DHAVE_CONFIG_H -I. -I../../../gcc2951/
texinfo/lib -I.. -I../intl -g -O2 -c
gcc -DHAVE_CONFIG_H -I. -I../../../gcc2951/
texinfo/lib -I.. -I../intl -g -O2 -c
rm -f libtxi.a
ar cru libtxi.a getopt.o getopt1.o xmalloc.o xstrdup.o
ranlib libtxi.a
Making all in makeinfo
make: Fatal error: Don't know how to make target
`../lib/system.h'
Current working directory
/data2/home/thomas/misc/compdir/gccod/texinfo/makeinfo
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory
/data2/home/thomas/misc/compdir/gccod/texinfo
*** Error code 1
make: Fatal error: Command failed for target
`all-recursive-am'
Current working directory
/data2/home/thomas/misc/compdir/gccod/texinfo
*** Error code 1
make: Fatal error: Command failed for target `all-texinfo'
#
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: gcc:installation problem -- now make bootstrap fail
1999-10-12 10:35 ` gcc:installation problem -- now make bootstrap fail oupegt
@ 1999-10-12 12:29 ` Paul D. Smith
1999-10-14 6:41 ` oupegt
1999-10-31 13:57 ` Paul D. Smith
1999-10-31 13:57 ` oupegt
1 sibling, 2 replies; 14+ messages in thread
From: Paul D. Smith @ 1999-10-12 12:29 UTC (permalink / raw)
To: help-gcc
I don't know, offhand, but I suggest using GNU make, rather than Solaris
make, to build GCC.
I think they might even require it, I can't remember.
If you try it with GNU make and it still fails, well, post again! :)
--
-------------------------------------------------------------------------------
Paul D. Smith <psmith@baynetworks.com> 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.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: gcc:installation problem -- now make bootstrap fail
1999-10-12 12:29 ` Paul D. Smith
@ 1999-10-14 6:41 ` oupegt
1999-10-31 13:57 ` oupegt
1999-10-31 13:57 ` Paul D. Smith
1 sibling, 1 reply; 14+ messages in thread
From: oupegt @ 1999-10-14 6:41 UTC (permalink / raw)
To: help-gcc
I grabbed the GNU package for make and installed it, then
re-configured and `make bootstrap` could not have flowed more sweetly.
I am in the process of compiling gzip, perl, and ncftp.
It may not make a difference, but I trust the compiled source more
than the packages, even if I don't make any changes. Thank you for
steering me in the right direction.
May care go with you and Peace,
Emile G. Thomas
gcc --enabled.
On 12 Oct 1999 15:23:41 -0400, psmith@baynetworks.com (Paul D. Smith)
wrote:
>I don't know, offhand, but I suggest using GNU make, rather than Solaris
>make, to build GCC.
>
>I think they might even require it, I can't remember.
>
>If you try it with GNU make and it still fails, well, post again! :)
>
>--
>-------------------------------------------------------------------------------
> Paul D. Smith <psmith@baynetworks.com> 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.
^ permalink raw reply [flat|nested] 14+ messages in thread
* gcc:installation problem
1999-10-08 11:58 gcc:installation problem oupegt
1999-10-08 14:43 ` Paul D. Smith
@ 1999-10-31 13:57 ` oupegt
1 sibling, 0 replies; 14+ messages in thread
From: oupegt @ 1999-10-31 13:57 UTC (permalink / raw)
To: help-gcc
I'm running a Solaris 2.6 on a Sparc20 and I want to install
gcc-2.9.5.1 from the source code on my machine. I have installed
gcc-2.7.2 in my /opt/local/bin directory from a package I got from
sunfreeware.com. When I run the configure command though, I keep
getting an error.
--------------------------------------------------------------------------------------------------------------
sun1% setenv CC /opt/local/bin/gcc
sun1% ../gcc2951/configure
Configuring for a sparc-sun-solaris2.6 host.
Created "Makefile" in /data2/home/thomas/misc/compdir/gccod using
"mh-frag"
gcc: installation problem, cannot exec `cpp': No such file or
directory
*** The command '/opt/local/bin/gcc -o conftest -g conftest.c'
failed.
*** You must set the environment variable CC to a working compiler.
sun1(74)% gcc -v
gcc version 2.7.2.2
-------------------------------------------------------------------------------------------------------------
I have tried this with /usr/ucb set both before and after my gcc bin
directory but to no avail. Can anyone figure out what's going on?
Please respond both to this newsgroup and via e-mail.
May care go with you and Peace,
Emile G. Thomas
oupegt@hotmail.com.nospam <remove ".nospam" to send real e-mail>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: gcc:installation problem -- now make bootstrap fail
1999-10-12 10:35 ` gcc:installation problem -- now make bootstrap fail oupegt
1999-10-12 12:29 ` Paul D. Smith
@ 1999-10-31 13:57 ` oupegt
1 sibling, 0 replies; 14+ messages in thread
From: oupegt @ 1999-10-31 13:57 UTC (permalink / raw)
To: help-gcc
On 11 Oct 1999 17:04:44 -0400, psmith@baynetworks.com (Paul D. Smith)
wrote:
> 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.
Thanks a lot Paul, I took a chance and removed the package that I had
installed and installed the package for gcc 2.8.1 and `configure`
worked just fine. Unfortunately, now `make bootstrap` dies when it
tries to "make all-recursive".
# make bootstrap
if [ x"no" = xyes ] && [ ! -d pic ]; then \
mkdir pic; \
else true; fi
touch stamp-picdir
test x"no" != xyes || \
gcc -c -DHAVE_CONFIG_H -g -O2 -I.
-I../../gcc2951/libiberty/../include ../.o
gcc -c -DHAVE_CONFIG_H -g -O2 -I.
-I../../gcc2951/libiberty/../include ../../gc
[BIG SNIP OF gcc -c DHAVE_CONFIGs ....]
gcc -c -DHAVE_CONFIG_H -g -O2 -I.
-I../../gcc2951/libiberty/../include ../../gc
rm -f libiberty.a
ar rc libiberty.a \
argv.o choose-temp.o concat.o cplus-dem.o
fdmatch.o fnmatch.o getopt.o getop
true libiberty.a
rm -f needed-list; touch needed-list; \
for f in atexit calloc memchr memcmp
memcpy memmove memset rename strchr strer\
for g in asprintf.o mkstemps.o setenv.o
sigsetmask.o vasprintf.o ; do \
case "$g" in \
*$f*) echo $g >> needed-list ;; \
esac; \
done; \
done
echo argv.o choose-temp.o concat.o cplus-dem.o
fdmatch.o fnmatch.o getopt.o get
make all-recursive
Making all in intl
Making all in lib
gcc -DHAVE_CONFIG_H -I. -I../../../gcc2951/
texinfo/lib -I.. -I../intl -g -O2 -c
gcc -DHAVE_CONFIG_H -I. -I../../../gcc2951/
texinfo/lib -I.. -I../intl -g -O2 -c
gcc -DHAVE_CONFIG_H -I. -I../../../gcc2951/
texinfo/lib -I.. -I../intl -g -O2 -c
gcc -DHAVE_CONFIG_H -I. -I../../../gcc2951/
texinfo/lib -I.. -I../intl -g -O2 -c
rm -f libtxi.a
ar cru libtxi.a getopt.o getopt1.o xmalloc.o xstrdup.o
ranlib libtxi.a
Making all in makeinfo
make: Fatal error: Don't know how to make target
`../lib/system.h'
Current working directory
/data2/home/thomas/misc/compdir/gccod/texinfo/makeinfo
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory
/data2/home/thomas/misc/compdir/gccod/texinfo
*** Error code 1
make: Fatal error: Command failed for target
`all-recursive-am'
Current working directory
/data2/home/thomas/misc/compdir/gccod/texinfo
*** Error code 1
make: Fatal error: Command failed for target `all-texinfo'
#
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: gcc:installation problem
1999-10-11 14:12 ` Paul D. Smith
1999-10-12 10:35 ` gcc:installation problem -- now make bootstrap fail oupegt
@ 1999-10-31 13:57 ` Paul D. Smith
1 sibling, 0 replies; 14+ messages in thread
From: Paul D. Smith @ 1999-10-31 13:57 UTC (permalink / raw)
To: help-gcc
%% 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 <psmith@baynetworks.com> 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.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: gcc:installation problem -- now make bootstrap fail
1999-10-12 12:29 ` Paul D. Smith
1999-10-14 6:41 ` oupegt
@ 1999-10-31 13:57 ` Paul D. Smith
1 sibling, 0 replies; 14+ messages in thread
From: Paul D. Smith @ 1999-10-31 13:57 UTC (permalink / raw)
To: help-gcc
I don't know, offhand, but I suggest using GNU make, rather than Solaris
make, to build GCC.
I think they might even require it, I can't remember.
If you try it with GNU make and it still fails, well, post again! :)
--
-------------------------------------------------------------------------------
Paul D. Smith <psmith@baynetworks.com> 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.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: gcc:installation problem
1999-10-11 12:54 ` oupegt
1999-10-11 14:12 ` Paul D. Smith
@ 1999-10-31 13:57 ` oupegt
1 sibling, 0 replies; 14+ messages in thread
From: oupegt @ 1999-10-31 13:57 UTC (permalink / raw)
To: help-gcc
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 <psmith@baynetworks.com> 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.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: gcc:installation problem
1999-10-08 14:43 ` Paul D. Smith
1999-10-11 12:54 ` oupegt
@ 1999-10-31 13:57 ` Paul D. Smith
1 sibling, 0 replies; 14+ messages in thread
From: Paul D. Smith @ 1999-10-31 13:57 UTC (permalink / raw)
To: help-gcc
%% 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 <psmith@baynetworks.com> 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.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: gcc:installation problem -- now make bootstrap fail
1999-10-14 6:41 ` oupegt
@ 1999-10-31 13:57 ` oupegt
0 siblings, 0 replies; 14+ messages in thread
From: oupegt @ 1999-10-31 13:57 UTC (permalink / raw)
To: help-gcc
I grabbed the GNU package for make and installed it, then
re-configured and `make bootstrap` could not have flowed more sweetly.
I am in the process of compiling gzip, perl, and ncftp.
It may not make a difference, but I trust the compiled source more
than the packages, even if I don't make any changes. Thank you for
steering me in the right direction.
May care go with you and Peace,
Emile G. Thomas
gcc --enabled.
On 12 Oct 1999 15:23:41 -0400, psmith@baynetworks.com (Paul D. Smith)
wrote:
>I don't know, offhand, but I suggest using GNU make, rather than Solaris
>make, to build GCC.
>
>I think they might even require it, I can't remember.
>
>If you try it with GNU make and it still fails, well, post again! :)
>
>--
>-------------------------------------------------------------------------------
> Paul D. Smith <psmith@baynetworks.com> 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.
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~1999-10-31 13:57 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-08 11:58 gcc:installation problem oupegt
1999-10-08 14:43 ` Paul D. Smith
1999-10-11 12:54 ` oupegt
1999-10-11 14:12 ` Paul D. Smith
1999-10-12 10:35 ` gcc:installation problem -- now make bootstrap fail oupegt
1999-10-12 12:29 ` Paul D. Smith
1999-10-14 6:41 ` oupegt
1999-10-31 13:57 ` oupegt
1999-10-31 13:57 ` Paul D. Smith
1999-10-31 13:57 ` oupegt
1999-10-31 13:57 ` gcc:installation problem Paul D. Smith
1999-10-31 13:57 ` oupegt
1999-10-31 13:57 ` Paul D. Smith
1999-10-31 13:57 ` oupegt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).