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

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 #57

Open
salimep opened this issue Dec 22, 2020 · 0 comments

Comments

@salimep
Copy link

salimep commented Dec 22, 2020

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.

`

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

1 participant