[gnu-sol-discuss] Re: Issue getting gcc-4.1.2 to build
Brett Albertson
brett.albertson at stratech.com
Wed Feb 21 13:42:52 PST 2007
I build gcc often. The only thing I see wrong with your config is that you are trying to use Gnu's ld. The gcc installation page recommends using Sun's ld. Also, make sure to set CONFIG_SHELL to /bin/ksh. Here's part of my script:
CONFIG_SHELL=/bin/ksh
export CONFIG_SHELL
ORIG_DIR=`pwd`
YEAR=`date '+%Y'`
MONTH=`date '+%m'`
DAY=`date '+%d'`
#DATE=`date '+%Y%m%d'`
DATE=$YEAR$MONTH$DAY
if test $DAY -lt 11
then
YESTERDAY=${YEAR}${MONTH}0`expr $DAY - 1`
else
YESTERDAY=$YEAR$MONTH`expr $DAY - 1`
fi
cd /u01/var/tmp/gcc_4.2_svn/gcc
svn up
cd ..
mkdir gcc_${DATE}
cd gcc_${DATE}
/u01/var/tmp/gcc_4.2_svn/gcc/configure --with-gnu-as --with-as=/usr/sfw/bin/gas --without-gnu-ld --with-ld=/usr/ccs/bin/ld --disable-nls --prefix=/opt/gcc-4.2 --enable-languages=c,c++
gmake bootstrap
gmake -k check
Brett Albertson
This message posted from opensolaris.org
More information about the gnu-sol-discuss
mailing list