Skip to content
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

Linking fails with 9.4.* on Windows when using lld linker #9414

Closed
erikd opened this issue Nov 7, 2023 · 3 comments
Closed

Linking fails with 9.4.* on Windows when using lld linker #9414

erikd opened this issue Nov 7, 2023 · 3 comments
Labels
platform: windows re: error-message Concerning error messages delivered to the user type: bug

Comments

@erikd
Copy link
Member

erikd commented Nov 7, 2023

Describe the bug

Numerous cabal testsuite failures with (at least) ghc-9.4.* on Windows of the form:

lld: error: unknown argument: -r

To Reproduce
Steps to reproduce the behavior:

  • Use ghc-9.4.* on Windows in a setup using the lld linker.
  • Build cabal run the cabal testsuite using ./validate.sh.

Expected behavior
There should be a more comprehensible error message.

System information

  • Windows.
  • cabal <= 3.10.1.0 and ghc-9.4.*

Additional context
Add any other context about the problem here.

@erikd
Copy link
Member Author

erikd commented Nov 7, 2023

Better error message in #9270 .

erikd added a commit to erikd/cabal that referenced this issue Nov 7, 2023
The `lld` linker (commonly used on Windows) does not support
relocatable output.

Closes: haskell#9414
erikd added a commit to erikd/cabal that referenced this issue Nov 7, 2023
The `lld` linker (commonly used on Windows) does not support
relocatable output.

Closes: haskell#9414
erikd added a commit to erikd/cabal that referenced this issue Nov 7, 2023
The `lld` linker (commonly used on Windows) does not support
relocatable output.

Closes: haskell#9414
@Mikolaj Mikolaj added platform: windows re: error-message Concerning error messages delivered to the user and removed needs triage labels Nov 7, 2023
erikd added a commit to erikd/cabal that referenced this issue Nov 12, 2023
The `lld` linker (commonly used on Windows) does not support
relocatable output.

Closes: haskell#9414
erikd added a commit to erikd/cabal that referenced this issue Nov 14, 2023
The `lld` linker (commonly used on Windows) does not support
relocatable output.

Closes: haskell#9414
@erikd
Copy link
Member Author

erikd commented Nov 15, 2023

This can be closed when #9443 us merged (its a better solution).

@erikd
Copy link
Member Author

erikd commented Nov 21, 2023

#9443 has been merged.

@erikd erikd closed this as completed Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: windows re: error-message Concerning error messages delivered to the user type: bug
Projects
None yet
Development

No branches or pull requests

2 participants