Subject: lang/gcc3-c++: ld is fed -rpath,...
To: None <tech-pkg@netbsd.org>
From: Georg Schwarz <geos@epost.de>
List: tech-pkg
Date: 03/30/2004 19:40:06
I'm trying to compile lang/gcc3-c++ on IRIX 5.3.
It stops as follows:

checking whether the C compiler (
/usr/people/schwarz/pkgsrc/lang/gcc3-c++/work/gcc-3.3.3/gcc/xgcc
-B/usr/people/schwarz/pkgsrc/lang/gcc3-c++/work/gcc-3.3.3/gcc/
-B/usr/local/pkg/gcc3/mips-sgi-irix5.3/bin/
-B/usr/local/pkg/gcc3/mips-sgi-irix5.3/lib/ -isystem
/usr/local/pkg/gcc3/mips-sgi-irix5.3/include -O2 -O2
-I/usr/local/pkg/include ) works... no
configure: error: installation or configuration problem: C compiler
cannot create executables.
gmake: *** [configure-target-libiberty] Error 1


work/gcc-3.3.3/mips-sgi-irix5.3/libiberty/config.log  contains:

configure:2464:
/usr/people/schwarz/pkgsrc/lang/gcc3-c++/work/gcc-3.3.3/gcc/xgc
c -B/usr/people/schwarz/pkgsrc/lang/gcc3-c++/work/gcc-3.3.3/gcc/
-B/usr/local/pk
g/gcc3/mips-sgi-irix5.3/bin/ -B/usr/local/pkg/gcc3/mips-sgi-irix5.3/lib/
-isyste
m /usr/local/pkg/gcc3/mips-sgi-irix5.3/include -o conftest -O2 -O2
-I/usr/local/
pkg/include   -I/usr/local/pkg/include  conftest.c  1>&5
/usr/bin/../lib/ld:
Unknown flag: -rpath,/usr/local/pkg/gcc3/lib
/usr/bin/../lib/ld: Usage: /usr/bin/../lib/ld [options] file [...] 

it is true that on IRIX 5.3 ld supports only -rpath pathname(s), i.e.
without comma.
Does anyone know what is causing that problem? Shouldn't gcc rewrite
these options before calling ld? Is it a buildlink-related problem?


-- 
Georg Schwarz    http://home.pages.de/~schwarz/
 geos@epost.de     +49 177 8811442