#47727 closed defect (worksforme)
glib2 configure hangs
Reported by: | bruce@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | glib2 |
Description
glib2 hangs indefinitely in the configure stage.
bash-3.2# time port upgrade outdated ---> Computing dependencies for glib2 ---> Configuring glib2 ^C real 123m6.002s user 0m0.933s sys 0m0.387s bash-3.2#
OS X 10.10.3, no /sw install.
I fired up this upgrade command again and tried this:
bash-3.2# ps auxwww | grep ^macports macports 92910 0.0 0.0 2444636 1060 s005 S+ 1:42pm 0:00.06 sh -c cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.44.1" && ./configure --prefix=/opt/local --disable-dependency-tracking --enable-static --disable-libelf --disable-compile-warnings --disable-dtrace macports 92901 0.0 0.4 2517328 35916 s005 S+ 1:42pm 0:01.11 /opt/local/libexec/macports/bin/tclsh8.5 /opt/local/bin/port upgrade outdated macports 80418 0.0 0.0 2655568 428 ?? SN Fri09am 0:05.10 /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdworker -s mdworker-bundle -c MDSImporterBundleFinder -m com.apple.mdworker.bundles macports 7745 0.0 0.0 2471272 512 ?? S 6May15 0:02.06 /usr/sbin/cfprefsd agent macports 93049 0.0 0.3 2585312 27060 s005 S+ 1:42pm 0:00.38 /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk -find make macports 93048 0.0 0.0 2433368 856 s005 S+ 1:42pm 0:00.00 sh -c /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk '' -find make 2> /dev/null macports 93047 0.0 0.0 2443068 640 s005 S+ 1:42pm 0:00.00 make -f conftest.make macports 93046 0.0 0.0 2452828 688 s005 S+ 1:42pm 0:00.00 /bin/sh ./configure --prefix=/opt/local --disable-dependency-tracking --enable-static --disable-libelf --disable-compile-warnings --disable-dtrace macports 92911 0.0 0.0 2452828 1440 s005 S+ 1:42pm 0:00.05 /bin/sh ./configure --prefix=/opt/local --disable-dependency-tracking --enable-static --disable-libelf --disable-compile-warnings --disable-dtrace
Change History (9)
comment:1 Changed 9 years ago by dbevans (David B. Evans)
Keywords: | glib2 configure hang removed |
---|---|
Owner: | changed from macports-tickets@… to ryandesign@… |
Version: | 2.3.3 |
comment:2 follow-up: 3 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
How long did you wait?
The transcript you showed above is not from a clean attempt. Please clean and try again.
comment:3 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to ryandesign@…:
How long did you wait?
Oh, sorry, I see you waited over 2 hours. Yes, that's excessive. Something must be going wrong. Try with the debug flag; see if anything interesting is printed when it hangs.
sudo port clean glib2 sudo port -d upgrade glib2
comment:4 Changed 9 years ago by bruce@…
Okay I cleaned and debugged as you suggested, the last chunk of output (before it hangs again) looks like so:
---> Configuring glib2 DEBUG: Using compiler 'Xcode Clang' DEBUG: Executing proc-pre-org.macports.configure-configure-0 DEBUG: Executing proc-pre-org.macports.configure-configure-1 DEBUG: Executing org.macports.configure (glib2) DEBUG: Environment: CC='/usr/bin/clang' CC_PRINT_OPTIONS='YES' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/.CC_PRINT_OPTIONS' CFLAGS='-pipe -Os -fstrict-aliasing -arch x86_64 -arch i386' CPATH='/opt/local/include' CPPFLAGS='-I/opt/local/include' CXX='/usr/bin/clang++' CXXFLAGS='-pipe -Os -arch x86_64 -arch i386 -stdlib=libc++' F90FLAGS='-pipe -Os' FCFLAGS='-pipe -Os' FFLAGS='-pipe -Os' INSTALL='/usr/bin/install -c' LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -lresolv -bind_at_load -arch x86_64 -arch i386' LIBFFI_CFLAGS='-I/opt/local/lib/libffi-3.2.1/include' LIBFFI_LIBS='-L/opt/local/lib -lffi' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.10' OBJC='/usr/bin/clang' OBJCFLAGS='-pipe -Os -arch x86_64 -arch i386' OBJCXX='/usr/bin/clang++' OBJCXXFLAGS='-pipe -Os -arch x86_64 -arch i386 -stdlib=libc++' PERL='/opt/local/bin/perl' PERL_PATH='/opt/local/bin/perl' PKG_CONFIG='false' PYTHON='/usr/bin/python' ZLIB_CFLAGS='-I/opt/local/include' ZLIB_LIBS='-L/opt/local/lib -lz' DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.44.1" && ./configure --prefix=/opt/local --disable-dependency-tracking --enable-static --disable-libelf --disable-compile-warnings --disable-dtrace' DEBUG: Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.44.1" && ./configure --prefix=/opt/local --disable-dependency-tracking --enable-static --disable-libelf --disable-compile-warnings --disable-dtrace checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p checking for gawk... gawk
I notice the terminal window name is 'xcodebuild' and there are a pair of xcodebuild processes running, as in the process list I sent before. Whatever is happening, it isn't using any significant amount of CPU time. I'm idling along at about 2.5%.
I'll try a reboot in a few hours and see if that makes any difference, this must be something just messed up on my computer.
comment:5 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Just to check the obvious...
- are you running the latest Xcode, 6.3.1?
- are you running the corresponding version of the Xcode command line tools?
- have you opened Xcode.app at least once since upgrading it?
- have you agreed to the Xcode license agreement?
comment:6 Changed 9 years ago by bruce@…
Xcode 6.3.1, current command line tools, I can run Xcode.app fine, and Xcode.app and xcode-select don't prompt me with a license agreement.
Still haven't rebooted, will report back after trying that.
comment:7 Changed 9 years ago by bruce@…
Rebooted this morning.
port selfupdate port upgrade outdated
Everything built fine. No idea what the problem was, but it certainly looks like something wonky with my computer and/or environment.
Thanks for the help!
comment:8 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Ok, glad that worked.
comment:9 Changed 9 years ago by newsoft@…
I got the same problem today while updating packages. My system: OS 10.10.3, XCode 6.3.2, SDK 10.9 and 10.10 installed.
$ which cc /usr/bin/cc $ which gcc /opt/local/bin/gcc
"cc" is a symlink to "/usr/bin/gcc", which is actually Apple LLVM:
$ /usr/bin/gcc -v Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn) Target: x86_64-apple-darwin14.3.0 Thread model: posix
I replaced the original "cc" symlink by a symlink to "/opt/local/bin/gcc" and it worked.
In the future, please CC the port maintainer for faster service. In this case