juniper / contrail-sandesh Goto Github PK
View Code? Open in Web Editor NEWContrail analytics IDL
License: Apache License 2.0
Contrail analytics IDL
License: Apache License 2.0
Dears,
Getting below exception while building sandesh packages from source , kindly advise, also note that we have renamed the file from .yy extension to ll because of error in while Configuring SConstruct file error was .yy file extension was not valid it should be ll or lm
Error while running scons
scons -j ${JOBS_COUNT:-$(grep -c processor /proc/cpuinfo || echo 1)} --without-dpdk
scons: Reading SConscript files ...
('Ubuntu', '20.04', 'focal')
('Ubuntu', '20.04', 'focal')
('Ubuntu', '20.04', 'focal')
scons: *** While building `['sandeshy.cc']' from `['/root/salim/src/contrail-common/sandesh/compiler/sandeshy.yy']': Don't know how to build from a source file with suffix `.yy'. Expected a suffix in this list: ['.lm', '.ll'].
File "/root/salim/src/contrail-common/sandesh/compiler/SConscript", line 28, in <module>
after we change to ll extension error as-shown in below
`scons: done reading SConscript files.
scons: Building targets ...
scons: `build/lib/libsandesh-c.a' is up to date.
flex -t src/contrail-common/sandesh/compiler/sandeshy.ll > build/debug/tools/sandesh/compiler/sandeshy.cc
src/contrail-common/sandesh/compiler/sandeshy.ll:64: unrecognized '%' directive
src/contrail-common/sandesh/compiler/sandeshy.ll:87: bad character: }
src/contrail-common/sandesh/compiler/sandeshy.ll:92: unrecognized '%' directive
src/contrail-common/sandesh/compiler/sandeshy.ll:93: unrecognized '%' directive
src/contrail-common/sandesh/compiler/sandeshy.ll:94: unrecognized '%' directive
src/contrail-common/sandesh/compiler/sandeshy.ll:95: unrecognized '%' directive
src/contrail-common/sandesh/compiler/sandeshy.ll:96: unrecognized '%' directive
src/contrail-common/sandesh/compiler/sandeshy.ll:101: unrecognized '%' directive
src/contrail-common/sandesh/compiler/sandeshy.ll:102: unrecognized '%' directive
src/contrail-common/sandesh/compiler/sandeshy.ll:107: unrecognized '%' directive
src/contrail-common/sandesh/compiler/sandeshy.ll:271: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:272: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:272: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:272: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:278: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:283: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:283: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:283: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:296: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:296: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:296: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:304: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:304: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:304: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:311: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:311: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:321: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:321: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:328: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:328: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:336: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:336: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:336: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:337: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:337: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:339: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:345: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:345: unrecognized rule
src/contrail-common/sandesh/compiler/sandeshy.ll:352: unrecognized rule
scons: *** [build/debug/tools/sandesh/compiler/sandeshy.cc] Error 1
scons: building terminated because of errors.
`
What are the steps to build from this repo?
At https://github.com/Juniper/contrail-sandesh/blob/master/library/python/pysandesh/sandesh_session.py#L235 you can't infer that "event_handler" and
"sandesh_msg_handler" can be None. The test does set these to None, though, so I guess it's alright?
Would it be appropriate to make this more explicit by changing from:
def __init__(self, sandesh_instance, server, event_handler, sandesh_msg_handler)
to
def __init__(self, sandesh_instance, server,
event_handler=None, sandesh_msg_handler=None)
instead?
In the python module, the types of the various arguments aren't documented.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.