Opened 16 years ago

Closed 15 years ago

#15683 closed defect (duplicate)

Building failing for no apparent reason even though manual builds work

Reported by: cems@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.6.0
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port:

Description (last modified by jmroot (Joshua Root))

I've been installing scipy and matplot lib on 10.5.3 leopard w/xcode 3.0 into a fresh 1.6.0 port install. A number of the dependent packages fail at "setup.py build" however if you run that command from the command line they build without errors. Here is one example:

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.2/Modules" && /opt/local/bin/python2.5 setup.py build " returned error 1
Command output: running build
running build_ext
building '_tkinter' extension
creating build
creating build/temp.macosx-10.3-i386-2.5
-DNDEBUG -g -fwrapv -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: The following dependencies failed to build: py25-tkinter
Error: Status 1 encountered during processing.

and yet if I run the same command from the command line I get:

bash-3.2$ cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-tkinter/work/Python-2.5.2/Modules"
bash-3.2$ sudo  /opt/local/bin/python2.5 setup.py build 
Password:
running build
running build_ext
building '_tkinter' extension
/usr/bin/gcc-4.0 -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -fwrapv -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
/usr/bin/gcc-4.0 -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DWITH_APPINIT=1 -I/opt/local/include -I/opt/local/include/python2.5 -c tkappinit.c -o build/temp.macosx-10.3-i386-2.5/tkappinit.o
creating build/lib.macosx-10.3-i386-2.5
/usr/bin/gcc-4.0 -L/opt/local/lib -bundle -undefined dynamic_lookup build/temp.macosx-10.3-i386-2.5/_tkinter.o build/temp.macosx-10.3-i386-2.5/tkappinit.o -L/opt/local/lib -ltcl8.5 -ltk8.5 -o build/lib.macosx-10.3-i386-2.5/_tkinter.so
bash-3.2$ 

If I then re-rerun the installer, the installer proceeds just fine.

this happens on some but not all packages.

I have downloaded and re-installed macports from scratch as of yeasterday but this did not fix the issue.

here is another example:

Error: Target org.macports.activate returned: Image error: /Applications/MacPorts/AquaTerm.app/Contents/Info.plist already exists and does not belong to a registered port.  Unable to activate port aquaterm.
Error: The following dependencies failed to build: gnuplot aquaterm fontconfig freetype gd2 jpeg libpng pdflib py25-zlib
Error: Status 1 encountered during processing.

Change History (5)

comment:1 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Milestone: MacPorts base bugs

Please remember WikiFormatting.

"unable to execute -DNDEBUG: No such file or directory" is the Leopard environment variable issue. Just clean the affected port ("sudo port clean --work py25-tkinter") and try the port install again. It will work the second time.

"/Applications/MacPorts/AquaTerm.app/Contents/Info.plist already exists and does not belong to a registered port" is unrelated. Sounds like you have /Applications/MacPorts/AquaTerm.app but MacPorts doesn't think it installed that. Maybe you had aquaterm installed before, then you uninstalled MacPorts incompletely so parts of your old installation remained? (Correct uninstall instructions are in the FAQ.) You could now "sudo port uninstall aquaterm" to make sure MacPorts thinks it's uninstalled, then manually remove /Applications/MacPorts/AquaTerm.app, then clean and reinstall the aquaterm port.

comment:2 Changed 16 years ago by afb@…

Resolution: worksforme
Status: newclosed

fixed elsewhere

comment:3 Changed 16 years ago by tobypeterson

Milestone: MacPorts base bugsMacPorts Future

Milestone MacPorts base bugs deleted

comment:4 Changed 15 years ago by jmroot (Joshua Root)

Component: portsbase
Resolution: worksforme
Status: closedreopened

comment:5 Changed 15 years ago by jmroot (Joshua Root)

Description: modified (diff)
Milestone: MacPorts Future
Resolution: duplicate
Status: reopenedclosed
Note: See TracTickets for help on using tickets.