[MacPorts] #30369: can't build python26 on Mac OS X Lion
#30369: can't build python26 on Mac OS X Lion ------------------------------+--------------------------------------------- Reporter: jiri@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: | Port: ------------------------------+--------------------------------------------- Computing dependencies for python26 ---> Building python26 Error: Target org.macports.build returned: shell command failed (see log for details) Log for python26 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/python26/main.log Error: Unable to upgrade port: 1 To report a bug, see <http://guide.macports.org/#project.tickets> :debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/python26/work/Python-2.6.7" && /usr/bin/make -j2 -w all MAKE="/usr/bin/make CC=/usr/bin/gcc-4.2"' :debug:build Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/python26/work/Python-2.6.7" && /usr/bin/make -j2 -w all MAKE="/usr/bin/make CC=/usr/bin/gcc-4.2" :info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/python26/work/Python-2.6.7' :info:build /usr/bin/install -c -d -m 755 Python.framework/Versions/2.6 :info:build if test ""; then \ :info:build /usr/bin/gcc-4.2 -o Python.framework/Versions/2.6/Python -dynamiclib \ :info:build -isysroot "" \ :info:build -all_load libpython2.6.a -Wl,-single_module \ :info:build -install_name /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Python \ :info:build -compatibility_version 2.6 \ :info:build -current_version 2.6; \ :info:build else \ :info:build /usr/bin/libtool -o Python.framework/Versions/2.6/Python -dynamic libpython2.6.a \ :info:build -lSystem -lSystemStubs -arch_only x86_64 -install_name /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Python -compatibility_version 2.6 -current_version 2.6 ;\ :info:build fi :info:build /usr/bin/libtool: for architecture x86_64 object: /usr/lib/libSystem.dylib malformed object (unknown load command 8) :info:build /usr/bin/libtool: for architecture: (null) file: -lSystem is not an object file (not allowed in a library) :info:build /usr/bin/libtool: for architecture i386 object: /usr/lib/libSystem.dylib malformed object (unknown load command 8) :info:build make: *** [Python.framework/Versions/2.6/Python] Error 1 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/python26/work/Python-2.6.7' :info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/python26/work/Python-2.6.7" && /usr/bin/make -j2 -w all MAKE="/usr/bin/make CC=/usr/bin/gcc-4.2" " returned error 2 :error:build Target org.macports.build returned: shell command failed (see log for details) :debug:build Backtrace: shell command failed (see log for details) while executing "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" :info:build Warning: the following items did not execute (for python26): org.macports.install org.macports.build org.macports.destroot :notice:build Log for python26 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/python26/main.log -- Ticket URL: <https://trac.macports.org/ticket/30369> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30369: can't build python26 on Mac OS X Lion ------------------------------+--------------------------------------------- Reporter: jiri@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: | Port: python26 ------------------------------+--------------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => mcalhoun@… * port: => python26 Old description:
Computing dependencies for python26 ---> Building python26 Error: Target org.macports.build returned: shell command failed (see log for details) Log for python26 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/python26/main.log Error: Unable to upgrade port: 1 To report a bug, see <http://guide.macports.org/#project.tickets>
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/python26/work/Python-2.6.7" && /usr/bin/make -j2 -w all MAKE="/usr/bin/make CC=/usr/bin/gcc-4.2"' :debug:build Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/python26/work/Python-2.6.7" && /usr/bin/make -j2 -w all MAKE="/usr/bin/make CC=/usr/bin/gcc-4.2" :info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/python26/work/Python-2.6.7' :info:build /usr/bin/install -c -d -m 755 Python.framework/Versions/2.6 :info:build if test ""; then \ :info:build /usr/bin/gcc-4.2 -o Python.framework/Versions/2.6/Python -dynamiclib \ :info:build -isysroot "" \ :info:build -all_load libpython2.6.a -Wl,-single_module \ :info:build -install_name /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Python \ :info:build -compatibility_version 2.6 \ :info:build -current_version 2.6; \ :info:build else \ :info:build /usr/bin/libtool -o Python.framework/Versions/2.6/Python -dynamic libpython2.6.a \ :info:build -lSystem -lSystemStubs -arch_only x86_64 -install_name /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Python -compatibility_version 2.6 -current_version 2.6 ;\ :info:build fi :info:build /usr/bin/libtool: for architecture x86_64 object: /usr/lib/libSystem.dylib malformed object (unknown load command 8) :info:build /usr/bin/libtool: for architecture: (null) file: -lSystem is not an object file (not allowed in a library) :info:build /usr/bin/libtool: for architecture i386 object: /usr/lib/libSystem.dylib malformed object (unknown load command 8) :info:build make: *** [Python.framework/Versions/2.6/Python] Error 1 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/python26/work/Python-2.6.7' :info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/python26/work/Python-2.6.7" && /usr/bin/make -j2 -w all MAKE="/usr/bin/make CC=/usr/bin/gcc-4.2" " returned error 2 :error:build Target org.macports.build returned: shell command failed (see log for details) :debug:build Backtrace: shell command failed (see log for details) while executing "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" :info:build Warning: the following items did not execute (for python26): org.macports.install org.macports.build org.macports.destroot :notice:build Log for python26 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/python26/main.log
New description: {{{ Computing dependencies for python26 ---> Building python26 Error: Target org.macports.build returned: shell command failed (see log for details) Log for python26 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/python26/main.log Error: Unable to upgrade port: 1 To report a bug, see <http://guide.macports.org/#project.tickets> }}} {{{ :debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/python26/work/Python-2.6.7" && /usr/bin/make -j2 -w all MAKE="/usr/bin/make CC=/usr/bin/gcc-4.2"' :debug:build Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/python26/work/Python-2.6.7" && /usr/bin/make -j2 -w all MAKE="/usr/bin/make CC=/usr/bin/gcc-4.2" :info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/python26/work/Python-2.6.7' :info:build /usr/bin/install -c -d -m 755 Python.framework/Versions/2.6 :info:build if test ""; then \ :info:build /usr/bin/gcc-4.2 -o Python.framework/Versions/2.6/Python -dynamiclib \ :info:build -isysroot "" \ :info:build -all_load libpython2.6.a -Wl,-single_module \ :info:build -install_name /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Python \ :info:build -compatibility_version 2.6 \ :info:build -current_version 2.6; \ :info:build else \ :info:build /usr/bin/libtool -o Python.framework/Versions/2.6/Python -dynamic libpython2.6.a \ :info:build -lSystem -lSystemStubs -arch_only x86_64 -install_name /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Python -compatibility_version 2.6 -current_version 2.6 ;\ :info:build fi :info:build /usr/bin/libtool: for architecture x86_64 object: /usr/lib/libSystem.dylib malformed object (unknown load command 8) :info:build /usr/bin/libtool: for architecture: (null) file: -lSystem is not an object file (not allowed in a library) :info:build /usr/bin/libtool: for architecture i386 object: /usr/lib/libSystem.dylib malformed object (unknown load command 8) :info:build make: *** [Python.framework/Versions/2.6/Python] Error 1 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/python26/work/Python-2.6.7' :info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/python26/work/Python-2.6.7" && /usr/bin/make -j2 -w all MAKE="/usr/bin/make CC=/usr/bin/gcc-4.2" " returned error 2 :error:build Target org.macports.build returned: shell command failed (see log for details) :debug:build Backtrace: shell command failed (see log for details) while executing "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" :info:build Warning: the following items did not execute (for python26): org.macports.install org.macports.build org.macports.destroot :notice:build Log for python26 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/python26/main.log }}} -- Comment: Please use WikiFormatting, fill in the Port and Cc fields. -- Ticket URL: <https://trac.macports.org/ticket/30369#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30369: can't build python26 on Mac OS X Lion ------------------------------+--------------------------------------------- Reporter: jiri@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: | Port: python26 ------------------------------+--------------------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) Comment: Why gcc-4.2? The default on Lion is llvm-gcc-4.2. Why does libtool think your system library is malformed? These two facts suggest you're trying to use a version of Xcode designed for Snow Leopard. What version of Xcode do you have installed? Ensure it's one designed for Lion. You can get the correct version of Xcode for Lion for free on the Mac App Store. -- Ticket URL: <https://trac.macports.org/ticket/30369#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30369: can't build python26 on Mac OS X Lion ------------------------------+--------------------------------------------- Reporter: jiri@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: | Port: python26 ------------------------------+--------------------------------------------- Comment(by jiri@…): Replying to [comment:2 ryandesign@…]:
Why gcc-4.2? The default on Lion is llvm-gcc-4.2. Why does libtool think your system library is malformed? These two facts suggest you're trying to use a version of Xcode designed for Snow Leopard. What version of Xcode do you have installed? Ensure it's one designed for Lion. You can get the correct version of Xcode for Lion for free on the Mac App Store.
[JN]: I was going to run {{{ sudo port -d selfupdate && sudo port upgrade outdated }}} after upgrade to Lion and after Xcode upgrade. I followed URL to latest version of Xcode http://developer.apple.com/technology/xcode.html from http://guide.macports.org/#installing.xcode and installed Xcode 3.2.2 I didn't noticed, that there is also 4.1 version. Thank you for your comment. I'm downloading 4.1 and will confirm result ASAP -- Ticket URL: <https://trac.macports.org/ticket/30369#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30369: can't build python26 on Mac OS X Lion -------------------------------+-------------------------------------------- Reporter: jiri@… | Owner: mcalhoun@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Resolution: invalid | Keywords: Port: python26 | -------------------------------+-------------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => invalid Comment: Xcode 3.2.x is for Snow Leopard. Xcode 4.1+ is for Lion. -- Ticket URL: <https://trac.macports.org/ticket/30369#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30369: can't build python26 on Mac OS X Lion -------------------------------+-------------------------------------------- Reporter: jiri@… | Owner: mcalhoun@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Resolution: invalid | Keywords: Port: python26 | -------------------------------+-------------------------------------------- Comment(by jiri@…): Shall I create ticket for http://guide.macports.org/#installing.xcode to be updated? -- Ticket URL: <https://trac.macports.org/ticket/30369#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30369: can't build python26 on Mac OS X Lion -------------------------------+-------------------------------------------- Reporter: jiri@… | Owner: mcalhoun@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Resolution: | Keywords: Port: python26 | -------------------------------+-------------------------------------------- Changes (by jiri@…): * status: closed => reopened * resolution: invalid => Comment: I installed Xcode 4.1, but still can't compile python26 I moved previous Developer-old o trash What I have to do to use new Xcode 4.1? I see gcc i686-apple-darwin11-llvm-gcc-4.2: no input files Computing dependencies for python26 ---> Building python26 Error: Target org.macports.build returned: shell command failed (see log for details) Log for python26 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/python26/main.log Error: Unable to upgrade port: 1 ...skipping...rsync.macports.org_release_ports_lang_python26/python26/main.log :info:build /usr/bin/libtool: file: -lSystemStubs is not an object file (not all owed in a library) :info:build make: *** [Python.framework/Versions/2.6/Python] Error 1 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_va r_macports_sources_rsync.macports.org_release_ports_lang_python26/python26/work/ Python-2.6.7' :info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_mac ports_sources_rsync.macports.org_release_ports_lang_python26/python26/work/Pytho n-2.6.7" && /usr/bin/make -j2 -w all MAKE="/usr/bin/make CC=/Developer/usr/bin/l lvm-gcc-4.2" " returned error 2 :error:build Target org.macports.build returned: shell command failed (see log f or details) :debug:build Backtrace: shell command failed (see log for details) while executing "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" :info:build Warning: the following items did not execute (for python26): org.mac ports.install org.macports.build org.macports.destroot :notice:build Log for python26 is at: /opt/local/var/macports/logs/_opt_local_va r_macports_sources_rsync.macports.org_release_ports_lang_python26/python26/main. log Thank you very much -- Ticket URL: <https://trac.macports.org/ticket/30369#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30369: can't build python26 on Mac OS X Lion -------------------------------+-------------------------------------------- Reporter: jiri@… | Owner: mcalhoun@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Resolution: | Keywords: Port: python26 | -------------------------------+-------------------------------------------- Comment(by ryandesign@…): Replying to [comment:5 jiri@…]:
Shall I create ticket for http://guide.macports.org/#installing.xcode to be updated?
The guide has now been updated. -- Ticket URL: <https://trac.macports.org/ticket/30369#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30369: can't build python26 on Mac OS X Lion -------------------------------+-------------------------------------------- Reporter: jiri@… | Owner: mcalhoun@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Resolution: | Keywords: Port: python26 | -------------------------------+-------------------------------------------- Comment(by ryandesign@…): Replying to [comment:6 jiri@…]:
I installed Xcode 4.1, but still can't compile python26
Clean and try again? {{{ sudu port clean python26 }}} -- Ticket URL: <https://trac.macports.org/ticket/30369#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30369: can't build python26 on Mac OS X Lion -------------------------------+-------------------------------------------- Reporter: jiri@… | Owner: mcalhoun@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Resolution: | Keywords: Port: python26 | -------------------------------+-------------------------------------------- Comment(by jiri@…): Yes, that's the step I needed. Thank you very much. Solved -- Ticket URL: <https://trac.macports.org/ticket/30369#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30369: can't build python26 on Mac OS X Lion -------------------------------+-------------------------------------------- Reporter: jiri@… | Owner: mcalhoun@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Resolution: invalid | Keywords: Port: python26 | -------------------------------+-------------------------------------------- Changes (by ryandesign@…): * status: reopened => closed * resolution: => invalid -- Ticket URL: <https://trac.macports.org/ticket/30369#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts