Hi, I am building root on MacOS. But I am getting this error
I have this exact same problem. If anyone has any input it would be most appreciated.
I just solved this problem by removing conda.
You just removed Anaconda and tried running the same line and it worked? I don’t have that install, I used Enthought Canopy so I dont see why it would be a problem that we both have. Do you know what Error 2 means?
Sorry, I don’t know. I just ran the exact same line and it worked.
Thank you anyway! I appreciate it
This was the real error:
[ 32%] Building Attributes.gen...
dyld: Library not loaded: @rpath/libtinfow.6.dylib
Referenced from: /Users/louisling/build/interpreter/llvm/src/include/llvm/IR/../../../bin/llvm-tblgen
Reason: image not found
/bin/sh: line 1: 76805 Abort trap: 6 ../../../bin/llvm-tblgen -gen-attrs -I /Users/louisling/root/interpreter/llvm/src/include/llvm/IR -I /Users/louisling/root/interpreter/llvm/src/include /Users/louisling/root/interpreter/llvm/src/include/llvm/IR/Attributes.td -o /Users/louisling/build/interpreter/llvm/src/include/llvm/IR/Attributes.gen.tmp
make[2]: *** [interpreter/llvm/src/include/llvm/IR/Attributes.gen.tmp] Error 134
make[1]: *** [interpreter/llvm/src/include/llvm/IR/CMakeFiles/intrinsics_gen.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 32%] Building Options.inc...
dyld: Library not loaded: @rpath/libtinfow.6.dylib
Referenced from: /Users/louisling/build/interpreter/llvm/src/tools/clang/include/clang/Driver/../../../../../bin/llvm-tblgen
Reason: image not found
/bin/sh: line 1: 76812 Abort trap: 6 ../../../../../bin/llvm-tblgen -gen-opt-parser-defs -I /Users/louisling/root/interpreter/llvm/src/tools/clang/include/clang/Driver -I /Users/louisling/root/interpreter/llvm/src/include /Users/louisling/root/interpreter/llvm/src/tools/clang/include/clang/Driver/Options.td -o /Users/louisling/build/interpreter/llvm/src/tools/clang/include/clang/Driver/Options.inc.tmp
make[2]: *** [interpreter/llvm/src/tools/clang/include/clang/Driver/Options.inc.tmp] Error 134
make[1]: *** [interpreter/llvm/src/tools/clang/include/clang/Driver/CMakeFiles/ClangDriverOptions.dir/all] Error 2
A needed library was not found, probably due to problems in your configuration (I saw gcc 4.8.5 being used at the beginning of the log file). For compiling on a Mac, we recommend using XCode with clang instead of gcc.
Hi guy,
I have problem with root. Can you help me?
This one:
g++ -shared -Wl,-soname,libUnfold.so -m64 -O2 -DNDEBUG -Wl,–no-undefined -Wl,–as-needed -o lib/libUnfold.so hist/unfold/src/TUnfoldDensity.o hist/unfold/src/TUnfoldBinningXML.o hist/unfold/src/TUnfold.o hist/unfold/src/TUnfoldBinning.o hist/unfold/src/TUnfoldSys.o hist/unfold/src/G__Unfold.o -Llib -lCore -ldl -Llib -lHist -lMatrix -lXMLParser
/usr/bin/x86_64-linux-gnu-ld: cannot find -lXMLParser
collect2: error: ld returned 1 exit status
Thank you in advance
When I run “make”, and I meet it:
g++ -pipe -m64 -std=c++11 -Wshadow -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -MMD -MP -I. -o hist/unfold/src/G__Unfold.o -c hist/unfold/src/G__Unfold.cxx
g++ -shared -Wl,-soname,libUnfold.so -m64 -O2 -DNDEBUG -Wl,–no-undefined -Wl,–as-needed -o lib/libUnfold.so hist/unfold/src/TUnfoldDensity.o hist/unfold/src/TUnfoldBinningXML.o hist/unfold/src/TUnfold.o hist/unfold/src/TUnfoldBinning.o hist/unfold/src/TUnfoldSys.o hist/unfold/src/G__Unfold.o -Llib -lCore -ldl -Llib -lHist -lMatrix -lXMLParser
/usr/bin/x86_64-linux-gnu-ld: cannot find -lXMLParser
collect2: error: ld returned 1 exit status
/home/nhat/Downloads/root_v6.10.06.source/root-6.10.06/hist/unfold/Module.mk:46: recipe for target ‘lib/libUnfold.so’ failed
make: *** [lib/libUnfold.so] Error 1
And my problem on Ubuntu 18
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.