This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
building on solaris and linker problems
- To: gcc-bugs at gcc dot gnu dot org
- Subject: building on solaris and linker problems
- From: Mike Stump <mrs at windriver dot com>
- Date: Tue, 9 Jan 2001 10:43:42 -0800 (PST)
Successes, after not being able to bootstrap since libstdc++ v3 was
turned on, I was finally able to build. Below was a magic incantation
to make it build. The incantation I feel is overly complex and needs
to be fixed.
I have GNU ld in my path, and things kept failing because it was. The
whole notion of using /usr/ccs/bin/ld needs to be rethought out and
improved. I am an expert, and it took forever because the compiler
thought it was smarter than it is, but it isn't, as almost every
possible combination I tried failed. A smart system is one in which
every possible combination tried, works. Someone thought they were
making a smart system by introducing rules to follow for finding ld,
but those rules have only made the process more brittle for me. A
non-expert would have no hope of discovering or guessing how to build,
unless someone bestows them with the magic incantation to make it
work. I only got it working this fast, because someone bestowed upon
me part of the magice incantation. This is very bad and should be
fixed for 3.0.
:-(
#!/usr/local/gnu/bin/bash
( cd $HOME/net/gcc && $HOME/net/gcc/contrib/gcc_update -A -d; )
nice make -k realclean
if [ ! -f Makefile ]; then
LD=/usr/ccs/bin/ld ../gcc/configure --prefix=$HOME/packages/gcc-`date "+%Y%m%d"`
fi
nice make -j5 LD=/usr/ccs/bin/ld LD_FOR_TARGET=/usr/ccs/bin/ld bootstrap && { nice make LD=/usr/ccs/bin/ld -k check; $HOME/net/gcc/contrib/test_summary | sh -x; }