Ticket #13354 (closed defect: fixed)
BUG: python/py25-scipy fails to build when py25-numpy built using gcc42/gcc43 variants
| Reported by: | ram@… | Owned by: | erickt@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.5.2 |
| Keywords: | Cc: | ram@…, luis.beca@… | |
| Port: |
Description
If you try to build py25-scipy using a py25-numpy built with either the gcc42 or gcc43 variant the build fails - build log attached as install_1.log.
The build fails because it can't find the binary of the fortran compiler, if you add the fortran compiler variants like in py25-numpy, patch attached, the build this time it manages to find the fortran compilers during the build phase, but fails in the install phase as it is unable to find the fortran compiler - build log attached as install_2.log.
It seems that the install phase is ignoring the compiler choice that was set using config_fc.
Attachments
Change History
Changed 6 years ago by ram@…
- Attachment install_1.log added
Changed 6 years ago by ram@…
- Attachment py25-scipy-fortran.diff added
patch to add fortran variants
comment:1 Changed 6 years ago by ram@…
Just tried building/installing manually with
$ python setup.py config_fc --fcompiler gnu95 \
--f77exec /opt/local/bin/gfortran-mp-4.2 \
--f90exec /opt/local/bin/gfortran-mp-4.2 build
$ python setup.py install --prefix=$HOME/scipy
and it fails with the same error. But if I install with
$ python setup.py config_fc --fcompiler gnu95 \
--f77exec /opt/local/bin/gfortran-mp-4.2 \
--f90exec /opt/local/bin/gfortran-mp-4.2 install --prefix=$HOME/scipy
then the install succeeds, therefore I added the appropriate config_fc... to destroot.cmd in each of the different variants and installing from the port succeeds.
I've attached a new patch that does this for the py25-scipy Portfile, a similar change will therefore be needed for the py-scipy port.
Changed 6 years ago by ram@…
- Attachment py25-scipy.diff added
specify fortran compilers for build and destroot commands
Changed 6 years ago by ram@…
- Attachment py-scipy.diff added
specify fortran compilers for build and destroot commands
comment:3 Changed 5 years ago by ram@…
Builds fine for me with the gcc42 variant.
It seems to me that the install phase should inherit the options specified during the build phase, as such I've emailed the scipy users mailing list to see if this is the expected behaviour. I'll post what I find out...


build log