[MacPorts] #46392: gfortran-mp-4.[89] internal compiler error when building scipy-0.14.1 on a PPC
MacPorts
noreply at macports.org
Sun Jan 4 14:20:16 PST 2015
#46392: gfortran-mp-4.[89] internal compiler error when building scipy-0.14.1 on a
PPC
--------------------------+----------------------------------
Reporter: drjesacco@… | Owner: sean@…
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.3.3
Resolution: | Keywords: PPC, scipy, gfortran
Port: py-numpy |
--------------------------+----------------------------------
Changes (by sean@…):
* owner: macports-tickets@… => sean@…
* status: new => assigned
* port: gcc48, gcc49 => py-numpy
Old description:
> System: dual G4 powerMac running OS X 10.5.8
>
> gfortran-mp-4.[89] fails to compile scipy/fftpack/src/fftpack/cfftb1.f
> when optimization is set to '-O3'. Reducing the optimization level to
> '-O2' allows the compilation to succeed. The attached file contains the
> relevant portion of the build log and a copy of cfftb1.f.
>
> py(27|34)-scipy-0.14.0 built without incident with an earlier version of
> gcc-mp-4.8.
>
> A quick workaround to get scipy to build is to modify the numpy file that
> sets the optimization level for the fortran compiler.
>
> --- site-packages/numpy/distutils/fcompiler/gnu.py- 2015-01-04
> 12:14:16.000000000 -0500
> +++ site-packages/numpy/distutils/fcompiler/gnu.py 2015-01-04
> 12:14:29.000000000 -0500
> @@ -200,7 +200,7 @@
> # with -O3 caused failures in lib.lapack heevr,syevr tests.
> opt = ['-O2']
> else:
> - opt = ['-O3']
> + opt = ['-O2']
> opt.append('-funroll-loops')
> return opt
New description:
System: dual G4 powerMac running OS X 10.5.8
gfortran-mp-4.[89] fails to compile scipy/fftpack/src/fftpack/cfftb1.f
when optimization is set to '-O3'. Reducing the optimization level to
'-O2' allows the compilation to succeed. The attached file contains the
relevant portion of the build log and a copy of cfftb1.f.
py(27|34)-scipy-0.14.0 built without incident with an earlier version of
gcc-mp-4.8.
A quick workaround to get scipy to build is to modify the numpy file that
sets the optimization level for the fortran compiler.
{{{
--- site-packages/numpy/distutils/fcompiler/gnu.py- 2015-01-04
12:14:16.000000000 -0500
+++ site-packages/numpy/distutils/fcompiler/gnu.py 2015-01-04
12:14:29.000000000 -0500
@@ -200,7 +200,7 @@
# with -O3 caused failures in lib.lapack heevr,syevr tests.
opt = ['-O2']
else:
- opt = ['-O3']
+ opt = ['-O2']
opt.append('-funroll-loops')
return opt
}}}
--
Comment:
This is a patch that needs to be applied to numpy, correct?
--
Ticket URL: <https://trac.macports.org/ticket/46392#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list