Giter Site home page Giter Site logo

Build fails about deckard HOT 7 CLOSED

skyhover avatar skyhover commented on June 26, 2024
Build fails

from deckard.

Comments (7)

chenzimin avatar chenzimin commented on June 26, 2024

I have encountered the same problem on MacOS, and I solved it by installing the latest version of bison.

from deckard.

alipourm avatar alipourm commented on June 26, 2024

bison is already the latest version.

$ brew install bison
Warning: bison 3.3.2 is already installed and up-to-date

from deckard.

chenzimin avatar chenzimin commented on June 26, 2024

You have to, if you haven't done it already, force link bison (in MacOS at least), otherwise it still uses the older version of bison:

brew link bison --force

and export the bin path to bison:

'export PATH="/usr/local/opt/bison/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile

You can check the bison version by:

bison -V

from deckard.

alipourm avatar alipourm commented on June 26, 2024

Thanks! It worked.

from deckard.

SavinduHerath avatar SavinduHerath commented on June 26, 2024

:\Deckard Source\Deckard\src\main>bash build.sh
rm -f *.pyc
make -C simple clean
make[1]: Entering directory '/mnt/c/Deckard Source/Deckard/src/ptgen/simple'
rm -f .o lex.yy.cc pt_c.tab pt_c.y head.cc c_ptgen
make[1]: Leaving directory '/mnt/c/Deckard Source/Deckard/src/ptgen/simple'
make -C gcc clean
make[1]: Entering directory '/mnt/c/Deckard Source/Deckard/src/ptgen/gcc'
rm -f .o lex.yy.cc pt_c.tab pt_c.y head.cc gccptgen.a
make[1]: Leaving directory '/mnt/c/Deckard Source/Deckard/src/ptgen/gcc'
make -C java clean
make[1]: Entering directory '/mnt/c/Deckard Source/Deckard/src/ptgen/java'
rm -f .o lex.yy.cc pt_j.tab pt_j.y head.cc javaptgen.a
make[1]: Leaving directory '/mnt/c/Deckard Source/Deckard/src/ptgen/java'
make -C php5 clean
make[1]: Entering directory '/mnt/c/Deckard Source/Deckard/src/ptgen/php5'
rm -f .o lex.yy.cc pt_zend_language_parser.tab pt_zend_language_parser.y head.cc phpptgen.a
make[1]: Leaving directory '/mnt/c/Deckard Source/Deckard/src/ptgen/php5'
make -C sol clean
make[1]: Entering directory '/mnt/c/Deckard Source/Deckard/src/ptgen/sol'
rm -f .o lex.yy.cc pt_solidity. head.cc solidityptgen.a
make[1]: Leaving directory '/mnt/c/Deckard Source/Deckard/src/ptgen/sol'
make -C gcc
make[1]: Entering directory '/mnt/c/Deckard Source/Deckard/src/ptgen/gcc'
./mainc.py c.y
bison -d pt_c.y -o pt_c.tab.cc
bison: pt_c.y: cannot open: No such file or directory
make[1]: *** [Makefile:59: pt_c.tab.cc] Error 1
make[1]: Leaving directory '/mnt/c/Deckard Source/Deckard/src/ptgen/gcc'
make: *** [Makefile:35: TARGET] Error 2
Error: ptgen make failed. Exit.
Error: ptgen make failed. Deckard build fails.

I get this error when building. Can anyone help me with this? I am running the latest version of bison and python 2.7

from deckard.

shangeethas avatar shangeethas commented on June 26, 2024

Even after linking to the latest bison, the build fails with following error in MacOS.
make -C sol
./mainsol.py solidity.y
bison -d pt_solidity.y -o pt_solidity.tab.cc -v -g
pt_solidity.y:2.1-12: warning: deprecated directive: ‘%pure-parser’, use ‘%define api.pure’ [-Wdeprecated]
2 | %pure-parser
| ^~~~~~~~~~~~
| %define api.pure
pt_solidity.y: warning: 31 shift/reduce conflicts [-Wconflicts-sr]
pt_solidity.y: warning: 14 reduce/reduce conflicts [-Wconflicts-rr]
pt_solidity.y: note: rerun with option '-Wcounterexamples' to generate conflict counterexamples
pt_solidity.y: warning: fix-its can be applied. Rerun with option '--update'. [-Wother]
flex -olex.yy.cc solidity.l
g++ -O3 -I../../include -c -o lex.yy.o lex.yy.cc
solidity.l:9:10: fatal error: 'error.h' file not found
#include <error.h>
^~~~~~~~~
1 error generated.
make[1]: *** [lex.yy.o] Error 1
make: *** [TARGET] Error 2
Error: ptgen make failed. Exit.
Error: ptgen make failed. Deckard build fails.

Can anyone help in fixing this issue?

from deckard.

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.