[MacPorts] #31833: py27-scipy fails to build with -faltivec flag error
#31833: py27-scipy fails to build with -faltivec flag error --------------------------------------+------------------------------------- Reporter: martinzinkin@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: p27-scipy lion -faltivec | Port: p27-scipy --------------------------------------+------------------------------------- py27-scipy fails to build on my Mac with the errors below - apparently complaining about an unsupported -faltivec compiler flag I am on OS X Lion 10.7.2, Xcode 4.2 (both fully up to date), and I have just run selfupdate and have no outdated ports. I have tried both gcc44 and gcc variants of py27-scipy with the same results. [http://www.google.co.uk/url?sa=t&rct=j&q=macports%20%22-faltivec%22&source=w... =AFQjCNHRP9o7hmh6q8mdqL6zWiQX0HC-Ag this old numpy issue] looks similar, but I am afraid I am not sufficiently familiar with macports to make further progress. {{{ :info:build compiling C sources :info:build C compiler: /opt/local/bin/gcc-mp-4.4 -fno-strict-aliasing -fno-common -dynamic -pipe -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict- prototypes :info:build :info:build compile options: '-DNO_ATLAS_INFO=3 -I/Library/Python/2.7 /site- packages/numpy-2.0.0.dev_e2af7b7_20110721-py2.7-macosx-10.7-x86_64.egg/numpy/core/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c' :info:build extra options: '-faltivec -I/System/Library/Frameworks/vecLib.framework/Headers' :info:build gcc-mp-4.4: scipy/integrate/_odepackmodule.c :info:build cc1: error: unrecognized command line option "-faltivec" :info:build cc1: error: unrecognized command line option "-faltivec" :info:build error: Command "/opt/local/bin/gcc-mp-4.4 -fno-strict-aliasing -fno-common -dynamic -pipe -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict- prototypes -DNO_ATLAS_INFO=3 -I/Library/Python/2.7/site- packages/numpy-2.0.0.dev_e2af7b7_20110721-py2.7-macosx-10.7-x86_64.egg/numpy/core/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c scipy/integrate/_odepackmodule.c -o build/temp.macosx-10.7-x86_64-2.7/scipy/integrate/_odepackmodule.o -faltivec -I/System/Library/Frameworks/vecLib.framework/Headers" failed with exit status 1 }}} -- Ticket URL: <https://trac.macports.org/ticket/31833> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31833: py27-scipy fails to build with -faltivec flag error --------------------------------------+------------------------------------- Reporter: martinzinkin@… | Owner: ram@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: py27-scipy --------------------------------------+------------------------------------- Changes (by macsforever2000@…): * owner: macports-tickets@… => ram@… * keywords: p27-scipy lion -faltivec => * port: p27-scipy => py27-scipy -- Ticket URL: <https://trac.macports.org/ticket/31833#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31833: py27-scipy fails to build with -faltivec flag error --------------------------------------+------------------------------------- Reporter: martinzinkin@… | Owner: ram@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: py27-scipy --------------------------------------+------------------------------------- Comment(by ryandesign@…): AltiVec is of course a feature of PowerPC G4 and G5 processors; it seem silly that anyone is requesting AltiVec features when compiling on Intel processors. -- Ticket URL: <https://trac.macports.org/ticket/31833#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31833: py27-scipy fails to build with -faltivec flag error --------------------------------------+------------------------------------- Reporter: martinzinkin@… | Owner: ram@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: py27-scipy --------------------------------------+------------------------------------- Comment(by ram@…): I notice that in the log message there is reference to a numpy-2.0.0 development snapshot install in /Library/Python, this is clearly interfering with the build. I would advise removing this and trying the build again. -- Ticket URL: <https://trac.macports.org/ticket/31833#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31833: py27-scipy fails to build with -faltivec flag error --------------------------------------+------------------------------------- Reporter: martinzinkin@… | Owner: ram@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: py27-scipy --------------------------------------+------------------------------------- Comment(by martinzinkin@…): Replying to [comment:3 ram@…]:
I notice that in the log message there is reference to a numpy-2.0.0 development snapshot install in /Library/Python, this is clearly interfering with the build. I would advise removing this and trying the build again.
Excellent, that was it. Thanks very much. -- Ticket URL: <https://trac.macports.org/ticket/31833#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31833: py27-scipy fails to build with -faltivec flag error ---------------------------------------+------------------------------------ Reporter: martinzinkin@… | Owner: ram@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: invalid | Keywords: Port: py27-scipy | ---------------------------------------+------------------------------------ Changes (by ram@…): * status: new => closed * resolution: => invalid -- Ticket URL: <https://trac.macports.org/ticket/31833#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31833: py27-scipy fails to build with -faltivec flag error ---------------------------------------+------------------------------------ Reporter: martinzinkin@… | Owner: ram@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: | Keywords: Port: py27-scipy | ---------------------------------------+------------------------------------ Changes (by samaburden@…): * status: closed => reopened * resolution: invalid => Comment: Replying to [comment:5 ram@…]: I have the same build error, but I can't find similar reference to old numpy development snapshot as the original post (see attached log file). I've tried removing py27-numpy (& deps) and reinstalling, but receive the same error. Thoughts? -- Ticket URL: <https://trac.macports.org/ticket/31833#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31833: py27-scipy fails to build with -faltivec flag error ---------------------------------------+------------------------------------ Reporter: martinzinkin@… | Owner: ram@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: | Keywords: Port: py27-scipy | ---------------------------------------+------------------------------------ Comment(by ram@…): Look like it's using stuff from the system numpy: {{{ :info:build building 'scipy.integrate._odepack' extension :info:build compiling C sources :info:build C compiler: /opt/local/bin/gcc-mp-4.4 -fno-strict-aliasing -fno-common -dynamic -pipe -O2 -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes :info:build :info:build compile options: '-DNO_ATLAS_INFO=3 -I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c' :info:build extra options: '-faltivec -I/System/Library/Frameworks/vecLib.framework/Headers' :info:build gcc-mp-4.4: scipy/integrate/_odepackmodule.c :info:build cc1: error: unrecognized command line option "-faltivec" :info:build cc1: error: unrecognized command line option "-faltivec" }}} I imagine you're getting this error because the system numpy is being used instead of the MacPorts version. Not sure why this is the case though. I'll do a little digging and see if I can find anything... -- Ticket URL: <https://trac.macports.org/ticket/31833#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31833: py27-scipy fails to build with -faltivec flag error ---------------------------------------+------------------------------------ Reporter: martinzinkin@… | Owner: ram@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: | Keywords: Port: py27-scipy | ---------------------------------------+------------------------------------ Comment(by samaburden@…): Replying to [comment:7 ram@…]:
Look like it's using stuff from the system numpy:
I imagine you're getting this error because the system numpy is being used instead of the MacPorts version. Not sure why this is the case though. I'll do a little digging and see if I can find anything...
Gotcha -- is there a way to prevent the system numpy from being found? I haven't added it to my PYTHONPATH . . . Thanks! -- Ticket URL: <https://trac.macports.org/ticket/31833#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31833: py27-scipy fails to build with -faltivec flag error ---------------------------------------+------------------------------------ Reporter: martinzinkin@… | Owner: ram@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: | Keywords: Port: py27-scipy | ---------------------------------------+------------------------------------ Comment(by samaburden@…): Replying to [comment:7 ram@…]:
Look like it's using stuff from the system numpy:
You were absolutely right -- I hid /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python and py27-scipy installed successfully. Thanks for the help! -- Ticket URL: <https://trac.macports.org/ticket/31833#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31833: py27-scipy fails to build with -faltivec flag error ---------------------------------------+------------------------------------ Reporter: martinzinkin@… | Owner: ram@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: | Keywords: Port: py27-scipy | ---------------------------------------+------------------------------------ Comment(by ram@…): Great, now got to figure out why it was picking up the system numpy and not the MacPorts version... -- Ticket URL: <https://trac.macports.org/ticket/31833#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31833: py27-scipy fails to build with -faltivec flag error ---------------------------------------+------------------------------------ Reporter: martinzinkin@… | Owner: ram@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: | Keywords: Port: py27-scipy | ---------------------------------------+------------------------------------ Comment(by samaburden@…): Replying to [comment:10 ram@…]:
Great, now got to figure out why it was picking up the system numpy and not the MacPorts version...
In case it's relevant: for some reason, the system's Python libraries show up before MacPorts' Python libraries in sys.path. I originally tried installing numpy & scipy without MacPorts, so maybe I tweaked my path along the way? -- Ticket URL: <https://trac.macports.org/ticket/31833#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31833: py27-scipy fails to build with -faltivec flag error ---------------------------------------+------------------------------------ Reporter: martinzinkin@… | Owner: ram@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: | Keywords: Port: py27-scipy | ---------------------------------------+------------------------------------ Comment(by calsaiwing@…): (probably is expected) still happens with MacPorts 2.0.4. -- Ticket URL: <https://trac.macports.org/ticket/31833#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31833: py27-scipy fails to build with -faltivec flag error ---------------------------------------+------------------------------------ Reporter: martinzinkin@… | Owner: ram@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: | Keywords: Port: py27-scipy | ---------------------------------------+------------------------------------ Comment(by ram@…): This is only expected if you try and link against the system numpy, if you use the MacPorts version then it will build successfully. If you have modified `sys.path` then I imagine that will cause the problem. -- Ticket URL: <https://trac.macports.org/ticket/31833#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31833: py27-scipy fails to build with -faltivec flag error ---------------------------------------+------------------------------------ Reporter: martinzinkin@… | Owner: ram@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: | Keywords: Port: py27-scipy | ---------------------------------------+------------------------------------ Comment(by gwoptics@…): Replying to [comment:6 samaburden@…]:
Replying to [comment:5 ram@…]:
I have the same build error, but I can't find similar reference to old numpy development snapshot as the original post (see attached log file).
I've tried removing py27-numpy (& deps) and reinstalling, but receive the same error. Thoughts?
Another possibility: a numpy version installed previously via easy_install-2.7 causes a `port install py27-scipy' to fail similarly (for me). After: * sudo port install py27-pip * sudo pip-2.7 uninstall numpy * sudo port install py27-scipy it worked. Maybe that helps. -- Ticket URL: <https://trac.macports.org/ticket/31833#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31833: py27-scipy fails to build with -faltivec flag error -----------------------------+---------------------- Reporter: martinzinkin@… | Owner: ram@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: | Keywords: Port: py27-scipy | -----------------------------+---------------------- Comment (by ram@…): Is this still a problem? -- Ticket URL: <https://trac.macports.org/ticket/31833#comment:16> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31833: py27-scipy fails to build with -faltivec flag error -----------------------------+-------------------- Reporter: martinzinkin@… | Owner: ram@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: Port: py27-scipy | -----------------------------+-------------------- Changes (by ram@…): * status: reopened => closed * resolution: => fixed -- Ticket URL: <https://trac.macports.org/ticket/31833#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts