Comments (6)
Thanks for the report! Can you provide some info about your OS
and happy
and alex
versions? GHC is 9.4.2, as I can see.
from bnfc.
Thanks for the report! Can you provide some info about your
OS
andhappy
andalex
versions? GHC is 9.4.2, as I can see.
The OS is Ubuntu 20.04.4 LTS
. Here is the info on alex
and happy
:
$ alex --version
Alex version 3.2.7.1, (c) 2003 Chris Dornan and Simon Marlow
$ happy --version
Happy Version 1.20.0 Copyright (c) 1993-1996 Andy Gill, Simon Marlow (c) 1997-2005 Simon Marlow
Happy is a Yacc for Haskell, and comes with ABSOLUTELY NO WARRANTY.
This program is free software; you can redistribute it and/or modify
it under the terms given in the file 'LICENSE' distributed with
the Happy sources.
from bnfc.
These are the latest version of happy
and alex
.
On my system (macOS Mojave) no special flag -lpthread
is needed, but it also does not harm.
I'd like some more evidence though that the addition is portable (Windows and other common OSs).
Note that one can always pass in extra flags via:
make GHC_OPTS='-lpthread'...
from bnfc.
These are old issues I found on the topic, but this was GHC 8.2:
There is an open GHC issue but this displays different symptoms:
from bnfc.
These are the latest version of
happy
andalex
. On my system (macOS Mojave) no special flag-lpthread
is needed, but it also does not harm. I'd like some more evidence though that the addition is portable (Windows and other common OSs). Note that one can always pass in extra flags via:make GHC_OPTS='-lpthread'...
In Windows, Makefiles are usually setup using tools like MinGw and Cygwin, which allows users to install a bunch of unix-based programs. I guess it should be compatible with the makefiles working on Linux.
from bnfc.
Thanks, @daneshvar-amrollahi for your report and efforts. I still remain unconvinced that this is a general problem (rather than something on your machine, maybe). If this was a common problem, one of my students in my course using BNFC would have had it and alerted me, I suppose. Also, having to pass extra -l
flags to GHC is something you usually don't have to do.
Thus, I am closing this issue for now, waiting for more evidence. Please use the workaround I describe.
from bnfc.
Related Issues (20)
- Weird special behavior of layout resolution at beginning of file
- Error location missing with recent `menhir` (starting with 2021-12-30 release) HOT 1
- `bnfc-system-tests` does not build with `HTF-0.15`
- command line parameter to omit built-in lexical elements? HOT 2
- Another `non-exhaustive case` in generated layout code HOT 2
- Generate syntax highlighters HOT 4
- Haskell: errors as record types HOT 2
- Build testsuites with GHC 9.4 HOT 2
- Parse error should close layout block
- Get rid of custom setup and `cabal-doctest` dependency
- bnfc 2.9.4 does not build with ventura m1 HOT 4
- Generated C++ parser does not allow whitespace to be a token HOT 3
- Release 2.9.4.1
- Where do I get grammars :P HOT 7
- Juxtaposing quotation mark HOT 4
- GHC 9.6 HOT 1
- The Ocaml printer crashes if the indent level becomes negative HOT 1
- Improve generated CPP code to trace function calls HOT 5
- Optional Semicolons HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bnfc.