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

Test suite failure with GHC 8 #18

Closed
snoyberg opened this issue May 26, 2016 · 2 comments
Closed

Test suite failure with GHC 8 #18

snoyberg opened this issue May 26, 2016 · 2 comments

Comments

@snoyberg
Copy link

> /tmp/stackage-build8/multiset-0.3.2$ runghc -clear-package-db -global-package-db -package-db=/home/stackage/work/builds/nightly/pkgdb Setup configure --enable-tests --package-db=clear --package-db=global --package-db=/home/stackage/work/builds/nightly/pkgdb --libdir=/home/stackage/work/builds/nightly/lib --bindir=/home/stackage/work/builds/nightly/bin --datadir=/home/stackage/work/builds/nightly/share --libexecdir=/home/stackage/work/builds/nightly/libexec --sysconfdir=/home/stackage/work/builds/nightly/etc --docdir=/home/stackage/work/builds/nightly/doc/multiset-0.3.2 --htmldir=/home/stackage/work/builds/nightly/doc/multiset-0.3.2 --haddockdir=/home/stackage/work/builds/nightly/doc/multiset-0.3.2 --flags=
Configuring multiset-0.3.2...
> /tmp/stackage-build8/multiset-0.3.2$ runghc -clear-package-db -global-package-db -package-db=/home/stackage/work/builds/nightly/pkgdb Setup build
Building multiset-0.3.2...
Preprocessing library multiset-0.3.2...
[1 of 2] Compiling Data.MultiSet    ( Data/MultiSet.hs, dist/build/Data/MultiSet.o )

Data/MultiSet.hs:139:1: warning: [-Wdodgy-imports]
    Module ‘Prelude’ does not export ‘join’

Data/MultiSet.hs:419:1: warning: [-Wredundant-constraints]
    • Redundant constraint: Ord a
    • In the type signature for:
           filter :: Ord a => (a -> Bool) -> MultiSet a -> MultiSet a

Data/MultiSet.hs:425:1: warning: [-Wredundant-constraints]
    • Redundant constraint: Ord a
    • In the type signature for:
           partition :: Ord a =>
                        (a -> Bool) -> MultiSet a -> (MultiSet a, MultiSet a)

Data/MultiSet.hs:580:1: warning: [-Wredundant-constraints]
    • Redundant constraint: Ord a
    • In the type signature for:
           fromMap :: Ord a => Map a Occur -> MultiSet a
[2 of 2] Compiling Data.IntMultiSet ( Data/IntMultiSet.hs, dist/build/Data/IntMultiSet.o )

Data/IntMultiSet.hs:133:1: warning: [-Wdodgy-imports]
    Module ‘Prelude’ does not export ‘join’
Preprocessing test suite 'doctests' for multiset-0.3.2...
[1 of 1] Compiling Main             ( test/Main.hs, dist/build/doctests/doctests-tmp/Main.o )
Linking dist/build/doctests/doctests ...
> /tmp/stackage-build8/multiset-0.3.2$ dist/build/doctests/doctests

/tmp/stackage-build8/multiset-0.3.2/Data/IntMultiSet.hs:671:0: error:
     fatal error: Typeable.h: No such file or directory
     #include "Typeable.h"
     ^
compilation terminated.
doctests: `gcc' failed in phase `C pre-processor'. (Exit code: 1)
@rcook
Copy link
Contributor

rcook commented May 26, 2016

@snoyberg, @twanvl: My proposed change should fix the test failures (I think).

@snoyberg: Is there such a thing as a Docker image for Stackage builds so that I can attempt to reproduce all the warnings and the compiler errors?

@rcook
Copy link
Contributor

rcook commented May 27, 2016

@snoyberg: Never mind. As per your blog post (https://www.fpcomplete.com/blog/2016/05/moving-stackage-nightly-ghc-8), I tested locally against Stackage nightly-2016-05-26 and all is well.

@twanvl twanvl closed this as completed in 2a15dc2 May 27, 2016
twanvl added a commit that referenced this issue May 27, 2016
Fixes #18: Do not include Typeable.h in GHC 8 and above
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

No branches or pull requests

2 participants