Bug 42524 - gcc-4.4.2 build fails on gcj with unrecognized option '-Wl,-rpath'
Summary: gcc-4.4.2 build fails on gcj with unrecognized option '-Wl,-rpath'
Status: RESOLVED DUPLICATE of bug 21206
Alias: None
Product: gcc
Classification: Unclassified
Component: java (show other bugs)
Version: 4.4.2
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-28 21:42 UTC by Brian Gough
Modified: 2011-01-10 18:39 UTC (History)
4 users (show)

See Also:
Host: x86_64-unknown-linux-gnu
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
complete build log (400.12 KB, application/x-gzip)
2009-12-28 21:48 UTC, Brian Gough
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Gough 2009-12-28 21:42:52 UTC
Doing a complete build from scratch fails with the following error on the gcj link step.

~/ftp/gcc-4.4.2/configure --prefix=/gd/gnu/gnusys/live/ --with-mpfr=/gd/gnu/gnusys/live --with-gmp=/gd/gnu/gnusys/live

libtool: link: ar rc .libs/libgcj_bc.a  libgcj_bc.o
libtool: link: ranlib .libs/libgcj_bc.a
libtool: link: ( cd ".libs" && rm -f "libgcj_bc.la" && ln -s "../libgcj_bc.la" "libgcj_bc.la" )
/bin/bash ./libtool --tag=GCJ --mode=link /home/b/bjg/ftp/build/gcc/gcj -B/home/b/bjg/ftp/build/x86_64-unknown-linux-gnu/libjava/ -B/home/b/bjg/ftp/build/gcc/ -L/home/b/bjg/ftp/build/x86_64-unknown-linux-gnu/libjava -fomit-frame-pointer -g -O2  -o jv-convert --main=gnu.gcj.convert.Convert -rpath /gd/gnu/gnusys/live//lib/../lib64 -shared-libgcc    -L/home/b/bjg/ftp/build/x86_64-unknown-linux-gnu/libjava/.libs libgcj.la 
libtool: link: /home/b/bjg/ftp/build/gcc/gcj -B/home/b/bjg/ftp/build/x86_64-unknown-linux-gnu/libjava/ -B/home/b/bjg/ftp/build/gcc/ -fomit-frame-pointer -g -O2 -o .libs/jv-convert --main=gnu.gcj.convert.Convert -shared-libgcc  -L/home/b/bjg/ftp/build/x86_64-unknown-linux-gnu/libjava/.libs -L/home/b/bjg/ftp/build/x86_64-unknown-linux-gnu/libjava ./.libs/libgcj.so -lpthread -lrt -ldl -Wl,-rpath -Wl,/gd/gnu/gnusys/live//lib/../lib64
/usr/bin/ld: unrecognized option '-Wl,-rpath'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
make[3]: *** [jv-convert] Error 1
make[3]: Leaving directory `/srv/data/home/b/bjg/ftp/build/x86_64-unknown-linux-gnu/libjava'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/srv/data/home/b/bjg/ftp/build/x86_64-unknown-linux-gnu/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory `/srv/data/home/b/bjg/ftp/build'
make: *** [all] Error 2
Comment 1 Brian Gough 2009-12-28 21:48:06 UTC
Created attachment 19405 [details]
complete build log
Comment 2 Brian Gough 2010-01-24 13:47:40 UTC
same error occurs with gcc-4.4.3
Comment 3 Ralf Wildenhues 2011-01-10 18:39:28 UTC
Wow, this is an old bug.

*** This bug has been marked as a duplicate of bug 21206 ***