help with gcc5 install on linux

Manfred Schwarb manfred99@gmx.ch
Mon Feb 2 15:23:00 GMT 2015


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.

Do you have binutils-gold installed?
What does
   ./gcc5/gcc-trunk/libexec/gcc/x86_64-unknown-linux-gnu/5.0.0/collect2 -debug
report?

Jorge had a fedora 17 system, do you happen to have the same?


I just tried, the gcc-trunk-20150202-r220340 binary works for me, and collect2 reports
./libexec/gcc/x86_64-unknown-linux-gnu/5.0.0/collect2 -debug
Convert string '/home/user/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:.' into prefixes, separator =                                                                             ':'
   - add prefix: /home/user/bin/
   - add prefix: /usr/local/bin/
   - add prefix: /usr/bin/
   - add prefix: /bin/
   - add prefix: /opt/bin/
   - add prefix: ./
Looking for 'real-ld'
   - failed: no entries in prefix list
Looking for 'collect-ld'
   - failed: no entries in prefix list
Looking for 'ld'
   - failed: no entries in prefix list
Looking for 'ld'
Looking for 'gnm'
   - failed: no entries in prefix list
Looking for 'gnm'
Looking for 'nm'
   - failed: no entries in prefix list
Looking for 'nm'
Looking for 'gstrip'
   - failed: no entries in prefix list
Looking for 'gstrip'
Looking for 'strip'
   - failed: no entries in prefix list
Looking for 'strip'
Looking for 'gcc'
   - failed: no entries in prefix list
Looking for 'gcc'
collect2 version 5.0.0 20150202 (experimental) [trunk revision 220340]
ld_file_name        = /usr/bin/ld
c_file_name         = /usr/bin/gcc
nm_file_name        = /usr/bin/nm
strip_file_name     = /usr/bin/strip
c_file              = /tmp/ccicmUwE.c
o_file              = /tmp/ccf6rk9Q.o


Perhaps someone on the list can help, or we could try to get in touch with
some guru at the gcc-help mailing list.

Cheers,
Manfred



> What am I missing?
>
> Thanks
>
> Anton
>



More information about the Fortran mailing list