digital-asset / ghc-lib

The GHC API, decoupled from GHC versions
Other
161 stars 9 forks source link

keepCAFsForGHCi causes a duplicate symobl #562

Closed abarbu closed 2 days ago

abarbu commented 6 days ago

The GHCi defines keepCAFsForGHCi which ghc-lib-parser also pulls in. This leads to a duplicate symbol error in the linker when using ihaskell in some conditions. Like other cbits symbols this should be renamed. I renamed it with objcopy to ghc_lib_parser_keepCAFsForGHCi and everything works correctly.

shayne-fletcher commented 4 days ago

any chance you have a repeatable procedure to produce a failure?