Opened 15 years ago

Closed 14 years ago

Last modified 14 years ago

#24420 closed defect (worksforme)

cannot compile python27 +universal on 10.6.3

Reported by: asimmons@… Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), therealdave.myron@…
Port: python27

Description

asimmons-mac:~ asimmons$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.6.3
BuildVersion:	10D573
asimmons-mac:~ asimmons$ sudo port selfupdate
--->  Updating the ports tree
--->  Updating MacPorts base sources using rsync
MacPorts base version 1.8.2 installed,
MacPorts base version 1.8.2 downloaded.
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
asimmons-mac:~ asimmons$ sudo port install python27 +universal
--->  Computing dependencies for python27
--->  Staging python27 into destroot
Error: Target org.macports.destroot returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/Python-2.7a4" && /usr/bin/make frameworkinstall maninstall MAKE="/usr/bin/make CC=/usr/bin/gcc-4.2" DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/destroot " returned error 2
Command output: ln -fs "../../../Python" "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/libpython2.7.dylib"
ln -fs "../Python" "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib"
cd Mac && /usr/bin/make CC=/usr/bin/gcc-4.2 installmacsubtree DESTDIR="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/destroot"
DYLD_FRAMEWORK_PATH=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/Python-2.7a4: arch -i386 ../python.exe ./scripts/cachersrc.py -v /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Mac/Tools
Decoding /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/dialogs.rsrc to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/dialogs.rsrc.df.rsrc
DYLD_FRAMEWORK_PATH=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/Python-2.7a4: ../python.exe -Wi -tt ./../Lib/compileall.py -d /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Mac/Tools -x badsyntax /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Mac/Tools
Listing /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Mac/Tools ...
DYLD_FRAMEWORK_PATH=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/Python-2.7a4: ../python.exe -O -Wi -tt ./../Lib/compileall.py -d /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Mac/Tools -x badsyntax /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Mac/Tools
Listing /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Mac/Tools ...
cd Mac && /usr/bin/make CC=/usr/bin/gcc-4.2 installapps DESTDIR="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/destroot"
/usr/bin/install -c -m 644 ./Resources/app/./Info.plist /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/.
/usr/bin/install -c -m 644 ./Resources/app/./Info.plist.in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/.
/usr/bin/install -c -m 644 ./Resources/app/./PkgInfo /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/.
/usr/bin/install -c -m 644 ./Resources/app/Resources/PythonApplet.icns /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/Resources
/usr/bin/install -c -m 644 ./Resources/app/Resources/PythonInterpreter.icns /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/Resources
/usr/bin/install -c -s ../python.exe "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python"
sed -e "s!%bundleid%!org.python.python!g" \
		-e "s!%version%!`DYLD_FRAMEWORK_PATH=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/Python-2.7a4: ../python.exe \
		-c 'import platform; print(platform.python_version())'`!g" \
		< "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/Info.plist.in" \
		> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/Info.plist"
rm "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/Info.plist.in"
/usr/bin/install -c -s pythonw "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7"
/usr/bin/install -c -s pythonw "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7"
ln -sf python2.7 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python"
ln -sf pythonw2.7 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw"
lipo -extract ppc -extract i386 -output /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-32 pythonw
lipo: -extract ppc specified but fat file: pythonw does not contain that architecture
make[1]: *** [install_pythonw] Error 1
make: *** [frameworkinstallapps] Error 2

Error: Status 1 encountered during processing.
Before reporting a bug, first run the command again with the -d flag to get complete output.
asimmons-mac:~ asimmons$ 

Attachments (1)

macports.python27-universal.txt (1007.9 KB) - added by asimmons@… 15 years ago.
sudo port -d install python27 +universal

Download all attachments as: .zip

Change History (8)

Changed 15 years ago by asimmons@…

sudo port -d install python27 +universal

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to jwa@…

comment:2 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

If you're on 10.6, why are you trying to build universal for ppc and i386? What's your universal_archs set to in macports.conf?

comment:3 Changed 14 years ago by jyrkiwahlstedt

There was anyway a problem with universal builds in python27, now that should be ok, at least for the architectures I have

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

Resolution: worksforme
Status: newclosed

comment:5 Changed 14 years ago by therealdave.myron@…

Still failing for me too. "-universal" works. (My macports.conf file has universal archs of i386 and x86_64).

comment:6 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: therealdave.myron@… added

You should probably file a new ticket and attach the main.log; it builds fine for me, and this ticket is old.

comment:7 Changed 14 years ago by therealdave.myron@…

True. There's another ticket (#28349) that is a similar issue and is newer. I've attached more thorough info there.

Note: See TracTickets for help on using tickets.