-
Notifications
You must be signed in to change notification settings - Fork 3
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
Unable to compile Bisons/Flex benchmarks #5
Comments
Yeah, they are voluntarily left out, because I consider it bad form to keep them in the repo when they are essentially "precompiled" files. I've forgotten the exact commands I used to generate my |
Is there a solution already? I get the following error after generating the c and h files with bison and lex:
|
I don't know what would cause that: I would just recommend disabling the nandlang benchmarks in the cabal file. |
(Also as an aside, I would recommend upgrading to 8.10+ when running benchmarks, the Parsley backend for 8.10+ has way more in the way of optimisations and general optimisation stability compared with 8.8-) |
Okay I’ll try upgrading GHC. But I would actually like to run the Nandland benchmarks, so disabling them is not an option for me :D |
very well, try the |
Thank you! It still doesn't seem to work with GHC 8.6.5... I'll need to upgrade then probably. |
that's strange, it works for 8.6.5 for me (with those generated files)! It looks like |
Looks like C files listed in:
https://github.com/J-mie6/ParsleyHaskell/blob/a20a8a6ad1c266b4eb3e5f3c3cb72be3daf1e6de/parsley.cabal#L51
are missing or voluntarily not committed in the git repository.
I thus naïvely tried to generate them manually like so:
However, when compiling benchmarks I hit this error:
Should I add some
pkgconfig-depends:
orextra-libraries:
because some C lib is missing?Or is it related to haskell/cabal#5623 ? But then how could it have ever worked?
Anyway, everything works as expected after removing this problematic benchmark: https://github.com/J-mie6/ParsleyHaskell/blob/a20a8a6ad1c266b4eb3e5f3c3cb72be3daf1e6de/benchmarks/Benchmarks.hs#L189
Thanks for this amazing library.
My current hacky
flake.nix
to reproduce if need be:The text was updated successfully, but these errors were encountered: