Comments (7)
I have encountered the same problem on MacOS, and I solved it by installing the latest version of bison
.
from deckard.
bison
is already the latest version.
$ brew install bison
Warning: bison 3.3.2 is already installed and up-to-date
from deckard.
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.
Thanks! It worked.
from deckard.
:\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.
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)
- What parameters are fine? Need help HOT 1
- Command line options for filter IDs not implemented HOT 3
- Vec generator failure HOT 3
- how to use a slice ?
- Crash on "return A?B:C" HOT 1
- vector generation HOT 3
- Clone detection failure?need help HOT 3
- build fails HOT 8
- typefile and nodefiles
- Error: problem in vec generator step. Stop and check logs in times/
- post_cluster file is 0 bytes HOT 1
- Bug Report: cluster: Possible errors occurred with LSH. HOT 3
- Building errors
- Any chance to update this to PHP 7 or 8? HOT 1
- Why does Deckard act differently from one run to another?
- Problem in running Deckard for C project
- Building error HOT 2
- Build on Linux fails HOT 1
- build fails HOT 6
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 deckard.