[GHC] #7874: segfault 11 on mac os x when building compiler for ghc 7.7.20130430

#7874: segfault 11 on mac os x when building compiler for ghc 7.7.20130430 --------------------------------+------------------------------------------- Reporter: carter | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.7 | Keywords: Os: MacOS X | Architecture: x86_64 (amd64) Failure: Building GHC failed | Blockedby: Blocking: | Related: --------------------------------+------------------------------------------- I'm trying to build ghc head from the repo head as of today, and i'm getting the following error in the stage 2 build carter repoScratcher/ghc ‹master› » make ===--- building phase 0 make -r --no-print-directory -f ghc.mk phase=0 phase_0_builds make[1]: Nothing to be done for `phase_0_builds'. ===--- building phase 1 make -r --no-print-directory -f ghc.mk phase=1 phase_1_builds make[1]: Nothing to be done for `phase_1_builds'. ===--- building final phase make -r --no-print-directory -f ghc.mk phase=final all "inplace/bin/ghc-stage2" -hisuf hi -osuf o -hcsuf hc -static -H64m -O0 -fllvm -package-name old-time-1.1.0.1 -hide-all-packages -i -ilibraries /old-time/. -ilibraries/old-time/dist-install/build -ilibraries/old-time /dist-install/build/autogen -Ilibraries/old-time/dist-install/build -Ilibraries/old-time/dist-install/build/autogen -Ilibraries/old- time/include -optP-include -optPlibraries/old-time/dist- install/build/autogen/cabal_macros.h -package base-4.7.0.0 -package old- locale-1.0.0.5 -XHaskell98 -XCPP -XForeignFunctionInterface -O -fllvm -no-user-package-db -rtsopts -odir libraries/old-time/dist- install/build -hidir libraries/old-time/dist-install/build -stubdir libraries/old-time/dist-install/build -dynamic-too -c libraries/old-time /dist-install/build/System/Time.hs -o libraries/old-time/dist- install/build/System/Time.o -dyno libraries/old-time/dist- install/build/System/Time.dyn_o make[1]: *** [libraries/old-time/dist-install/build/System/Time.o] Segmentation fault: 11 -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7874 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7874: segfault 11 on mac os x when building compiler for ghc 7.7.20130430 --------------------------------+------------------------------------------- Reporter: carter | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.7 | Keywords: Os: MacOS X | Architecture: x86_64 (amd64) Failure: Building GHC failed | Blockedby: Blocking: | Related: --------------------------------+------------------------------------------- Comment(by carter): when i do the quick -fasm build rather than the -fllvm build this segfault doesn't happen ... does that mean theres a problem with llvm code generation on os x? the results of my make test run OVERALL SUMMARY for test run started at Tue Apr 30 16:06:51 EDT 2013 3628 total tests, which gave rise to 14337 test cases, of which 11044 were skipped 28 had missing libraries 3182 expected passes 56 expected failures 3 caused framework failures 2 unexpected passes 22 unexpected failures Unexpected passes: driver T5313 (normal) perf/should_run T149 (normal) Unexpected failures: codeGen/should_run cgrun071 [bad exit code] (normal) driver T2507 [bad stderr] (normal) ghc-api/T7478 T7478 [bad exit code] (normal) perf/compiler T1969 [stat not good enough] (normal) perf/compiler T3064 [stat not good enough] (normal) perf/compiler T3294 [stat not good enough] (normal) perf/compiler T4801 [stat not good enough] (normal) perf/compiler T5030 [stat not good enough] (normal) perf/compiler T5321FD [stat not good enough] (normal) perf/compiler T5321Fun [stat not good enough] (normal) perf/compiler T5631 [stat not good enough] (normal) perf/compiler T5642 [stat not good enough] (normal) perf/compiler T5837 [stat not good enough] (normal) perf/compiler T6048 [stat not good enough] (optasm) perf/compiler T783 [stat not good enough] (normal) perf/compiler parsing001 [stat not good enough] (normal) perf/should_run T4474a [stat not good enough] (normal) perf/should_run T4474b [stat not good enough] (normal) perf/should_run T4474c [stat not good enough] (normal) simplCore/should_compile T4908 [stderr mismatch] (optasm) simplCore/should_compile T7360 [stderr mismatch] (optasm) simplCore/should_compile spec-inline [stderr mismatch] (optasm) -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7874#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7874: segfault 11 on mac os x when building compiler for ghc 7.7.20130430 -------------------------------+-------------------------------------------- Reporter: carter | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Keywords: | Os: MacOS X Architecture: x86_64 (amd64) | Failure: Building GHC failed Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | -------------------------------+-------------------------------------------- Changes (by igloo): * difficulty: => Unknown Old description:
I'm trying to build ghc head from the repo head as of today, and i'm getting the following error in the stage 2 build
carter repoScratcher/ghc ‹master› » make ===--- building phase 0 make -r --no-print-directory -f ghc.mk phase=0 phase_0_builds make[1]: Nothing to be done for `phase_0_builds'. ===--- building phase 1 make -r --no-print-directory -f ghc.mk phase=1 phase_1_builds make[1]: Nothing to be done for `phase_1_builds'. ===--- building final phase make -r --no-print-directory -f ghc.mk phase=final all "inplace/bin/ghc-stage2" -hisuf hi -osuf o -hcsuf hc -static -H64m -O0 -fllvm -package-name old-time-1.1.0.1 -hide-all-packages -i -ilibraries/old-time/. -ilibraries/old-time/dist-install/build -ilibraries/old-time/dist-install/build/autogen -Ilibraries/old-time /dist-install/build -Ilibraries/old-time/dist-install/build/autogen -Ilibraries/old-time/include -optP-include -optPlibraries/old-time /dist-install/build/autogen/cabal_macros.h -package base-4.7.0.0 -package old-locale-1.0.0.5 -XHaskell98 -XCPP -XForeignFunctionInterface -O -fllvm -no-user-package-db -rtsopts -odir libraries/old-time/dist- install/build -hidir libraries/old-time/dist-install/build -stubdir libraries/old-time/dist-install/build -dynamic-too -c libraries/old-time /dist-install/build/System/Time.hs -o libraries/old-time/dist- install/build/System/Time.o -dyno libraries/old-time/dist- install/build/System/Time.dyn_o make[1]: *** [libraries/old-time/dist-install/build/System/Time.o] Segmentation fault: 11
New description: I'm trying to build ghc head from the repo head as of today, and i'm getting the following error in the stage 2 build {{{ carter repoScratcher/ghc ‹master› » make ===--- building phase 0 make -r --no-print-directory -f ghc.mk phase=0 phase_0_builds make[1]: Nothing to be done for `phase_0_builds'. ===--- building phase 1 make -r --no-print-directory -f ghc.mk phase=1 phase_1_builds make[1]: Nothing to be done for `phase_1_builds'. ===--- building final phase make -r --no-print-directory -f ghc.mk phase=final all "inplace/bin/ghc-stage2" -hisuf hi -osuf o -hcsuf hc -static -H64m -O0 -fllvm -package-name old-time-1.1.0.1 -hide-all-packages -i -ilibraries /old-time/. -ilibraries/old-time/dist-install/build -ilibraries/old-time /dist-install/build/autogen -Ilibraries/old-time/dist-install/build -Ilibraries/old-time/dist-install/build/autogen -Ilibraries/old- time/include -optP-include -optPlibraries/old-time/dist- install/build/autogen/cabal_macros.h -package base-4.7.0.0 -package old- locale-1.0.0.5 -XHaskell98 -XCPP -XForeignFunctionInterface -O -fllvm -no-user-package-db -rtsopts -odir libraries/old-time/dist- install/build -hidir libraries/old-time/dist-install/build -stubdir libraries/old-time/dist-install/build -dynamic-too -c libraries/old-time /dist-install/build/System/Time.hs -o libraries/old-time/dist- install/build/System/Time.o -dyno libraries/old-time/dist- install/build/System/Time.dyn_o make[1]: *** [libraries/old-time/dist-install/build/System/Time.o] Segmentation fault: 11 }}} -- -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7874#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7874: segfault 11 on mac os x when building compiler for ghc 7.7.20130430 -------------------------------+-------------------------------------------- Reporter: carter | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Keywords: | Os: MacOS X Architecture: x86_64 (amd64) | Failure: Building GHC failed Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | -------------------------------+-------------------------------------------- Comment(by igloo): {{{ [22:01] < thoughtpolice> this is a known failure with LLVM 3.2. LLVM 3.3svn allegedly works. i don't know what broke it, it was sometime early after me and david got it working again }}} -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7874#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7874: segfault 11 on mac os x when building compiler for ghc 7.7.20130430 -------------------------------+-------------------------------------------- Reporter: carter | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Keywords: | Os: MacOS X Architecture: x86_64 (amd64) | Failure: Building GHC failed Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | -------------------------------+-------------------------------------------- Comment(by igloo): Carter Schonwald said on ghc-devs: {{{ ghc seems to build successful when i do quick, but not quick-llvm }}} (presumably referring to the flavours in `build.mk.sample`). -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7874#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7874: segfault 11 on mac os x when building compiler for ghc 7.7.20130430 -------------------------------+-------------------------------------------- Reporter: carter | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Keywords: | Os: MacOS X Architecture: x86_64 (amd64) | Failure: Building GHC failed Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | -------------------------------+-------------------------------------------- Comment(by carter): in ./testsuite/test if i run make WAYS=llvm test i get Unexpected results from: TEST="T5313 conc058 conc068 conc065 conc066 conc020 conc035 conc015 conc017 T7571 dynamic004 T3016 qq007 qq008 ffi009" OVERALL SUMMARY for test run started at Tue Apr 30 17:14:35 EDT 2013 3628 total tests, which gave rise to 16632 test cases, of which 14905 were skipped 24 had missing libraries 1672 expected passes 16 expected failures 0 caused framework failures 1 unexpected passes 14 unexpected failures Unexpected passes: driver T5313 (llvm) Unexpected failures: ../../libraries/base/tests dynamic004 [bad exit code] (llvm) concurrent/should_run conc015 [exit code non-0] (llvm) concurrent/should_run conc017 [exit code non-0] (llvm) concurrent/should_run conc020 [exit code non-0] (llvm) concurrent/should_run conc035 [exit code non-0] (llvm) concurrent/should_run conc058 [exit code non-0] (llvm) concurrent/should_run conc065 [exit code non-0] (llvm) concurrent/should_run conc066 [exit code non-0] (llvm) concurrent/should_run conc068 [exit code non-0] (llvm) ffi/should_run ffi009 [bad exit code] (llvm) llvm/should_compile T7571 [stderr mismatch] (llvm) quasiquotation/qq007 qq007 [exit code non-0] (llvm) quasiquotation/qq008 qq008 [exit code non-0] (llvm) simplCore/should_compile T3016 [exit code non-0] (llvm) -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7874#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7874: segfault 11 on mac os x when building compiler for ghc 7.7.20130430 -------------------------------+-------------------------------------------- Reporter: carter | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Keywords: | Os: MacOS X Architecture: x86_64 (amd64) | Failure: Building GHC failed Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | -------------------------------+-------------------------------------------- Comment(by carter): i"ll have a go at testing llvm head to see if ghc via llvm works properly then -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7874#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7874: segfault 11 on mac os x when building compiler for ghc 7.7.20130430 -------------------------------+-------------------------------------------- Reporter: carter | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Keywords: | Os: MacOS X Architecture: x86_64 (amd64) | Failure: Building GHC failed Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | -------------------------------+-------------------------------------------- Comment(by carter): when i do make ways=optasm i get {{{ Unexpected results from: TEST="T5313 conc058 conc068 conc065 conc066 conc020 conc035 conc015 conc017 cgrun071 T4908 T7360 spec-inline T6048 qq007 qq008 space_leak_001" OVERALL SUMMARY for test run started at Fri May 3 13:21:36 EDT 2013 3628 total tests, which gave rise to 14341 test cases, of which 12700 were skipped 21 had missing libraries 1588 expected passes 15 expected failures 0 caused framework failures 1 unexpected passes 16 unexpected failures Unexpected passes: driver T5313 (optasm) Unexpected failures: codeGen/should_run cgrun071 [bad exit code] (optasm) concurrent/should_run conc015 [exit code non-0] (optasm) concurrent/should_run conc017 [exit code non-0] (optasm) concurrent/should_run conc020 [exit code non-0] (optasm) concurrent/should_run conc035 [exit code non-0] (optasm) concurrent/should_run conc058 [exit code non-0] (optasm) concurrent/should_run conc065 [exit code non-0] (optasm) concurrent/should_run conc066 [exit code non-0] (optasm) concurrent/should_run conc068 [exit code non-0] (optasm) perf/compiler T6048 [stat not good enough] (optasm) perf/space_leaks space_leak_001 [stat too good] (optasm) quasiquotation/qq007 qq007 [exit code non-0] (optasm) quasiquotation/qq008 qq008 [exit code non-0] (optasm) simplCore/should_compile T4908 [stderr mismatch] (optasm) simplCore/should_compile T7360 [stderr mismatch] (optasm) simplCore/should_compile spec-inline [stderr mismatch] (optasm) }}} -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7874#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7874: segfault 11 on mac os x when building compiler for ghc 7.7.20130430 -------------------------------+-------------------------------------------- Reporter: carter | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Keywords: | Os: MacOS X Architecture: x86_64 (amd64) | Failure: Building GHC failed Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | -------------------------------+-------------------------------------------- Comment(by carter): Replying to [comment:5 carter]:
in ./testsuite/test if i run make WAYS=llvm test
i get
cleaned this up to make it more readable on the trac page {{{ Unexpected results from: TEST="T5313 conc058 conc068 conc065 conc066 conc020 conc035 conc015 conc017 T7571 dynamic004 T3016 qq007 qq008 ffi009" OVERALL SUMMARY for test run started at Tue Apr 30 17:14:35 EDT 2013 3628 total tests, which gave rise to 16632 test cases, of which 14905 were skipped 24 had missing libraries 1672 expected passes 16 expected failures 0 caused framework failures 1 unexpected passes 14 unexpected failures Unexpected passes: driver T5313 (llvm) Unexpected failures: ../../libraries/base/tests dynamic004 [bad exit code] (llvm) concurrent/should_run conc015 [exit code non-0] (llvm) concurrent/should_run conc017 [exit code non-0] (llvm) concurrent/should_run conc020 [exit code non-0] (llvm) concurrent/should_run conc035 [exit code non-0] (llvm) concurrent/should_run conc058 [exit code non-0] (llvm) concurrent/should_run conc065 [exit code non-0] (llvm) concurrent/should_run conc066 [exit code non-0] (llvm) concurrent/should_run conc068 [exit code non-0] (llvm) ffi/should_run ffi009 [bad exit code] (llvm) llvm/should_compile T7571 [stderr mismatch] (llvm) quasiquotation/qq007 qq007 [exit code non-0] (llvm) quasiquotation/qq008 qq008 [exit code non-0] (llvm) simplCore/should_compile T3016 [exit code non-0] (llvm) }}} -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7874#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7874: segfault 11 on mac os x when building compiler for ghc 7.7.20130430 -------------------------------+-------------------------------------------- Reporter: carter | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Keywords: | Os: MacOS X Architecture: x86_64 (amd64) | Failure: Building GHC failed Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | -------------------------------+-------------------------------------------- Comment(by carter): heres the results from running {{{ make WAY=optllvm }}} on the testsuite {{{ Unexpected results from: TEST="T5313 conc058 conc068 conc065 conc066 conc020 conc035 conc015 conc017 qq008 qq007 T3016 space_leak_001" OVERALL SUMMARY for test run started at Fri May 3 14:22:30 EDT 2013 3628 total tests, which gave rise to 14341 test cases, of which 12756 were skipped 23 had missing libraries 1535 expected passes 14 expected failures 0 caused framework failures 1 unexpected passes 12 unexpected failures Unexpected passes: driver T5313 (optllvm) Unexpected failures: concurrent/should_run conc015 [exit code non-0] (optllvm) concurrent/should_run conc017 [exit code non-0] (optllvm) concurrent/should_run conc020 [exit code non-0] (optllvm) concurrent/should_run conc035 [exit code non-0] (optllvm) concurrent/should_run conc058 [exit code non-0] (optllvm) concurrent/should_run conc065 [exit code non-0] (optllvm) concurrent/should_run conc066 [exit code non-0] (optllvm) concurrent/should_run conc068 [exit code non-0] (optllvm) perf/space_leaks space_leak_001 [stat too good] (optllvm) quasiquotation/qq007 qq007 [exit code non-0] (optllvm) quasiquotation/qq008 qq008 [exit code non-0] (optllvm) simplCore/should_compile T3016 [exit code non-0] (optllvm) }}} -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7874#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7874: segfault 11 on mac os x when building compiler for ghc 7.7.20130430 -------------------------------+-------------------------------------------- Reporter: carter | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Keywords: | Os: MacOS X Architecture: x86_64 (amd64) | Failure: Building GHC failed Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | -------------------------------+-------------------------------------------- Comment(by simonmar): FYI, I just fixed the conc test failures (nothing to do with LLVM). -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7874#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC