[MacPorts] #24716: py26-scipy: link error when building 'scipy.interpolate._interpolate' extension
#24716: py26-scipy: link error when building 'scipy.interpolate._interpolate' extension ----------------------------------+----------------------------------------- Reporter: dmmonarres@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: python, scipy, numpy | Port: py26-scipy ----------------------------------+----------------------------------------- py26-scipy fails to build with a linking error. Fails when trying to link using gcc-4.2. {{{ /opt/local/bin/g++-mp-4.3 /usr/bin/gcc-4.2 -L/opt/local/lib -bundle -undefined dynamic_lookup build/temp.macosx-10.6-x86_64-2.6/scipy/interpolate/src/_interpolate.o -Lbuild/temp.macosx-10.6-x86_64-2.6 -o build/lib.macosx-10.6-x86_64-2.6/scipy/interpolate/_interpolate.so ld: in /usr/bin/gcc-4.2, can't link with a main executable collect2: ld returned 1 exit status ld: in /usr/bin/gcc-4.2, can't link with a main executable collect2: ld returned 1 exit status }}} Attached is the full output of port -d install py26-scipy -- Ticket URL: <http://trac.macports.org/ticket/24716> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24716: py26-scipy: link error when building 'scipy.interpolate._interpolate' extension ----------------------------------+----------------------------------------- Reporter: dmmonarres@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: py26-scipy ----------------------------------+----------------------------------------- Changes (by macsforever2000@…): * owner: macports-tickets@… => jmr@… * keywords: python, scipy, numpy => -- Ticket URL: <http://trac.macports.org/ticket/24716#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24716: py26-scipy: link error when building 'scipy.interpolate._interpolate' extension ----------------------------------+----------------------------------------- Reporter: dmmonarres@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: py26-scipy ----------------------------------+----------------------------------------- Comment(by ram@…): You seem to be using ccache, have you the `configureccache` option set in `${prefix}/etc/macports/macports.conf`? If so try disabling it and try again, after cleaning. -- Ticket URL: <http://trac.macports.org/ticket/24716#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24716: py26-scipy: link error when building 'scipy.interpolate._interpolate' extension ----------------------------------+----------------------------------------- Reporter: dmmonarres@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: py26-scipy ----------------------------------+----------------------------------------- Comment(by bgrant@…): Replying to [comment:2 ram@…]:
You seem to be using ccache, have you the `configureccache` option set in `${prefix}/etc/macports/macports.conf`? If so try disabling it and try again, after cleaning.
I think I'm having the same problem. I also had ccache enabled initially, but I've disabled it, and I attached the log of cleaning the port and reinstalling. -- Ticket URL: <http://trac.macports.org/ticket/24716#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24716: python config with ccache in CC causes scipy build failure ----------------------------------+----------------------------------------- Reporter: dmmonarres@… | Owner: blb@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: python26 py26-scipy ----------------------------------+----------------------------------------- Changes (by jmr@…): * owner: jmr@… => blb@… * cc: mcalhoun@…, jmr@… (added) * port: py26-scipy => python26 py26-scipy Comment: Replying to [comment:3 bgrant@…]:
I think I'm having the same problem. I also had ccache enabled initially, but I've disabled it, and I attached the log of cleaning the port and reinstalling. This log shows that ccache is stil being used. The configure.ccache setting should not actually make any difference to scipy's portfile. I'm guessing the bad compiler value is being picked up from the python config, which means you would have to rebuild python26 with ccache disabled.
-- Ticket URL: <http://trac.macports.org/ticket/24716#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24716: python config with ccache in CC causes scipy build failure ----------------------------------+----------------------------------------- Reporter: dmmonarres@… | Owner: blb@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: python26 py26-scipy ----------------------------------+----------------------------------------- Comment(by dmmonarres@…): That is exactly what we found. Python will build modules with the same compiler that itself was built with. I had to rebuild python2.6 with ccache disabled and the problem went away. Replying to [comment:4 jmr@…]:
Replying to [comment:3 bgrant@…]:
I think I'm having the same problem. I also had ccache enabled initially, but I've disabled it, and I attached the log of cleaning the port and reinstalling. This log shows that ccache is stil being used. The configure.ccache setting should not actually make any difference to scipy's portfile. I'm guessing the bad compiler value is being picked up from the python config, which means you would have to rebuild python26 with ccache disabled.
-- Ticket URL: <http://trac.macports.org/ticket/24716#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24716: python config with ccache in CC causes scipy build failure ----------------------------------+----------------------------------------- Reporter: dmmonarres@… | Owner: blb@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: python26 python27 python31 ----------------------------------+----------------------------------------- Changes (by blb@…): * cc: jwa@…, erickt@… (added) * port: python26 py26-scipy => python26 python27 python31 Comment: python26 port now set to not use ccache in r68165. I would have kept it building with ccache but stripping it from python's config/Makefile but it looks like using ccache also causes python's configure to not want to use -fwrapv, which is apparently important according to [http://bugs.python.org/issue1608 python issue 1608]. CC'ing 2.7 and 3.1 maintainers as they probably also need to disable. -- Ticket URL: <http://trac.macports.org/ticket/24716#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24716: python config with ccache in CC causes scipy build failure -----------------------------------------+---------------------------------- Reporter: dmmonarres@… | Owner: blb@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Resolution: fixed | Keywords: Port: python26 python27 python31 | -----------------------------------------+---------------------------------- Changes (by blb@…): * status: new => closed * resolution: => fixed Comment: Confirmed that 2.7 and 3.1 both miss -fwrapv with ccache enabled, so it's disabled there as well in r68616. -- Ticket URL: <http://trac.macports.org/ticket/24716#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts