This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Fw: gcc 3 won't compile on fresh solaris 8 os
- To: gcc at gcc dot gnu dot org, alexus at usa dot com
- Subject: Re: Fw: gcc 3 won't compile on fresh solaris 8 os
- From: Kelley Cook <kelley dot cook at home dot com>
- Date: Thu, 19 Jul 2001 11:02:13 -0400
> as you can see from above i'm using solaris .. just installed it and i
> got package of gcc as a package but i rather re-compile it from the
> source, so i download source code and tryed to compiled .. and here
> where i'm stuck at..
...
> make[1]: ar: Command not found
> make[1]: *** [libiberty.a] Error 127
> make[1]: Leaving directory `/export/home/local/src/gcc-3.0/libiberty'
> make: *** [all-libiberty] Error 2
> bash-2.03#
>
> any bright ideas? anyone?
Obviously, you are missing "ar" :)
ar is the library builder that comes with GNU binutils. Sun's
version also comes on the Solaris CD in the package SUNWbtool,
though it is only installed by default if you chose a developer
installation.
So you have two choices:
a)
You can log in as root, mount the Solaris 8 CD to /cdrom and
# cd /cdrom/sol*/s0/Sol*/Products
# pkgadd -d 'pwd' SUNWbtool
(Afterward make sure that /usr/ccs/bin is in your $PATH)
b)
As an alternative, you can download and install the latest gnu binutils
from http://www.sunfreeware.com.
Kelley Cook
P.S. I'll write up something to add to FAQ.