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

Unable to build against clang:12 #45

Closed
bartoszek opened this issue Jun 21, 2021 · 1 comment
Closed

Unable to build against clang:12 #45

bartoszek opened this issue Jun 21, 2021 · 1 comment

Comments

@bartoszek
Copy link

I was trying to build cgrep-clang on Arch env:{llvm:12.0.0,clang:12.0.0} but it fails with:

clang++ -MM -fpic -I/usr/include -std=c++14   -fno-exceptions -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/llvm/src/llvm-12.0.0.src/tools/clang/include -I/usr/tools/clang/include -std=c++17 -fexceptions  cgrep.cpp > ./.depend
echo  cgrep.odbg: cgrep.cpp pch.hpp cfe-extra/cfe_extra.h | sed -r 's/[A-Za-z0-9\-\_]+\.odbg/\n&/g' >> ./.depend
echo  cgrep.ocov: cgrep.cpp pch.hpp cfe-extra/cfe_extra.h | sed -r 's/[A-Za-z0-9\-\_]+\.ocov/\n&/g' >> ./.depend
clang++ -fpic -I/usr/include -std=c++14   -fno-exceptions -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/llvm/src/llvm-12.0.0.src/tools/clang/include -I/usr/tools/clang/include -std=c++17 -fexceptions  -c pch.hpp -o pch.hpp.gch
clang++ -fpic -I/usr/include -std=c++14   -fno-exceptions -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/llvm/src/llvm-12.0.0.src/tools/clang/include -I/usr/tools/clang/include -std=c++17 -fexceptions  -c cfe-extra/cfe_extra.cpp -o cfe-extra/cfe_extra.o
clang++ -include-pch pch.hpp.gch -fpic -I/usr/include -std=c++14   -fno-exceptions -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/llvm/src/llvm-12.0.0.src/tools/clang/include -I/usr/tools/clang/include -std=c++17 -fexceptions  -c cgrep.cpp -o cgrep.o
cgrep.cpp:212:21: error: use of undeclared identifier 'ast_type_traits'
                    ast_type_traits::DynTypedNode &DTN) {
                    ^
cgrep.cpp:315:9: error: use of undeclared identifier 'ast_type_traits'
        ast_type_traits::DynTypedNode DNode =
        ^
cgrep.cpp:316:13: error: use of undeclared identifier 'ast_type_traits'
            ast_type_traits::DynTypedNode::create(*FD);

cgrep-clang-1.1-2-x86_64-build.log

@awgn
Copy link
Owner

awgn commented Jul 8, 2023

It's been so long that I don't think the problem exists anymore.

@awgn awgn closed this as completed Jul 8, 2023
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