[MacPorts] #28966: py27-numpy @1.5.1 +python build failure: library not found for -lgfortranbegin
#28966: py27-numpy @1.5.1 +python build failure: library not found for -lgfortranbegin ---------------------------------+------------------------------------------ Reporter: everbloom@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: py27-numpy ---------------------------------+------------------------------------------ Run {{{port install py27-numpy}}} but it seems to be having problems with fortran. It's giving {{{ld: library not found for -lgfortranbegin}}} in the logs. Full log attached. Is it trying to use the wrong fortran (somehow)? I'm stuck. The same problem occurs with py26-numpy. -- Ticket URL: <https://trac.macports.org/ticket/28966> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28966: py27-numpy @1.5.1 +python build failure: library not found for -lgfortranbegin ---------------------------------+------------------------------------------ Reporter: everbloom@… | Owner: ram@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: py26-numpy py27-numpy ---------------------------------+------------------------------------------ Changes (by blb@…): * owner: macports-tickets@… => ram@… * cc: vince@… (added) * port: py27-numpy => py26-numpy py27-numpy Comment: {{{ :info:build /usr/bin/gfortran -Wall build/temp.macosx-10.6-x86_64-2.7/numpy/linalg/lapack_litemodule.o build/temp.macosx-10.6-x86_64-2.7/numpy/linalg/python_xerbla.o -L/opt/local/lib -L/usr/lib/gcc/i686-apple-darwin10/4.2.1/x86_64 -Lbuild/temp.macosx-10.6-x86_64-2.7 -llapack -lptf77blas -lptcblas -latlas -lgfortran -o build/lib.macosx-10.6-x86_64-2.7/numpy/linalg/lapack_lite.so -undefined dynamic_lookup -bundle 2105 :info:build ld: library not found for -lgfortranbegin }}} Where did /usr/bin/gfortran come from? I believe the py*-numpy ports depend on gcc to get a gfortran, but that should then be installed in /opt/local. -- Ticket URL: <https://trac.macports.org/ticket/28966#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28966: py27-numpy @1.5.1 +python build failure: library not found for -lgfortranbegin ---------------------------------+------------------------------------------ Reporter: everbloom@… | Owner: ram@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: py26-numpy py27-numpy ---------------------------------+------------------------------------------ Comment(by everbloom@…): According to itself, /usr/bin/gfortran is GNU Fortran (GCC) 4.2.1 (Apple Inc. build 5659) + GF 4.2.4. So I guess it came with Xcode and Apple's gcc install. {{{whereis gfortran}}} tells me about the /usr/bin/gfortran as well. However, in /opt/local/bin there's a {{{gfortran-mp-4.4}}} which I guess is the macports gfortran. Is there a significant difference between macports gfortran and apple gfortran? Why is the port trying to use a non- mp version? -- Ticket URL: <https://trac.macports.org/ticket/28966#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28966: py27-numpy @1.5.1 +python build failure: library not found for -lgfortranbegin ---------------------------------+------------------------------------------ Reporter: everbloom@… | Owner: ram@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: py26-numpy py27-numpy ---------------------------------+------------------------------------------ Comment(by blb@…): Replying to [comment:2 everbloom@…]:
According to itself, /usr/bin/gfortran is GNU Fortran (GCC) 4.2.1 (Apple Inc. build 5659) + GF 4.2.4. So I guess it came with Xcode and Apple's gcc install.
Is that Xcode 4? If so, maybe Apple is including a fortran compiler now...
{{{whereis gfortran}}} tells me about the /usr/bin/gfortran as well.
However, in /opt/local/bin there's a {{{gfortran-mp-4.4}}} which I guess is the macports gfortran. Is there a significant difference between macports gfortran and apple gfortran? Why is the port trying to use a non- mp version? That's a good question, the Portfile appears to be trying to use the MacPorts' one, but looks like numpy's build setup may be ignoring what the Portfile says. -- Ticket URL: <https://trac.macports.org/ticket/28966#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28966: py27-numpy @1.5.1 +python build failure: library not found for -lgfortranbegin ---------------------------------+------------------------------------------ Reporter: everbloom@… | Owner: ram@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: py26-numpy py27-numpy ---------------------------------+------------------------------------------ Comment(by everbloom@…): Replying to [comment:3 blb@…]:
Replying to [comment:2 everbloom@…]:
According to itself, /usr/bin/gfortran is GNU Fortran (GCC) 4.2.1 (Apple Inc. build 5659) + GF 4.2.4. So I guess it came with Xcode and Apple's gcc install.
Is that Xcode 4? If so, maybe Apple is including a fortran compiler now... Just Xcode 3.x, so I don't know how I got an Apple gfortran! I'm more likely to have the build that R tools come with.
{{{whereis gfortran}}} tells me about the /usr/bin/gfortran as well.
However, in /opt/local/bin there's a {{{gfortran-mp-4.4}}} which I guess is the macports gfortran. Is there a significant difference between macports gfortran and apple gfortran? Why is the port trying to use a non- mp version?
That's a good question, the Portfile appears to be trying to use the MacPorts' one, but looks like numpy's build setup may be ignoring what the Portfile says. Buggery.
To my amazement, renaming /usr/bin/gfortran to /usr/bin/not-gfortran seems to have forced it to use mp's gfortran and it installed fine. That's *weird*, and not very nice of numpy to pick its own gfortran :(. -- Ticket URL: <https://trac.macports.org/ticket/28966#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28966: py27-numpy @1.5.1 +python build failure: library not found for -lgfortranbegin ------------------------------------+--------------------------------------- Reporter: everbloom@… | Owner: ram@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: worksforme | Keywords: Port: py26-numpy py27-numpy | ------------------------------------+--------------------------------------- Changes (by ram@…): * status: new => closed * resolution: => worksforme Comment: The numpy distutils are very picky, Xcode doesn't provide a gfortran compiler so his compiler has come from somewhere else. Going to close this one as `worksforme` as you were able to work round this issue. -- Ticket URL: <https://trac.macports.org/ticket/28966#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts