Hi. Build of sci-libs/scipy-0.9.0-r1 & 0.8.0 fails with intel fortran compiler (dev-lang/ifc-10.0.026-r1). I don't have fortran support of gcc ("fortran" USE flag). Early build log says: ------------------------------------------------------------------------ customize GnuFCompiler Could not locate executable gfortran Could not locate executable g77 Could not locate executable f77 customize IntelFCompiler Found executable /opt/intel/fce/10.0.026/bin/ifort ------------------------------------------------------------------------ Ok, it detects the compiler. But later, ------------------------------------------------------------------------ gfortran:f77: scipy/fftpack/src/dfftpack/zffti1.f sh: gfortran: command not found sh: gfortran: command not found error: Command "gfortran -FI -w90 -w95 -fPIC -I/usr/lib64/python2.7/site-packages/numpy/core/include -c -c scipy/fftpack/src/dfftpack/zffti1.f -o build-2.7/temp.linux-x86_64-2.7/scipy/fftpack/src/dfftpack/zffti1.o" failed with exit status 127 ------------------------------------------------------------------------ So it seems to assume gfortran. Complete build log follows. Thanks beforehand. Reproducible: Always
Created attachment 276859 [details] Build log of sci-libs.scipy-0.9.0-r1
looks valid. Thanks for reporting. We will take a look into that.
I assume you set FC=ifort. Please also set F77=ifort during emerge. The build system sets F77=gfortran if it is undefined. I am working on a future solution but it isn't ready yet.
Setting F77 fixed. In my case, FC doesn't affect, either set to ifort or unset. One more note: scipy recommends to build blas and lapack with the same compiler, so at least it should be notified with einfo, IMHO. Thank you very much for looking.
Added fortran-2.eclass, which should fix this problem. Please reopen if still persist.