
#11823: Undefined stg_sel_17_upd_info symbols on OS X -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Type: bug | Status: new Priority: highest | Milestone: 8.0.1 Component: Compiler | Version: 8.0.1-rc3 Resolution: | Keywords: Operating System: MacOS X | Architecture: x86_64 Type of failure: Building GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by George): I think this may be a toolchain issue, IIRC, i had no build problems with RC2 when I was not using any of the current toolchain. I just tried rc2 with my current toolchain and get essentially the same error: {{{ "_stg_sel_17_upd_info", referenced from: _s1x56_info in UI.dyn_o _s1x6r_info in UI.dyn_o _s1xd1_info in UI.dyn_o _s1xem_info in UI.dyn_o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) `gcc' failed in phase `Linker'. (Exit code: 1) make[1]: *** [ghc/stage2/build/tmp/ghc-stage2] Error 1 make: *** [all] Error 2 }}} Replying to [comment:8 George]:
I am on MacOS 10.11.4, Xcode 7.3, and llvm 3.7.1. I didn't see this on RC2 but I don't think I was using Xcode 7.3 then.
The error I am getting on rc3 is slightly different than the one in the description. Mine is: {{{ Undefined symbols for architecture x86_64: "_stg_sel_17_upd_info", referenced from: _s1xEL_info in UI.dyn_o _s1xG6_info in UI.dyn_o _s1xPC_info in UI.dyn_o _s1xQ9_info in UI.dyn_o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) `gcc' failed in phase `Linker'. (Exit code: 1) make[1]: *** [ghc/stage2/build/tmp/ghc-stage2] Error 1 make: *** [all] Error 2 }}} After doing {{{ $ touch ghc/GHCi/UI.hs $ make GhcStage2HcOpts='-ddump-to-file -ddump-simpl -ddump-stg -ddump- cmm' }}} I get: {{{ Undefined symbols for architecture x86_64: "_stg_sel_17_upd_info", referenced from: _s1rNh_info in UI.dyn_o _s1rNO_info in UI.dyn_o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) `gcc' failed in phase `Linker'. (Exit code: 1) make[1]: *** [ghc/stage2/build/tmp/ghc-stage2] Error 1 make: *** [all] Error 2 }}} Dumpfiles at [https://drive.google.com/file/d/0B_TQiA8d1y6fXzR0aThvRzBkZHc/view?usp=sharin...]
-- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11823#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler