Port-alpha archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gfortran



BERTRAND Joël a écrit :
     Hello,

     I have installed NetBSD-current on my PWS500au. All components run
as expected and I have tried to install gfortran from pkgsrc.

     I have tried to build 4.8 and 4.9. pkgsrc seems to be broken for
alpha (on sparc64, I have modified PLIST to install package, but at
least gcc can be built). I have tried to build gfortran outside pkgsrc
with official compiler tarball. I only obtain another error. Linker
complains about several relocated symbols at the end of stage 1. I have
tried to bootstrap gcc, same result.

     But NetBSD provide gcc 4.8 (without gfortran). How can I build
gfortran ?

     Best regards,

     JKB

Some news and no solution. I have tried to build gcc-4.9.1 from pkgsrc and from official tarball. Both crash with the same error :

c++ -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o lto1 \ lto/lto-lang.o lto/lto.o lto/lto-object.o attribs.o lto/lto-partition.o lto/lto-symtab.o libbackend.a main.o tree-browser.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a -L/usr/pkg/lib -L/usr/pkg/lib -L/usr/pkg/lib -lmpc -lmpfr -lgmp -rdynamic -lz libcommon.a ../libcpp/libcpp.a ./../intl/libintl.a ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
libbackend.a(cse.o): In function `bb_has_eh_pred':
/usr/pkgsrc/lang/gcc49/work/build/gcc/../../gcc-4.9.1/gcc/basic-block.h:895:(.text+0xbe8): relocation truncated to fit: ELF_LITERAL against `.text'
libbackend.a(cse.o): In function `approx_reg_cost_1':
/usr/pkgsrc/lang/gcc49/work/build/gcc/../../gcc-4.9.1/gcc/cse.c:673:(.text+0x1580): relocation truncated to fit: ELF_LITERAL against `.text'
libbackend.a(cse.o): In function `mention_regs':
/usr/pkgsrc/lang/gcc49/work/build/gcc/../../gcc-4.9.1/gcc/cse.c:1032:(.text+0x2758): relocation truncated to fit: ELF_LITERAL against `.text' /usr/pkgsrc/lang/gcc49/work/build/gcc/../../gcc-4.9.1/gcc/cse.c:1033:(.text+0x2774): relocation truncated to fit: ELF_LITERAL against `.text' /usr/pkgsrc/lang/gcc49/work/build/gcc/../../gcc-4.9.1/gcc/cse.c:1033:(.text+0x27b4): relocation truncated to fit: ELF_LITERAL against `.text' /usr/pkgsrc/lang/gcc49/work/build/gcc/../../gcc-4.9.1/gcc/cse.c:1033:(.text+0x27f4): relocation truncated to fit: ELF_LITERAL against `.text' /usr/pkgsrc/lang/gcc49/work/build/gcc/../../gcc-4.9.1/gcc/cse.c:1052:(.text+0x2980): relocation truncated to fit: ELF_LITERAL against `.text' /usr/pkgsrc/lang/gcc49/work/build/gcc/../../gcc-4.9.1/gcc/cse.c:1054:(.text+0x29c0): relocation truncated to fit: ELF_LITERAL against `.text' /usr/pkgsrc/lang/gcc49/work/build/gcc/../../gcc-4.9.1/gcc/cse.c:1064:(.text+0x2ad0): relocation truncated to fit: ELF_LITERAL against `.text' /usr/pkgsrc/lang/gcc49/work/build/gcc/../../gcc-4.9.1/gcc/cse.c:1071:(.text+0x2bcc): relocation truncated to fit: ELF_LITERAL against `.text' /usr/pkgsrc/lang/gcc49/work/build/gcc/../../gcc-4.9.1/gcc/cse.c:1088:(.text+0x2c5c): additional relocation overflows omitted from the output
../../gcc-4.9.1/gcc/lto/Make-lang.in:71: recipe for target 'lto1' failed
gmake[3]: *** [lto1] Error 1
gmake[3]: Leaving directory '/usr/pkgsrc/lang/gcc49/work/build/gcc'
Makefile:4220: recipe for target 'all-stage1-gcc' failed
gmake[2]: *** [all-stage1-gcc] Error 2
gmake[2]: Leaving directory '/usr/pkgsrc/lang/gcc49/work/build'
Makefile:19903: recipe for target 'stage1-bubble' failed
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory '/usr/pkgsrc/lang/gcc49/work/build'
Makefile:889: recipe for target 'all' failed
gmake: *** [all] Error 2
*** Error code 2

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

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

I haven't found any solution to fix it. I haven't been able to build gcc last 4.6 or 4.8 on netbsd-alpha also.

        Help will be welcome.

        Regards,

        JKB


Home | Main Index | Thread Index | Old Index