This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

bootrapping solaris 2.7 with GNU ld, how?


I am trying something like:

#!/usr/local/gnu/bin/bash

nice make -k realclean

( cd $HOME/net/gcc &&
  $HOME/net/gcc/contrib/gcc_update -A -d; )

ld=`type -p ld`

if [ ! -f Makefile ]; then
#    ../gcc/configure --prefix=$HOME/packages/gcc-`date "+%Y%m%d"` --with-as=`type -p as` --with-ld=`type -p ld` --with-gnu-as --with-gnu-ld
    LD=$ld ../gcc/configure --prefix=$HOME/packages/gcc-`date "+%Y%m%d"` --with-ld=$ld --with-gnu-ld
fi

nice make -j5 LD=$ld HIDE_LD_FOR_TARGET=$ld bootstrap &&
 { nice make LD=$ld -k check
   $HOME/net/gcc/contrib/test_summary | sh -x
 }

to boostrap on solaris 2.7 sparc with GNU ld in the path.  I get:

stage1/xgcc -Bstage1/ -B/folk/mrs/packages/gcc-20010111/sparc-sun-solaris2.7/bin/  -DIN_GCC  -DSVR4  -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H -DGENERATOR_FILE  -o gengenrtl \
 gengenrtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "alloca.o" in ?*) echo alloca.o ;; esac ` ` case "" in ?*) echo  ;; esac ` ` case "" in ?*) echo  ;; esac ` ` case "" in ?*) echo  ;; esac ` 
./gengenrtl -h >tmp-genrtl.h
Segmentation Fault
make[2]: *** [s-genrtl] Error 139
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/kankakee1/tmp/mrs/net/gcc-sol/gcc'
make[1]: *** [stage_c] Error 2
make[1]: Leaving directory `/kankakee1/tmp/mrs/net/gcc-sol/gcc'
make: *** [bootstrap] Error 2

:-( Seems fairly consistent over a few days, and including reving
binutils to top of tree.  I was trying to determine the magic
incantation to use GNU ld.  I can't find it, help.

I sure someone else has done this, right?  The question is how?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]