FS#56256 - [gcc6-fortran] Unable to compile files

Attached to Project: Community Packages
Opened by Tobias (tobias_) - Monday, 06 November 2017, 16:49 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Tuesday, 07 November 2017, 19:55 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: With gcc6-fortran no fortran files can be compiled. It is most likely some path issue and/or a conflict with the gcc-fortran package.

Steps to reproduce:

> cat test.f90
program test
implicit none
write (*,*) "hello"
end program

> gfortran-6 -o test test.f90
gfortran-6: error trying to exec 'f951': execvp: No such file or directory
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Tuesday, 07 November 2017, 19:55 GMT
Reason for closing:  Fixed
Comment by Allan McRae (Allan) - Monday, 06 November 2017, 21:26 GMT
- install -Dm755 gcc/f951 $pkgdir/${_libdir}/f951-${_ver}
+ install -Dm755 gcc/f951 $pkgdir/${_libdir}/f951
Comment by Allan McRae (Allan) - Tuesday, 07 November 2017, 00:22 GMT
My guess from skimming the PKGBUILD is objc, ada, and go all suffer from the same problem

Comment by Sven-Hendrik Haase (Svenstaro) - Tuesday, 07 November 2017, 08:31 GMT
Thanks for the hint, Allan. I looked into it and tried to compile some stuff and confirmed the compilers to be broken on the other languages as well. I fixed it up everywhere and confirmed stuff to compile now.
Comment by Sven-Hendrik Haase (Svenstaro) - Tuesday, 07 November 2017, 08:55 GMT
Packages are pushed, please test.
Comment by Tobias (tobias_) - Tuesday, 07 November 2017, 15:57 GMT
Thanks, works for me when giving the linker the path for libgfortran.so.3:

gfortran-6 -Wl,-rpath=/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.1/ -o test test.f90

Loading...