Opened 13 years ago
Closed 13 years ago
#30369 closed defect (invalid)
can't build python26 on Mac OS X Lion
Reported by: | jiri@… | Owned by: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.0 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt) | |
Port: | python26 |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
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
Change History (10)
comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Owner: | changed from macports-tickets@… to mcalhoun@… |
Port: | python26 added |
comment:2 follow-up: 3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|
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.
comment:3 Changed 13 years ago by jiri@…
Replying to 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
comment:4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → invalid |
---|---|
Status: | new → closed |
Xcode 3.2.x is for Snow Leopard. Xcode 4.1+ is for Lion.
comment:5 follow-up: 7 Changed 13 years ago by jiri@…
Shall I create ticket for http://guide.macports.org/#installing.xcode to be updated?
comment:6 follow-up: 8 Changed 13 years ago by jiri@…
Resolution: | invalid |
---|---|
Status: | closed → reopened |
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
comment:7 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to jiri@…:
Shall I create ticket for http://guide.macports.org/#installing.xcode to be updated?
The guide has now been updated.
comment:8 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to jiri@…:
I installed Xcode 4.1, but still can't compile python26
Clean and try again?
sudu port clean python26
comment:10 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → invalid |
---|---|
Status: | reopened → closed |
Please use WikiFormatting, fill in the Port and Cc fields.