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

Missing clad dependency. #16668

Open
1 task
pcanal opened this issue Oct 12, 2024 · 0 comments
Open
1 task

Missing clad dependency. #16668

pcanal opened this issue Oct 12, 2024 · 0 comments
Labels

Comments

@pcanal
Copy link
Member

pcanal commented Oct 12, 2024

Check duplicate issues.

  • Checked for duplicates

Description

After updating to the lastest master I got the following error:

 && /cvmfs/cms.cern.ch/el9_amd64_gcc11/external/gcc/11.4.1-30ebdc301ebd200f2ae0e3d880258e65/bin/c++ -fdiagnostics-color=always -Wno-implicit-fallthrough -Wno-noexcept-type -pipe  -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread -O3 -DNDEBUG -rdynamic core/testsupport/CMakeFiles/TestSupport.dir/src/TestSupport.cxx.o core/base/test/CMakeFiles/CoreBaseTests.dir/TNamedTests.cxx.o core/base/test/CMakeFiles/CoreBaseTests.dir/TQObjectTests.cxx.o core/base/test/CMakeFiles/CoreBaseTests.dir/TExceptionHandlerTests.cxx.o core/base/test/CMakeFiles/CoreBaseTests.dir/TStringTest.cxx.o core/base/test/CMakeFiles/CoreBaseTests.dir/TBitsTests.cxx.o -o core/base/test/CoreBaseTests  -Wl,-rpath,/home/pcanal/root_working/build/quick-devel/lib  lib/libCling.so  -ldl  lib/libRIO.so  googletest-prefix/src/googletest-build/lib//libgtest_main.a  googletest-prefix/src/googletest-build/lib//libgmock.a  googletest-prefix/src/googletest-build/lib//libgmock_main.a  -Wl,--unresolved-symbols=ignore-in-object-files  lib/libThread.so  lib/libCore.so  googletest-prefix/src/googletest-build/lib//libgtest.a && :
/cvmfs/cms.cern.ch/el9_amd64_gcc11/external/gcc/11.4.1-30ebdc301ebd200f2ae0e3d880258e65/bin/../lib/gcc/x86_64-redhat-linux-gnu/11.4.1/../../../../x86_64-redhat-linux-gnu/bin/ld: lib/libCling.so: undefined reference to `clang::CXXMethodDecl::getThisObjectType() const'

and indeed:

./lib/libCling.so:                 U clang::CXXMethodDecl::getThisObjectType() const
./interpreter/cling/tools/plugins/clad/clad-prefix/src/clad-build/lib/libcladDifferentiator.a:BaseForwardModeVisitor.cpp.o:                 U clang::CXXMethodDecl::getThisObjectType() const
./interpreter/cling/tools/plugins/clad/clad-prefix/src/clad-build/lib/libcladDifferentiator.a:HessianModeVisitor.cpp.o:                 U clang::CXXMethodDecl::getThisObjectType() const
./interpreter/llvm-project/llvm/lib/libclangAST.a:DeclCXX.cpp.o:0000000000000000 t getThisObjectType(clang::ASTContext&, clang::FunctionProtoType const*, clang::CXXRecordDecl const*)
./interpreter/cling/tools/plugins/clad/clad-prefix/src/clad-build/lib/Differentiator/CMakeFiles/cladDifferentiator.dir/BaseForwardModeVisitor.cpp.o:                 U clang::CXXMethodDecl::getThisObjectType() const
./interpreter/cling/tools/plugins/clad/clad-prefix/src/clad-build/lib/Differentiator/CMakeFiles/cladDifferentiator.dir/HessianModeVisitor.cpp.o:                 U clang::CXXMethodDecl::getThisObjectType() const
./interpreter/llvm-project/llvm/tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/DeclCXX.cpp.o:0000000000000000 t getThisObjectType(clang::ASTContext&, clang::FunctionProtoType const*, clang::CXXRecordDecl const*)

and

rw-r--r--. 1 pcanal us_cms     68864 Oct  4 22:51 ./interpreter/cling/tools/plugins/clad/clad-prefix/src/clad-build/lib/Differentiator/CMakeFiles/cladDifferentiator.dir/HessianModeVisitor.cpp.o
-rw-r--r--. 1 pcanal us_cms    205896 Oct  4 22:51 ./interpreter/cling/tools/plugins/clad/clad-prefix/src/clad-build/lib/Differentiator/CMakeFiles/cladDifferentiator.dir/BaseForwardModeVisitor.cpp.o
-rw-r--r--. 1 pcanal us_cms   3673354 Oct  4 22:52 ./interpreter/cling/tools/plugins/clad/clad-prefix/src/clad-build/lib/libcladDifferentiator.a
-rw-r--r--. 1 pcanal us_cms   3673354 Oct  4 22:52 ./interpreter/cling/tools/plugins/clad/clad-prefix/src/clad-build/lib/libcladDifferentiator.a
-rw-r--r--. 1 pcanal us_cms    340264 Oct 12 15:46 ./interpreter/llvm-project/llvm/tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/DeclCXX.cpp.o
-rw-r--r--. 1 pcanal us_cms  22259030 Oct 12 15:47 ./interpreter/llvm-project/llvm/lib/libclangAST.a
-rwxr-xr-x. 1 pcanal us_cms 127774184 Oct 12 15:49 ./lib/libCling.so

i.e. the issue that getThisObjectType recently changed in Clang but the newly updated header files did not lead to a rebuild of clad.

Reproducer

(Most likely) To reproduce build with 3e03f78 and then rebuild the same directory commit 7f00674 (llvm 18)

ROOT version

master-ish

Installation method

local build

Operating system

Linux

Additional context

No response

@pcanal pcanal added the bug label Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant