public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Solaris 2.8 build failure for 4.1.1 (libtool/libjava)
@ 2006-06-02 22:03 Joe Buck
  2006-06-03 14:14 ` Eric Botcazou
  2006-06-05 18:57 ` Jim Wilson
  0 siblings, 2 replies; 3+ messages in thread
From: Joe Buck @ 2006-06-02 22:03 UTC (permalink / raw)
  To: gcc

I haven't tried to build Java on Solaris in quite a while because it
takes so long.

My attempt to build on Solaris 2.8 with binutils 2.16.1 died with

/bin/ksh ./libtool --tag=GCJ --mode=link /remote/atg2/jbuck/solaris.tmp/411/gcc/gcj -B/remote/atg2/jbuck/solaris.tmp/411/sparc-sun-solaris2.8/libjava/ -B/remote/atg2/jbuck/solaris.tmp/411/gcc/ -L/remote/atg2/jbuck/solaris.tmp/411/sparc-sun-solaris2.8/libjava -g -O2  -o jv-convert --main=gnu.gcj.convert.Convert -rpath /u/jbuck/cvs.sol2/4.1.1/lib -shared-libgcc   -L/remote/atg2/jbuck/solaris.tmp/411/sparc-sun-solaris2.8/libjava/.libs libgcj.la 
/remote/atg2/jbuck/solaris.tmp/411/gcc/gcj -B/remote/atg2/jbuck/solaris.tmp/411/sparc-sun-solaris2.8/libjava/ -B/remote/atg2/jbuck/solaris.tmp/411/gcc/ -g -O2 -o .libs/jv-convert --main=gnu.gcj.convert.Convert -shared-libgcc  -L/remote/atg2/jbuck/solaris.tmp/411/sparc-sun-solaris2.8/libjava -L/remote/atg2/jbuck/solaris.tmp/411/sparc-sun-solaris2.8/libjava/.libs ./.libs/libgcj.so -L/remote/atg2/jbuck/solaris.tmp/411/sparc-sun-solaris2.8/libstdc++-v3/src -L/remote/atg2/jbuck/solaris.tmp/411/sparc-sun-solaris2.8/libstdc++-v3/src/.libs -lpthread -lrt -ldl -L/remote/atg2/jbuck/solaris.tmp/411/./gcc -L/usr/ccs/lib -lgcc_s -lgcc_s -Wl,--rpath -Wl,/u/jbuck/cvs.sol2/4.1.1/lib
/u/jbuck/gnu.sol2/bin/ld: unrecognized option '-Wl,-rpath'
/u/jbuck/gnu.sol2/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status

It's GNU ld version 2.16.1.  This is strange; I would have expected the
linker to get just -rpath: -Wl should tell gcj to pass the following
option to the linker.

Any clues?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Solaris 2.8 build failure for 4.1.1 (libtool/libjava)
  2006-06-02 22:03 Solaris 2.8 build failure for 4.1.1 (libtool/libjava) Joe Buck
@ 2006-06-03 14:14 ` Eric Botcazou
  2006-06-05 18:57 ` Jim Wilson
  1 sibling, 0 replies; 3+ messages in thread
From: Eric Botcazou @ 2006-06-03 14:14 UTC (permalink / raw)
  To: Joe Buck; +Cc: gcc

> My attempt to build on Solaris 2.8 with binutils 2.16.1 died with
>
> /bin/ksh ./libtool --tag=GCJ --mode=link
> /remote/atg2/jbuck/solaris.tmp/411/gcc/gcj
> -B/remote/atg2/jbuck/solaris.tmp/411/sparc-sun-solaris2.8/libjava/
> -B/remote/atg2/jbuck/solaris.tmp/411/gcc/
> -L/remote/atg2/jbuck/solaris.tmp/411/sparc-sun-solaris2.8/libjava -g -O2 
> -o jv-convert --main=gnu.gcj.convert.Convert -rpath
> /u/jbuck/cvs.sol2/4.1.1/lib -shared-libgcc  
> -L/remote/atg2/jbuck/solaris.tmp/411/sparc-sun-solaris2.8/libjava/.libs
> libgcj.la /remote/atg2/jbuck/solaris.tmp/411/gcc/gcj
> -B/remote/atg2/jbuck/solaris.tmp/411/sparc-sun-solaris2.8/libjava/
> -B/remote/atg2/jbuck/solaris.tmp/411/gcc/ -g -O2 -o .libs/jv-convert
> --main=gnu.gcj.convert.Convert -shared-libgcc 
> -L/remote/atg2/jbuck/solaris.tmp/411/sparc-sun-solaris2.8/libjava
> -L/remote/atg2/jbuck/solaris.tmp/411/sparc-sun-solaris2.8/libjava/.libs
> ./.libs/libgcj.so
> -L/remote/atg2/jbuck/solaris.tmp/411/sparc-sun-solaris2.8/libstdc++-v3/src
> -L/remote/atg2/jbuck/solaris.tmp/411/sparc-sun-solaris2.8/libstdc++-v3/src/
>.libs -lpthread -lrt -ldl -L/remote/atg2/jbuck/solaris.tmp/411/./gcc
> -L/usr/ccs/lib -lgcc_s -lgcc_s -Wl,--rpath -Wl,/u/jbuck/cvs.sol2/4.1.1/lib
> /u/jbuck/gnu.sol2/bin/ld: unrecognized option '-Wl,-rpath'
> /u/jbuck/gnu.sol2/bin/ld: use the --help option for usage information
> collect2: ld returned 1 exit status

I cannot reproduce with the same setup:

/bin/ksh ./libtool --tag=GCJ 
--mode=link /opt/build/eric/gcc-4_1-branch/gcc/gcj-B/opt/build/eric/gcc-4_1-branch/sparc-sun-solaris2.8/libjava/ 
-B/opt/build/eric/gcc-4_1-branch/gcc/ 
-L/opt/build/eric/gcc-4_1-branch/sparc-sun-solaris2.8/libjava -g -O2  -o 
jv-convert --main=gnu.gcj.convert.Convert 
-rpath /opt/build/eric/gcc-4_1-branch/lib -shared-libgcc   
-L/opt/build/eric/gcc-4_1-branch/sparc-sun-solaris2.8/libjava/.libs libgcj.la
/opt/build/eric/gcc-4_1-branch/gcc/gcj 
-B/opt/build/eric/gcc-4_1-branch/sparc-sun-solaris2.8/libjava/ 
-B/opt/build/eric/gcc-4_1-branch/gcc/ -g -O2 -o .libs/jv-convert 
--main=gnu.gcj.convert.Convert -shared-libgcc  
-L/opt/build/eric/gcc-4_1-branch/sparc-sun-solaris2.8/libjava 
-L/opt/build/eric/gcc-4_1-branch/sparc-sun-solaris2.8/libjava/.libs ./.libs/libgcj.so 
-L/opt/build/eric/gcc-4_1-branch/sparc-sun-solaris2.8/libstdc++-v3/src 
-L/opt/build/eric/gcc-4_1-branch/sparc-sun-solaris2.8/libstdc++-v3/src/.libs 
-lpthread -lrt -ldl -L/opt/build/eric/gcc-4_1-branch/./gcc -L/usr/ccs/lib 
-lgcc_s -lgcc_s -Wl,--rpath -Wl,/opt/build/eric/gcc-4_1-branch/lib
creating jv-convert

gax% uname -a
SunOS gax 5.8 Generic_117350-25 sun4u sparc SUNW,Sun-Fire-V250
gax% gcc/xgcc -v
Using built-in specs.
Target: sparc-sun-solaris2.8
Configured with: /home/eric/svn/gcc-4_1-branch/configure 
--prefix=/opt/build/eric/gcc-4_1-branch 
--with-as=/opt/build/eric/local/bin/as --with-ld=/opt/build/eric/local/bin/ld 
--with-gmp=/opt/build/eric/local --with-mpfr=/opt/build/eric/local 
--with-local-prefix=/opt/build/eric/local 
--enable-languages=c,c++,objc,obj-c++,java,fortran
Thread model: posix
gcc version 4.1.2 20060603 (prerelease)

gax% /opt/build/eric/local/bin/as --version
GNU assembler 2.16.1 20060126
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `sparc-sun-solaris2.8'.

gax% /opt/build/eric/local/bin/ld --version
GNU ld version 2.16.1 20060126
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.

> It's GNU ld version 2.16.1.  This is strange; I would have expected the
> linker to get just -rpath: -Wl should tell gcj to pass the following
> option to the linker.

Rather weird indeed.  Can you reproduce it manually by replaying the command?

-- 
Eric Botcazou

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Solaris 2.8 build failure for 4.1.1 (libtool/libjava)
  2006-06-02 22:03 Solaris 2.8 build failure for 4.1.1 (libtool/libjava) Joe Buck
  2006-06-03 14:14 ` Eric Botcazou
@ 2006-06-05 18:57 ` Jim Wilson
  1 sibling, 0 replies; 3+ messages in thread
From: Jim Wilson @ 2006-06-05 18:57 UTC (permalink / raw)
  To: Joe Buck; +Cc: gcc

Joe Buck wrote:
> It's GNU ld version 2.16.1.  This is strange; I would have expected the
> linker to get just -rpath: -Wl should tell gcj to pass the following
> option to the linker.

Known problem.  See PR 21206.
-- 
Jim Wilson, GNU Tools Support, http://www.specifix.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-06-05 18:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-02 22:03 Solaris 2.8 build failure for 4.1.1 (libtool/libjava) Joe Buck
2006-06-03 14:14 ` Eric Botcazou
2006-06-05 18:57 ` Jim Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).