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]

Re: 3.0, gcc_release fails on sparc-sun-solaris2.7




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


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