I have libR.so, libRlapack.so and libblas.so.0 build using Intel Fortran Compiler (dev-lang/ifc-11.1.056), but kde-base/cantor-4.4.0 tries to link against libgfortran while linking cantor_rbackend.so and cantor_rserver.so Reproducible: Always Steps to Reproduce: 1. emerge kde-base/cantor (you must have libblas build using ifc and gcc[-fortran]) Actual Results: /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgfortran collect2: ld returned 1 exit status make[2]: *** [lib/cantor_rbackend.so] Error 1 make[1]: *** [cantor/src/backends/R/CMakeFiles/cantor_rbackend.dir/all] Error 2 It builds very well w/o -lgfortran (libR.so depends on all needed libraries itself)
Created attachment 219435 [details] build.log
Created attachment 219437 [details] emerge --info
Not a supported
Oops, ignore that last comment. Reassigned to sci@ for dev-lang/ifc.
Hi, You could check the results of "eselect show blas" and "eselect show lapack". Did you compile lapack with ifort?
(In reply to comment #5) $ eselect blas show lib64: reference $ eselect lapack show $ $ ldd /usr/lib64/libblas.so.0 linux-vdso.so.1 => (0x00007fff4f1ff000) libifport.so.5 => /opt/intel/Compiler/11.1/056/lib/intel64/libifport.so.5 (0x00007f400d4e5000) libifcore.so.5 => /opt/intel/Compiler/11.1/056/lib/intel64/libifcore.so.5 (0x00007f400d26e000) libimf.so => /opt/intel/Compiler/11.1/056/lib/intel64/libimf.so (0x00007f400cedc000) libsvml.so => /opt/intel/Compiler/11.1/056/lib/intel64/libsvml.so (0x00007f400ccc5000) libm.so.6 => /lib/libm.so.6 (0x00007f400ca41000) libintlc.so.5 => /opt/intel/Compiler/11.1/056/lib/intel64/libintlc.so.5 (0x00007f400c904000) libpthread.so.0 => /lib/libpthread.so.0 (0x00007f400c6e7000) libc.so.6 => /lib/libc.so.6 (0x00007f400c388000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f400c171000) libdl.so.2 => /lib/libdl.so.2 (0x00007f400bf6d000) /lib64/ld-linux-x86-64.so.2 (0x00007f400d920000)
How about 4.4.4?
It might be that cantor hard code the gfortran. You can try to build cantor with ifort, setting FC=ifort F77=ifort before installing.
I had the same problem, but in my case I was updating KDE from 4.4.5 to 4.6.2 and I didn't have gcc compiled with the fortran flag. I recompiled gcc with USE="frotran" and it worked. Maybe would be useful to add a fortran use flag verification to the ebuild.
Making cmake and fortran-2.eclass work together nicely will be interesting...
Checked in 4.7.1 and the problem is fixed.