From: Luc I. Suryo (luc@suryo.com)
Date: Wed Dec 08 2004 - 01:58:21 EST
anyone on the list that has compiled GCC 64-bits capable for the AMD64
CPU yet? (solaris 10/b72)
compiling the 32-bits very is pretty straight forward...
get the 60-days evalution of Sun Studio 9
compile : gnu m4 / gnu sed / gnu make / flex / bison
then start compiling gcc, this was i used
edit : /usr/include/sys/feature_tests.h
line 331
I change it to be
#if defined(GCC_FAKE) && defined(_STDC_C99) && (defined(__XOPEN_OR_POSIX) && !defined(_XPG6))
CONFIG_SHELL=/bin/ksh
export PATH CONFIG_SHELL
./configure --prefix=/opt/gcc \
--with-local-prefix=/opt/gcc \
--with-as=/usr/ccs/bin/as \
--with-ld=/usr/ccs/bin/ld \
--disable-nls \
--enable-threads=posix \
--enable-shared=libgcc,libstdc++ \
--enable-languages=c,c++ \
i386-pc-solaris2.10
nb: used a 'script' replaced ALL -fpic to be -Kpic as Sun-cc does
not understand -fpic, OR use --disable-shared in the options
gmake boostrap
gmake install
this will create a 'small' gcc version and use this
one under /opt/gcc i recompiled again this time with
(rememeber to adjust the PATH)
use a 'clean and fresh' gcc source!
CC=gcc \
CXX=g++ \
./configure \
--prefix=/usr/local \
--with-local-prefix=/usr/local \
--with-as=/usr/ccs/bin/as \
--with-ld=/usr/ccs/bin/ld \
--disable-nls \
--enable-threads=posix \
--host=i386-pc-solaris2.10
gmake boostrap
gmake install
hope this may help someone, and would be nice if someone could share
his/her methode to get a 64-bits version for teh AMD64....
-ls
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:50 EDT