Skip to content

Eliminate redundant dependency on libgcc_s on Windows - #498

Closed
bgamari wants to merge 1 commit into
haskell:masterfrom
bgamari:wip/T497
Closed

bgamari wants to merge 1 commit into
haskell:masterfrom
bgamari:wip/T497

Conversation

@bgamari

@bgamari bgamari commented Mar 9, 2022

Copy link
Copy Markdown
Contributor

This dependency causes an unnecessary dynamic dependency on Windows,
resulting in GHC #21196.

Fixes #497.

This dependency causes an unnecessary dynamic dependency on Windows,
resulting in GHC #21196.

Fixes haskell#497.
@bgamari

bgamari commented Mar 9, 2022

Copy link
Copy Markdown
Contributor Author

This will need to be backported to 0.11.3.0 for GHC 9.2.3.

Comment thread bytestring.cabal
@@ -139,7 +139,7 @@ library
-- * https://gitlab.haskell.org/ghc/ghc/-/issues/20525#note_385580
-- * https://gitlab.haskell.org/ghc/ghc/-/issues/19417

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to update this comment. At least the first link suggests having the gcc_s extra-library.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My reading of the issues comments correct leads me to conclude gcc_s is needed on Linux for template Haskell, but not on Windows because some things are "simulated"?

@hasufell

Copy link
Copy Markdown
Member

Can this be moved forward quickly? 9.2.2 is currently broken on windows and distributed via ghcup. Users will start complaining soon.

@Bodigrim

Copy link
Copy Markdown
Contributor

@hasufell we need a CI job, ensuring that such thing does not happen in future again. I assume such job should build bytestring-tests.exe and try running it in an environment without MSYS in PATH.

@hasufell

hasufell commented Mar 12, 2022 •

Copy link
Copy Markdown
Member

@hasufell we need a CI job, ensuring that such thing does not happen in future again. I assume such job should build bytestring-tests.exe and try running it in an environment without MSYS in PATH.

The only way to reproduce this is if you build GHC with the current bytestring version. I don't think that has its place in this repo, this is already done in GHC: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/7738

MSYS2 is not in PATH by default in github actions anyway, to my knowledge. That would wreak havoc.

@Bodigrim

Copy link
Copy Markdown
Contributor

I thought that any executable built against bytestring package, which refers gcc_s, is affected, both ghc.exe itself and bytestring-tests.exe. I must have misunderstood the issue?..

hasufell added a commit to hasufell/bytestring that referenced this pull request Mar 12, 2022
The windows test should fail here.
hasufell added a commit to hasufell/bytestring that referenced this pull request Mar 12, 2022
The windows test should fail here.
Bodigrim pushed a commit that referenced this pull request Mar 13, 2022
* Test gcc_s error wrt #498

The windows test should fail here.

* Eliminate redundant dependency on libgcc_s on Windows

This dependency causes an unnecessary dynamic dependency on Windows,
resulting in GHC #21196.

Fixes #497.

Co-authored-by: Ben Gamari <[email protected]>
@Bodigrim

Copy link
Copy Markdown
Contributor

Superseded by #500.

@Bodigrim Bodigrim closed this Mar 13, 2022
Bodigrim pushed a commit to Bodigrim/bytestring that referenced this pull request Mar 22, 2022
* Test gcc_s error wrt haskell#498

The windows test should fail here.

* Eliminate redundant dependency on libgcc_s on Windows

This dependency causes an unnecessary dynamic dependency on Windows,
resulting in GHC #21196.

Fixes haskell#497.

Co-authored-by: Ben Gamari <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inappropriate dependency on libgcc_s

5 participants