Ticket #15683 (closed defect: duplicate)
Building failing for no apparent reason even though manual builds work
|Reported by:||cems@…||Owned by:||macports-tickets@…|
Description (last modified by jmr@…) (diff)
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.
- Cc ryandesign@… added
- Milestone set to MacPorts base bugs
- Status changed from new to closed
- Resolution set to worksforme
- Milestone changed from MacPorts base bugs to MacPorts Future
- Status changed from closed to reopened
- Resolution worksforme deleted
- Component changed from ports to base