Doubts using the precompiled binaries
marco restelli
mrestelli@gmail.com
Tue May 2 09:55:00 GMT 2017
2017-04-26 17:13 GMT+02:00, Manfred Schwarb <manfred99@gmx.ch>:
> Am 26.04.2017 um 15:48 schrieb marco restelli:
>> 2017-04-26 1:13 GMT+02:00, Manfred Schwarb <manfred99@gmx.ch>:
>>> Am 26.04.2017 um 00:21 schrieb Manfred Schwarb:
>>>> Am 25.04.2017 um 20:30 schrieb marco restelli:
>>>>> Hi all,
>>>>> I am experimenting with the precompiled binaries from the GCC Wiki,
>>>>> and in particular with gcc-6.3.0.
>>>>>
>>>>> I have two questions.
>>>>>
>>>>>
>>>>> 1) I get an error trying to link without -fno-use-linker-plugin
>>>>>
>>>>> gfortran *.o -o test
>>>>> collect2: fatal error: cannot find 'ld'
>>>>> compilation terminated.
>>>>>
>>>>> >From the documentation, I see that this should not be a problem with
>>>>> ld >= 2.21, and I have 2.26.1. Also, using gfortran compiled by myself
>>>>> I don't need this option. Is this expected?
>>>>>
>>>>
>>>> ld >= 2.21 definitely has plugin support.
>>>> You probably need the package binutils-gold for this to work.
>>
>> I do have both
>>
>> # ld --version
>> GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
>>
>> # ld.gold --version
>> GNU gold (Gentoo 2.26.1 p1.0 2.26.1) 1.11
>>
>> Both are from binutils-2.26.1. What else should I have?
>
> Then it should work, I think. The linker might be called by the name "gold"
> though, so you probably need a link "/usr/bin/gold -> ld.gold", which
> should
> be provided per default.
Manfred, thanks a lot, this was indeed the problem. I only had "ld.gold", no
"gold". Making the link solved the problem.
Marco
More information about the Fortran
mailing list