[MacPorts] #13930: Intermittent failures building Python modules: unable to execute -DNDEBUG

MacPorts trac at macosforge.org
Mon Jan 14 14:36:59 PST 2008


#13930: Intermittent failures building Python modules: unable to execute -DNDEBUG
---------------------------+------------------------------------------------
 Reporter:  wiml at hhhh.org  |       Owner:  macports-tickets at 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 at 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


More information about the macports-tickets mailing list