Building Aliphysics and AliRooot

Hi,

I am trying to build Aliphysics, but the package KFParticle@v1.1-3 is returning the next erro message:

==> Building KFParticle@v1.1-3
==> KFParticle is being built (use --debug for full output): failed
ERROR: Error while executing /home/jdrl96/alice2/sw/SPECS/ubuntu1804_x86-64/KFParticle/v1.1-3-2/build.sh on `jdrl96-IdeaPad-S540’.
ERROR: Log can be found in /home/jdrl96/alice2/sw/BUILD/KFParticle-latest/log
ERROR: Please upload it to CERNBox/Dropbox if you intend to request support.
ERROR: Build directory is /home/jdrl96/alice2/sw/BUILD/KFParticle-latest/KFParticle.

An the lines of the log are the next:

[ 4%] Generating G__KFParticle.cxx, G__KFParticle.h
Error: Too many ‘}’ tmpfile:5:
Error: Missing closing brace for the block opened around line 3.
Error: Unexpected end of file (G__exec_statement()) tmpfile:6:
Error: cannot open file “gnu/stubs.h” /usr/include/features.h:449:
Error: Too many ‘}’ tmpfile:25:
Error: Missing closing brace for the block opened around line 23.
Error: Unexpected end of file (G__exec_statement()) tmpfile:26:
Error: Too many ‘}’ tmpfile:30:
Error: Missing closing brace for the block opened around line 28.
Error: Unexpected end of file (G__exec_statement()) tmpfile:31:
Error: Too many ‘}’ tmpfile:35:
Error: Missing closing brace for the block opened around line 33.
Error: Unexpected end of file (G__exec_statement()) tmpfile:36:
Error: Too many ‘}’ tmpfile:40:
Error: Missing closing brace for the block opened around line 38.
Error: Unexpected end of file (G__exec_statement()) tmpfile:41:
Error: Too many ‘}’ tmpfile:45:
Error: Missing closing brace for the block opened around line 43.
Error: Unexpected end of file (G__exec_statement()) tmpfile:46:
Error: Too many ‘}’ tmpfile:50:
Error: Missing closing brace for the block opened around line 48.
Error: Unexpected end of file (G__exec_statement()) tmpfile:51:
Error: cannot open file “atomic” /home/jdrl96/root/root/include/Rtypes.h:30:
Error: cannot open file “type_traits” /home/jdrl96/root/root/include/Rtypes.h:34:
Error: no such template atomic<TClass*> /home/jdrl96/root/root/include/Rtypes.h:195:
Error: cannot open file “atomic” /home/jdrl96/root/root/include/TIsAProxy.h:18:
Error: Template class std::atomic not defined /home/jdrl96/root/root/include/TIsAProxy.h:29:
Error: Symbol Atomic_t is not defined in current scope /home/jdrl96/root/root/include/TIsAProxy.h:32:
Error: Symbol TClass is not defined in current scope /home/jdrl96/root/root/include/TIsAProxy.h:32:
Error: G__getvariable: expression /home/jdrl96/root/root/include/TIsAProxy.h:32:
Error: Symbol fClass is not defined in current scope /home/jdrl96/root/root/include/TIsAProxy.h:32:
Error: Symbol Atomic_t is not defined in current scope /home/jdrl96/root/root/include/TIsAProxy.h:33:
Error: Symbol void is not defined in current scope /home/jdrl96/root/root/include/TIsAProxy.h:33:
Error: G__getvariable: expression /home/jdrl96/root/root/include/TIsAProxy.h:33:
Error: Symbol fLast is not defined in current scope /home/jdrl96/root/root/include/TIsAProxy.h:33:
Error: Symbol Atomic_t is not defined in current scope /home/jdrl96/root/root/include/TIsAProxy.h:35:
Error: Symbol UInt_t is not defined in current scope /home/jdrl96/root/root/include/TIsAProxy.h:35:
Error: Symbol fSubTypesReaders is not defined in current scope /home/jdrl96/root/root/include/TIsAProxy.h:35:
Error: Symbol Atomic_t is not defined in current scope /home/jdrl96/root/root/include/TIsAProxy.h:36:
Error: Symbol Bool_t is not defined in current scope /home/jdrl96/root/root/include/TIsAProxy.h:36:
Error: Symbol fSubTypesWriteLockTaken is not defined in current scope /home/jdrl96/root/root/include/TIsAProxy.h:36:
Error: Symbol Atomic_t is not defined in current scope /home/jdrl96/root/root/include/TIsAProxy.h:38:
Error: Symbol Bool_t is not defined in current scope /home/jdrl96/root/root/include/TIsAProxy.h:38:
Error: Symbol fInit is not defined in current scope /home/jdrl96/root/root/include/TIsAProxy.h:38:
Error: Symbol delete is not defined in current scope /home/jdrl96/root/root/include/TIsAProxy.h:43:
Error: Symbol delete is not defined in current scope /home/jdrl96/root/root/include/TIsAProxy.h:44:
Error: Symbol volatile const UInt_t is not defined in current scope /home/jdrl96/root/root/include/TStorage.h:90:
Error: Symbol const member is not defined in current scope /home/jdrl96/root/root/include/TStorage.h:90:
Error: Syntax error /home/jdrl96/root/root/include/TStorage.h:91:
Error: void type variable can not be declared /home/jdrl96/root/root/include/TStorage.h:91:
Syntax error tmpfile:981:
Syntax error /home/jdrl96/root/root/include/TStorage.h:96:
Error: class,struct,union or type inline__attribute__((noinline)) void TStorage not defined /home/jdrl96/root/root/include/TStorage.h:131:
Syntax error /home/jdrl96/root/root/include/TStorage.h:131:
Error: Symbol void is not defined in current scope /home/jdrl96/root/root/include/TStorage.h:147:
Syntax Error: void* /home/jdrl96/root/root/include/TStorage.h:147:
Error: Symbol FreeIfTMapFile_t is not defined in current scope /home/jdrl96/root/root/include/TStorage.h:148:
Error: Symbol gFreeIfTMapFile is not defined in current scope /home/jdrl96/root/root/include/TStorage.h:148:
Error: Symbol ROOT_VERSION_CODE is not defined in current scope /home/jdrl96/root/root/include/TVersionCheck.h:33:
Syntax error tmpfile:1051:
Syntax error tmpfile:1066:
Syntax error tmpfile:1860:
Syntax error tmpfile:1875:
Syntax error tmpfile:1890:
Syntax error tmpfile:3663:
Syntax error tmpfile:3678:
Syntax error tmpfile:3693:
Warning: Error occurred during reading source files
Warning: Error occurred during dictionary source generation
!!!Removing G__KFParticle.cxx G__KFParticle.h !!!
Error: /home/jdrl96/alice2/sw/ubuntu1804_x86-64/ROOT/v5-34-30-alice10-1/bin/rootcint: error loading headers…
CMakeFiles/KFParticle.dir/build.make:86: recipe for target ‘G__KFParticle.cxx’ failed
make[2]: *** [G__KFParticle.cxx] Error 1
CMakeFiles/Makefile2:96: recipe for target ‘CMakeFiles/KFParticle.dir/all’ failed
make[1]: *** [CMakeFiles/KFParticle.dir/all] Error 2
Makefile:148: recipe for target ‘all’ failed
make: *** [all] Error 2
230,2 Bot

I have no idea what could be causing the error, so any help will be appreciate.

Regards,
David

Hi, I think I have been able to solve that, but I arrived to another one when building AliRoot.

==> Building AliRoot@v5-09-57h
^T^[[B^[[A==> AliRoot is being built (use --debug for full output)^[[B^[[A [22%] ^: failed
ERROR: Error while executing /home/jdrl96/alice/sw/SPECS/ubuntu1804_x86-64/AliRoot/v5-09-57h-1/build.sh on `jdrl96-IdeaPad-S540’.
ERROR: Log can be found in /home/jdrl96/alice/sw/BUILD/AliRoot-latest/log
ERROR: Please upload it to CERNBox/Dropbox if you intend to request support.
ERROR: Build directory is /home/jdrl96/alice/sw/BUILD/AliRoot-latest/AliRoot.

Also I send you the log: CERNBox .

Regards,
David

it seems that you have an private root enabled and there is a mismatch … see in the logs that alibuild packages are used from /home/jdrl96/alice/sw/SOURCES but the root problems point to the location /home/jdrl96/root2/root

Hi, thank you so much, I updated the private root and so far has worked (I don’t know if there is another way). However I ended up with an error related with alieve, you could see it in the log:

collect2: error: ld returned 1 exit status
EVE/executables/CMakeFiles/alieve.dir/build.make:134: recipe for target ‘bin/alieve’ failed
make[2]: *** [bin/alieve] Error 1
CMakeFiles/Makefile2:9382: recipe for target ‘EVE/executables/CMakeFiles/alieve.dir/all’ failed
make[1]: *** [EVE/executables/CMakeFiles/alieve.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
[ 91%] Building CXX object EVE/EveDet/CMakeFiles/EveDet.dir/AliEveEMCALSModuleData.cxx.o
[ 91%] Building CXX object HLT/trigger/CMakeFiles/AliHLTTrigger.dir/AliHLTTriggerCaloClusterEnergy.cxx.o
[ 91%] Building CXX object HLT/trigger/CMakeFiles/AliHLTTrigger.dir/AliHLTTriggerCosmics.cxx.o
[ 91%] Building CXX object HLT/TPCLib/AliGPUTracking/CMakeFiles/AliGPUTracking.dir/Merger/GPUTPCGMTracksToTPCSeeds.cxx.o
[ 91%] Building CXX object HLT/TPCLib/AliGPUTracking/CMakeFiles/AliGPUTracking.dir/DataCompression/AliHLTTPCClusterStatComponent.cxx.o
In file included from /home/jdrl96/alice/sw/SOURCES/AliRoot/v5-09-57h/v5-09-57h/TPC/TPCrec/AliTPCseed.h:21:0,
from /home/jdrl96/alice/sw/SOURCES/AliRoot/v5-09-57h/v5-09-57h/TPC/TPCrec/AliTPCtracker.h:23,
from /home/jdrl96/alice/sw/SOURCES/AliRoot/v5-09-57h/v5-09-57h/GPU/GPUTracking/Merger/GPUTPCGMTracksToTPCSeeds.cxx:24:
/home/jdrl96/alice/sw/SOURCES/AliRoot/v5-09-57h/v5-09-57h/TPC/TPCbase/AliComplexCluster.h:119:7: warning: ‘class AliTPCTrackerPoints’ has virtual functions and accessible non-virtual destructor [-Wnon-virtual-dtor]
class AliTPCTrackerPoints {
^~~~~~~~~~~~~~~~~~~
In file included from /home/jdrl96/alice/sw/SOURCES/AliRoot/v5-09-57h/v5-09-57h/HLT/trigger/AliHLTTriggerCosmics.cxx:34:0:
/home/jdrl96/alice/sw/SOURCES/AliRoot/v5-09-57h/v5-09-57h/HLT/BASE/util/AliHLTGlobalBarrelTrack.h: In member function ‘const AliHLTGlobalBarrelTrack& AliHLTGlobalBarrelTrack::operator=(const c&)’:
/home/jdrl96/alice/sw/SOURCES/AliRoot/v5-09-57h/v5-09-57h/HLT/BASE/util/AliHLTGlobalBarrelTrack.h:57:13: warning: ‘operator=’ should return a reference to ‘*this’ [-Weffc++]

https://cernbox.cern.ch/index.php/s/JezPVMKNYAElZJT

i noticed this:
/usr/bin/ld: warning: libGLEW.so.6.20, needed by /home/jdrl96/alice/sw/ubuntu1804_x86-64/ROOT/v6-24-02-1/lib/libRGL.so, not found (try using -rpath or -rpath-link)

unfortunately at 🧪 Installation via alibuild · ALICE Analysis Tutorial for centos7 and fedora the requirements are no longer shown (there are some instructions for some private/unknown packages) but in the ubuntu page there are some hints:
Prerequisites for Ubuntu · ALICE Analysis Tutorial
which for you is just perfect as you are an ubuntu user :slight_smile:

Thanks I think it did work, however I have a new error and as far I have read (Compilation errors in TString.h after updating ROOT and GCC - ROOT - ROOT Forum ), could be related with the C++ standard, which I think could be set in with cmake (- DCMAKE_CXX_VERSION=c++17), but I don’t now how to set it with alibuild.

Here is the log: CERNBox

In line 8396:
/home/jdrl96/root3/root_build/include/ROOT/RStringView.hxx:84:17: error: expected type-specifier
operator std::string_view() const { return std::string_view(fData,fLength); }
^~~
In file included from /home/jdrl96/root3/root_build/include/TNamed.h:26:0,
from /home/jdrl96/root3/root_build/include/TDirectory.h:24,
from /home/jdrl96/root3/root_build/include/TROOT.h:28,
from /home/jdrl96/alice/sw/SOURCES/ROOT/v6-24-02/v6-24-02/core/imt/src/TTaskGroup.cxx:17:
/home/jdrl96/root3/root_build/include/TString.h:115:13: error: expected type-specifier
operator std::string_view() const { return std::string_view(Data(),fExtent); }
^~~
/home/jdrl96/root3/root_build/include/TString.h:280:32: error: ‘string_view’ in namespace ‘std’ does not name a type
explicit TString(const std::string_view &sub);
^~~~~~~~~~~
/home/jdrl96/root3/root_build/include/TString.h:317:37: error: ‘string_view’ in namespace ‘std’ does not name a type
TString &operator=(const std::string_view &s);
^~~~~~~~~~~
/home/jdrl96/root3/root_build/include/TString.h:444:9: error: ‘string_view’ in namespace ‘std’ does not name a type
std::string_view View() const { return std::string_view(GetPointer(),Length()); }

I would say that the root of all problems stems from your own root compilation as opposed to the alibuild one. alibuild use alidist settings that are made to be consistent for all packages … (note that all hierarchical dependent packages must have at least the same cxx standard, so if you compiled root with cxx17 then all packages that use root must have at least cxx17).
To use private/experimental root versions you have these options:

  1. in the directory with development packages (where you put let’s say AliPhysics) you can also put root (you have to respect the package name that you can see in alidist scripts, so in this case should be ROOT) and rebuild and see how it goes
  2. if you just want a certain tag you can maintain a personal branch of alidist where you modify the root.sh where you change the desired tag and compilation options. note that if you change root compilation options you might have to change them for other dependent packages (AliROOT and AliPhysics in first approximation) but you will have to discover these by trial and error.

so, all your problems come from this mess:
from /home/jdrl96/root3/root_build/include/TDirectory.h:24, from /home/jdrl96/root3/root_build/include/TROOT.h:28, from /home/jdrl96/alice/sw/SOURCES/ROOT/v6-24-02/v6-24-02/core/imt/src/TTaskGroup.cxx:17:

notice the mix of files from 2 root installations … make sure to disable from environment the private one

Hi, finally it was installed. To anyone who might wonder, I only comment the “source /path//bin/thisroot.sh” in my ~/.bashrc . So thank you so much and sorry for the noob mistake.