-
Notifications
You must be signed in to change notification settings - Fork 697
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
Windows, foreign-library, Cabal-3.10.3.0 regression in linker #9982
Comments
A difference between the two builds above is that, in the linking step, Cabal calls GHC 9.6.5 with additional arguments not present in the GHC 9.6.4 example:
|
Looking at: https://downloads.haskell.org/~ghc/9.6.5/docs/users_guide/shared_libs.html#finding-shared-libraries-at-runtime, I get the impression that |
Is there a corresponding ghc issue open? |
I don't think so - looks to me like a regression introduced into Cabal, not GHC. EDIT: unless you mean something to warn the GHC developers that there is this problem with that version of Cabal? |
This seems to work for me:
With your .cabal description above. |
I have a simple package
foo
with Cabal file:With GHC 9.6.4/
Cabal-3.10.1.0
it builds fine:With GHC 9.6.5/
Cabal-3.10.3.0
the build fails in the linker:Is this a regression introduced in
Cabal-3.10.3.0
?I wondered if it was related to:The ghc-options are not passed to the linker #9589(EDIT: I now think that's unrelated)EDIT: I am pretty sure that this is a regession between
Cabal-3.10.1.0
andCabal-3.10.3.0
because my example builds if I force Stack to build using GHC 9.6.5 but withCabal-3.10.1.0
, using:EDIT2: Using the same method, it appears to me to be a regression introduced between
Cabal-3.10.2.1
andCabal-3.10.3.0
.(EDIT 3: The good news is this is not a problem for GHC 9.10.0.20240426/Cabal-3.12.0.0.)
The text was updated successfully, but these errors were encountered: