Skip to content

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

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
Edited by Gleb Popov
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information