Closed as not planned
Closed as not planned
Description
cabal install Agda
fails with executable-dynamic: True
in config file:
cabal install Agda
fails with executable-dynamic agda/agda#7163- Reproducer on Linux: Re #7163: test installing with --enable-executable-dynamic in CI agda/agda#7172
What is puzzling that cabal install Agda --enable-executable-dynamic
(instead of setting in the config file) succeeds: https://github.com/agda/agda/actions/runs/8184356501/job/22378664111?pr=7172
Agda fails in the copyHook
in its Setup.hs
when it tries to invoke the just-built executable: https://github.com/agda/agda/blob/dee0d2e1300b43ac91517c3a5c58cae6b6af3a3d/Setup.hs#L134-L140
This situation has been discussed elsewhere in this issue tracker:
The current issue highlights the discrepancy in behavior between passing the command-line flag and changing the config setting for dynamic linking.
Related:
- the opposite problem, but for
ghc-options: -dynamic
: v2-build does not pass ghc-options in.cabal/config
to ghc when building custom Setup.hs #6505