
#8376: Static Executable + GHC API (+ Dynamic Linking?) gives Segfault ----------------------------------+---------------------------------- Reporter: darchon | Owner: simonmar Type: bug | Status: new Priority: highest | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: MacOS X | Architecture: x86_64 (amd64) Type of failure: Runtime crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------+---------------------------------- Comment (by nomeata): I don’t fully understand all of this, but it seems that this patch breaks the build how I set it up on travis. Error message is {{{ HC [stage 2] libraries/dph/dph-lifted-copy/dist- install/build/Data/Array/Parallel/PArray/PData.o Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Loading package array-0.4.0.2 ... linking ... done. Loading package deepseq-1.3.0.2 ... linking ... done. Loading package bytestring-0.10.4.0 ... linking ... done. Loading package containers-0.5.3.1 ... linking ... done. Loading package filepath-1.3.0.2 ... linking ... done. Loading package old-locale-1.0.0.5 ... linking ... done. Loading package time-1.4.1 ... linking ... done. Loading package unix-2.7.0.0 ... linking ... done. Loading package directory-1.2.0.1 ... linking ... done. Loading package pretty-1.1.1.0 ... linking ... done. Loading package process-1.2.0.0 ... linking ... done. Loading package Cabal-1.18.1 ... linking ... done. Loading package binary-0.7.1.0 ... linking ... done. Loading package bin-package-db-0.0.0.0 ... linking ... done. Loading package hoopl-3.10.0.0 ... linking ... done. Loading package hpc-0.6.0.1 ... linking ... done. Loading package template-haskell ... linking ... done. Loading package transformers-0.3.0.0 ... linking ... done. Loading package ghc-7.7.20131011 ... linking ... ghc-stage2: /home/travis/build/nomeata/ghc-complete/ghc- validate/compiler/stage2/build/libHSghc-7.7.20131011.a: unknown symbol `rts_isDynamic' ghc-stage2: unable to load package `ghc-7.7.20131011' make[1]: *** [libraries/dph/dph-lifted-copy/dist- install/build/Data/Array/Parallel/PArray/PData.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make: *** [all] Error 2 }}} Full log at https://s3.amazonaws.com/archive.travis- ci.org/jobs/12411908/log.txt and commands to build the code at https://github.com/nomeata/ghc-complete/blob/master/validate.sh Could this caused by your patch? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8376#comment:12 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler