Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make onnc failed. make[1]: *** [JSON/JsonParser.cpp] Error 1 #31

Open
JasonJiang91 opened this issue Mar 7, 2019 · 2 comments
Open

Comments

@JasonJiang91
Copy link

I followed the steps in Mac OS
./build.sh normal /opt/onnc/ or ./build.sh dbg /Users/jason_jiang/project/build/

However, both come up with this problem

/bin/sh /Users/jason_jiang/project/onnc-umbrella/src/scripts/ylwrap /Users/jason_jiang/project/onnc-umbrella/src/lib/JSON/JsonParser.ypp y.tab.c JSON/JsonParser.cpp y.tab.h echo JSON/JsonParser.cpp | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e s/c++$/h++/ -e s/c$/h/y.output JSON/JsonParser.output -- bison -y -d /Users/jason_jiang/project/onnc-umbrella/src/lib/JSON/JsonParser.ypp:23.1-5: invalid directive:%code'
/Users/jason_jiang/project/onnc-umbrella/src/lib/JSON/JsonParser.ypp:23.7-14: syntax error, unexpected identifier
make[1]: *** [JSON/JsonParser.cpp] Error 1
make: *** [install-recursive] Error 1`

Can anybody give some help?

@LuisHsu
Copy link
Contributor

LuisHsu commented Mar 7, 2019

Have you installed bison? It seems like Bison error.

@JasonJiang91
Copy link
Author

Still get error after I installed bison.

clang: error: no such file or directory: 'JSON/JsonParser.cpp'
clang: error: no input files
make[1]: *** [JSON/JsonParser.o] Error 1
make: *** [install-recursive] Error 1
[/Users/jason_jiang/project/onnc-umbrella/build-normal] Make onnc failed.
Failed to execute command: 'make DESTDIR=/Users/jason_jiang/project/onnc-umbrella/install-normal install'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants