Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#13354 closed defect (fixed)

BUG: python/py25-scipy fails to build when py25-numpy built using gcc42/gcc43 variants

Reported by: skymoo (Adam Mercer) Owned by: erickt@…
Priority: Normal Milestone:
Component: ports Version: 1.5.2
Keywords: Cc: skymoo (Adam Mercer), 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 (5)

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

Download all attachments as: .zip

Change History (10)

Changed 16 years ago by skymoo (Adam Mercer)

Attachment: install_1.log added

build log

Changed 16 years ago by skymoo (Adam Mercer)

Attachment: py25-scipy-fortran.diff added

patch to add fortran variants

Changed 16 years ago by skymoo (Adam Mercer)

Attachment: install_2.log.bz2 added

build log of patched Portfile

comment:1 Changed 16 years ago by skymoo (Adam Mercer)

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 16 years ago by skymoo (Adam Mercer)

Attachment: py25-scipy.diff added

specify fortran compilers for build and destroot commands

Changed 16 years ago by skymoo (Adam Mercer)

Attachment: py-scipy.diff added

specify fortran compilers for build and destroot commands

comment:2 Changed 16 years ago by erickt@…

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

comment:3 Changed 16 years ago by skymoo (Adam Mercer)

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 16 years ago by skymoo (Adam Mercer)

Resolution: fixed
Status: newclosed

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 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.