#36303: llvm-3.1 compilation hangs on sw_vers -> hack found ------------------------------------+-------------------------------- Reporter: bobo@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Low | Milestone: Component: ports | Version: 2.1.2 Keywords: sed sw_vers hang stall | Port: llvm-3.1 ------------------------------------+-------------------------------- I only post this hoping it might win someone a bit of time. I'm running a Mountain Lion 10.8.2 with xcode 4.5 and the command line extension installed. I had to install llvm-3.1 as a dependency of octave. During the compilation, it launches a shell command and hangs forever with no cpu activity. I find out that the stalled command was: {{{#!sh /bin/sh -c echo `sw_vers -productVersion` | sed -E 's/(10.[0-9]).*/\1/' }}} I tested this line in a shell and it returns nothing which is somehow suspicious to me... Moreover, {{{ps -ef}}} reports one process launched as {{{#!sh sed -E s/(10.[0-9]).*/\1/ }}} without the quotes nor anything piped into sed (not that I could see at least). Maybe it is waiting for an input... though killing this process did not unstall the build process. I "simply" hard-coded the two variables DARWIN_VERSION and DARWIN_MAJVERS in the two makefiles Makefile.rules and Makefile.llvm.rules according to my OS and everything compiled smoothly. Sorry I didn't had the time to dig any further on how to correct this problem in a more elegant way. PS: nor could I found the maintainer to cc this ticket to. -- Ticket URL: <https://trac.macports.org/ticket/36303> MacPorts <http://www.macports.org/> Ports system for Mac OS