-
Notifications
You must be signed in to change notification settings - Fork 92
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
Set LD=ld.bfd on Alpine linux during bindist configure #968
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How much work would it be to test in CI that this fixes the segfault issue?
This also fixes #962, right? |
No, it unfortunately doesn't. I'm suspecting an actual bug in 9.4.8 series. |
I don't feel that's gonna add much. We have evidence here:
The minimal reproducer (C code) is shown here (and still works): https://gitlab.haskell.org/ghc/ghc/-/issues/17508#note_372662 There's no minimal reproducer for Haskell. My past days as Gentoo distributor also remind me that ld.gold was always more problematic, so I don't think it's a good default to begin with. |
Ah, silly me... I didn't edit the settings file correctly. Obviously, this works:
Then make sure your ghc settings file has these lines:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The way I read the code, we previously ran the configure script with an empty environment — ie. it did not inherit anything from the environment of GHCup. Is this correctly understood?
If this is the case then I'm not convinced that we should pass all of GHCup's environment plus LD=ld.bfd
to the configure script in the positive case. In that case why not use an environment with only LD=ld.bfd
?
No, that's not correct. That parameter overwrites the current environment for the subprocess. |
So passing If that's the case then why do we need
instead of just
? |
No, you pass the entire environment. |
Okay I understand now. I thought passing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good to me. But I don't have a way to test it, so I will leave that up to you.
Fixes #967