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

MIN_VERSION_ghc instead of __GLASGOW_HASKELL__ #12

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

edsko
Copy link
Collaborator

@edsko edsko commented Apr 27, 2024

It seems that when ghc tries to build the plugin with the bootstrap compiler, MIN_VERSION_ghc reports that we are using the GHC API 9.10 but __GLASGOW_HASKELL__ reports GHC 9.8. After this change, the plugin builds during building ghc.

Unfortunately, as soon as we try to build anything with the plugin, compilation fails with

libraries/ghc-prim/GHC/CString.hs:1:1: error: [GHC-51294]
    Failed to load interface for ‘GHC.Internal.Debug.Trace’.
    no unit id matching ‘ghc-internal’ was found

It seems that when `ghc` tries to build the plugin with the bootstrap compiler,
`MIN_VERSION_ghc` reports that we are using the GHC API 9.10 but
`__GLASGOW_HASKELL__` reports GHC 9.8. After this change, the plugin builds
during building `ghc`.

Unfortunately, as soon as we try to build anything _with_ the plugin,
compilation fails with

```
libraries/ghc-prim/GHC/CString.hs:1:1: error: [GHC-51294]
    Failed to load interface for ‘GHC.Internal.Debug.Trace’.
    no unit id matching ‘ghc-internal’ was found
```
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.

1 participant