From: "BERTRAND Joël" <joel.bertrand@systella.fr>
To: port-alpha@NetBSD.org, gcc-help@gcc.gnu.org
Subject: Re: gfortran
Date: Fri, 19 Sep 2014 08:19:00 -0000 [thread overview]
Message-ID: <541BE6E8.7000305@systella.fr> (raw)
In-Reply-To: <5419DBCF.6050008@systella.fr>
BERTRAND Joël a écrit :
> 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
Some news.
If I disable lto, I can successfully build gcc 4.9.1 first stage. Thus,
to build NetBSD and pkgsrc without any trouble on alpha, I have to add
in /etc/mk.conf :
.if ${.CURDIR:M/usr/pkgsrc*}
.if ${PKGPATH} == "lang/gcc49"
CONFIGURE_ARGS+= --disable-lto
.endif
.endif
Regards,
JKB
next prev parent reply other threads:[~2014-09-19 8:19 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <5417F26E.9020301@systella.fr>
2014-09-17 19:07 ` gfortran BERTRAND Joël
2014-09-19 8:19 ` BERTRAND Joël [this message]
2020-07-15 14:30 Gfortran HASIUK JAN F
-- strict thread matches above, loose matches on Subject: below --
2020-03-15 3:52 gfortran Song Hi Lee
2019-07-22 19:28 GFortran Александр К-ш
2019-07-22 21:58 ` GFortran Jonathan Wakely
2011-08-08 20:55 gfortran Kouzes, Richard T
2011-08-08 21:08 ` gfortran Ian Lance Taylor
2011-08-08 21:27 ` gfortran Kouzes, Richard T
2011-08-10 0:01 ` gfortran Kouzes, Richard T
2010-02-14 5:16 gfortran Byron Dieterle
2008-09-16 17:05 Gfortran William Miner
2008-09-16 18:21 ` Gfortran Kai Henningsen
2007-03-21 12:21 gfortran Seijo Kruizinga
2007-03-22 10:01 ` gfortran Bud Davis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=541BE6E8.7000305@systella.fr \
--to=joel.bertrand@systella.fr \
--cc=gcc-help@gcc.gnu.org \
--cc=port-alpha@NetBSD.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).