haskell / alex

A lexical analyser generator for Haskell
https://hackage.haskell.org/package/alex
BSD 3-Clause "New" or "Revised" License
297 stars 82 forks source link

alex-3.2.0: tests missing targets #94

Closed juhp closed 7 years ago

juhp commented 7 years ago

While building for Stackage Nightly:

../dist/build/alex/alex --template=.. -g tokens_bytestring_unicode.x -o tokens_bytestring_unicode.g.hs
ghc -Wall -fno-warn-missing-signatures -fno-warn-name-shadowing -fno-warn-unused-imports -fno-warn-tabs -Werror -package array -package bytestring  tokens_bytestring_unicode.g.hs -o tokens_bytestring_unicode.g.bin
[1 of 1] Compiling Main             ( tokens_bytestring_unicode.g.hs, tokens_bytestring_unicode.g.o )
Linking tokens_bytestring_unicode.g.bin ...
./tokens_bytestring_unicode.g.bin
make: *** No rule to make target 'basic_typeclass.n.run', needed by 'all'.
make: *** No rule to make target 'basic_typeclass.g.run', needed by 'all'.
make: *** No rule to make target 'basic_typeclass_bytestring.n.run', needed by 'all'.
make: *** No rule to make target 'basic_typeclass_bytestring.g.run', needed by 'all'.
make: *** No rule to make target 'strict_typeclass.n.run', needed by 'all'.
make: *** No rule to make target 'strict_typeclass.g.run', needed by 'all'.
make: *** No rule to make target 'posn_typeclass.n.run', needed by 'all'.
make: *** No rule to make target 'posn_typeclass.g.run', needed by 'all'.
make: *** No rule to make target 'posn_typeclass_bytestring.n.run', needed by 'all'.
make: *** No rule to make target 'posn_typeclass_bytestring.g.run', needed by 'all'.
make: *** No rule to make target 'gscan_typeclass.n.run', needed by 'all'.
make: *** No rule to make target 'gscan_typeclass.g.run', needed by 'all'.
make: *** No rule to make target 'monad_typeclass.n.run', needed by 'all'.
make: *** No rule to make target 'monad_typeclass.g.run', needed by 'all'.
make: *** No rule to make target 'monad_typeclass_bytestring.n.run', needed by 'all'.
make: *** No rule to make target 'monad_typeclass_bytestring.g.run', needed by 'all'.
make: *** No rule to make target 'monadUserState_typeclass.n.run', needed by 'all'.
make: *** No rule to make target 'monadUserState_typeclass.g.run', needed by 'all'.
make: *** No rule to make target 'monadUserState_typeclass_bytestring.n.run', needed by 'all'.
make: *** No rule to make target 'monadUserState_typeclass_bytestring.g.run', needed by 'all'.
make: *** No rule to make target 'default_typeclass.n.run', needed by 'all'.
make: *** No rule to make target 'default_typeclass.g.run', needed by 'all'.
make: Target 'all' not remade because of errors.
make: Leaving directory '/tmp/stackage-build8/alex-3.2.0/tests'
erikd commented 7 years ago

@juhp I recreated this problem with just cabal. The recipe is:

cabal fetch alex
cd /tmp
tar xf ~/.cabal/packages/hackage.haskell.org/alex/3.2.0/alex-3.2.0.tar.gz
cd alex-3.2.0/
cabal sandbox init
cabal install --dependencies-only --enable-tests
cabal build
cabal test

which gets pretty much the same error as you see.

It looks like there are some files missing from the cabal file.