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

Haddock 2.30 faillure in profiling mode #2127

Open
ylecornec opened this issue Feb 21, 2024 · 0 comments
Open

Haddock 2.30 faillure in profiling mode #2127

ylecornec opened this issue Feb 21, 2024 · 0 comments

Comments

@ylecornec
Copy link
Member

It seems that haddock 2.30 which comes with ghc 9.8.1 now requires .hi interface files as input.

See https://github.com/haskell/haddock/blob/ghc-9.8/doc/invoking.rst#avoiding-recompilation

This is a problem when profiling is enabled since only p_hi files are present in the sandbox in this case.

To Reproduce

The following command fails on the ylecornec/ghc_9_8_1 branch (at least with a nix provided ghc).

$ cd rules_haskell_test && GHC_VERSION=9.8.1 bazel build -c dbg //tests:toto
Failed to load interface for ‘LZ4’
  • If we copy a non profiling lz4.hi file to the sandbox next to lz4.p_hi the build is successful
  • If we change the extension of profiled interface files from p_hi to hi the file is found by haddock but there is a different error:
    Exception when reading interface file  bazel-out/k8-dbg/bin/tests/testsZSlz4/_iface/LZ4.hi
      mismatched interface file profile tag (wanted "", got "p")
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant