Can't build `ghc-8.8` branch with `happy-1.19.10`
Building the ghc-8.8
branch (commit c56dad01) with happy-1.19.10
results in the following error:
$ make -j1
===--- building phase 0
make --no-print-directory -f ghc.mk phase=0 phase_0_builds
make[1]: Nothing to be done for 'phase_0_builds'.
===--- building phase 1
make --no-print-directory -f ghc.mk phase=1 phase_1_builds
"/opt/ghc/8.6.5/bin/ghc" -hisuf hi -osuf o -hcsuf hc -static -O0 -H64m -Wall -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -package-db libraries/bootstrapping.conf -this-unit-id ghc-8.8.0.20190426 -hide-all-packages -i -icompiler/backpack -icompiler/basicTypes -icompiler/cmm -icompiler/codeGen -icompiler/coreSyn -icompiler/deSugar -icompiler/ghci -icompiler/hsSyn -icompiler/iface -icompiler/llvmGen -icompiler/main -icompiler/nativeGen -icompiler/parser -icompiler/prelude -icompiler/profiling -icompiler/rename -icompiler/simplCore -icompiler/simplStg -icompiler/specialise -icompiler/stgSyn -icompiler/stranal -icompiler/typecheck -icompiler/types -icompiler/utils -icompiler/hieFile -icompiler/stage1/build -Icompiler/stage1/build -icompiler/stage1/build/./autogen -Icompiler/stage1/build/./autogen -Icompiler/. -Icompiler/parser -Icompiler/utils -Icompiler/stage1 -Icompiler/stage1/build/. -Icompiler/stage1/build/parser -Icompiler/stage1/build/utils -Icompiler/stage1/build/stage1 -optP-include -optPcompiler/stage1/build/./autogen/cabal_macros.h -package-id array-0.5.3.0 -package-id base-4.12.0.0 -package-id binary-0.8.6.0 -package-id bytestring-0.10.8.2 -package-id containers-0.6.0.1 -package-id deepseq-1.4.4.0 -package-id directory-1.3.3.0 -package-id filepath-1.4.2.1 -package-id ghc-boot-8.8.0.20190426 -package-id ghc-boot-th-8.8.0.20190426 -package-id ghc-heap-8.8.0.20190426 -package-id ghci-8.8.0.20190426 -package-id hpc-0.6.0.3 -package-id process-1.6.5.0 -package-id template-haskell-2.15.0.0 -package-id terminfo-0.4.1.3 -package-id time-1.8.0.2 -package-id transformers-0.5.6.2 -package-id unix-2.7.2.2 -Wall -Wno-name-shadowing -Wnoncanonical-monad-instances -Wnoncanonical-monoid-instances -this-unit-id ghc -XHaskell2010 -XNoImplicitPrelude -DSTAGE=1 -Rghc-timing -O -Wcpp-undef -no-user-package-db -rtsopts -O0 -fno-ignore-interface-pragmas -fcmm-sink -outputdir compiler/stage1/build -c compiler/stage1/build/Parser.hs -o compiler/stage1/build/Parser.o
compiler/stage1/build/Parser.hs:1487:48: error:
Not in scope: type variable ‘a’
|
1487 | newtype HappyWrap211 = HappyWrap211 (([Located a],Bool))
| ^
<<ghc: 1566236888 bytes, 272 GCs, 22676065/72601344 avg/max bytes residency (8 samples), 152M in use, 0.000 INIT (0.000 elapsed), 0.549 MUT (0.560 elapsed), 0.464 GC (0.464 elapsed) :ghc>>
compiler/ghc.mk:444: recipe for target 'compiler/stage1/build/Parser.o' failed
make[1]: *** [compiler/stage1/build/Parser.o] Error 1
Makefile:123: recipe for target 'all' failed
make: *** [all] Error 2
The use of make
here is inconsequential, as the same error also occurs with Hadrian.
cc @int-index