Opened 9 years ago

Closed 9 years ago

#48276 closed defect (worksforme)

Gimp2 configuration hangs on grep command

Reported by: drew.mirage@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port: gimp2

Description

OS 10.10.4

MacPorts 2.3.3

Xcode 6.4 (6E35b)

gimp2 @2.8.14_3+help_browser+python27

I am attempting to upgrade using port upgrade outdated (and then specifically port upgrade gimp2) and the command hangs. This is the output:

Computer:~ user$ sudo port upgrade gimp2
--->  Computing dependencies for gimp2
--->  Fetching archive for gimp2
--->  Attempting to fetch gimp2-2.8.14_3+help_browser+python27.darwin_14.x86_64.tbz2 from http://packages.macports.org/gimp2
--->  Attempting to fetch gimp2-2.8.14_3+help_browser+python27.darwin_14.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/gimp2
--->  Attempting to fetch gimp2-2.8.14_3+help_browser+python27.darwin_14.x86_64.tbz2 from http://lil.fr.packages.macports.org/gimp2
--->  Fetching distfiles for gimp2
--->  Attempting to fetch gimp-2.8.14.tar.bz2 from http://sea.us.distfiles.macports.org/macports/distfiles/gimp2
--->  Verifying checksums for gimp2                                                  
--->  Extracting gimp2
--->  Applying patches to gimp2
--->  Configuring gimp2

The title bar of the terminal window says that the command currently being executed is 'grep'. Doing a ps auxw | grep grep yields the following two lines:

Computer:~$ sudo ps auxw | grep grep
macports        24920   0.0  0.0  2432772    652 s001  S+    6:11pm   0:00.00 grep reload-state
macports        24918   0.0  0.0  2436444    996 s001  S+    6:11pm   0:00.00 sh -c /usr/bin/m4 --help </dev/null 2>&1 | grep reload-state >/dev/null

There are no issues with upgrading any other outdated ports.

Running port -d upgrade gimp2 shows nothing that looks out of place (no error or warning messages). The last few lines before getting hung are:

I am going to run ./configure with the following arguments:

   --prefix=/opt/local --build=x86_64-apple-darwin14.4.0 --enable-mp --with-pdbgen --with-lcms=2 --with-x --x-includes=/opt/local/include --x-libraries=/opt/local/lib --disable-silent-rules --without-alsa --without-gvfs --without-gudev --without-mac-twain

I left the process running overnight with no change.

The process is not using any appreciable CPU or incrementally using more memory (the top command shows both grep and the sh command that invoked grep to be in a "sleeping" state.

I have cleaned with the --all flag all ports and I have successfully removed and cleaned gimp2 and tried to install fresh with no luck. The install command hangs in the same way as the upgrade command.

One final note - I tried reinstalling the old version of gimp2 (gimp2 @2.8.14_2+help_browser+python27) and encountered the same error.

Any suggestions or recommendations would be appreciated.

Attachments (1)

main.log (4.1 MB) - added by dbevans (David B. Evans) 9 years ago.
Successful Yosemite build log

Change History (9)

comment:1 Changed 9 years ago by drew.mirage@…

Cc: drew.mirage@… added

Cc Me!

comment:2 Changed 9 years ago by dbevans (David B. Evans)

Cc: drew.mirage@… removed
Keywords: configure configuring hang grep reload-state removed
Milestone: MacPorts Future
Owner: changed from macports-tickets@… to devans@…
Status: newassigned

No need to Cc yourself as the reporter is automatically copied.

comment:3 Changed 9 years ago by dbevans (David B. Evans)

I did a rebuild of gimp2 using your configuration and was unable to reproduce your results. My log file is attached.

However, it appears that your problem is, as you stated with the command from your listing

sh -c /usr/bin/m4 --help </dev/null 2>&1 | grep reload-state >/dev/null

I'm assuming that grep is sleeping waiting for output from the m4 command which isn't forthcoming.

Try executing this command by hand and see what happens. Note that this should be considered to be one command executed by sh so some quoting is required.

sh -c '/usr/bin/m4 --help </dev/null 2>&1 | grep reload-state >/dev/null'

On my machine this just returns immediately. If it hangs for you then I would look at the output from m4 and see what's going on there.

BTW, if I remove the output redirection to /dev/null at the end, I get the following result which shows what this test is all about.

$ sh -c '/usr/bin/m4 --help </dev/null 2>&1 | grep reload-state'
  -R, --reload-state=FILE      reload a frozen state from FILE at start
Version 1, edited 9 years ago by dbevans (David B. Evans) (previous) (next) (diff)

comment:4 Changed 9 years ago by dbevans (David B. Evans)

Also what does your ps output say m4 is doing when your build hangs?

Changed 9 years ago by dbevans (David B. Evans)

Attachment: main.log added

Successful Yosemite build log

comment:5 in reply to:  4 Changed 9 years ago by drew.mirage@…

sh -c '/usr/bin/m4 --help </dev/null 2>&1 | grep reload-state >/dev/null'

Returns after a slight (< 2 seconds) delay.

sh -c '/usr/bin/m4 --help </dev/null 2>&1 | grep reload-state'

Returns identically to what you received. I ran both as my normal user as well as using sudo.

ps output for m4 is:

Computer:~ user$ sudo ps auxw | grep m4
macports        27779   0.0  0.3  2584188  26644 s000  S+   10:07am   0:00.41 /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk / -find m4
macports        27778   0.0  0.0  2443612   1020 s000  S+   10:07am   0:00.01 sh -c /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk / -find m4 2> /dev/null
macports        27776   0.0  0.0  2451260    652 s000  S+   10:07am   0:00.00 /usr/bin/m4 --help
macports        27775   0.0  0.0  2452828   1012 s000  S+   10:07am   0:00.01 sh -c /usr/bin/m4 --help </dev/null 2>&1 | grep reload-state >/dev/null
macports        27764   0.0  0.1  2461948   8652 s000  S+   10:07am   0:00.12 /usr/bin/perl -w /opt/local/bin/autom4te --language Autoconf-without-aclocal-m4 - /opt/local/share/aclocal-1.15/internal/ac-config-macro-dirs.m4 /opt/local/share/aclocal/glib-2.0.m4 /opt/local/share/aclocal/glib-gettext.m4 /opt/local/share/aclocal/gtk-2.0.m4 /opt/local/share/aclocal/gtk-doc.m4 /opt/local/share/aclocal/intltool.m4 /opt/local/share/aclocal/libtool.m4 /opt/local/share/aclocal/ltargz.m4 /opt/local/share/aclocal/ltdl.m4 /opt/local/share/aclocal/ltoptions.m4 /opt/local/share/aclocal/ltsugar.m4 /opt/local/share/aclocal/ltversion.m4 /opt/local/share/aclocal/lt~obsolete.m4 /opt/local/share/aclocal/nls.m4 /opt/local/share/aclocal/pkg.m4 /opt/local/share/aclocal-1.15/amversion.m4 /opt/local/share/aclocal-1.15/as.m4 /opt/local/share/aclocal-1.15/auxdir.m4 /opt/local/share/aclocal-1.15/cond.m4 /opt/local/share/aclocal-1.15/depend.m4 /opt/local/share/aclocal-1.15/depout.m4 /opt/local/share/aclocal-1.15/init.m4 /opt/local/share/aclocal-1.15/install-sh.m4 /opt/local/share/aclocal-1.15/lead-dot.m4 /opt/local/share/aclocal-1.15/maintainer.m4 /opt/local/share/aclocal-1.15/make.m4 /opt/local/share/aclocal-1.15/missing.m4 /opt/local/share/aclocal-1.15/options.m4 /opt/local/share/aclocal-1.15/prog-cc-c-o.m4 /opt/local/share/aclocal-1.15/runlog.m4 /opt/local/share/aclocal-1.15/sanity.m4 /opt/local/share/aclocal-1.15/silent.m4 /opt/local/share/aclocal-1.15/strip.m4 /opt/local/share/aclocal-1.15/substnot.m4 /opt/local/share/aclocal-1.15/tar.m4 acinclude.m4 --trace=AC_DEFUN:$f::$n::${::}% --trace=AC_DEFUN_ONCE:$f::$n::${::}% --trace=AU_DEFUN:$f::$n::${::}% --trace=_AM_AUTOCONF_VERSION:$f::$n::${::}% --trace=AC_CONFIG_MACRO_DIR_TRACE:$f::$n::${::}% --trace=AC_CONFIG_MACRO_DIR:$f::$n::${::}% --trace=_AM_CONFIG_MACRO_DIRS:$f::$n::${::}% --trace=AC_LTDL_SYSSEARCHPATH:$f::$n --trace=AM_AUTOMAKE_VERSION:$f::$n --trace=AM_DISABLE_STATIC:$f::$n --trace=LTOPTIONS_VERSION:$f::$n --trace=_LT_AC_CHECK_DLFCN:$f::$n --trace=LT_CMD_MAX_LEN:$f::$n --trace=PKG_NOARCH_INSTALLDIR:$f::$n --trace=_LT_AC_FILE_LTDLL_C:$f::$n --trace=AC_LIBTOOL_LANG_RC_CONFIG:$f::$n --trace=AC_LIBTOOL_LANG_GCJ_CONFIG:$f::$n --trace=_LT_AC_SYS_COMPILER:$f::$n --trace=AM_MAKE_INCLUDE:$f::$n --trace=_LT_AC_SYS_LIBPATH_AIX:$f::$n --trace=PKG_INSTALLDIR:$f::$n --trace=LT_AC_PROG_GCJ:$f::$n --trace=LTSUGAR_VERSION:$f::$n --trace=_LT_PROG_ECHO_BACKSLASH:$f::$n --trace=AC_LTDL_ENABLE_INSTALL:$f::$n --trace=_LT_PREPARE_SED_QUOTE_VARS:$f::$n --trace=AM_PATH_ALSA:$f::$n --trace=_AM_SET_OPTION:$f::$n --trace=AM_PROG_AS:$f::$n --trace=_LT_AC_LANG_CXX_CONFIG:$f::$n --trace=_LTDL_SETUP:$f::$n --trace=AC_LIBTOOL_F77:$f::$n --trace=AC_LIB_LTDL:$f::$n --trace=AC_LIBTOOL_LANG_CXX_CONFIG:$f::$n --trace=AC_LIBTOOL_WIN32_DLL:$f::$n --trace=_LT_PATH_TOOL_PREFIX:$f::$n --trace=_LT_AC_LANG_CXX:$f::$n --trace=AC_LIBTOOL_PICMODE:$f::$n --trace=AM_AUX_DIR_EXPAND:$f::$n --trace=LT_PROG_GCJ:$f::$n --trace=LT_CONFIG_LTDL_DIR:$f::$n --trace=LT_OUTPUT:$f::$n --trace=IT_PROG_INTLTOOL:$f::$n --trace=_LT_LIBOBJ:$f::$n --trace=_LT_PROG_CXX:$f::$n --trace=AM_PROG_NM:$f::$n --trace=AC_ENABLE_SHARED:$f::$n --trace=IT_PO_SUBDIR:$f::$n --trace=_LT_AC_LANG_F77_CONFIG:$f::$n --trace=_LT_AC_LANG_C_CONFIG:$f::$n --trace=AC_LIBLTDL_CONVENIENCE:$f::$n --trace=_AM_MANGLE_OPTION:$f::$n --trace=AM_PATH_GLIB_2_0:$f::$n --trace=AC_LIBLTDL_INSTALLABLE:$f::$n --trace=AC_LIBTOOL_PROG_COMPILER_NO_RTTI:$f::$n --trace=LT_INIT:$f::$n --trace=LT_PATH_NM:$f::$n --trace=AC_DISABLE_SHARED:$f::$n --trace=LT_WITH_LTDL:$f::$n --trace=AC_LIBTOOL_DLOPEN:$f::$n --trace=AM_SANITY_CHECK:$f::$n --trace=AC_PROG_LD:$f::$n --trace=_LT_AC_PROG_CXXCPP:$f::$n --trace=LTVERSION_VERSION:$f::$n --trace=_LT_AC_LOCK:$f::$n --trace=LTOBSOLETE_VERSION:$f::$n --trace=AM_SET_CURRENT_AUTOMAKE_VERSION:$f::$n --trace=AC_PROG_INTLTOOL:$f::$n --trace=AM_INIT_AUTOMAKE:$f::$n --trace=LT_SYS_MODULE_EXT:$f::$n --trace=LT_LIB_DLLOAD:$f::$n --trace=AM_SET_DEPDIR:$f::$n --trace=AC_LIBTOOL_DLOPEN_SELF:$f::$n --trace=AC_LTDL_SHLIBPATH:$f::$n --trace=_LT_AC_LANG_GCJ_CONFIG:$f::$n --trace=AC_PROG_LIBTOOL:$f::$n --trace=AC_LIBTOOL_RC:$f::$n --trace=AM_OUTPUT_DEPENDENCY_COMMANDS:$f::$n --trace=AM_MAINTAINER_MODE:$f::$n --trace=LTDL_CONVENIENCE:$f::$n --trace=LTDL_INIT:$f::$n --trace=AC_PROG_LD_GNU:$f::$n --trace=AM_ENABLE_SHARED:$f::$n --trace=PKG_CHECK_MODULES:$f::$n --trace=AC_LIBTOOL_LINKER_OPTION:$f::$n --trace=AC_PATH_MAGIC:$f::$n --trace=_AM_PROG_CC_C_O:$f::$n --trace=AM_CONDITIONAL:$f::$n --trace=AM_DISABLE_SHARED:$f::$n --trace=AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE:$f::$n --trace=_AM_DEPENDENCIES:$f::$n --trace=AC_LIBTOOL_SYS_MAX_CMD_LEN:$f::$n --trace=AC_LIBTOOL_POSTDEP_PREDEP:$f::$n --trace=AC_DEPLIBS_CHECK_METHOD:$f::$n --trace=AM_GLIB_GNU_GETTEXT:$f::$n --trace=AC_LIBTOOL_SYS_DYNAMIC_LINKER:$f::$n --trace=_LT_WITH_SYSROOT:$f::$n --trace=_AC_PROG_LIBTOOL:$f::$n --trace=AM_BINRELOC:$f::$n --trace=_AM_OUTPUT_DEPENDENCY_COMMANDS:$f::$n --trace=AC_LTDL_SHLIBEXT:$f::$n --trace=AC_DISABLE_FAST_INSTALL:$f::$n --trace=AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH:$f::$n --trace=AC_LIBTOOL_CONFIG:$f::$n --trace=_LT_AC_TAGVAR:$f::$n --trace=_AM_IF_OPTION:$f::$n --trace=LT_PROG_RC:$f::$n --trace=LT_PROG_GO:$f::$n --trace=AM_MISSING_PROG:$f::$n --trace=AC_ENABLE_STATIC:$f::$n --trace=LT_SYS_MODULE_PATH:$f::$n --trace=_LT_COMPILER_OPTION:$f::$n --trace=LT_SYS_DLOPEN_SELF:$f::$n --trace=LT_SUPPORTED_TAG:$f::$n --trace=AC_LIBTOOL_SYS_LIB_STRIP:$f::$n --trace=LT_FUNC_DLSYM_USCORE:$f::$n --trace=AC_LIBTOOL_SETUP:$f::$n --trace=AC_LIBTOOL_LANG_C_CONFIG:$f::$n --trace=_LT_PROG_LTMAIN:$f::$n --trace=_LT_AC_LANG_GCJ:$f::$n --trace=_AC_AM_CONFIG_HEADER_HOOK:$f::$n --trace=AM_PATH_PYTHON2:$f::$n --trace=AM_PATH_GTK_2_0:$f::$n --trace=AC_LIBTOOL_OBJDIR:$f::$n --trace=AC_LIBTOOL_LANG_F77_CONFIG:$f::$n --trace=AC_LTDL_SYS_DLOPEN_DEPLIBS:$f::$n --trace=AC_LIBTOOL_CXX:$f::$n --trace=AC_LTDL_DLSYM_USCORE:$f::$n --trace=AM_PROG_INSTALL_SH:$f::$n --trace=AC_LIBTOOL_FC:$f::$n --trace=_LT_AC_LANG_F77:$f::$n --trace=PKG_PROG_PKG_CONFIG:$f::$n --trace=_AM_SUBST_NOTMAKE:$f::$n --trace=AM_DEP_TRACK:$f::$n --trace=AC_DISABLE_STATIC:$f::$n --trace=AM_PATH_GIMPPRINT:$f::$n --trace=PKG_CHECK_VAR:$f::$n --trace=LT_PATH_LD:$f::$n --trace=AM_PYTHON2_CHECK_VERSION:$f::$n --trace=AC_PROG_LD_RELOAD_FLAG:$f::$n --trace=LTDL_INSTALLABLE:$f::$n --trace=AC_ENABLE_FAST_INSTALL:$f::$n --trace=_LT_LINKER_BOILERPLATE:$f::$n --trace=AC_LTDL_PREOPEN:$f::$n --trace=AM_PROG_LD:$f::$n --trace=AC_PROG_NM:$f::$n --trace=AM_SUBST_NOTMAKE:$f::$n --trace=_LT_DLL_DEF_P:$f::$n --trace=AM_SILENT_RULES:$f::$n --trace=_LT_AC_LANG_RC_CONFIG:$f::$n --trace=PKG_CHECK_EXISTS:$f::$n --trace=LT_AC_PROG_RC:$f::$n --trace=AC_WITH_LTDL:$f::$n --trace=LT_SYS_DLOPEN_DEPLIBS:$f::$n --trace=_IT_SUBST:$f::$n --trace=AM_RUN_LOG:$f::$n --trace=_LT_AC_TRY_DLOPEN_SELF:$f::$n --trace=LT_AC_PROG_SED:$f::$n --trace=_AM_SET_OPTIONS:$f::$n --trace=GTK_DOC_CHECK:$f::$n --trace=AC_LIBTOOL_COMPILER_OPTION:$f::$n --trace=LT_SYS_DLSEARCH_PATH:$f::$n --trace=_LT_CC_BASENAME:$f::$n --trace=AM_CHECK_PYTHON_HEADERS:$f::$n --trace=AC_LIBTOOL_SYS_OLD_ARCHIVE:$f::$n --trace=LT_AC_PROG_EGREP:$f::$n --trace=AC_CHECK_LIBM:$f::$n --trace=AM_NLS:$f::$n --trace=_PKG_SHORT_ERRORS_SUPPORTED:$f::$n --trace=AM_SET_LEADING_DOT:$f::$n --trace=AM_PROG_CC_C_O:$f::$n --trace=GIMP_DETECT_CFLAGS:$f::$n --trace=LT_FUNC_ARGZ:$f::$n --trace=AC_LIBTOOL_PROG_COMPILER_PIC:$f::$n --trace=AC_LIBTOOL_SYS_HARD_LINK_LOCKS:$f::$n --trace=AM_PROG_INSTALL_STRIP:$f::$n --trace=AM_ENABLE_STATIC:$f::$n --trace=_LT_PROG_FC:$f::$n --trace=_LT_PROG_F77:$f::$n --trace=_AM_PROG_TAR:$f::$n --trace=_LT_AC_SHELL_INIT:$f::$n --trace=AM_GLIB_DEFINE_LOCALEDIR:$f::$n --trace=AC_PROG_EGREP:$f::$n --trace=AC_LTDL_SYMBOL_USCORE:$f::$n --trace=AC_PATH_TOOL_PREFIX:$f::$n --trace=AC_LIBTOOL_PROG_CC_C_O:$f::$n --trace=AM_MISSING_HAS_RUN:$f::$n --trace=LT_LIB_M:$f::$n --trace=_LT_LINKER_OPTION:$f::$n --trace=AC_LIBTOOL_GCJ:$f::$n --trace=LT_SYS_SYMBOL_USCORE:$f::$n --trace=_LT_COMPILER_BOILERPLATE:$f::$n --trace=GLIB_RUN_PROG:$f::$n --trace=_LT_AC_PROG_ECHO_BACKSLASH:$f::$n --trace=_LT_AC_TAGCONFIG:$f::$n --trace=LT_LANG:$f::$n --trace=AC_LIBTOOL_PROG_LD_SHLIBS:$f::$n --trace=AC_LTDL_OBJDIR:$f::$n --trace=AC_LTDL_DLLIB:$f::$n --trace=_LT_REQUIRED_DARWIN_CHECKS:$f::$n --trace=AM_PROG_LIBTOOL:$f::$n configure.ac
macports        27762   0.0  0.0  2444636   1120 s000  S+   10:07am   0:00.01 sh -c echo 'm4_define([m4_require_silent_probe], [-])' | autom4te --language Autoconf-without-aclocal-m4  - /opt/local/share/aclocal-1.15/internal/ac-config-macro-dirs.m4 '/opt/local/share/aclocal/glib-2.0.m4' '/opt/local/share/aclocal/glib-gettext.m4' '/opt/local/share/aclocal/gtk-2.0.m4' '/opt/local/share/aclocal/gtk-doc.m4' '/opt/local/share/aclocal/intltool.m4' '/opt/local/share/aclocal/libtool.m4' '/opt/local/share/aclocal/ltargz.m4' '/opt/local/share/aclocal/ltdl.m4' '/opt/local/share/aclocal/ltoptions.m4' '/opt/local/share/aclocal/ltsugar.m4' '/opt/local/share/aclocal/ltversion.m4' '/opt/local/share/aclocal/lt~obsolete.m4' '/opt/local/share/aclocal/nls.m4' '/opt/local/share/aclocal/pkg.m4' '/opt/local/share/aclocal-1.15/amversion.m4' '/opt/local/share/aclocal-1.15/as.m4' '/opt/local/share/aclocal-1.15/auxdir.m4' '/opt/local/share/aclocal-1.15/cond.m4' '/opt/local/share/aclocal-1.15/depend.m4' '/opt/local/share/aclocal-1.15/depout.m4' '/opt/local/share/aclocal-1.15/init.m4' '/opt/local/share/aclocal-1.15/install-sh.m4' '/opt/local/share/aclocal-1.15/lead-dot.m4' '/opt/local/share/aclocal-1.15/maintainer.m4' '/opt/local/share/aclocal-1.15/make.m4' '/opt/local/share/aclocal-1.15/missing.m4' '/opt/local/share/aclocal-1.15/options.m4' '/opt/local/share/aclocal-1.15/prog-cc-c-o.m4' '/opt/local/share/aclocal-1.15/runlog.m4' '/opt/local/share/aclocal-1.15/sanity.m4' '/opt/local/share/aclocal-1.15/silent.m4' '/opt/local/share/aclocal-1.15/strip.m4' '/opt/local/share/aclocal-1.15/substnot.m4' '/opt/local/share/aclocal-1.15/tar.m4' 'acinclude.m4' --trace='AC_DEFUN:$f::$n::${::}%' --trace='AC_DEFUN_ONCE:$f::$n::${::}%' --trace='AU_DEFUN:$f::$n::${::}%' --trace='_AM_AUTOCONF_VERSION:$f::$n::${::}%' --trace='AC_CONFIG_MACRO_DIR_TRACE:$f::$n::${::}%' --trace='AC_CONFIG_MACRO_DIR:$f::$n::${::}%' --trace='_AM_CONFIG_MACRO_DIRS:$f::$n::${::}%' --trace='AC_LTDL_SYSSEARCHPATH:$f::$n' --trace='AM_AUTOMAKE_VERSION:$f::$n' --trace='AM_DISABLE_STATIC:$f::$n' --trace='LTOPTIONS_VERSION:$f::$n' --trace='_LT_AC_CHECK_DLFCN:$f::$n' --trace='LT_CMD_MAX_LEN:$f::$n' --trace='PKG_NOARCH_INSTALLDIR:$f::$n' --trace='_LT_AC_FILE_LTDLL_C:$f::$n' --trace='AC_LIBTOOL_LANG_RC_CONFIG:$f::$n' --trace='AC_LIBTOOL_LANG_GCJ_CONFIG:$f::$n' --trace='_LT_AC_SYS_COMPILER:$f::$n' --trace='AM_MAKE_INCLUDE:$f::$n' --trace='_LT_AC_SYS_LIBPATH_AIX:$f::$n' --trace='PKG_INSTALLDIR:$f::$n' --trace='LT_AC_PROG_GCJ:$f::$n' --trace='LTSUGAR_VERSION:$f::$n' --trace='_LT_PROG_ECHO_BACKSLASH:$f::$n' --trace='AC_LTDL_ENABLE_INSTALL:$f::$n' --trace='_LT_PREPARE_SED_QUOTE_VARS:$f::$n' --trace='AM_PATH_ALSA:$f::$n' --trace='_AM_SET_OPTION:$f::$n' --trace='AM_PROG_AS:$f::$n' --trace='_LT_AC_LANG_CXX_CONFIG:$f::$n' --trace='_LTDL_SETUP:$f::$n' --trace='AC_LIBTOOL_F77:$f::$n' --trace='AC_LIB_LTDL:$f::$n' --trace='AC_LIBTOOL_LANG_CXX_CONFIG:$f::$n' --trace='AC_LIBTOOL_WIN32_DLL:$f::$n' --trace='_LT_PATH_TOOL_PREFIX:$f::$n' --trace='_LT_AC_LANG_CXX:$f::$n' --trace='AC_LIBTOOL_PICMODE:$f::$n' --trace='AM_AUX_DIR_EXPAND:$f::$n' --trace='LT_PROG_GCJ:$f::$n' --trace='LT_CONFIG_LTDL_DIR:$f::$n' --trace='LT_OUTPUT:$f::$n' --trace='IT_PROG_INTLTOOL:$f::$n' --trace='_LT_LIBOBJ:$f::$n' --trace='_LT_PROG_CXX:$f::$n' --trace='AM_PROG_NM:$f::$n' --trace='AC_ENABLE_SHARED:$f::$n' --trace='IT_PO_SUBDIR:$f::$n' --trace='_LT_AC_LANG_F77_CONFIG:$f::$n' --trace='_LT_AC_LANG_C_CONFIG:$f::$n' --trace='AC_LIBLTDL_CONVENIENCE:$f::$n' --trace='_AM_MANGLE_OPTION:$f::$n' --trace='AM_PATH_GLIB_2_0:$f::$n' --trace='AC_LIBLTDL_INSTALLABLE:$f::$n' --trace='AC_LIBTOOL_PROG_COMPILER_NO_RTTI:$f::$n' --trace='LT_INIT:$f::$n' --trace='LT_PATH_NM:$f::$n' --trace='AC_DISABLE_SHARED:$f::$n' --trace='LT_WITH_LTDL:$f::$n' --trace='AC_LIBTOOL_DLOPEN:$f::$n' --trace='AM_SANITY_CHECK:$f::$n' --trace='AC_PROG_LD:$f::$n' --trace='_LT_AC_PROG_CXXCPP:$f::$n' --trace='LTVERSION_VERSION:$f::$n' --trace='_LT_AC_LOCK:$f::$n' --trace='LTOBSOLETE_VERSION:$f::$n' --trace='AM_SET_CURRENT_AUTOMAKE_VERSION:$f::$n' --trace='AC_PROG_INTLTOOL:$f::$n' --trace='AM_INIT_AUTOMAKE:$f::$n' --trace='LT_SYS_MODULE_EXT:$f::$n' --trace='LT_LIB_DLLOAD:$f::$n' --trace='AM_SET_DEPDIR:$f::$n' --trace='AC_LIBTOOL_DLOPEN_SELF:$f::$n' --trace='AC_LTDL_SHLIBPATH:$f::$n' --trace='_LT_AC_LANG_GCJ_CONFIG:$f::$n' --trace='AC_PROG_LIBTOOL:$f::$n' --trace='AC_LIBTOOL_RC:$f::$n' --trace='AM_OUTPUT_DEPENDENCY_COMMANDS:$f::$n' --trace='AM_MAINTAINER_MODE:$f::$n' --trace='LTDL_CONVENIENCE:$f::$n' --trace='LTDL_INIT:$f::$n' --trace='AC_PROG_LD_GNU:$f::$n' --trace='AM_ENABLE_SHARED:$f::$n' --trace='PKG_CHECK_MODULES:$f::$n' --trace='AC_LIBTOOL_LINKER_OPTION:$f::$n' --trace='AC_PATH_MAGIC:$f::$n' --trace='_AM_PROG_CC_C_O:$f::$n' --trace='AM_CONDITIONAL:$f::$n' --trace='AM_DISABLE_SHARED:$f::$n' --trace='AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE:$f::$n' --trace='_AM_DEPENDENCIES:$f::$n' --trace='AC_LIBTOOL_SYS_MAX_CMD_LEN:$f::$n' --trace='AC_LIBTOOL_POSTDEP_PREDEP:$f::$n' --trace='AC_DEPLIBS_CHECK_METHOD:$f::$n' --trace='AM_GLIB_GNU_GETTEXT:$f::$n' --trace='AC_LIBTOOL_SYS_DYNAMIC_LINKER:$f::$n' --trace='_LT_WITH_SYSROOT:$f::$n' --trace='_AC_PROG_LIBTOOL:$f::$n' --trace='AM_BINRELOC:$f::$n' --trace='_AM_OUTPUT_DEPENDENCY_COMMANDS:$f::$n' --trace='AC_LTDL_SHLIBEXT:$f::$n' --trace='AC_DISABLE_FAST_INSTALL:$f::$n' --trace='AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH:$f::$n' --trace='AC_LIBTOOL_CONFIG:$f::$n' --trace='_LT_AC_TAGVAR:$f::$n' --trace='_AM_IF_OPTION:$f::$n' --trace='LT_PROG_RC:$f::$n' --trace='LT_PROG_GO:$f::$n' --trace='AM_MISSING_PROG:$f::$n' --trace='AC_ENABLE_STATIC:$f::$n' --trace='LT_SYS_MODULE_PATH:$f::$n' --trace='_LT_COMPILER_OPTION:$f::$n' --trace='LT_SYS_DLOPEN_SELF:$f::$n' --trace='LT_SUPPORTED_TAG:$f::$n' --trace='AC_LIBTOOL_SYS_LIB_STRIP:$f::$n' --trace='LT_FUNC_DLSYM_USCORE:$f::$n' --trace='AC_LIBTOOL_SETUP:$f::$n' --trace='AC_LIBTOOL_LANG_C_CONFIG:$f::$n' --trace='_LT_PROG_LTMAIN:$f::$n' --trace='_LT_AC_LANG_GCJ:$f::$n' --trace='_AC_AM_CONFIG_HEADER_HOOK:$f::$n' --trace='AM_PATH_PYTHON2:$f::$n' --trace='AM_PATH_GTK_2_0:$f::$n' --trace='AC_LIBTOOL_OBJDIR:$f::$n' --trace='AC_LIBTOOL_LANG_F77_CONFIG:$f::$n' --trace='AC_LTDL_SYS_DLOPEN_DEPLIBS:$f::$n' --trace='AC_LIBTOOL_CXX:$f::$n' --trace='AC_LTDL_DLSYM_USCORE:$f::$n' --trace='AM_PROG_INSTALL_SH:$f::$n' --trace='AC_LIBTOOL_FC:$f::$n' --trace='_LT_AC_LANG_F77:$f::$n' --trace='PKG_PROG_PKG_CONFIG:$f::$n' --trace='_AM_SUBST_NOTMAKE:$f::$n' --trace='AM_DEP_TRACK:$f::$n' --trace='AC_DISABLE_STATIC:$f::$n' --trace='AM_PATH_GIMPPRINT:$f::$n' --trace='PKG_CHECK_VAR:$f::$n' --trace='LT_PATH_LD:$f::$n' --trace='AM_PYTHON2_CHECK_VERSION:$f::$n' --trace='AC_PROG_LD_RELOAD_FLAG:$f::$n' --trace='LTDL_INSTALLABLE:$f::$n' --trace='AC_ENABLE_FAST_INSTALL:$f::$n' --trace='_LT_LINKER_BOILERPLATE:$f::$n' --trace='AC_LTDL_PREOPEN:$f::$n' --trace='AM_PROG_LD:$f::$n' --trace='AC_PROG_NM:$f::$n' --trace='AM_SUBST_NOTMAKE:$f::$n' --trace='_LT_DLL_DEF_P:$f::$n' --trace='AM_SILENT_RULES:$f::$n' --trace='_LT_AC_LANG_RC_CONFIG:$f::$n' --trace='PKG_CHECK_EXISTS:$f::$n' --trace='LT_AC_PROG_RC:$f::$n' --trace='AC_WITH_LTDL:$f::$n' --trace='LT_SYS_DLOPEN_DEPLIBS:$f::$n' --trace='_IT_SUBST:$f::$n' --trace='AM_RUN_LOG:$f::$n' --trace='_LT_AC_TRY_DLOPEN_SELF:$f::$n' --trace='LT_AC_PROG_SED:$f::$n' --trace='_AM_SET_OPTIONS:$f::$n' --trace='GTK_DOC_CHECK:$f::$n' --trace='AC_LIBTOOL_COMPILER_OPTION:$f::$n' --trace='LT_SYS_DLSEARCH_PATH:$f::$n' --trace='_LT_CC_BASENAME:$f::$n' --trace='AM_CHECK_PYTHON_HEADERS:$f::$n' --trace='AC_LIBTOOL_SYS_OLD_ARCHIVE:$f::$n' --trace='LT_AC_PROG_EGREP:$f::$n' --trace='AC_CHECK_LIBM:$f::$n' --trace='AM_NLS:$f::$n' --trace='_PKG_SHORT_ERRORS_SUPPORTED:$f::$n' --trace='AM_SET_LEADING_DOT:$f::$n' --trace='AM_PROG_CC_C_O:$f::$n' --trace='GIMP_DETECT_CFLAGS:$f::$n' --trace='LT_FUNC_ARGZ:$f::$n' --trace='AC_LIBTOOL_PROG_COMPILER_PIC:$f::$n' --trace='AC_LIBTOOL_SYS_HARD_LINK_LOCKS:$f::$n' --trace='AM_PROG_INSTALL_STRIP:$f::$n' --trace='AM_ENABLE_STATIC:$f::$n' --trace='_LT_PROG_FC:$f::$n' --trace='_LT_PROG_F77:$f::$n' --trace='_AM_PROG_TAR:$f::$n' --trace='_LT_AC_SHELL_INIT:$f::$n' --trace='AM_GLIB_DEFINE_LOCALEDIR:$f::$n' --trace='AC_PROG_EGREP:$f::$n' --trace='AC_LTDL_SYMBOL_USCORE:$f::$n' --trace='AC_PATH_TOOL_PREFIX:$f::$n' --trace='AC_LIBTOOL_PROG_CC_C_O:$f::$n' --trace='AM_MISSING_HAS_RUN:$f::$n' --trace='LT_LIB_M:$f::$n' --trace='_LT_LINKER_OPTION:$f::$n' --trace='AC_LIBTOOL_GCJ:$f::$n' --trace='LT_SYS_SYMBOL_USCORE:$f::$n' --trace='_LT_COMPILER_BOILERPLATE:$f::$n' --trace='GLIB_RUN_PROG:$f::$n' --trace='_LT_AC_PROG_ECHO_BACKSLASH:$f::$n' --trace='_LT_AC_TAGCONFIG:$f::$n' --trace='LT_LANG:$f::$n' --trace='AC_LIBTOOL_PROG_LD_SHLIBS:$f::$n' --trace='AC_LTDL_OBJDIR:$f::$n' --trace='AC_LTDL_DLLIB:$f::$n' --trace='_LT_REQUIRED_DARWIN_CHECKS:$f::$n' --trace='AM_PROG_LIBTOOL:$f::$n' configure.ac
user            30028   0.0  0.0  2432772    648 s001  S+   10:13am   0:00.01 grep m4

I re-ran the clean and install commands and the installation is still getting hung on the grep command while configuring.

Running top yields the following:

PID    COMMAND      %CPU TIME     #TH   #WQ  #PORT MEM    PURG   CMPRS  PGRP  PPID  STATE    BOOSTS          %CPU_ME %CPU_OTHRS UID  FAULTS    COW      MSGSENT    MSGRECV    SYSBSD     SYSMACH    CSW         PAGEINS
30434  top          3.9  00:00.95 1/1   0    19    4636K  0B     0B     30433 30433 running  *0[1]           0.00000 0.00000    0    37430+    92       253342+    126625+    20855+     173017+    1694+       0
30433  sudo         0.0  00:00.01 1     0    19    796K   0B     0B     30433 27711 sleeping *0[1]           0.00000 0.00000    0    869       145      53         17         747        138        74          1
30430  mdworker     0.0  00:00.14 4     0    52    8304K  0B     0B     30430 1     sleeping *0[1]           0.00000 0.00000    501  4832      168      710        291        2544       951        579         0
30429  mdworker     0.0  00:05.19 3     0    50    1796K  0B     0B     30429 1     sleeping *0[1]           0.00000 0.00000    502  8056      179      28900      10322      69364      41900      19207       0
30428  xcodebuild   0.0  00:00.34 2     0    43    15M    0B     0B     30065 30427 sleeping *0[5]           0.00000 0.00000    502  9354      1677     153        93         12750      589        605         0
30427  sh           0.0  00:00.00 1     0    15    484K   0B     0B     30065 30425 sleeping *0[1]           0.00000 0.00000    502  290       72       29         10         156        65         28          0
30426  grep         0.0  00:00.00 1     0    9     396K   0B     0B     30065 30424 sleeping *0[1]           0.00000 0.00000    502  332       55       20         10         129        48         3           0
30425  m4           0.0  00:00.00 1     0    14    316K   0B     0B     30065 30424 sleeping *0[1]           0.00000 0.00000    502  331       62       27         12         128        69         6           0
30424  sh           0.0  00:00.00 1     0    15    484K   0B     0B     30065 30423 sleeping *0[1]           0.00000 0.00000    502  437       133      39         15         172        79         15          0
30423  perl5.18     0.0  00:00.09 1     0    16    7296K  0B     0B     30065 30421 sleeping *0[1]           0.00000 0.00000    502  2615      136      59         22         1432       156        98          0
30421  sh           0.0  00:00.00 1     0    15    592K   0B     0B     30065 30420 sleeping *0[1]           0.00000 0.00000    502  459       136      39         15         175        80         21          0
30420  perl5.18     0.0  00:00.67 1     0    16    11M    0B     0B     30065 30249 sleeping *0[1]           0.00000 0.00000    502  3601      167      78         26         2832       199        170         0
30249  sh           0.0  00:00.01 1     0    15    568K   0B     0B     30065 30248 sleeping *0[1]           0.00000 0.00000    502  1373      756      87         39         871        106        111         0
30248  sh           0.0  00:00.07 1     0    15    524K   0B     0B     30065 30066 sleeping *0[1]           0.00000 0.00000    502  793       136      49         20         261        120        233         0
30066  tclsh8.5     0.0  00:12.16 2     0    35    52M    0B     0B     30065 30065 sleeping *0[4]           0.00000 0.00000    502  132334    4677     488        228        601041     566        23050       2
30065  sudo         0.0  00:00.01 1     0    19    812K   0B     0B     30065 8743  sleeping *0[1]           0.00000 0.00000    0    904       148      53         17         729        139        47          0
30044  diskimages-h 2.6  00:06.28 4     1    66+   4588K+ 0B     0B     30044 1     stuck    *0[1]           0.00000 0.00000    0    4189+     148      92768+     46257+     64131+     50747+     101142+     0
30030  backupd      1.6  00:18.02 9     6    114   24M    0B     0B     30030 1     stuck    *0[1]           0.00000 0.01408    0    46800     286      30507      16738      351280+    47514      105932+     0
27711  bash         0.0  00:00.14 1     0    15    2276K  0B     0B     27711 27705 sleeping *0[1]           0.00000 0.00000    501  3946      1272     136        62         6037       151        494         0
27705  login        0.0  00:00.11 2     0    27    1220K  0B     0B     27705 8740  sleeping *0[9]           0.00000 0.00000    0    1073      155      172        71         12294      274        632         0
18712  CoreServices 0.0  00:00.61 4     0    157   4096K  0B     3060K  18712 1     sleeping *0[1]           0.00000 0.00000    501  6806      294      8504       3803       16185      19165      9547        11
8743   bash         0.0  00:00.74 1     0    15    1512K  0B     784K   8743  8742  sleeping *0[1]           0.00000 0.00000    501  18839     7418     438        213        29830      302        4561        104
8742   login        0.0  00:00.10 3     1    28    12K    0B     1228K  8742  8740  stuck    *0[9]           0.00000 0.00000    0    1061      151      173        71         9418       274        417         0
8740   Terminal     0.6  03:38.26 7     1    272   44M    0B     4072K  8740  1     sleeping *0[2256]        0.00000 0.00000    501  380921    7894     626009+    172833     4730474+   1380530+   772012+     529
8670   printtool    0.0  00:00.30 2     1    55    1612K  0B     1260K  8670  1     sleeping *0[1]           0.00000 0.00000    501  3960      164      4677       1978       39553      4578       4803        4

comment:6 Changed 9 years ago by dbevans (David B. Evans)

You can see from this that m4 is sleeping and that it has spawned

sh -c /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk / -find m4 2> /dev/null

which, in turn, spawned

/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk / -find m4

both of which are also sleeping. There may be more subsequent child processes that didn't get selected by your grep pattern.

This looks to me like m4 is waiting for something from xcodebuild which is not progressing. Because of this m4 emits no output which is what grep is waiting for. So you're hung.

I'm still not sure why this is happening but I'd suggest that you double check to make sure that Xcode and its Command Line Tools are properly installed. In particular try

xcode-select --install

See the Xcode installation instructions in the MacPorts Guide.

comment:7 Changed 9 years ago by drew.mirage@…

I ran the xcode-select command:

Computer:~ user$ sudo xcode-select --install
Password:
xcode-select: error: command line tools are already installed, use "Software Update" to install updates

I then removed Xcode completely from my system, rebooted, and reinstalled Xcode.

Gimp2 built successfully with no issues.

Obviously, there must have been something hinky with the Xcode installation, although the fact that other ports built successfully is a bit confusing.

Thank you very much for your help.

comment:8 Changed 9 years ago by dbevans (David B. Evans)

Resolution: worksforme
Status: assignedclosed

No problem. Glad it's working for you.

Note: See TracTickets for help on using tickets.