Opened 11 years ago

Closed 11 years ago

#40854 closed defect (worksforme)

py27-pyobjc @2.5.2 Fails to build on Mavericks

Reported by: wichert@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: mavericks Cc: macports.org@…
Port: py-pyobjc

Description

MacPorts was installed from trunk, but still reports its version as 2.2.0.

py27-pyobjc fails to build on Maverick.

--->  Building py27-pyobjc
DEBUG: Executing proc-pre-org.macports.build-build-0
DEBUG: Executing org.macports.build (py27-pyobjc)
DEBUG: Environment: CPATH='/opt/local/include' CFLAGS='-arch x86_64' CXXFLAGS='-arch x86_64' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.9' CXX='/usr/bin/clang++' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyobjc/py27-pyobjc/work/.CC_PRINT_OPTIONS' F90FLAGS='-m64' LDFLAGS='-arch x86_64' FCFLAGS='-m64' OBJC='/usr/bin/clang' OBJCFLAGS='-arch x86_64' FFLAGS='-m64' CC_PRINT_OPTIONS='YES' CC='/usr/bin/clang'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyobjc/py27-pyobjc/work/pyobjc-core-2.5.1" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg build'
DEBUG: Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyobjc/py27-pyobjc/work/pyobjc-core-2.5.1" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg build 
running build
running build_py
Overriding build_packages to copy PyObjCTest
running build_ext
building 'objc._objc' extension
/usr/bin/clang -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch x86_64 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libffi-src/ffi.c -o build/temp.macosx-10.9-x86_64-2.7/libffi-src/ffi.o -DPyObjC_STRICT_DEBUGGING -DMACOSX -DPyObjC_BUILD_RELEASE=1009 -DMACOSX -g -fexceptions -Wall -Wstrict-prototypes -Wmissing-prototypes -Wformat=2 -W -Wpointer-arith -Wmissing-declarations -Wnested-externs -W -Wno-import -DPyObjC_BUILD_RELEASE=1009 -I/Applications/Xcode5-DP5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Cocoa.framework/Versions/A/Headers -DNO_OBJC2_RUNTIME -isysroot / -Ibuild/codegen/ -Ilibffi-src/include -Ilibffi-src/powerpc -I/Applications/Xcode5-DP5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include
In file included from libffi-src/ffi.c:25:
libffi-src/include/ffi_common.h:37:11: fatal error: 'string.h' file not found
#       include <string.h>
                ^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyobjc/py27-pyobjc/work/pyobjc-core-2.5.1" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg build 
Exit code: 1
Error: org.macports.build for port py27-pyobjc returned: command execution failed
DEBUG: Error code: CHILDSTATUS 28029 1
DEBUG: Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
Warning: targets not executed for py27-pyobjc: org.macports.activate org.macports.build org.macports.destroot org.macports.install
Please see the log file for port py27-pyobjc for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyobjc/py27-pyobjc/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port py27-pyobjc failed

Attachments (1)

main.log (24.8 KB) - added by wichert@… 11 years ago.

Download all attachments as: .zip

Change History (8)

Changed 11 years ago by wichert@…

Attachment: main.log added

comment:1 Changed 11 years ago by wichert@…

This ticket needs the mavericks keyword to show up on the MavericksProblems list.

comment:2 Changed 11 years ago by mf2k (Frank Schima)

Keywords: mavericks added
Port: py-pyobjc added; py27-pyobjc removed

comment:3 Changed 11 years ago by mf2k (Frank Schima)

Summary: py27-pyobjc @2.5.2 Fails to build on Maverickpy27-pyobjc @2.5.2 Fails to build on Mavericks

comment:4 Changed 11 years ago by hardwhack

Upgraded to Mavericks. Was able to install py27-pyobjc @2.5.1_0 using port install. As far as I can tell, 2.5.1 is the latest version and it compiles OK on Mavericks.

Title is a typo BTW as the error message refers to version 2.5.1. It looks like the build fails with a "'string.h' file not found."

Perhaps run "xcode-select --install" to install all command line tools.

What happens if you uninstall and install?

Is string.h in your include path? What happens if you try to gcc a minimal program like:

#include "string.h"
int main(){}

If it does not compile cleanly, your build environment might be incomplete.

Last edited 11 years ago by hardwhack (previous) (diff)

comment:5 Changed 11 years ago by macports.org@…

Cc: macports.org@… added

Cc Me!

comment:6 Changed 11 years ago by wichert@…

The 2.5.2 was a typo - the correct version is indeed 2.5.1.

I may have skipped xcode-select --install before trying to install py27-pyobj. Trying the install again now works correctly, so please close this ticket.

comment:7 Changed 11 years ago by mf2k (Frank Schima)

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.