Opened 14 years ago

Closed 13 years ago

#28349 closed defect (worksforme)

python27: destroot failure in installmacsubtree

Reported by: mintshows@… Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: python27

Description (last modified by mf2k (Frank Schima))

I'm trying to install ImageMagick and when compiling python27, I'm getting the following

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"
Creating directory /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.7.1:  ../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
make[1]: *** [installmacsubtree] Segmentation fault
make: *** [frameworkinstallmaclib] Error 2
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/Python-2.7.1" && /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
Error: Target org.macports.destroot returned: shell command failed (see log for details)
DEBUG: Backtrace: shell command failed (see log for details)
    while executing
"command_exec destroot"
    (procedure "portdestroot::destroot_main" line 2)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for python27): org.macports.activate org.macports.destroot org.macports.install
Log for python27 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Attachments (3)

main.log.gz (44.2 KB) - added by mintshows@… 14 years ago.
main.log
python.exe_2011-02-10-220454_localhost.crash (23.7 KB) - added by mintshows@… 14 years ago.
Python Crash Log
xcodebuild_2011-02-10-220236_localhost.crash (22.7 KB) - added by mintshows@… 14 years ago.
xcodebuild crash file

Download all attachments as: .zip

Change History (13)

Changed 14 years ago by mintshows@…

Attachment: main.log.gz added

main.log

comment:1 Changed 14 years ago by mintshows@…

The command that the build is failing on is:

:info:destroot shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/Python-2.7.1" && /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

So, I tried running that command manually and got the following:

ml965984-mac:~ jmshows$ sudo cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/Python-2.7.1" && /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 
Password:
make: *** No rule to make target `frameworkinstall'.  Stop.
ml965984-mac:~ jmshows$ 

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

Description: modified (diff)
Keywords: python27 removed
Owner: changed from macports-tickets@… to jwa@…

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

Could you attach the crash log please?

comment:4 Changed 14 years ago by mintshows@…

I've got the main.log attached. Where's the crash log?

Changed 14 years ago by mintshows@…

Python Crash Log

Changed 14 years ago by mintshows@…

xcodebuild crash file

comment:5 Changed 14 years ago by mintshows@…

I have no idea what was going on here, but I finally just restarted my computer and tried again. This time it worked. This ticket can be closed. Sorry for taking your time, but thanks!

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

Nearly the same thing happening for me. But instead of getting a segfault I'm getting this very strange message:

DYLD_FRAMEWORK_PATH=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/Python-2.7.1: arch -ppc -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
You need the Rosetta software to run python.exe. The Rosetta installer is in Optional Installs on your Mac OS X installation disc.
make[1]: *** [installmacsubtree] Error 2
make: *** [frameworkinstallmaclib] Error 2
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/Python-2.7.1" && /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
Error: Target org.macports.destroot returned: shell command failed (see log for details)
DEBUG: Backtrace: shell command failed (see log for details)
    while executing
"command_exec destroot"
    (procedure "portdestroot::destroot_main" line 2)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for python27): org.macports.activate org.macports.destroot org.macports.install
Error: Failed to install python27
Log for python27 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/main.log
Error: The following dependencies were not installed: python27 rsync popt
Error: Status 1 encountered during processing.

Rosetta? python.exe? WTF is going on? I'm attempting to install the universal variant. Macports.conf has i386 and x86_64 for the universal archs... don't know where the ppc is coming from.

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

I get the same error as mintshows if I try to manually run the failing line

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

Strangely, I installed python27 using "-universal" then tried installing git-core (with +universal) – that recompiled python27 (with +universal) appears to have worked... Very weird.

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

Summary: Failure to install python27python27: destroot failure in installmacsubtree

comment:10 Changed 13 years ago by jmroot (Joshua Root)

Resolution: worksforme
Status: newclosed

Closing as per comment:5. Later comments are something different and so don't belong in this ticket.

Note: See TracTickets for help on using tickets.