help with gcc5 install on linux
Manfred Schwarb
manfred99@gmx.ch
Fri Feb 6 16:16:00 GMT 2015
Hi,
I'm still trying to make sense of it.
using google did not help very much, although there was the recommendation
of using -fuse-ld:
Could you try to
1) compile your test program with "gfortran -fuse-ld=bfd"
2) with "gfortran -fuse-ld=gold"
Does one of them work?
Does the same issue also appear for gcc? I.e.
cat > main.c <<EOF
int main(void)
{
return 0;
}
EOF
./gcc5/gcc-trunk/bin/gcc -o main main.c
One brute force approach would be using strace:
strace -f -s 100 ./gcc5/gcc-trunk/bin/gfortran -c z.f90 >z.log 2>&1
and search inside the logfile z.log for "cannot find" or "ld"
Perhaps we get some clue this way.
From tomorrow on, I'm offline for a week, I will try to keep at it.
Cheers,
Manfred
Am 02.02.2015 um 19:40 schrieb Jorge D'Elia:
> Hi Manfred and Anton,
>
> ----- Mensaje original -----
>> De: "Manfred Schwarb" gmx.ch>
>> Para: mexas@bris.ac.uk, fortran@gcc.gnu.org
>> Enviado: Lunes, 2 de Febrero 2015 12:23:23
>> Asunto: Re: help with gcc5 install on linux
>>
>> Am 02.02.2015 um 15:14 schrieb Anton Shterenlikht:
>>> I usually use gcc installed by others.
>>> I now tried to install gcc5, and get problems.
>>> Please help.
>>>
>>> 1. untarred
>>> gfortran.com/download/x86_64/gcc-5-infrastructure.tar.xz
>>> gfortran.com/download/x86_64/nightlies/gcc-trunk-20150202-r220340.tar.xz
>>>
>>> 2. added gcc5 infrastructure lib64 dir to LD_LIBRARY_PATH
>>>
>>> Compilation seems to work, but not linking:
>>>
>>> $ ./gcc5/gcc-trunk/bin/gfortran -c z.f90
>>> $
>>> $ ./gcc5/gcc-trunk/bin/gfortran z.f90
>>> collect2: fatal error: cannot find 'ld'
>>> compilation terminated.
>>> $
>>> $ which ld
>>> /usr/bin/ld
>>> $
>>>
>>
>> Somehow the system ld is deemed unsuitable. No idea why.
>> Last Autumn Jorge d'Elia reported the same, but communication while
>> debugging faded out.
>
> Sorry. What I remember now is that I tried a couple of iterations but
> without success, so I decided download all the gcc sources and re-compile
> it. Although it takes a while, installation is ok. Anyway, if I get some
> time, I will try to re-take it.
>
> Greetings.
> Jorge.
>
More information about the Fortran
mailing list