Failed to install root-6.02.05 on ubuntu14.04(LTS)

When I tryed to install root from source following https://root.cern.ch/drupal/content/installing-root-source and make the source, errors occured

g++ -m32 -O2 -DNDEBUG -Wl,--no-undefined -Wl,--as-needed -o core/utils/src/rootcling_tmp core/utils/src/rootcling_tmp.o core/utils/src/DictSelectionReader.o core/utils/src/LinkdefReader.o core/utils/src/TModuleGenerator.o \ core/metautils/src/RConversionRuleParser.o core/metautils/src/TClassEdit.o core/metautils/src/TMetaUtils.o core/metautils/src/BaseSelectionRule.o core/metautils/src/ClassSelectionRule.o core/metautils/src/VariableSelectionRule.o core/metautils/src/RStl.o core/metautils/src/Scanner.o core/metautils/src/SelectionRules.o core/metautils/src/XMLReader.o core/clib/src/snprintf.o core/clib/src/strlcpy.o core/clib/src/strlcat.o \ interpreter/cling/lib/Interpreter/AutoloadCallback.o interpreter/cling/lib/Interpreter/AutoSynthesizer.o interpreter/cling/lib/Interpreter/BackendPass.o interpreter/cling/lib/Interpreter/CheckEmptyTransactionTransformer.o interpreter/cling/lib/Interpreter/CIFactory.o interpreter/cling/lib/Interpreter/ClangInternalState.o interpreter/cling/lib/Interpreter/DeclCollector.o interpreter/cling/lib/Interpreter/DeclExtractor.o interpreter/cling/lib/Interpreter/DynamicExprInfo.o interpreter/cling/lib/Interpreter/DynamicLibraryManager.o interpreter/cling/lib/Interpreter/DynamicLookup.o interpreter/cling/lib/Interpreter/ForwardDeclPrinter.o interpreter/cling/lib/Interpreter/IncrementalExecutor.o interpreter/cling/lib/Interpreter/IncrementalParser.o interpreter/cling/lib/Interpreter/InterpreterCallbacks.o interpreter/cling/lib/Interpreter/Interpreter.o interpreter/cling/lib/Interpreter/InvocationOptions.o interpreter/cling/lib/Interpreter/LookupHelper.o interpreter/cling/lib/Interpreter/NullDerefProtectionTransformer.o interpreter/cling/lib/Interpreter/RequiredSymbols.o interpreter/cling/lib/Interpreter/RuntimeException.o interpreter/cling/lib/Interpreter/Transaction.o interpreter/cling/lib/Interpreter/TransactionTransformer.o interpreter/cling/lib/Interpreter/TransactionUnloader.o interpreter/cling/lib/Interpreter/Value.o interpreter/cling/lib/Interpreter/ValueExtractionSynthesizer.o interpreter/cling/lib/Interpreter/ValuePrinter.o interpreter/cling/lib/Interpreter/ValuePrinterSynthesizer.o interpreter/cling/lib/MetaProcessor/Display.o interpreter/cling/lib/MetaProcessor/InputValidator.o interpreter/cling/lib/MetaProcessor/MetaLexer.o interpreter/cling/lib/MetaProcessor/MetaParser.o interpreter/cling/lib/MetaProcessor/MetaProcessor.o interpreter/cling/lib/MetaProcessor/MetaSema.o interpreter/cling/lib/Utils/AST.o -L/home/coordinator/soft/root-6.02.05/interpreter/llvm/inst/lib -lclangFrontend -lclangSerialization -lclangDriver -lclangCodeGen -lclangParse -lclangSema -lclangAnalysis -lclangAST -lclangEdit -lclangLex -lclangBasic -lLLVMProfileData -lLLVMObjCARCOpts -lLLVMInstrumentation -lLLVMipo -lLLVMVectorize -lLLVMOption -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMX86Desc -lLLVMObject -lLLVMMCParser -lLLVMBitReader -lLLVMMCDisassembler -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMJIT -lLLVMExecutionEngine -lLLVMCodeGen -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMMC -lLLVMBitWriter -lLLVMCore -lLLVMSupport -L/home/coordinator/soft/root-6.02.05/interpreter/llvm/inst/lib -lz -lpthread -ldl -lm -lm -ldl -rdynamic /home/coordinator/soft/root-6.02.05/interpreter/llvm/inst/lib/libclangCodeGen.a(CodeGenTypes.o): In function `clang::CodeGen::CodeGenTypes::ConvertRecordDeclType(clang::RecordDecl const*)': CodeGenTypes.cpp:(.text._ZN5clang7CodeGen12CodeGenTypes21ConvertRecordDeclTypeEPKNS_10RecordDeclE+0x540): undefined reference to `clang::CodeGen::CodeGenTypes::ComputeRecordLayout(clang::RecordDecl const*, llvm::StructType*)' /home/coordinator/soft/root-6.02.05/interpreter/llvm/inst/lib/libclangCodeGen.a(CGObjCRuntime.o): In function `clang::CodeGen::CGObjCRuntime::EmitValueForIvarAtOffset(clang::CodeGen::CodeGenFunction&, clang::ObjCInterfaceDecl const*, llvm::Value*, clang::ObjCIvarDecl const*, unsigned int, llvm::Value*)': CGObjCRuntime.cpp:(.text._ZN5clang7CodeGen13CGObjCRuntime24EmitValueForIvarAtOffsetERNS0_15CodeGenFunctionEPKNS_17ObjCInterfaceDeclEPN4llvm5ValueEPKNS_12ObjCIvarDeclEjS9_+0x356): undefined reference to `clang::CodeGen::CGBitFieldInfo::MakeInfo(clang::CodeGen::CodeGenTypes&, clang::FieldDecl const*, unsigned long long, unsigned long long, unsigned long long, unsigned long long)' collect2: error: ld returned 1 exit status make: *** [core/utils/src/rootcling_tmp] Error 1
I need your help.Thanks!

Hi,

Are you intentionally building for 32bit? (Why?)

How did you configure?

Cheers, Axel.

[quote=“Axel”]Hi,

Are you intentionally building for 32bit? (Why?)

How did you configure?

Cheers, Axel.[/quote]
Thanks for your reply! :laughing:
Yes, it’s 32bit. Because my PC’s os is ubuntu (32bit)
I run “./configure” without arguments.

Hi,

Can you rm -rf interpreter/llvm/obj; make -j4 (or whatever number) and send the complete output of the build?

Cheers, Axel.

[quote=“Axel”]Hi,

Can you rm -rf interpreter/llvm/obj; make -j4 (or whatever number) and send the complete output of the build?

Cheers, Axel.[/quote]
I am sorry, the output of build is too long (about 6000 lines).
Can I send the output text file to you by email ?

this is my pre install packages for root on ubuntu, last tested with root-6.02.05 and linux mint 17 (ubuntu 14.04)

then simply:

[code]wget http://root.cern.ch/download/root_v6.02.05.source.tar.gz
gzip -dc root_v6.02.05.source.tar.gz | tar -xf -
cd root-6.02.05

./configure linuxx8664gcc --enable-explicitlink --all --enable-minuit2 --enable-qt --enable-roofit --enable-table --enable-shared --enable-xml --enable-reflex --enable-python --enable-gdml --enable-rpath --enable-qt --enable-soversion --prefix=/usr/local

make -j4
sudo make install
[/code]

Hi,

you can attach files - or indeed send by email to axel@cern.ch

We happily build ROOT on Ubuntu 14.04 after every check-in - we know it /should/ work.

Axel.

[quote=“hcohen”]this is my pre install packages for root on ubuntu, last tested with root-6.02.05 and linux mint 17 (ubuntu 14.04)

then simply:

[code]wget http://root.cern.ch/download/root_v6.02.05.source.tar.gz
gzip -dc root_v6.02.05.source.tar.gz | tar -xf -
cd root-6.02.05

./configure linuxx8664gcc --enable-explicitlink --all --enable-minuit2 --enable-qt --enable-roofit --enable-table --enable-shared --enable-xml --enable-reflex --enable-python --enable-gdml --enable-rpath --enable-qt --enable-soversion --prefix=/usr/local

make -j4
sudo make install
[/code][/quote]
Thanks, I’ll try it later!

[quote=“Axel”]Hi,

you can attach files - or indeed send by email to axel@cern.ch

We happily build ROOT on Ubuntu 14.04 after every check-in - we know it /should/ work.

Axel.[/quote]
Thanks, I have sent the make.out to you!

Hi,

Okay - so now it works? You sent me a different error than the one you mentioned first; the step that failed before now works.

Your new error points at a broken previous build (misconfigured?): the missing ROOT::Class_ShowMembers is in libCore which is linked (-lCore).

I’d recommend to run
make distclean
make -j4

Cheers, Axel.

[quote=“Axel”]Hi,

Okay - so now it works? You sent me a different error than the one you mentioned first; the step that failed before now works.

Your new error points at a broken previous build (misconfigured?): the missing ROOT::Class_ShowMembers is in libCore which is linked (-lCore).

I’d recommend to run
make distclean
make -j4

Cheers, Axel.[/quote]
At this time, I deleted the directories ,unpacked the source files in another directory and run
./configure
make -j4
, then different erros occured

11921 g++ -shared -Wl,-soname,libGX11TTF.so -m32 -O2 -DNDEBUG -Wl,--no-undefined -Wl,--as-needed -o lib/libGX11TTF.so graf2d/x11ttf/src/TGX11TTF .o graf2d/x11ttf/src/G__GX11TTF.o -L/usr/lib/i386-linux-gnu -lfreetype -lz -lpng12 -Llib -lGX11 -lGraf -lXpm -lXext -lX11 -lXft -Llib -lCo re -ldl 11922 graf2d/x11ttf/src/TGX11TTF.o: In function `TNamed::ShowMembers(TMemberInspector&) const': 11923 TGX11TTF.cxx:(.text._ZNK6TNamed11ShowMembersER16TMemberInspector[_ZNK6TNamed11ShowMembersER16TMemberInspector]+0x28): undefined reference to `ROOT::Class_ShowMembers(TClass*, void const*, TMemberInspector&)' 11924 graf2d/x11ttf/src/TGX11TTF.o: In function `TGX11TTF::ShowMembers(TMemberInspector&) const': 11925 TGX11TTF.cxx:(.text._ZNK8TGX11TTF11ShowMembersER16TMemberInspector[_ZNK8TGX11TTF11ShowMembersER16TMemberInspector]+0x28): undefined refere nce to `ROOT::Class_ShowMembers(TClass*, void const*, TMemberInspector&)' 11926 graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0x188): undefined reference to `TVirtualX::GetFontAscent(char cons t*) const' 11927 graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0x190): undefined reference to `TVirtualX::GetFontDescent(char con st*) const' 11928 graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0x4b0): undefined reference to `TAttLine::SetLineColorAlpha(short, float)' 11929 graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0x4f8): undefined reference to `TAttFill::SetFillColorAlpha(short, float)' 11930 graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0x54c): undefined reference to `TAttText::SetTextColorAlpha(short, float)' 11931 graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0x598): undefined reference to `TAttMarker::SetMarkerColorAlpha(sh ort, float)' 11932 graf2d/x11ttf/src/G__GX11TTF.o: In function `ROOT::GenerateInitInstanceLocal(TGX11TTF const*)': 11933 G__GX11TTF.cxx:(.text+0x123): undefined reference to `ROOT::TGenericClassInfo::TGenericClassInfo(char const*, int, char const*, int, std:: type_info const&, ROOT::TInitBehavior const*, TClass* (*)(), TVirtualIsAProxy*, int, int)' 11934 graf2d/x11ttf/src/G__GX11TTF.o: In function `TGX11TTF::Class()': 11935 G__GX11TTF.cxx:(.text+0x326): undefined reference to `gInterpreterMutex' 11936 G__GX11TTF.cxx:(.text+0x350): undefined reference to `gInterpreterMutex' 11937 G__GX11TTF.cxx:(.text+0x384): undefined reference to `gInterpreterMutex' 11938 G__GX11TTF.cxx:(.text+0x3aa): undefined reference to `gInterpreterMutex' 11939 graf2d/x11ttf/src/G__GX11TTF.o: In function `(anonymous namespace)::TriggerDictionaryInitialization_libGX11TTF_Impl()': 11940 G__GX11TTF.cxx:(.text+0x5a0): undefined reference to `TROOT::RegisterModule(char const*, char const**, char const**, char const*, char con st*, void (*)(), std::vector<std::pair<std::string, int>, std::allocator<std::pair<std::string, int> > > const&, char const**)' 11941 collect2: error: ld returned 1 exit status 11942 make: *** [lib/libGX11TTF.so] Error 1 11943 make: *** Waiting for unfinished jobs....
The full output is attached.
make.tar.bz2 (101 KB)

Can it be that you have another ROOT version installed somewhere (and this “old” version is “seen” when you try to build the “new” one)?
Try something like:
which root
type root
which root-config
type root-config
locate libCore

[quote=“Wile E. Coyote”]Can it be that you have another ROOT version installed somewhere (and this “old” version is “seen” when you try to build the “new” one)?
Try something like:
which root
type root
which root-config
type root-config
locate libCore[/quote]
Thanks!
I’m sorry I haven’t mentioned that I have installed Version 5.34/14 16 December 2013 by typing “sudo apt-get install root-system-bin”.
Below are the results

1 /usr/bin/root 2 root is /usr/bin/root 3 /usr/bin/root-config 4 root-config is /usr/bin/root-config 5 /home/coordinator/.local/share/Trash/expunged/2162516355/root-6.02.05/lib/li bCore.so 6 /home/coordinator/.local/share/Trash/expunged/2162516355/root-6.02.05/lib/li bCore_rdict.pcm 7 /home/coordinator/soft/root-6.02.05/lib/libCore.so 8 /home/coordinator/soft/root-6.02.05/lib/libCore_rdict.pcm 9 /usr/lib/i386-linux-gnu/libCore.so 10 /usr/lib/i386-linux-gnu/libCore.so.5.34 11 /usr/lib/i386-linux-gnu/root5.34/libCore.rootmap 12 /usr/lib/i386-linux-gnu/root5.34/libCore.so 13 /usr/lib/i386-linux-gnu/root5.34/libCore.so.5 14 /usr/lib/i386-linux-gnu/root5.34/libCore.so.5.34 ~

sudo apt-get purge root-system* root-plugin* libroot*
(Note: afterwards check that the “/usr/lib/x86_64-linux-gnu/root5.34” and the “/usr/lib/i386-linux-gnu/root5.34” subdirectories disappeared completely.)
Then try to build your “new” ROOT version completely from scratch again.
See also:
[Installation problems (Ubuntu 14.04)
[Old version vs. New Version Installation Processes

[quote=“Wile E. Coyote”]sudo apt-get purge root-system* root-plugin* libroot*
(Note: afterwards check that the “/usr/lib/x86_64-linux-gnu/root5.34” and the “/usr/lib/i386-linux-gnu/root5.34” subdirectories disappeared completely.)
Then try to build your “new” ROOT version completely from scratch again.
See also:
[Installation problems (Ubuntu 14.04)
[Old version vs. New Version Installation Processes

[quote=“Axel”]Hi,

Okay - so now it works? You sent me a different error than the one you mentioned first; the step that failed before now works.

Your new error points at a broken previous build (misconfigured?): the missing ROOT::Class_ShowMembers is in libCore which is linked (-lCore).

I’d recommend to run
make distclean
make -j4

Cheers, Axel.[/quote]

[quote=“hcohen”]this is my pre install packages for root on ubuntu, last tested with root-6.02.05 and linux mint 17 (ubuntu 14.04)

then simply:

[code]wget http://root.cern.ch/download/root_v6.02.05.source.tar.gz
gzip -dc root_v6.02.05.source.tar.gz | tar -xf -
cd root-6.02.05

./configure linuxx8664gcc --enable-explicitlink --all --enable-minuit2 --enable-qt --enable-roofit --enable-table --enable-shared --enable-xml --enable-reflex --enable-python --enable-gdml --enable-rpath --enable-qt --enable-soversion --prefix=/usr/local

make -j4
sudo make install
[/code][/quote]

Thanks for all of your helps, it’s really very kind of you!
The solution is to uninstall the previously installed ROOT by run
sudo apt-get purge root-system* root-plugin* libroot*

[url=https://root-forum.cern.ch/t/missing-canvas/17664/17 you use “–prefix=/usr/local”, you will have the same problem one day in the future again.[/url]

Yes, the problem occured as you expected. Then I use “–prefix=another\existed\directory”, it says “No such file or directory”. I don’t know why. At last, I use the “environment driven build” to install ROOT, which really works.
Anyway, thanks for your reminder!
But now I find that when I try to make the example in “geant4.10.01/examples/advanced/iort_therapy” ,
after typing cmake

,then make

[ 2%] Building CXX object CMakeFiles/iort_therapy.dir/iort_therapy.cc.o In file included from /home/coordinator/soft/geant4.10.01/examples/advanced/iort_therapy/iort_therapy.cc:70:0: /home/coordinator/soft/geant4.10.01/examples/advanced/iort_therapy/include/IORTAnalysisManager.hh:48:19: fatal error: TROOT.h: No such file or directory #include "TROOT.h" ^ compilation terminated.
How can I let geant4 know where TROO.h is. Of cource, “root-6.02.05/include/TROOT.h” exists.

[root.cern.ch/phpBB3/viewtopic.p … 448#p83314](Old version vs. New Version Installation Processes
[ROOT uninstalls on reboot

[quote=“Wile E. Coyote”]Old version vs. New Version Installation Processes
[ROOT uninstalls on reboot
Thanks a lot!
As is stated above, root-6.02.05 can work very well on my pc, but the problem is that Geant4 can’t find some header files such as TROOT.h in “root-6.02.05/include”. And before I make the example in “geant4.10.01/examples/advanced/iort_therapy” , I have ran
source full\path/root-6.02.05/bin/thisroot.sh in the same session and root can run properly.

echo $LD_LIBRARY_PATH /home/coordinator/soft/root-6.02.05/root-6.02.05/lib:/home/coordinator/soft/geant4.10.01-build/lib

Then how can I deal with this problem?

If you get proper output from:
root-config --incdir
root-config --cflags
then you need to talk to geant4 people why it fails.

[quote=“Wile E. Coyote”]If you get proper output from:
root-config --incdir
root-config --cflags
then you need to talk to geant4 people why it fails.[/quote]
Below are the results

1 /home/coordinator/soft/root-6.02.05/root-6.02.05/include 2 -pthread -std=c++11 -Wno-deprecated-declarations -m32 -msse -mfpmath=sse -I/home/coordinator/soft/root-6.02.05/root-6.02.05/include ~

Then, what’s the problem?
Thanks for your patience!