[MacPorts] #45609: Builds hang post upgrading to Yosemite

MacPorts noreply at macports.org
Sat Oct 25 02:52:36 PDT 2014


#45609: Builds hang post upgrading to Yosemite
-----------------------------+--------------------------------
 Reporter:  john+macports@…  |      Owner:  macports-tickets@…
     Type:  defect           |     Status:  new
 Priority:  Normal           |  Milestone:
Component:  ports            |    Version:  2.3.2
 Keywords:                   |       Port:
-----------------------------+--------------------------------
 This is certainly bizarre. Like everyone who couldn't wait I upgraded to
 Yosemite. I then pulled the source and recompiled Macports base. All was
 happy.
 I think tried to update some of the ports and this happens:

 {{{
 # port -d install bzip2
 DEBUG: Copying /Users/XXXX/Library/Preferences/com.apple.dt.Xcode.plist to
 /opt/local/var/macports/home/Library/Preferences
 DEBUG: Changing to port directory:
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/archivers/bzip2
 DEBUG: OS darwin/14.0.0 (Mac OS X 10.10) arch i386
 DEBUG: Reading variant descriptions from
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
 DEBUG: universal variant already exists, so not adding the default one
 DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
 DEBUG: Finished running callback
 portconfigure::add_automatic_compiler_dependencies
 DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
 DEBUG: Finished running callback
 portbuild::add_automatic_buildsystem_dependencies
 DEBUG: changing euid/egid - current euid: 0 - current egid: 0
 DEBUG: egid changed to: 501
 DEBUG: euid changed to: 502
 DEBUG: Starting logging for bzip2
 DEBUG: bzip2 has no conflicts
 DEBUG: Executing org.macports.main (bzip2)
 DEBUG: changing euid/egid - current euid: 0 - current egid: 0
 DEBUG: egid changed to: 501
 DEBUG: euid changed to: 502
 DEBUG: Skipping completed org.macports.archivefetch (bzip2)
 DEBUG: Privilege de-escalation not attempted as not running as root.
 DEBUG: Skipping completed org.macports.fetch (bzip2)
 DEBUG: Privilege de-escalation not attempted as not running as root.
 DEBUG: Skipping completed org.macports.checksum (bzip2)
 DEBUG: Privilege de-escalation not attempted as not running as root.
 DEBUG: Skipping completed org.macports.extract (bzip2)
 DEBUG: Privilege de-escalation not attempted as not running as root.
 DEBUG: Skipping completed org.macports.patch (bzip2)
 DEBUG: Privilege de-escalation not attempted as not running as root.
 DEBUG: Skipping completed org.macports.configure (bzip2)
 DEBUG: Privilege de-escalation not attempted as not running as root.
 DEBUG: build phase started at Sat Oct 25 18:23:03 JST 2014
 --->  Building bzip2
 DEBUG: Executing org.macports.build (bzip2)
 DEBUG: Environment:
 CC_PRINT_OPTIONS='YES'
 CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_bzip2/bzip2/work/.CC_PRINT_OPTIONS'
 CPATH='/opt/local/include'
 LIBRARY_PATH='/opt/local/lib'
 MACOSX_DEPLOYMENT_TARGET='10.10'
 DEBUG: Assembled command: 'cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_bzip2/bzip2/work/bzip2-1.0.6"
 && /usr/bin/make -j4 -w all CC="/usr/bin/clang -arch x86_64"
 PREFIX=/opt/local'
 DEBUG: Executing command line:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_bzip2/bzip2/work/bzip2-1.0.6"
 && /usr/bin/make -j4 -w all CC="/usr/bin/clang -arch x86_64"
 PREFIX=/opt/local
 }}}

 .. and it sits there, doing nothing forever. To trouble shoot this I have:

 1) Removed /opt/local and reinstalled Macports (this time using the
 Yosemite pkg)[[BR]]
 2) Nuked my Xcode preferences and re-agreed, etc.[[BR]]
 3) Run the assembled command by hand (it works fine, the port
 builds)[[BR]]
 4) dtruss'd the hung process, which appears to be make (what..?)

 {{{

 macports        65721   0.0  0.0  2442044    628 s018  S+    6:23PM
 0:00.00 /usr/bin/make -j4 -w all CC=/usr/bin/clang -arch x86_64
 PREFIX=/opt/local
 macports        65720   0.0  0.0  2442588   1024 s018  S+    6:23PM
 0:00.05 sh -c  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_bzip2/bzip2/work/bzip2-1.0.6"
 && /usr/bin/make -j4 -w all CC="/usr/bin/clang -arch x86_64"
 PREFIX=/opt/local

 # dtruss -p 65721
 SYSCALL(args)            = return

 (and nothing)

 }}}

 I've also tried building with a different (new) user to rule out
 environment variables. I this example I've used bzip2, but it happens for
 every port. I'm entertaining all sorts of crazy ideas at this point..

-- 
Ticket URL: <https://trac.macports.org/ticket/45609>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list