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

Some tests fail on aarch64 #130

Closed ggardet closed 5 years ago

ggardet commented 5 years ago

On AArch64, I need to remove all tests after tokens.x from Makefile:

tokens_bytestring_unicode.x 
tokens_monad_bytestring.x
tokens_monadUserState_bytestring.x
tokens_posn.x tokens_posn_bytestring.x 
tokens_scan_user.x 
tokens_strict_bytestring.x
unicode.x

because of hanging ghc for *.g.hs (*.n.hs are fine) Example of hanging commands: ghc -Wall -fno-warn-missing-signatures -fno-warn-unused-imports -fno-warn-tabs -Werror -package array -package bytestring tokens_monad_bytestring.g.hs -o tokens_monad_bytestring.g.bin

What is strange is, if I remove tokens.x, then next test (tokens_bytestring.x) succeeds, but the one after still fails. Any idea what's going on?

simonmar commented 5 years ago

No idea I'm afraid. But perhaps this is a GHC bug and not an Alex bug? I suggest opening a ticket at https://ghc.haskell.org/trac/ghc with the example code that causes the compiler to hang.