[MacPorts] #13930: Intermittent failures building Python modules: unable to execute -DNDEBUG
#13930: Intermittent failures building Python modules: unable to execute -DNDEBUG ---------------------------+------------------------------------------------ Reporter: wiml@hhhh.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Keywords: | ---------------------------+------------------------------------------------ I'm not sure what's going on here. In all cases, quitting 'port' and restarting it and reissuing the 'install' command succeeds. But one time in five or so, building a Python-based port fails, apparently because it's set $CC to an empty string or something like that: {{{ [var/root] > install py25-tkinter ---> Building py25-tkinter 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-tkinter/work/Python-2.5.1/Modules" && /opt/local/bin/python2.5 setup.py build " returned error 1 Command output: running build running build_ext building '_tkinter' extension -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DWITH_APPINIT=1 -I/opt/local/include -I/opt/local/include/python2.5 -c _tkinter.c -o build/temp.macosx-10.3-i386-2.5/_tkinter.o unable to execute -DNDEBUG: No such file or directory error: command '-DNDEBUG' failed with exit status 1 Error: Status 1 encountered during processing. [var/root] > ^D Goodbye root@slowpoke# /opt/local/bin/port ~ MacPorts 1.600 Entering interactive mode... ("help" for help, "quit" to quit) [var/root] > install py25-tkinter ---> Building py25-tkinter with target build ---> Staging py25-tkinter into destroot ---> Installing py25-tkinter 2.5.1_0 ---> Activating py25-tkinter 2.5.1_0 ---> Cleaning py25-tkinter [var/root] > ^D }}} It's not the same port(s) each time, seems to be random. Leopard 10.5.1/9B18, MacPorts 1.600, freshly installed and updated. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13930> MacPorts </projects/macports> Ports system for Mac OS
#13930: Intermittent failures building Python modules: unable to execute -DNDEBUG ----------------------------+----------------------------------------------- Reporter: wiml@hhhh.org | 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 jmpp@macports.org): * milestone: => Port Bugs -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13930#comment:1> MacPorts </projects/macports> Ports system for Mac OS
#13930: Intermittent failures building Python modules: unable to execute -DNDEBUG ----------------------------+----------------------------------------------- Reporter: wiml@hhhh.org | 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: mww@macports.org (added) Comment: Some sort of race in setuptools perhaps? -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13930#comment:2> MacPorts </projects/macports> Ports system for Mac OS
#13930: Intermittent failures building Python modules: unable to execute -DNDEBUG ----------------------------+----------------------------------------------- Reporter: wiml@hhhh.org | 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 raimue@macports.org): Has duplicate #14542. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13930#comment:3> MacPorts </projects/macports> Ports system for Mac OS
#13930: Intermittent failures building Python modules: unable to execute -DNDEBUG ----------------------------+----------------------------------------------- Reporter: wiml@hhhh.org | 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 afb@macports.org): It seems that those python ports are expecting $CC to be set in build as well as in configure, and fall back to random values such as "" or "cc" or "/usr/bin/gcc-4.0" when it isn't. This probably also explains why rerunning the build sometimes succeeds, if something else was adding a $CC to the environment that can be picked up as a lucky guess second time. Supposedly base wants to be enhanced to support CC in non-configure builds ? Workaround meanwhile is adding `build.env="CC=gcc"` while building the port. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13930#comment:4> MacPorts </projects/macports> Ports system for Mac OS
#13930: Intermittent failures building Python modules: unable to execute -DNDEBUG ----------------------------+----------------------------------------------- Reporter: wiml@hhhh.org | 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 renatoc@gmail.com): I can also confirm this bug, while trying to install gtk2 and dependencies. I only noted this problem after uninstalling MacPorts (like stated in the !FAQ) and installing it again. Anyway, I worked around this by setting {{{ extra_env CC }}} in macports.conf -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13930#comment:5> MacPorts </projects/macports> Ports system for Mac OS
participants (1)
-
MacPorts