-
Notifications
You must be signed in to change notification settings - Fork 710
Alert the user that on Windows, with configuration executable-dynamic: True
executables (including build-tools) cannot be built
#9807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Dynamic linking in Windows is simply not supported by GHC. This is not a Cabal bug unless you wanted to imply that I'm closing this issue, please re-open of you disagree |
I do disagree.
I do think it should exit with an error explaining the problem. Aren't we Haskell programmers? Aren't we proposing strong typing? |
Perfectly understandable! Could you change the title or description so that just with a glance it is clear that is what you would like to see implemented? I think the idea is very useful and might be worth adding a specific mechanism for it so that other configurations that are known unusable are also included (such as using rpath on Windows which I think also fails) |
executable-dynamic: True
executables (including build-tools) cannot be builtexecutable-dynamic: True
executables (including build-tools) cannot be built
Note this already exists with relocatable builds:
It should just be a matter of doing a very similar check for shared executables if we are on Windows. |
Sounds like a low-hanging fruit then. I'll put the "newcomer" label on it. |
Ah actually I did it while waiting for some tests, it was barely a 10 lines change in total |
This issue is singled out from:
cabal install Agda
fails inSetup.hs
withexecutable-dynamic: True
in config file (Linux) #9784Adding
executable-dynamic: True
to the cabal configuration on Windows will fail executables to build.This include situations where you just want to build a library, but it has
build-tool-depends: alex
or similar causing the linking of build-toolalex
to fail.Reproduced on a fresh Haskell installation: https://github.com/agda/agda/actions/runs/8213506540/job/22465003537#step:10:233
The text was updated successfully, but these errors were encountered: