New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #13354 (closed defect: fixed)

Opened 6 years ago

Last modified 4 years ago

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

install_1.log (117.8 KB) - added by ram@… 6 years ago.
build log
py25-scipy-fortran.diff (1.4 KB) - added by ram@… 6 years ago.
patch to add fortran variants
install_2.log.bz2 (23.9 KB) - added by ram@… 6 years ago.
build log of patched Portfile
py25-scipy.diff (1.6 KB) - added by ram@… 6 years ago.
specify fortran compilers for build and destroot commands
py-scipy.diff (1.6 KB) - added by ram@… 6 years ago.
specify fortran compilers for build and destroot commands

Change History

Changed 6 years ago by ram@…

build log

Changed 6 years ago by ram@…

patch to add fortran variants

Changed 6 years ago by ram@…

build log of patched Portfile

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@…

specify fortran compilers for build and destroot commands

Changed 6 years ago by ram@…

specify fortran compilers for build and destroot commands

comment:2 Changed 5 years ago by erickt@…

Commited. Let me know if it doesn't work.

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...

comment:4 Changed 5 years ago by ram@…

  • Status changed from new to closed
  • Resolution set to fixed

Just head back from the scipy developers, this is the expected behaviour and the approach used to fix the install is correct.

comment:5 Changed 4 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.