I build gcc on OpenSolaris everyday.  It definitely works.  The trick is
following the platform specific build instructions on gcc's web page.

 

Common gotcha's:

 

1.      make sure to set CONFIG_SHELL to something like ksh, Solaris's
sh won't do
2.      don't build in the main gcc directory, make one instead
3.      use Solaris ld, but use Gnu's gas.  ie. --with-gnu-as
--with-as=/usr/sfw/bin/gas --without-gnu-ld --with-ld=/usr/ccs/bin/ld

 

Brett Albertson
brett.albertson at stratech.com
919-379-8449 

________________________________

From: [email protected]
[mailto:tools-compilers-bounces at opensolaris.org] On Behalf Of Ajishrao.r
Sent: Saturday, November 17, 2007 8:30 AM
To: tools-compilers at opensolaris.org
Subject: [tools-compilers] How to rebuild GCC?

 

Hi,
        I have downloaded the GCC from the gcc.gnu.org. I am getting
errors in solaris platforms to rebuild. Can any one tell the procedure
or settings to recompile the gcc?

-- 
Thanks
Ajeesh 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.opensolaris.org/pipermail/tools-compilers/attachments/20071118/82333176/attachment.html>

Reply via email to