Haskell Ghc Compiling/Linking Error, Not Creating Executable. (Linux)

Haskell ghc compiling/linking error, not creating executable. (linux)

Have you binutils-gold installed? If yes, this is the problem (since the gold linker does not support --hash-size AFAIK).

Possible solutions:

  1. remove gold
  2. your ld probably links to ld.gold, so change the symlink to ld.ld
  3. tell the haskell compiler explicitly which linker to use with the -pgml option: ghc -pgml ld.ld tupel.hs
  4. install ghc from source, since the configure script of ghc will then build ghc so that it won't use --hash-size
  5. Depending on your version of ghc, you can adjust the linker settings in ghc's setting file /usr/lib/ghc-your.ghc.version/settings

GHC undefined reference to Paths in dependency

You need to include the Paths_rlglue module in exposed-modules or other-modules like any other module in your project so that Cabal will link it.

Cabal should be better about telling you what is going on, see https://github.com/haskell/cabal/issues/1746.

cross-compiling haskell code through ghc and mingw tools

GHC can't be used as a cross-compiler out of the box. The build system has some support for cross-compilation which we're currently working on improving. For more information, see CrossCompilation on the GHC wiki. I suggest taking further discussion to the glasgow-haskell-users or cvs-ghc mailing lists.



Related Topics



Leave a reply



Submit