error compiling muktisource example

57 views
Skip to first unread message

Daniel White

unread,
Apr 13, 2022, 5:40:06 PM4/13/22
to Enzyme AD
Hi folks,

I'm trying the multisource example from https://github.com/EnzymeAD/Enzyme-Tutorial, and I am getting this error:

Error opening '/usr/workspace/wsa/dwhite/Enzyme/enzyme/build/Enzyme/ClangEnzyme-12.so': /usr/workspace/wsa/dwhite/Enzyme/enzyme/build/Enzyme/ClangEnzyme-12.so: undefined symbol: _ZN5clang17ASTFrontendAction13ExecuteActionEv
  -load request ignored.

Note I can build and run other examples, but this example isn't working. My makescript is shown below:

echo 'compiling myblas.c ...'
/usr/tce/packages/mvapich2/mvapich2-2.3.6-clang-12.0.1/bin/mpicxx  -g -Wall -std=c++11 -fno-experimental-new-pass-manager -c -fuse-ld=lld -flto myblas.c -o myblas.o
echo 'compiling multisource.c ...'
/usr/tce/packages/mvapich2/mvapich2-2.3.6-clang-12.0.1/bin/mpicxx  -g -Wall -std=c++11 -fno-experimental-new-pass-manager -c -fuse-ld=lld -flto multisource.c -o multisource.o
echo 'linking ...'
/usr/tce/packages/mvapich2/mvapich2-2.3.6-clang-12.0.1/bin/mpicxx -fuse-ld=lld -flto myblas.o multisource.o -o main.exe -Wl,-mllvm=-load=/usr/workspace/wsa/dwhite/Enzyme/enzyme/build/Enzyme/ClangEnzyme-12.so

Thanks in advance for your help!!!

Dan White

Tim Gymnich

unread,
Apr 14, 2022, 5:35:02 AM4/14/22
to Daniel White, Enzyme AD
Hey Dan,

Against which LLVM did you build Enzyme? This looks to me like you built Enzyme against a different version of LLVM than mpicxx was built against. The plugin interface of llvm/clang is not ABI stable.

Tim


--
You received this message because you are subscribed to the Google Groups "Enzyme AD" group.
To unsubscribe from this group and stop receiving emails from it, send an email to enzyme-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/enzyme-dev/c1b92f1e-4e82-49fa-aece-5fd4b1462e95n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages