Skip to content

Inappropriate dependency on libgcc_s #497

Closed

Description

@bgamari

It appears that bytestring-0.11.3.0 exhibits the same behavior that text exhibited which lead to https://gitlab.haskell.org/ghc/ghc/-/issues/20878. Unfortunately, this means that 9.2.2 is currently broken on Windows. In text this was fixed by haskell/text#403.

Activity

  1. Bodigrim commented on Mar 8, 2022

    @Bodigrim
    Contributor

    Could someone please contribute a CI job, covering this configuration? We have Windows build, but it succeeds.

  2. sjakobi commented on Mar 8, 2022

    @sjakobi
    Member

    I assume this is the problematic bit in bytestring.cabal:

    bytestring/bytestring.cabal

    Lines 134 to 138 in ea3d88a

    -- Required, due to the following issues:
    -- * https://gitlab.haskell.org/ghc/ghc/-/issues/20525#note_385580
    -- * https://gitlab.haskell.org/ghc/ghc/-/issues/19417
    if os(windows)
    extra-libraries: gcc_s gcc

    Unfortunately I don't know how to fix it.

  3. bgamari commented on Mar 8, 2022

    @bgamari
    ContributorAuthor

    I believe that dropping gcc_s from extra libraries should do the trick.

  4. bgamari commented on Mar 8, 2022

    @bgamari
    ContributorAuthor

    Could someone please contribute a CI job, covering this configuration? We have Windows build, but it succeeds.

    The only way to test this sort of thing robustly is to run in a clean environment. Unfortunately, I don't think this is possible using GitHub Actions.

  5. Bodigrim commented on Mar 8, 2022

    @Bodigrim
    Contributor

    @bgamari is it possible to setup such job on GHC side? I'm happy to accept a patch as long as it passes our own CI, but I have no idea whether it is sufficient or not for GHC purposes.

  6. bgamari commented on Mar 8, 2022

    @bgamari
    ContributorAuthor

    @bgamari is it possible to setup such job on GHC side?

    Yes, I am working on it

  7. bgamari commented on Mar 8, 2022

    @bgamari
    ContributorAuthor

    @Bodigrim, on second thought, a "good enough" test might be possible with an approach similar to https://gitlab.haskell.org/ghc/ghc/-/merge_requests/7738/diffs#157f7634c25bc6366cb7c9c9edb48e819dce38db_468_473. That is, just try to run an executable in a subshell with a very minimal PATH (which is what Windows uses as its dynamic library search path).

  8. added 2 commits that reference this issue on Mar 9, 2022
    ca3c46a
    35038ec
  9. hasufell commented on Mar 11, 2022

    @hasufell
    Member

    Could someone please contribute a CI job, covering this configuration? We have Windows build, but it succeeds.

    Because you're not requesting 9.2.2, but 9.2 via haskell action, which resolves to 9.2.1 installed via chocolatey (which does not have 9.2.2 yet): https://github.com/haskell/bytestring/runs/5488135060?check_suite_focus=true#step:3:7

  10. added 3 commits that reference this issue on Mar 12, 2022
    081a217
    b5e2a22
    5dbf0a4
  11. linked a pull request that will close this issueTry to test gcc_s error wrt #498 #500on Mar 12, 2022
  12. added a commit that references this issue on Mar 13, 2022
    6c2534a
  13. added a commit that references this issue on Mar 22, 2022
    4528eb2
  14. added this to the 0.11.3.1 milestone on Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions