Dear all,
I am using ROOT on macosx. The installation is from source.
Since the last update and recompilation of ROOT, every time I try to use root to interactively compile a macro I get the following error message:
ld: can’t use -undefined warning or suppress with -twolevel_namespace
clang: error: linker command failed with exit code 1 (use -v to see invocation)
In the error message I see
Error in : Executing ‘cd “/Users/asarti/analisi/thewall/anasim” ; c++ -fPIC -c -O3 -DNDEBUG -std=c++14 -Wc++11-narrowing -Wsign-compare -Wsometimes-uninitialized -Wconditional-uninitialized -Wheader-guard -Warray-bounds -Wcomment -Wtautological-compare -Wstrncat-size -Wloop-analysis -Wbool-conversion -m64 -pipe -W -Woverloaded-virtual -fsigned-char -fno-common -Qunused-arguments -pthread -stdlib=libc++ -I$ROOTSYS/include -isysroot “/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk” -I"/Users/Shared/Packages/root-6.22.02/etc/" -I"/Users/Shared/Packages/root-6.22.02/etc//cling" -I"/Users/Shared/Packages/root-6.22.02/include/" -I"/Users/Shared/Packages/root-6.22.02/include" -D__ACLIC__ “/Users/asarti/analisi/thewall/anasim/MuonBkgStudy_C_ACLiC_dict.cxx” ; c++ -O3 -DNDEBUG “/Users/asarti/analisi/thewall/anasim/MuonBkgStudy_C_ACLiC_dict.o” -bundle -undefined suppress -o “/Users/asarti/analisi/thewall/anasim/./MuonBkgStudy_C.so”’ failed!
and the -undefined suppress explicit message that is causing problems.
How can I get rid of that?
Here are the details of my installation:
root-config --libs --ldflags --ld --cflags --version --arch
-L/Users/Shared/Packages/root-6.22.02/lib -lCore -lImt -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lROOTVecOps -lTree -lTreePlayer -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lMultiProc -lROOTDataFrame -lfreetype -stdlib=libc++ -lpthread -lm -ldl -m64 c++ -stdlib=libc++ -D_REENTRANT -std=c++14 -m64 -I/Users/Shared/Packages/root-6.22.02/include 6.22/02 macosx64
and architecture:
uname -a
Darwin MacBook-Pro-3.local 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64
Thanks a lot for any help that would come.
Please read tips for efficient and successful posting and posting code
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided