Linker.c:resolveObjs returns HSbase-4.14.3.0.o: unknown symbol `iconv_open'
Summary
On FreeBSD the resolveObjs()
function is unable to load HSbase-4.14.3.0.o
due to missing references to iconv_*
functions.
Steps to reproduce
- Install the https://hackage.haskell.org/package/clash-ghc package for GHC 8.10.7 using cabal.
- Run
clash --vhdl /dev/null
.
Loaded package environment from /root/my-clash-project/.ghc.environment.x86_64-freebsd-8.10.7
clash: /usr/local/lib/ghc-8.10.7/base-4.14.3.0/HSbase-4.14.3.0.o: unknown symbol `iconv_open'
clash: Could not load Object Code /usr/local/lib/ghc-8.10.7/base-4.14.3.0/HSbase-4.14.3.0.o.
The error message comes from rts/Linker.c
, however it is unclear to me what to do next.
Expected behavior
clash
and clashi
executables work as expected
Environment
- GHC version used: 8.10.7
- Operating System: FreeBSD
- System Architecture: x86_64