Comments (3)
This is very strange. There should be a file generated by flex: build/tools/ir-generator-lex.c, which should be #included in this one, which contains the definition of PARSE_BRACKET. Is this the whole output from make? I don't see where flex has been executed.
from p4c.
That looks like something went wrong with flex generation, since those are
all symbols defined in the code generated by flex. Try rm
tools/ir-generator/ir-generator-lex.c and then run make again...
On Thu, Jun 23, 2016 at 5:20 PM, Han Wang [email protected] wrote:
Tried to compile p4c in docker's ubuntu-latest image with clang++3.8, but
got the following error.root@d8f9075 https://github.com/root/p4c/commit/d8f907559953:~/p4c/build#
make -j4
CXX tools/ir-generator/ir-generator.o
CXX lib/crash.o
CXX lib/gc.o
CXX lib/hex.o
CXX lib/indent.o
CXX lib/json.o
CXX lib/log.o
../tools/ir-generator/ir-generator.ypp:140:13: error: use of undeclared
identifier 'PARSE_BRACKET'
{ BEGIN(PARSE_BRACKET); }
^
../tools/ir-generator/ir-generator.ypp:170:49: error: use of undeclared
identifier 'PARSE_BRACKET'
{ (yyval.kind) = NodeKind::Interface; BEGIN(PARSE_BRACKET); }
^
../tools/ir-generator/ir-generator.ypp:171:48: error: use of undeclared
identifier 'PARSE_BRACKET'
{ (yyval.kind) = NodeKind::Abstract; BEGIN(PARSE_BRACKET); }
^
../tools/ir-generator/ir-generator.ypp:172:48: error: use of undeclared
identifier 'PARSE_BRACKET'
{ (yyval.kind) = NodeKind::Concrete; BEGIN(PARSE_BRACKET); }
^
../tools/ir-generator/ir-generator.ypp:194:13: error: use of undeclared
identifier 'PARSE_BRACKET'
{ BEGIN(PARSE_BRACKET); }
^
../tools/ir-generator/ir-generator.ypp:209:13: error: use of undeclared
identifier 'PARSE_CTOR_INIT'
{ BEGIN(PARSE_CTOR_INIT); }
^
../tools/ir-generator/ir-generator.ypp:212:19: error: use of undeclared
identifier 'NORMAL'
BEGIN(NORMAL); }
^
../tools/ir-generator/ir-generator.ypp:366:13: error: use of undeclared
identifier 'yyrestart'
yyrestart(fp);
^
../tools/ir-generator/ir-generator.ypp:367:19: error: use of undeclared
identifier 'NORMAL'
BEGIN(NORMAL);
^
CXX lib/match.o
9 errors generated.
Makefile:1828: recipe for target 'tools/ir-generator/ir-generator.o' failed
make: *** [tools/ir-generator/ir-generator.o] Error 1
make: *** Waiting for unfinished jobs....—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#63, or mute the thread
https://github.com/notifications/unsubscribe/AD4c8TPiZ4N02FmZ_yHpImletMfVgUQEks5qOyLkgaJpZM4I9XAQ
.
from p4c.
Thanks, I removed build
directory and rerun ./bootstrap.sh
, compilation is successful this time.
I installed clang++, instead of g++ this time. That might be the reason.
from p4c.
Related Issues (20)
- Question about Static Analyzer HOT 2
- idea: IR validator, programatic pass pre/post conditions HOT 1
- Reduce p4c compile time HOT 15
- Spurious Bazel failures when compiling the graphs back end HOT 12
- [RFC] Make cstring constructor from `char*` explicit and `string_view` conversion implicit HOT 6
- Fix invalid format strings HOT 1
- Informing downstream compilers about sigificant code changes and how to migrate? HOT 4
- Improve json library internals HOT 2
- BDWGC and Z3 interact badly
- Unify debug / user-side node stringification HOT 1
- Build errors with gcc 14 HOT 9
- Clean up P4C namespaces HOT 4
- Compiler does not reject assignment of `int` to header / runtime use of `int`
- Invalid include in p4fmt.cpp HOT 5
- To Add BMv2 PNA backend in P4C. HOT 3
- Do not recalculate refmap so often HOT 16
- Crash when `const bit` type initialized with an `enum` value is used in an expression
- custom extern implementation HOT 1
- eBPF: don't create 2 BPF maps for each table - don't create separate default action table
- `default` expression is accepted in select case expressions with multiple components HOT 14
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 p4c.