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:
- remove gold
- your
ld
probably links told.gold
, so change the symlink told.ld
- tell the haskell compiler explicitly which linker to use with the
-pgml
option:ghc -pgml ld.ld tupel.hs
- install
ghc
from source, since the configure script ofghc
will then buildghc
so that it won't use--hash-size
- Depending on your version of
ghc
, you can adjust the linker settings inghc
'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
What Length Can a Network Interface Name Have
How Do Programs Communicate with Each Other
Bash Completion for Path in Argument (With Equals Sign Present)
What's the Max File Mapping Size in 64Bits MAChine
Docker: Ssh Access Directly into Container
Bluetooth Low Energy:Android Gatt-Client Connect to Linux Gatt Server
Windows Equivalent of ./ (Current Directory)
Why Exported Variables in Makefile Is Not Received by Executable
How to Disable Specific Warning When -Wall Is Enabled
Why /Lib32/Libc.So.6 Has Two "Fopen" Symbol in It
Linux How to Add a File to a Specific Folder Within a Zip File
What Do the Suffixes "+" and "-" After the Job Id of Background Jobs Mean
Configure Options for Building Mingw-64 on Linux-64 for Linux-64 (Ultimately Targetting Windows-64)
Difference Between Linux Kernel and Unix Kernel(Such as Freebsd) from Programmer's Point of View
Why Does If [ !$(Grep -Q) ] Not Work When If Grep -Q Does