This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Still Can't figure out how to install gcc correctly on Solaris 10.
- From: Kai Ruottu <kai dot ruottu at wippies dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 23 Apr 2012 13:54:16 +0300
- Subject: Re: Still Can't figure out how to install gcc correctly on Solaris 10.
- References: <1335176744.27689.YahooMailNeo@web164502.mail.gq1.yahoo.com> <1335177360.36753.YahooMailNeo@web164501.mail.gq1.yahoo.com>
23.4.2012 13:36, Andrew Tee kirjoitti:
I have downloaded gcc-3.4.6.tar and executed commands below:-
root@Server-5 # ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared
loading cache ./config.cache
checking host system type... sparc-sun-solaris2.10
checking target system type... sparc-sun-solaris2.10
checking build system type... sparc-sun-solaris2.10
checking for a BSD compatible install... ../install-sh -c
../configure: cc: not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
So... Have you a working 'cc' ? That is the prerequisite in GCC
build, one must have a working C compiler toolchain with working
headers, C startups (crt*.o) and C libraries!
Usually one tries to compile some very simple C program with the
existing 'cc', like "Hello World". If that doesn't succeed then
it is totally vain to try to compile a big source package like GCC.
If one only downloads a prebuilt GCC for Solaris2.10 for the 'cc',
that isn't enough, one must also install the Solaris 2.10 C library
from its SUNW-packages :
http://www.science.uva.nl/pub/solaris/solaris2/Q6.2.html