Skip to content

PackageTests/ForeignLibs/setup.test.hs fails on MacOS on GHC 8.0.2 #7989

Closed

Description

@andreabedini

PackageTests/ForeignLibs/setup.test.hs fails on MacOS on GHC 8.0.2, discovered while working on #7952

creating /Users/runner/work/cabal/cabal/cabal-testsuite/PackageTests/ForeignLibs/setup.dist/usr/lib
Installing executable setup.dist/work/dist/build/myforeignlib/libmyforeignlib.dylib to /Users/runner/work/cabal/cabal/cabal-testsuite/PackageTests/ForeignLibs/setup.dist/usr/lib/libmyforeignlib.dylib
+ /usr/bin/gcc '-std=c11' -Wall -o uselib UseLib.c -l myforeignlib -L /Users/runner/work/cabal/cabal/cabal-testsuite/PackageTests/ForeignLibs/setup.dist/usr/lib
+ /Users/runner/work/cabal/cabal/cabal-testsuite/PackageTests/ForeignLibs/./uselib
dyld: REBASE_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB has segment 2 which is not a writable segment (__LINKEDIT) in /Users/runner/work/cabal/cabal/cabal-testsuite/PackageTests/ForeignLibs/setup.dist/usr/lib/x86_64-osx-ghc-8.0.2/libHSmy-foreign-lib-0.1.0.0-ghc8.0.2.dylib

stderr:
*** Exception: Command /Users/runner/work/cabal/cabal/cabal-testsuite/PackageTests/ForeignLibs/./uselib failed.
Output:
dyld: REBASE_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB has segment 2 which is not a writable segment (__LINKEDIT) in /Users/runner/work/cabal/cabal/cabal-testsuite/PackageTests/ForeignLibs/setup.dist/usr/lib/x86_64-osx-ghc-8.0.2/libHSmy-foreign-lib-0.1.0.0-ghc8.0.2.dylib



*** unexpected failure for PackageTests/ForeignLibs/setup.test.hs

See full log here

Activity

  1. Mikolaj commented on Feb 17, 2022

    @Mikolaj
    Member

    That's most likely a GHC 8.0 bug and we will drop GHC 8.0 in a year or two. However, there is low probability that it's actually a cabal bug, so worth making sure that it isn't.

  2. added
    type: testing
    on Mar 3, 2022
  3. added a commit that references this issue on Mar 6, 2022
  4. jneira commented on Apr 25, 2022

    @jneira
    Member

    Hi, the test was marked as broken for ghc >= 9.0 and windows with #8045. I forgot to comment here the new case (but this issue was linked in several commits, including the merge in master).

    Later the case was fixed by #7764 and the test was unmarked as broken for windows and those ghc versions by #8111.

    So the issue state is the initial one: it is reproduced in macos and ghc 8.0.2

  5. ulysses4ever commented on Aug 18, 2022

    @ulysses4ever
    Collaborator

    As of bd998ce, 8.0 is no longer used on CI. Should this be closed?

  6. Mikolaj commented on Aug 19, 2022

    @Mikolaj
    Member

    Yes, let me close. Thank you.

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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions