Open facundominguez opened 3 years ago
It's rules_haskell who is adding -no-pie to the linking flags. Commenting this line makes clodl build fine: https://github.com/tweag/rules_haskell/blob/42b8b43623b82a6b7cfb151f01986735a135e0a9/haskell/private/actions/link.bzl#L113
Once GHC 8.8.5, 8.10.3, and 9.0.1 are released we'll be able to fix this in rules_haskell.
I made a temporary hack until this is fixed. https://github.com/tweag/rules_haskell/compare/fd/no-pie-hack This branch should be removed when this is closed.
Seems related to this: https://github.com/tweag/rules_haskell/issues/1418
GHC is passing
-no-pie
to the linker when building the haskell binary, and the subsequent attempt to link the wrapper fails probably because of that.