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

error while recompiling p4c for zodiacfx #98

Open
sujay1995 opened this issue Jan 22, 2020 · 0 comments
Open

error while recompiling p4c for zodiacfx #98

sujay1995 opened this issue Jan 22, 2020 · 0 comments

Comments

@sujay1995
Copy link

//POSTING THE ENTIRE THING FROM THE TERMINAL FOR REFERENCES
// the error is as below:

/home/sjh/p4c/extensions/p4c-zodiacfx/zodiacfx-Lower.cpp:26:9: error: ‘mpz_class’ was not declared in this scope; did you mean ‘mpz_clears’?
26 | mpz_class maxShift = Util::shift_left(1, LowerExpressions::maxShiftWidth);
| ^~~~~~~~~
| mpz_clears
/home/sjh/p4c/extensions/p4c-zodiacfx/zodiacfx-Lower.cpp:27:26: error: ‘maxShift’ was not declared in this scope
27 | if (cst->value > maxShift)
| ^~~~~~~~
/home/sjh/p4c/extensions/p4c-zodiacfx/zodiacfx-Lower.cpp: In member function ‘virtual const IR::Node* ZODIACFX::LowerExpressions::postorder(IR::Concat*)’:
/home/sjh/p4c/extensions/p4c-zodiacfx/zodiacfx-Lower.cpp:81:5: error: ‘mpz_class’ was not declared in this scope; did you mean ‘mpz_clears’?
81 | mpz_class m = Util::maskFromSlice(sizeofb, 0);
| ^~~~~~~~~
| mpz_clears
/home/sjh/p4c/extensions/p4c-zodiacfx/zodiacfx-Lower.cpp:83:68: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
83 | IR::Type_Bits::get(sizeofresult), m, 16);
| ^
| tm
make[2]: *** [extensions/p4c-zodiacfx/CMakeFiles/p4c-zodiacfx.dir/build.make:206: extensions/p4c-zodiacfx/CMakeFiles/p4c-zodiacfx.dir/zodiacfx-Lower.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1029: extensions/p4c-zodiacfx/CMakeFiles/p4c-zodiacfx.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

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