Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 371351 - sci-libs/scipy-0.9.0-r1 sets F77=gfortran although FC=ifort is set
Summary: sci-libs/scipy-0.9.0-r1 sets F77=gfortran although FC=ifort is set
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-13 05:40 UTC by katabami
Modified: 2011-06-21 09:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log of sci-libs.scipy-0.9.0-r1 (sci-libs.scipy.txt,151.18 KB, text/plain)
2011-06-13 05:42 UTC, katabami
Details

Note You need to log in before you can comment on or make changes to this bug.
Description katabami 2011-06-13 05:40:01 UTC
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
Comment 1 katabami 2011-06-13 05:42:50 UTC
Created attachment 276859 [details]
Build log of sci-libs.scipy-0.9.0-r1
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2011-06-13 07:29:18 UTC
looks valid. Thanks for reporting. We will take a look into that.
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2011-06-13 08:09:32 UTC
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.
Comment 4 katabami 2011-06-14 06:24:12 UTC
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.
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2011-06-21 09:17:21 UTC
Added fortran-2.eclass, which should fix this problem. Please reopen if still persist.