-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
Clang tidy failed. #121153
Comments
Consider reporting the issue to downstream repo or provide a reproduction with mainline clang |
@llvm/issue-subscribers-clang-tidy Author: None (RandUser123sa)
Hello,
I'm trying to compile AMDMIGraphX_rocm_6_3_1 from source and I receive the error and attach it. clang-tidy: /mnt/arch/rocm/release/llvm-project-rocm-6.3.1/clang/lib/AST/ExprConstant.cpp:15679: bool clang::Expr::EvaluateAsInt(EvalResult&, const clang::ASTContext&, SideEffectsKind, bool) const: Assertion `!isValueDependent() && "Expression evaluator can't be called on a dependent expression."' failed. |
Which Clang-tidy version do you use? |
Do you know which version of protobuf is installed on your system? Can you please preprocess the following file: Duplicate of #120792 |
Hi @JonasToth my protobuf is version 29.2 no, it's not working. I change the build params to use -E instead of -c, here is it: /opt/rocm/llvm/bin/amdclang -DMIGRAPHX_CXX_COMPILER="/opt/rocm/llvm/bin/amdclang" -DMIGRAPHX_HAS_EXECUTORS=0 -DMSGPACK_DEFAULT_API_VERSION=3 -Dmigraphx_tf_EXPORTS -I/mnt/arch/rocm/rocm-build/build/amdmigraphx/src/tf/include -I/mnt/arch/rocm/release/AMDMIGraphX-rocm-6.3.1/src/tf/include -I/mnt/arch/rocm/rocm-build/build/amdmigraphx/src/include -I/mnt/arch/rocm/release/AMDMIGraphX-rocm-6.3.1/src/include -isystem /mnt/arch/rocm/rocm-build/build/amdmigraphx/src/tf -isystem /opt/rocm/include -O3 -DNDEBUG -fPIC -std=c++17 -Wall -Wextra -Wcomment -Wendif-labels -Wformat -Winit-self -Wreturn-type -Wsequence-point -Wswitch -Wtrigraphs -Wundef -Wuninitialized -Wunreachable-code -Wunused -Wno-sign-compare -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-double-promotion -Wno-exit-time-destructors -Wno-extra-semi -Wno-extra-semi-stmt -Wno-float-conversion -Wno-gnu-anonymous-struct -Wno-gnu-zero-variadic-macro-arguments -Wno-missing-prototypes -Wno-nested-anon-types -Wno-option-ignored -Wno-padded -Wno-shorten-64-to-32 -Wno-sign-conversion -Wno-unused-command-line-argument -Wno-weak-vtables -Wno-c99-extensions -Wno-unsafe-buffer-usage -o CMakeFiles/migraphx_tf.dir/op_parser.cpp.o -E /mnt/arch/rocm/release/AMDMIGraphX-rocm-6.3.1/src/tf/op_parser.cpp this line is finished without error and then I re-run the compilation but I get the same error. I attach the file with compilation command and error because is too big for paste here. |
Hello,
I'm trying to compile AMDMIGraphX_rocm_6_3_1 from source and I receive the error and attach it.
clang-tidy: /mnt/arch/rocm/release/llvm-project-rocm-6.3.1/clang/lib/AST/ExprConstant.cpp:15679: bool clang::Expr::EvaluateAsInt(EvalResult&, const clang::ASTContext&, SideEffectsKind, bool) const: Assertion `!isValueDependent() && "Expression evaluator can't be called on a dependent expression."' failed.
clangerror.txt
The text was updated successfully, but these errors were encountered: