[Haskell-cafe] LLVM backend building segfault
Louis Wasserman
wasserman.louis at gmail.com
Sun May 2 14:36:26 EDT 2010
Hokay, so I've installed LLVM 2.7,
gotten ghc-HEAD-2009-10-23-ghc-corelibs.tar.bz2, run ./darcs-all pull -a,
run ./boot, applied
add-new-llvm-code-generator-to-ghc_.dpatch
ghc-llvmbackend-20100328.dpatch
and written the following in mk/build.mk:
GhcWithLlvmCodeGen = YES
GhcEnableTablesNextToCode = NO
SRC_HC_OPTS = -H64m -O0 -fasm
GhcStage1HcOpts = -O -fasm
GhcStage2HcOpts = -O0 -fasm
GhcLibHcOpts = -O -fasm
SplitObjs = NO
HADDOCK_DOCS = NO
And when I run make,
make -r --no-print-directory -f ghc.mk all
"inplace/bin/ghc-stage2" -H64m -O0 -fasm -i -iutils/ghctags/.
-iutils/ghctags/dist/build -iutils/ghctags/dist/build/autogen
-Iutils/ghctags/dist/build -Iutils/ghctags/dist/build/autogen
-package ghc -no-user-package-conf -rtsopts -odir
utils/ghctags/dist/build -hidir utils/ghctags/dist/build -stubdir
utils/ghctags/dist/build -hisuf hi -osuf o -hcsuf hc -c
utils/ghctags/./Main.hs -o utils/ghctags/dist/build/Main.o
"inplace/bin/ghc-stage2" -H64m -O0 -fasm -package-name dph-base-0.4.0
-hide-all-packages -i -ilibraries/dph/dph-base/.
-ilibraries/dph/dph-base/dist-install/build
-ilibraries/dph/dph-base/dist-install/build/autogen
-Ilibraries/dph/dph-base/dist-install/build
-Ilibraries/dph/dph-base/dist-install/build/autogen
-Ilibraries/dph/dph-base/include -optP-include
-optPlibraries/dph/dph-base/dist-install/build/autogen/cabal_macros.h
-package array-0.3.0.0 -package base-4.2.0.0 -package ghc-prim-0.2.0.0
-package random-1.0.0.2 -Odph -funbox-strict-fields -haddock -fcpr-off
-XTypeFamilies -XGADTs -XRankNTypes -XBangPatterns -XMagicHash
-XUnboxedTuples -XTypeOperators -O -fasm -fno-warn-deprecated-flags -Wwarn
-odir libraries/dph/dph-base/dist-install/build -hidir
libraries/dph/dph-base/dist-install/build -stubdir
libraries/dph/dph-base/dist-install/build -hisuf hi -osuf o -hcsuf hc -c
libraries/dph/dph-base/./Data/Array/Parallel/Base/DTrace.hs -o
libraries/dph/dph-base/dist-install/build/Data/Array/Parallel/Base/DTrace.o
"inplace/bin/ghc-stage2" -H64m -O0 -fasm -package-name dph-base-0.4.0
-hide-all-packages -i -ilibraries/dph/dph-base/.
-ilibraries/dph/dph-base/dist-install/build
-ilibraries/dph/dph-base/dist-install/build/autogen
-Ilibraries/dph/dph-base/dist-install/build
-Ilibraries/dph/dph-base/dist-install/build/autogen
-Ilibraries/dph/dph-base/include -optP-include
-optPlibraries/dph/dph-base/dist-install/build/autogen/cabal_macros.h
-package array-0.3.0.0 -package base-4.2.0.0 -package ghc-prim-0.2.0.0
-package random-1.0.0.2 -Odph -funbox-strict-fields -haddock -fcpr-off
-XTypeFamilies -XGADTs -XRankNTypes -XBangPatterns -XMagicHash
-XUnboxedTuples -XTypeOperators -O -fasm -fno-warn-deprecated-flags -Wwarn
-odir libraries/dph/dph-base/dist-install/build -hidir
libraries/dph/dph-base/dist-install/build -stubdir
libraries/dph/dph-base/dist-install/build -hisuf hi -osuf o -hcsuf hc -c
libraries/dph/dph-base/./Data/Array/Parallel/Base/Hyperstrict.hs -o
libraries/dph/dph-base/dist-install/build/Data/Array/Parallel/Base/Hyperstrict.o
Segmentation fault
make[1]: ***
[libraries/dph/dph-base/dist-install/build/Data/Array/Parallel/Base/Hyperstrict.o]
Error 139
make[1]: *** Waiting for unfinished jobs....
Segmentation fault
make[1]: *** [utils/ghctags/dist/build/Main.o] Error 139
Segmentation fault
make[1]: ***
[libraries/dph/dph-base/dist-install/build/Data/Array/Parallel/Base/DTrace.o]
Error 139
make: *** [all] Error 2
I get segfaults. Segfaults make me unhappy. Halp plz?
Louis Wasserman
wasserman.louis at gmail.com
http://profiles.google.com/wasserman.louis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100502/9c1c7db3/attachment.html
More information about the Haskell-Cafe
mailing list