GithubHelp home page GithubHelp logo

Comments (6)

andreasabel avatar andreasabel commented on June 20, 2024

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.

daneshvar-amrollahi avatar daneshvar-amrollahi commented on June 20, 2024

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.

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.

andreasabel avatar andreasabel commented on June 20, 2024

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.

andreasabel avatar andreasabel commented on June 20, 2024

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.

daneshvar-amrollahi avatar daneshvar-amrollahi commented on June 20, 2024

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'...

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.

andreasabel avatar andreasabel commented on June 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.