This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: 3.0, gcc_release fails on sparc-sun-solaris2.7
- To: nathan at cs dot bris dot ac dot uk
- Subject: Re: 3.0, gcc_release fails on sparc-sun-solaris2.7
- From: Jeff Sturm <jsturm at one-point dot com>
- Date: Thu, 7 Jun 2001 13:58:05 -0400 (EDT)
- cc: gcc-bugs at gcc dot gnu dot org, mark at codesourcery dot com
On Thu, 7 Jun 2001, Nathan Sidwell wrote:
> ld: warning: option -o appears more than once, first setting taken
The last time I saw a problem like this, it turned out that:
1) I had binutils installed in my PATH
2) libtool configured itself for GNU ld
3) gcc configured itself for /usr/ccs/bin/ld
4) libtool passes -Wl,-soname to gcc (and hence, /usr/ccs/bin/ld)
5) ld gets confused about -soname and gives up
The usual workaround is configuring with --with-as and --with-ld.
The patch below also fixed it for me... I don't know why it was never
applied:
http://gcc.gnu.org/ml/gcc-patches/2001-05/msg00146.html
Jeff