[GHC] #11951: GHC formula is segfaulting with Xcode 7.3

#11951: GHC formula is segfaulting with Xcode 7.3 -------------------------------------+------------------------------------- Reporter: ilovezfs | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- 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... -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11951 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11951: GHC build is segfaulting with Xcode 7.3 -------------------------------------+------------------------------------- Reporter: ilovezfs | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11951#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11951: GHC build is segfaulting with Xcode 7.3 -------------------------------------+------------------------------------- Reporter: ilovezfs | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Description changed by ilovezfs: @@ -18,0 +18,1 @@ + New description: 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... -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11951#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11951: GHC build is segfaulting with Xcode 7.3 -------------------------------------+------------------------------------- Reporter: ilovezfs | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Resolution: duplicate | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #11744 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => closed * resolution: => duplicate * related: => #11744 Comment: This is a bug in `llvm-nm`; see #11744. It has been fixed upstream but Apple has yet to ship a fixed XCode release. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11951#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11951: GHC build is segfaulting with Xcode 7.3 -------------------------------------+------------------------------------- Reporter: ilovezfs | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Resolution: duplicate | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #11744 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): See also, the brief discussion in the [[GHC 8.0.1-rc3 release announcement|https://mail.haskell.org/pipermail/ghc- devs/2016-April/011862.html]]. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11951#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11951: GHC build is segfaulting with Xcode 7.3 -------------------------------------+------------------------------------- Reporter: ilovezfs | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Resolution: duplicate | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #11744 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by ilovezfs): Thanks for your response. Is `--with-nm=nm-classic` something that works only with the 8.* series or can we use it with ghc-7.10.3b? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11951#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11951: GHC build is segfaulting with Xcode 7.3 -------------------------------------+------------------------------------- Reporter: ilovezfs | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Resolution: duplicate | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #11744 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): It should work in both cases. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11951#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC