Closed dnaq closed 10 years ago
Compilation fails with the error message
"inplace/bin/ghc-stage1" -M -static -O -H64m -package-name ghc-prim-0.3.1.0 -hide-all-packages -i -ilibraries/ghc-prim/. -ilibraries/ghc-prim/dist-install/build -ilibraries/ghc-prim/dist-install/build/autogen -Ilibraries/ghc-prim/dist-install/build -Ilibraries/ghc-prim/dist-install/build/autogen -Ilibraries/ghc-prim/. -optP-include -optPlibraries/ghc-prim/dist-install/build/autogen/cabal_macros.h -package rts-1.0 -package-name ghc-prim -XHaskell2010 -O2 -no-user-package-db -rtsopts -odir libraries/ghc-prim/dist-install/build -hidir libraries/ghc-prim/dist-install/build -stubdir libraries/ghc-prim/dist-install/build -dep-makefile libraries/ghc-prim/dist-install/build/.depend-v.haskell.tmp -dep-suffix "" -include-pkg-deps libraries/ghc-prim/./GHC/CString.hs libraries/ghc-prim/./GHC/Classes.hs libraries/ghc-prim/./GHC/Debug.hs libraries/ghc-prim/./GHC/IntWord64.hs libraries/ghc-prim/./GHC/Magic.hs libraries/ghc-prim/dist-install/build/GHC/PrimopWrappers.hs libraries/ghc-prim/./GHC/Tuple.hs libraries/ghc-prim/./GHC/Types.hs libraries/ghc-prim/dist-install/build/GHC/PrimopWrappers.hs:5:22: parse error on input `#'
This can be solved by adding
{-# LANGUAGE MagicHash #-}
to the file halvm-ghc/libraries/ghc-prim/dist-install/build/GHC/PrimopWrappers.hs
However, this seems to be an intermediate file generated during compilation, I do not know which real file this corresponds to.
This appears to have been fixed by syncing with a more up-to-date version of ghc and base, both of which are now in HEAD.
Compilation fails with the error message
This can be solved by adding
to the file halvm-ghc/libraries/ghc-prim/dist-install/build/GHC/PrimopWrappers.hs
However, this seems to be an intermediate file generated during compilation, I do not know which real file this corresponds to.