Skip to content

Work around GHC bug in macOS 11 #5456

@yairchu

Description

@yairchu

In macOS 11 (which comes pre-installed on new Macs), stack/GHC fails building anything using OpenGL or other system frameworks (GHC bug #18446).

It's already fixed in GHC HEAD, but not in any currently released version of GHC yet.

However the problem is work-aroundable. I already work around it using a DYLD_INSERT_LIBRARIES= library inserted to stack to emulate the behavior that GHC relied on.

But the workaround can be integrated into stack itself and then people won't need to even know about the problem in the first place!

If integrated into stack, the work-around can be more focused with DYLD_INSERT_LIBRARIES= done only to GHC and having a simpler implementation than my current one (which contains efforts to make sure that its hooking propagates from stack to the actual ghc being run within it)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions