Giter Club home page Giter Club logo

Comments (4)

kintel avatar kintel commented on June 19, 2024

I've had reports that some Linux distributions ship with a version of yacc/bison where the %expect statement is not supported. The mailing list has a number of Linux users lingering, they might give better response to this.

from openscad.

mrhdias avatar mrhdias commented on June 19, 2024

Hi kintel,

I just found a solution but do not know if it's the right one.
I replaced the yacc by the bison parser in Makefile and work.

Steps to build the OpenSCAD successfully:

git clone --depth=1 git://github.com/openscad/openscad.git
cd openscad
qmake
cp Makefile Makefile.org
nano -w Makefile <-- Replace the yacc parser by the bison (find the line 338).
make

Comparing the original Makefile, with the new Makefile:

diff -u Makefile.org Makefile
--- Makefile.org 2011-01-28 23:10:50.000000000 +0000
+++ Makefile 2011-01-28 23:11:18.000000000 +0000
@@ -335,7 +335,7 @@
compiler_yacc_decl_clean:
-$(DEL_FILE) parser_yacc.h
parser_yacc.h: src/parser.y

  •   yacc -d -p parser -b parser src/parser.y
    
  •   bison -d -p parser -b parser src/parser.y
     rm -f parser_yacc.h parser_yacc.cpp
     mv -f parser.tab.h parser_yacc.h
     mv -f parser.tab.c parser_yacc.cpp
    

Thanks for your help.

Henrique Dias

from openscad.

kintel avatar kintel commented on June 19, 2024

I think the fix will be to use bison explicitly everywhere.

from openscad.

kintel avatar kintel commented on June 19, 2024

This should be fixed by know (updated build system)

from openscad.

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.