Re: Still Can't figure out how to install gcc correctly on Solaris 10.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux