[MacPorts] #15553: py25-numeric build error: unrecognized gcc flags -no-cpp-precomp and -Wno-long-double
#15553: py25-numeric build error: unrecognized gcc flags -no-cpp-precomp and -Wno- long-double --------------------------------+------------------------------------------- Reporter: dstndstn@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: | --------------------------------+------------------------------------------- I get: {{{ # port build py25-numeric ---> Building py25-numeric with target build Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-numeric/work/Numeric-24.2" && /opt/local/bin/python2.5 setup.py build " returned error 1 Command output: running build running build_py running build_ext building '_numpy' extension gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -IInclude -IPackages/FFT/Include -IPackages/RNG/Include -I/opt/local/include/python2.5 -c Src/_numpymodule.c -o build/temp.macosx-10.3-ppc-2.5/Src/_numpymodule.o gcc: unrecognized option '-no-cpp-precomp' cc1: error: unrecognized command line option "-Wno-long-double" error: command 'gcc' failed with exit status 1 Error: Status 1 encountered during processing. }}} I have: {{{ # gcc --version gcc (GCC) 4.0.0 Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. }}} -- Ticket URL: <http://trac.macports.org/ticket/15553> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15553: py25-numeric build error: unrecognized gcc flags -no-cpp-precomp and -Wno- long-double ---------------------------------+------------------------------------------ Reporter: dstndstn@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Changes (by jmr@macports.org): * cc: dstndstn@gmail.com (removed) * cc: jmr@macports.org (added) Comment: What OS version are you using? You probably need to upgrade to the latest XCode release for your system. On a Tiger machine of mine: {{{ % gcc --version powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5370) }}} Also, gcc is being invoked as just 'gcc' rather than '/usr/bin/gcc-4.0', so it looks like you're running an older version of MacPorts, and should upgrade with `sudo port selfupdate`. -- Ticket URL: <http://trac.macports.org/ticket/15553#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15553: py25-numeric build error: unrecognized gcc flags -no-cpp-precomp and -Wno- long-double ---------------------------------+------------------------------------------ Reporter: dstndstn@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Comment (by dstndstn@gmail.com): Sorry, I should have specified my OS and MacPorts versions: {{{ # uname -a Darwin shiny.local 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC Power Macintosh powerpc # port selfupdate MacPorts base version 1.600 installed Downloaded MacPorts base version 1.600 The MacPorts installation is not outdated and so was not updated selfupdate done! }}} It's a 10.3.9 system. (I normally run Linux on this machine so I haven't bought OSX updates.) -- Ticket URL: <http://trac.macports.org/ticket/15553#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15553: py25-numeric build error: unrecognized gcc flags -no-cpp-precomp and -Wno- long-double ---------------------------------+------------------------------------------ Reporter: dstndstn@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Comment (by dstndstn@gmail.com): PS, I have XCode 1.5, which I believe is the latest version supported under OSX 10.3. -- Ticket URL: <http://trac.macports.org/ticket/15553#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15553: py25-numeric build error: unrecognized gcc flags -no-cpp-precomp and -Wno- long-double ---------------------------------+------------------------------------------ Reporter: dstndstn@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Comment (by jmr@macports.org): I don't have a Panther machine to test on, but here's a patch to try. It will install and use GCC 4.0.4 from MacPorts. -- Ticket URL: <http://trac.macports.org/ticket/15553#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15553: py25-numeric build error: unrecognized gcc flags -no-cpp-precomp and -Wno- long-double ---------------------------------+------------------------------------------ Reporter: dstndstn@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Comment (by jmr@macports.org): Further investigation reveals that -no-cpp-precomp is an obsolete option. It was used in GCC < 3.3 to select what is now the default behaviour, and does not exist in FSF's GCC 4. I'm not sure why it doesn't cause problems on 10.4 and 10.5, but I've attempted to fix this on 10.3 by explicitly using gcc-3.3 (r37676). Please try the updated port and report back. -- Ticket URL: <http://trac.macports.org/ticket/15553#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15553: py25-numeric build error: unrecognized gcc flags -no-cpp-precomp and -Wno- long-double ---------------------------------+------------------------------------------ Reporter: dstndstn@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Comment (by dstndstn@gmail.com): My apologies for the long delay! I just tried the updated port and it works perfectly. Thanks very much!! --dustin. -- Ticket URL: <http://trac.macports.org/ticket/15553#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15553: py25-numeric build error: unrecognized gcc flags -no-cpp-precomp and -Wno- long-double ---------------------------------+------------------------------------------ Reporter: dstndstn@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: ---------------------------------+------------------------------------------ Changes (by jmr@macports.org): * status: new => closed * resolution: => fixed Comment: Great, marking fixed. -- Ticket URL: <http://trac.macports.org/ticket/15553#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts