Skip to content

GHC build is segfaulting with Xcode 7.3

This affects Xcode 7.3 but not Xcode 7.2.1.

make[1]: *** [compiler/stage2/dll-split.stamp] Segmentation fault: 11

For >= Xcode 7.3 (also the 7.3 CLT) the directory

"Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin"

now has the old nm renamed nm-classic and nm is a symlink to llvm-nm. By redirecting the build system's use of nm to use nm-classic the segfault does not occur.

I'm not sure what goes wrong with llvm-nm but it would be great if the build could be fixed to be able to use it without segfaulting, since using nm-classic is a hack and Apple may retire it at some point.

https://github.com/Homebrew/homebrew-core/issues/371

https://github.com/Homebrew/homebrew-core/pull/449

https://gist.githubusercontent.com/ilovezfs/dd26686da7e545fabca1a517e3adb039/raw/85db1dd5070d6362ed280d8448161a3ab2b86b0d/gistfile1.txt

Edited by ilovezfs
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information