Skip to content
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

Fix GHC loadArchive clang++ error on macOS #149942

Closed
wants to merge 1 commit into from
Closed

Fix GHC loadArchive clang++ error on macOS #149942

wants to merge 1 commit into from

Commits on Dec 10, 2021

  1. Fix GHC loadArchive clang++ error on macOS

    GHC 8.6.4 introduced an issue where linking to `-libc++` will cause
    GHC to resolve the library patch to `c++`, which in turn is a link to
    clang++.
    
    This results in the following error:
    
    ```
    ghc: loadArchive: Neither an archive, nor a fat archive: `/nix/store/?-clang-wrapper-5.0.2/bin/clang++'
    
    <no location info>: error:
        loadArchive "/nix/store/?-clang-wrapper-5.0.2/bin/clang++": failed
    ```
    
    This commit applies the relevant patch to revert GHC's linking behavior
    on darwin for the applicable versions of GHC (i.e. after 8.6.4).
    jkachmar committed Dec 10, 2021
    Configuration menu
    Copy the full SHA
    e9d090f View commit details
    Browse the repository at this point in the history