Discussion:
[pkgsrc] gcc48
BERTRAND Joël
2014-09-15 09:04:45 UTC
Permalink
Hello,

I'm trying to build gcc48 from pkgsrc-current on my PWS500 (NetBSD
7.99.1/alpha ev56). Build process stops with following error :

gcc -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -o isl_test
isl_test-isl_test.o libisl.la
/usr/pkgsrc/lang/gcc48-libs/work/build/./gmp/libgmp.la
libtool: link: gcc -g -static-libstdc++ -static-libgcc -Wl,-R/usr/lib
-Wl,-R/usr/pkg/lib -o isl_test isl_test-isl_test.o -L/usr/lib
./.libs/libisl.a /usr/pkgsrc/lang/gcc48-libs/work/build/./gmp/.libs/libgmp.a
/usr/pkgsrc/lang/gcc48-libs/work/build/./gmp/.libs/libgmp.a(divrem_1.o):
In function `__gmpn_divrem_1':
/usr/pkgsrc/lang/gcc48-libs/work/build/gmp/mpn/divrem_1.c:149: undefined
reference to `__gmpn_invert_limb'
/usr/pkgsrc/lang/gcc48-libs/work/build/gmp/mpn/divrem_1.c:228: undefined
reference to `__gmpn_invert_limb'
/usr/pkgsrc/lang/gcc48-libs/work/build/./gmp/.libs/libgmp.a(mod_1.o): In
function `mpn_mod_1_unnorm':
/usr/pkgsrc/lang/gcc48-libs/work/build/gmp/mpn/mod_1.c:169: undefined
reference to `__gmpn_invert_limb'
/usr/pkgsrc/lang/gcc48-libs/work/build/./gmp/.libs/libgmp.a(mod_1.o): In
function `mpn_mod_1_norm':
/usr/pkgsrc/lang/gcc48-libs/work/build/gmp/mpn/mod_1.c:221: undefined
reference to `__gmpn_invert_limb'
/usr/pkgsrc/lang/gcc48-libs/work/build/./gmp/.libs/libgmp.a(div_q.o): In
function `__gmpn_div_q':
/usr/pkgsrc/lang/gcc48-libs/work/build/gmp/mpn/div_q.c:155: undefined
reference to `__gmpn_invert_limb'
/usr/pkgsrc/lang/gcc48-libs/work/build/./gmp/.libs/libgmp.a(div_q.o):/usr/pkgsrc/lang/gcc48-libs/work/build/gmp/mpn/div_q.c:163:
more undefined references to `__gmpn_invert_limb' follow
Makefile:921: recipe for target 'isl_test' failed
gmake[5]: *** [isl_test] Error 1
gmake[5]: Leaving directory '/usr/pkgsrc/lang/gcc48-libs/work/build/isl'
Making all in doc
gmake[5]: Entering directory
'/usr/pkgsrc/lang/gcc48-libs/work/build/isl/doc'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/pkgsrc/lang/gcc48-libs/work/build/isl/doc'
Makefile:1765: recipe for target 'all-recursive' failed
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory '/usr/pkgsrc/lang/gcc48-libs/work/build/isl'
Makefile:783: recipe for target 'all' failed
gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory '/usr/pkgsrc/lang/gcc48-libs/work/build/isl'
Makefile:7386: recipe for target 'all-stage1-isl' failed
gmake[2]: *** [all-stage1-isl] Error 2
gmake[2]: Leaving directory '/usr/pkgsrc/lang/gcc48-libs/work/build'
Makefile:22424: recipe for target 'stage1-bubble' failed
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory '/usr/pkgsrc/lang/gcc48-libs/work/build'
Makefile:895: recipe for target 'all' failed
gmake: *** [all] Error 2
*** Error code 2

Stop.
make[2]: stopped in /usr/pkgsrc/lang/gcc48-libs
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/lang/gcc48-libs
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/gcc48

I have built gmp from pkgsrc and both shared and static libraries
contain this entry point :

einstein# nm libgmp.so | grep gmpn_invert_limb
000000000006be20 T __gmpn_invert_limb
einstein# nm libgmp.a | grep gmpn_invert_limb | grep " T "
000000000006be20 T __gmpn_invert_limb

But if I check
/usr/pkgsrc/lang/gcc48-libs/work/build/./gmp/.libs/libgmp.a, it doesn't
contains any reference to __gmpn_invert_limb :
einstein# nm libgmp.a | grep __gmpn_invert_limb
U __gmpn_invert_limb
U __gmpn_invert_limb
U __gmpn_invert_limb
U __gmpn_invert_limb
U __gmpn_invert_limb
U __gmpn_invert_limb
U __gmpn_invert_limb
U __gmpn_invert_limb
U __gmpn_invert_limb
U __gmpn_invert_limb
U __gmpn_invert_limb
U __gmpn_invert_limb
U __gmpn_invert_limb
U __gmpn_invert_limb
U __gmpn_invert_limb
U __gmpn_invert_limb

I suppose it's a bug related to alpha port but I'm not sure.

Best regards,

JKB
Martin Husemann
2014-09-15 09:21:45 UTC
Permalink
Post by BERTRAND Joël
Hello,
I'm trying to build gcc48 from pkgsrc-current on my PWS500 (NetBSD
Completely unrelated, but why are you doing that? The base system gcc on
alpha is 4.8.3, and it seems to work pretty well.

Martin
BERTRAND Joël
2014-09-15 09:24:33 UTC
Permalink
Post by Martin Husemann
Post by BERTRAND Joël
Hello,
I'm trying to build gcc48 from pkgsrc-current on my PWS500 (NetBSD
Completely unrelated, but why are you doing that? The base system gcc on
alpha is 4.8.3, and it seems to work pretty well.
Sure. But I need gfortran that is not in base system...

JKB
Martin Husemann
2014-09-15 09:26:42 UTC
Permalink
Post by BERTRAND Joël
Sure. But I need gfortran that is not in base system...
Ah, ok - I was just curious.
I think the pkg is broken (and probably in ways unrelated to alpha).

Martin
BERTRAND Joël
2014-09-15 09:37:00 UTC
Permalink
Post by Martin Husemann
Post by BERTRAND Joël
Sure. But I need gfortran that is not in base system...
Ah, ok - I was just curious.
I think the pkg is broken (and probably in ways unrelated to alpha).
On amd64 : it works as expected.
On sparc/sparc64 : I have to generate correct PLIST (installation failed
as pkgsrc PLIST contains x86 specific files, not sparc/sparc64 ones).
On alpha, I have to build some executable by hand. Currently, system is
building libiberty...

Loading...