Closed sgraf812 closed 5 months ago
$ runghc bootstraph.sh
worked for me, but I don't see it documented (yet?). Also it pollutes git status
.
I can't reproduce this locally. The build succeeds for me. Are you sure it's a fresh clone of the repo?
despite having happy-1.20 in PATH
Actually, it sounds like your happy
in PATH was not installed correctly. You'd probably see a similar error trying to build other projects with it.
How strange. It works if I start a clean build in a nix-shell --pure -p ghc cabal-install happy
. Nevermind then, sorry for the noise.
Actually I must take that back. Perhaps I didn't read it right back in Feb or perhaps I tried it on another machine. This is on Ubuntu 22.04:
$ nix-shell --pure -p ghc cabal-install happy
...
$ cabal build
...
[5 of 5] Compiling Happy.Tabular ( src/Happy/Tabular.lhs, /evo/code/hs/happy/dist-newstyle/build/x86_64-linux/ghc-9.4.8/happy-tabular-2.0/build/Happy/Tabular.o, /evo/code/hs/happy/dist-newstyle/build/x86_64-linux/ghc-9.4.8/happy-tabular-2.0/build/Happy/Tabular.dyn_o )
Error: cabal: Failed to build happy-frontend-2.0 (which is required by
exe:happy from happy-2.0).
same error as in #274.
I will close this issue again in favor of #274, where Vlad already started to diagnose the error.
Here's a log of my attempt to build happy on abcd8c0:
According to https://haskell-happy.readthedocs.io/en/latest/contributing.html#build-instructions, this should just work. Apparently the build has trouble finding a generated file,
/evo/code/hs/happy/././HappyTemplate-arrays-coerce
. Perhaps it is looking in the wrong path, butfd -uup
doesn't turn it up either.