Skip to content

‘llvm::isa_and_nonnull’ has not been declared - errors building icsc 'SValue.cpp' #14

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

Closed
mzau opened this issue Oct 20, 2021 · 3 comments

Comments

@mzau
Copy link

mzau commented Oct 20, 2021

in the demand of an open source systemc to verilog translator I tryed building icsc. The build is proceeding up to:

...
[ 63%] Built target systemc
[ 65%] Built target sc_elab_proto
[ 66%] Built target SysCRTTI
[ 67%] Built target systemcPCH
[ 67%] Building CXX object sc_tool/CMakeFiles/SCTool.dir/lib/sc_tool/cfg/SValue.cpp.o

than the compiler emits errors (beginning)

In file included from /home/mz/github.com/icsc/include/clang/Basic/DiagnosticIDs.h:17,
                 from /home/mz/github.com/icsc/include/clang/Basic/Diagnostic.h:17,
                 from /home/mz/github.com/icsc/icsc/sc_tool/lib/sc_tool/diag/ScToolDiagnostic.h:16,
                 from /home/mz/github.com/icsc/icsc/sc_tool/lib/sc_tool/cfg/SValue.h:15,
                 from /home/mz/github.com/icsc/icsc/sc_tool/lib/sc_tool/cfg/SValue.cpp:12:
/home/mz/github.com/icsc/include/clang/Basic/LLVM.h:57:15: error: ‘llvm::isa_and_nonnull’ has not been declared
   57 |   using llvm::isa_and_nonnull;
      |               ^~~~~~~~~~~~~~~
In file included from /home/mz/github.com/icsc/include/clang/AST/Type.h:22,
                 from /home/mz/github.com/icsc/icsc/sc_tool/lib/sc_tool/systemc/ScChannel.h:19,
                 from /home/mz/github.com/icsc/icsc/sc_tool/lib/sc_tool/cfg/SValue.h:16,
                 from /home/mz/github.com/icsc/icsc/sc_tool/lib/sc_tool/cfg/SValue.cpp:12:
/home/mz/github.com/icsc/include/clang/AST/TemplateName.h:195:74: error: wrong number of template arguments (4, shou
ld be 2)
...

The build and installation of protobuf and llvm+clang on an actual Ubunutu 20.04 was done as described and without errors.

Any glue what's going on?
Is the actual systemc-compiler build actually working?

@mikhailmoiseev
Copy link
Contributor

Did you use install.sh or install it manually?

@mzau
Copy link
Author

mzau commented Oct 25, 2021

I did manually follow install.sh. BTW in the meantime I'd created a docker-compose + Dockerfille, which builds ICSC from a clean ubuntu:20.04 docker-image and it is working too.

@mzau
Copy link
Author

mzau commented Oct 25, 2021

fixed with issue #6

@mzau mzau closed this as completed Oct 25, 2021
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