public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/21206] New: gcj seems not to pass the option to ld correctly
@ 2005-04-25  9:14 shanwill44 at yahoo dot com
  2005-04-25 13:31 ` [Bug java/21206] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: shanwill44 at yahoo dot com @ 2005-04-25  9:14 UTC (permalink / raw)
  To: gcc-bugs

On Solaris 9 (x86) with gcc-4.0.0 and binutils-2.15,

mkdir GCC_OBJ
cd GCC_OBJ
../gcc4.0.0/configure --with-gnu-ld
make

gives us the following errors:

/hoge/gcc/GCC_OBJ/gcc/gcj -B/hoge/gcc/GC
C_OBJ/gcc/ -B/usr/local/i386-pc-solaris2.9/bin/ -B/usr/local/i386-pc-solaris2.9/
lib/ -isystem /usr/local/i386-pc-solaris2.9/include -isystem /usr/local/i386-pc-
solaris2.9/sys-include -ffloat-store -fno-omit-frame-pointer -g -O2 -o .libs/jv-
convert --main=gnu.gcj.convert.Convert -shared-libgcc  -L/export/home/yamasaki/s
ys/gcc/GCC_OBJ/i386-pc-solaris2.9/libjava -L/hoge/gcc/GCC_OB
J/i386-pc-solaris2.9/libjava/.libs ./.libs/libgcj.so -L/hoge
/gcc/GCC_OBJ/i386-pc-solaris2.9/libstdc++-v3/src -L/hoge/gcc
/GCC_OBJ/i386-pc-solaris2.9/libstdc++-v3/src/.libs -lpthread -lrt -ldl -L/export
/home/yamasaki/sys/gcc/GCC_OBJ/gcc -L/usr/local/i386-pc-solaris2.9/bin -L/usr/lo
cal/i386-pc-solaris2.9/lib -L/usr/local/lib/gcc/i386-pc-solaris2.9/../../../i386
-pc-solaris2.9/lib -L/usr/ccs/bin -L/usr/ccs/lib -L/usr/local/lib/gcc/i386-pc-so
laris2.9/../.. -lgcc_s -lgcc_s -Wl,--rpath -Wl,/usr/local/lib
/usr/local/i386-pc-solaris2.9/bin/ld: unrecognized option '-Wl,-rpath'
/usr/local/i386-pc-solaris2.9/bin/ld: use the --help option for usage informatio
n
collect2: ld returned 1 exit status
make[2]: *** [jv-convert] Error 1
make[2]: Leaving directory `/hoge/gcc/GCC_OBJ/i386-pc-solari
s2.9/libjava'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/hoge/gcc/GCC_OBJ/i386-pc-solari
s2.9/libjava'
make: *** [all-target-libjava] Error 2

-- 
           Summary: gcj seems not to pass the option to ld correctly
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: shanwill44 at yahoo dot com
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21206


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

* [Bug java/21206] gcj seems not to pass the option to ld correctly
  2005-04-25  9:14 [Bug bootstrap/21206] New: gcj seems not to pass the option to ld correctly shanwill44 at yahoo dot com
@ 2005-04-25 13:31 ` pinskia at gcc dot gnu dot org
  2005-04-25 13:33 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-25 13:31 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|bootstrap                   |java
           Keywords|                            |build


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21206


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

* [Bug java/21206] gcj seems not to pass the option to ld correctly
  2005-04-25  9:14 [Bug bootstrap/21206] New: gcj seems not to pass the option to ld correctly shanwill44 at yahoo dot com
  2005-04-25 13:31 ` [Bug java/21206] " pinskia at gcc dot gnu dot org
@ 2005-04-25 13:33 ` pinskia at gcc dot gnu dot org
  2005-04-26  0:11 ` shanwill44 at yahoo dot com
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-25 13:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-25 13:29 -------
It passes correctly for me on i686-pc-linux-gnu.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21206


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

* [Bug java/21206] gcj seems not to pass the option to ld correctly
  2005-04-25  9:14 [Bug bootstrap/21206] New: gcj seems not to pass the option to ld correctly shanwill44 at yahoo dot com
  2005-04-25 13:31 ` [Bug java/21206] " pinskia at gcc dot gnu dot org
  2005-04-25 13:33 ` pinskia at gcc dot gnu dot org
@ 2005-04-26  0:11 ` shanwill44 at yahoo dot com
  2005-07-13 19:44 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: shanwill44 at yahoo dot com @ 2005-04-26  0:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From shanwill44 at yahoo dot com  2005-04-26 00:10 -------
Sure I also confirmed it working
on i686-pc-linux-gnu (SuSE 9.2).
So this must be specific to i386-pc-solaris2.9.

Thanks in advance. 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21206


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

* [Bug java/21206] gcj seems not to pass the option to ld correctly
  2005-04-25  9:14 [Bug bootstrap/21206] New: gcj seems not to pass the option to ld correctly shanwill44 at yahoo dot com
                   ` (3 preceding siblings ...)
  2005-07-13 19:44 ` pinskia at gcc dot gnu dot org
@ 2005-07-13 19:44 ` pinskia at gcc dot gnu dot org
  2005-07-13 19:47 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-13 19:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-13 19:44 -------
*** Bug 22323 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |john at karsner dot net


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21206


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

* [Bug java/21206] gcj seems not to pass the option to ld correctly
  2005-04-25  9:14 [Bug bootstrap/21206] New: gcj seems not to pass the option to ld correctly shanwill44 at yahoo dot com
                   ` (2 preceding siblings ...)
  2005-04-26  0:11 ` shanwill44 at yahoo dot com
@ 2005-07-13 19:44 ` pinskia at gcc dot gnu dot org
  2005-07-13 19:44 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-13 19:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-13 19:43 -------
*** Bug 22468 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aaronw at net dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21206


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

* [Bug java/21206] gcj seems not to pass the option to ld correctly
  2005-04-25  9:14 [Bug bootstrap/21206] New: gcj seems not to pass the option to ld correctly shanwill44 at yahoo dot com
                   ` (4 preceding siblings ...)
  2005-07-13 19:44 ` pinskia at gcc dot gnu dot org
@ 2005-07-13 19:47 ` pinskia at gcc dot gnu dot org
  2005-07-13 19:52 ` pinskia at gcc dot gnu dot org
  2005-07-26 23:32 ` wilson at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-13 19:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-13 19:46 -------
Hmm, since this has now reported on i686-pc-linux-gnu, I have no idea what is going on.  The only 
thing I can think of is gcj is being miss compiled but I really doubt that since this also on sparc too.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21206


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

* [Bug java/21206] gcj seems not to pass the option to ld correctly
  2005-04-25  9:14 [Bug bootstrap/21206] New: gcj seems not to pass the option to ld correctly shanwill44 at yahoo dot com
                   ` (5 preceding siblings ...)
  2005-07-13 19:47 ` pinskia at gcc dot gnu dot org
@ 2005-07-13 19:52 ` pinskia at gcc dot gnu dot org
  2005-07-26 23:32 ` wilson at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-13 19:52 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dish at csua dot berkeley
                   |                            |dot edu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21206


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

* [Bug java/21206] gcj seems not to pass the option to ld correctly
  2005-04-25  9:14 [Bug bootstrap/21206] New: gcj seems not to pass the option to ld correctly shanwill44 at yahoo dot com
                   ` (6 preceding siblings ...)
  2005-07-13 19:52 ` pinskia at gcc dot gnu dot org
@ 2005-07-26 23:32 ` wilson at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: wilson at gcc dot gnu dot org @ 2005-07-26 23:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From wilson at gcc dot gnu dot org  2005-07-26 23:31 -------
I saw this problem on an x86-freebsd machine yesterday.

The problem is that $target/libjava/libgcj.spec has this
*lib: -lgcj -lm /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib 
%{!pthread: %{!shared: %eUnder this configuration, the user must provide
-pthread when linking.}}    %(libgcc) %(liborig)
This causes the strange ld error.

The underlying problem seems to be that I have a copy of libiconv in
/usr/local/lib.  The Makefile has this line
LIBICONV = /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib

libgcj.spec is built from libgcj.spec.in, which causes LIBICONV to be
substituted into the lib spec.  And now we have gcc options (-Wl) in a linker
spec (lib), which doesn't work.

I didn't look for a solution.  I just fixed it by hand.  When your libjava build
fails, edit the $target/libjava/libgcj.spec file to delete both spurious
instances of "-Wl,", continue the build, and this time it will finish successfully.

However, I did then get a lot of libjava failures, but I didn't care about them
at the time, so I ignored them.  I don't know if they are related to this issue,
or whether it was a temporary snapshot instability problem.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-07-26 23:31:49
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21206


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

end of thread, other threads:[~2005-07-26 23:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-25  9:14 [Bug bootstrap/21206] New: gcj seems not to pass the option to ld correctly shanwill44 at yahoo dot com
2005-04-25 13:31 ` [Bug java/21206] " pinskia at gcc dot gnu dot org
2005-04-25 13:33 ` pinskia at gcc dot gnu dot org
2005-04-26  0:11 ` shanwill44 at yahoo dot com
2005-07-13 19:44 ` pinskia at gcc dot gnu dot org
2005-07-13 19:44 ` pinskia at gcc dot gnu dot org
2005-07-13 19:47 ` pinskia at gcc dot gnu dot org
2005-07-13 19:52 ` pinskia at gcc dot gnu dot org
2005-07-26 23:32 ` wilson at gcc dot gnu dot org

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).