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

GHC 7.10 HPC test failures #2457

Closed
23Skidoo opened this issue Mar 6, 2015 · 13 comments · Fixed by #2471
Closed

GHC 7.10 HPC test failures #2457

23Skidoo opened this issue Mar 6, 2015 · 13 comments · Fixed by #2471
Assignees

Comments

@23Skidoo
Copy link
Member

23Skidoo commented Mar 6, 2015

Quite a lot of tests are failing on Travis with GHC HEAD right now with an error message that looks like:

PackageTests/TestSuiteExeV10/dist-WithHpc-LibProfExeProfExeDynShared/hpc/prof/mix/my-0.1/my-0.1/Foo.mix should exist

@ttuegel, can you please take a look?

@ttuegel
Copy link
Member

ttuegel commented Mar 8, 2015

Looks like GHC stopped respecting the -hpcdir option. I will double-check locally once I get GHC HEAD installed and file a bug with GHC if needed. This only affects HEAD and not the 7.10 branch, right? With the upcoming release, would it be possible to get a 7.10 branch test?

@23Skidoo
Copy link
Member Author

23Skidoo commented Mar 8, 2015

Updated travis.yml to also run tests with GHC 7.10.1 snapshot.

@23Skidoo
Copy link
Member Author

23Skidoo commented Mar 9, 2015

Looks like we'll have to wait until someone uploads a patched version of ansi-wl-pprint (see batterseapower/ansi-wl-pprint#11).

@ddssff
Copy link
Contributor

ddssff commented Mar 9, 2015

You can add something like this to the travis install: section:

- travis_retry git clone https://github.com/hvr/ansi-wl-pprint --branch pr-base48
- cabal install ./ansi-wl-pprint

@23Skidoo
Copy link
Member Author

23Skidoo commented Mar 9, 2015

@ddssff Thanks, that worked.

@23Skidoo
Copy link
Member Author

23Skidoo commented Mar 9, 2015

@ttuegel Looks like this also happens with 7.10.

@ddssff
Copy link
Contributor

ddssff commented Mar 10, 2015

@23Skidoo it looks like version 0.6.7.1 of ansi-wl-pprint from hackage is replacing hvr's patched version from github, which is still at 0.6.7. I created a fork in https://github.com/seereason/ansi-wl-pprint with the newer version number and made a pull request.

Hackage is becoming kind of a mess...

@ttuegel
Copy link
Member

ttuegel commented Mar 15, 2015

I cannot work on this currently because Cabal won't build with GHC HEAD. Looks like something to do with the last-minute changes to AMP.

@23Skidoo
Copy link
Member Author

@ttuegel Which error are you getting?

@ttuegel
Copy link
Member

ttuegel commented Mar 15, 2015

[41 of 79] Compiling Distribution.Simple.Program.Db ( Distribution/Simple/Program/Db.hs, dist/setup/Distribution/Simple/Program/Db.o )

Distribution/Simple/Program/Db.hs:470:28:
    Not in scope: ‘<$>’
    Perhaps you meant ‘<*>’ (imported from Prelude)

@23Skidoo
Copy link
Member Author

@ttuegel You are using an old snapshot of GHC HEAD that doesn't have <$> in the Prelude.

@ttuegel
Copy link
Member

ttuegel commented Mar 15, 2015

Right, thanks. I don't know why I thought NixOS's ghc-HEAD build would be up to date.

@ttuegel
Copy link
Member

ttuegel commented Mar 15, 2015

Looks like GHC >= 7.10 puts the module interfaces in $hpcdir/mix/$name-$version/$key now. I need to adjust the test according to GHC version.

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 a pull request may close this issue.

3 participants