-
Notifications
You must be signed in to change notification settings - Fork 724
Closed as not planned
Closed as not planned
Copy link
Labels
build-type: customcabal-install: cmd/installcabal-install: customplatform: linuxre: dynamic-linkingConcerning dynamic linking (e.g. flags "shared", "*-dynamic")Concerning dynamic linking (e.g. flags "shared", "*-dynamic")
Description
cabal install Agda fails with executable-dynamic: True in config file:
cabal install Agdafails 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/configto ghc when building custom Setup.hs #6505
ulidtko
Metadata
Metadata
Assignees
Labels
build-type: customcabal-install: cmd/installcabal-install: customplatform: linuxre: dynamic-linkingConcerning dynamic linking (e.g. flags "shared", "*-dynamic")Concerning dynamic linking (e.g. flags "shared", "*-dynamic")