aliBuild O2 failing on Ubuntu 18.04

Hello all,
I’m facing problems when trying to build O2 on my machine (with Ubuntu 18.04 LTS).
All the packages prior to O2 compile correctly, but I get errors when aliBuild tries to compile O2 itself.
The command I used is aliBuild build O2 --defaults o2.
I also didn’t get errors when calling aliDoctor for the O2 prior to the installation.

I have uploaded the full log file at the following link:


and I’m reporting snippet of the relevant lines below, which seemingly refer to missing references to some Pythia8 methods.

Thanks for the help, dear regards,
Fabio


[…]
CMakeFiles/O2lib-Generators.dir/src/GeneratorPythia8.cxx.o: In function o2::eventgen::GeneratorPythia8::selectFromAncestor(int, Pythia8::Event&, Pythia8::Event&)': /home/colamaria/alice/sw/ubuntu1804_x86-64/pythia/v8302-1/include/Pythia8/Event.h:69: undefined reference to vtable for Pythia8::Particle’
CMakeFiles/O2lib-Generators.dir/src/GeneratorPythia8.cxx.o: In function o2::eventgen::GeneratorPythia8::importParticles(Pythia8::Event&)': /home/colamaria/alice/sw/ubuntu1804_x86-64/pythia/v8302-1/include/Pythia8/Event.h:410: undefined reference to vtable for Pythia8::Particle’
CMakeFiles/O2lib-Generators.dir/src/GeneratorPythia8.cxx.o: In function Pythia8::HadronLevel::onInitInfoPtr()': /home/colamaria/alice/sw/ubuntu1804_x86-64/pythia/v8302-1/include/Pythia8/HadronLevel.h:70: undefined reference to Pythia8::PhysicsBase::registerSubObject(Pythia8::PhysicsBase&)’
/home/colamaria/alice/sw/ubuntu1804_x86-64/pythia/v8302-1/include/Pythia8/HadronLevel.h:71: undefined reference to Pythia8::PhysicsBase::registerSubObject(Pythia8::PhysicsBase&)' /home/colamaria/alice/sw/ubuntu1804_x86-64/pythia/v8302-1/include/Pythia8/HadronLevel.h:72: undefined reference to Pythia8::PhysicsBase::registerSubObject(Pythia8::PhysicsBase&)’
/home/colamaria/alice/sw/ubuntu1804_x86-64/pythia/v8302-1/include/Pythia8/HadronLevel.h:73: undefined reference to Pythia8::PhysicsBase::registerSubObject(Pythia8::PhysicsBase&)' /home/colamaria/alice/sw/ubuntu1804_x86-64/pythia/v8302-1/include/Pythia8/HadronLevel.h:74: undefined reference to Pythia8::PhysicsBase::registerSubObject(Pythia8::PhysicsBase&)’
CMakeFiles/O2lib-Generators.dir/src/GeneratorPythia8.cxx.o:/home/colamaria/alice/sw/ubuntu1804_x86-64/pythia/v8302-1/include/Pythia8/HadronLevel.h:75: more undefined references to Pythia8::PhysicsBase::registerSubObject(Pythia8::PhysicsBase&)' follow CMakeFiles/O2lib-Generators.dir/src/GeneratorPythia8.cxx.o: In function void std::vector<Pythia8::Particle, std::allocatorPythia8::Particle >::_M_realloc_insert<Pythia8::Particle const&>(__gnu_cxx::__normal_iterator<Pythia8::Particle*, std::vector<Pythia8::Particle, std::allocatorPythia8::Particle > >, Pythia8::Particle const&)’:
/home/colamaria/alice/sw/ubuntu1804_x86-64/pythia/v8302-1/include/Pythia8/Event.h:69: undefined reference to vtable for Pythia8::Particle' CMakeFiles/O2lib-Generators.dir/src/GeneratorPythia8.cxx.o: In function Pythia8::TauDecays::~TauDecays()’:
/home/colamaria/alice/sw/ubuntu1804_x86-64/pythia/v8302-1/include/Pythia8/HelicityMatrixElements.h:273: undefined reference to vtable for Pythia8::HMEHiggs2TwoFermions' /home/colamaria/alice/sw/ubuntu1804_x86-64/pythia/v8302-1/include/Pythia8/HelicityMatrixElements.h:200: undefined reference to vtable for Pythia8::HMEX2TwoFermions’
CMakeFiles/O2lib-Generators.dir/src/GeneratorPythia8.cxx.o: In function Pythia8::Pythia::~Pythia()': /home/colamaria/alice/sw/ubuntu1804_x86-64/pythia/v8302-1/include/Pythia8/Weights.h:28: undefined reference to vtable for Pythia8::WeightsBase’
CMakeFiles/O2lib-Generators.dir/src/GeneratorPythia8.cxx.o:(.data.rel.ro._ZTIN7Pythia816HelicityParticleE[_ZTIN7Pythia816HelicityParticleE]+0x10): undefined reference to typeinfo for Pythia8::Particle' CMakeFiles/O2lib-Generators.dir/src/DecayerPythia8.cxx.o: In function o2::eventgen::DecayerPythia8::Decay(int, TLorentzVector*)’:
/home/colamaria/alice/sw/ubuntu1804_x86-64/pythia/v8302-1/include/Pythia8/Event.h:52: undefined reference to vtable for Pythia8::Particle' CMakeFiles/O2lib-Generators.dir/src/DecayerPythia8.cxx.o: In function o2::eventgen::DecayerPythia8::Decay(int, TLorentzVector*)’:
/home/colamaria/alice/sw/SOURCES/O2/v1.3.0/0/Generators/src/DecayerPythia8.cxx:80: undefined reference to Pythia8::Event::list(bool, bool, int) const' CMakeFiles/O2lib-Generators.dir/src/DecayerPythia8.cxx.o: In function std::vector<Pythia8::Particle, std::allocatorPythia8::Particle >::_M_default_append(unsigned long)’:
/usr/include/c++/7/ext/new_allocator.h:111: undefined reference to vtable for Pythia8::Particle' CMakeFiles/O2lib-Generators.dir/src/DecayerPythia8.cxx.o: In function std::vector<Pythia8::Particle, std::allocatorPythia8::Particle >::_M_default_append(unsigned long)’:
/usr/include/c++/7/bits/vector.tcc:600: undefined reference to vtable for Pythia8::Particle' CMakeFiles/O2lib-Generators.dir/src/DecayerPythia8.cxx.o: In function void std::vector<Pythia8::Particle, std::allocatorPythia8::Particle >::_M_realloc_insertPythia8::Particle(__gnu_cxx::__normal_iterator<Pythia8::Particle*, std::vector<Pythia8::Particle, std::allocatorPythia8::Particle > >, Pythia8::Particle&&)’:
/home/colamaria/alice/sw/ubuntu1804_x86-64/pythia/v8302-1/include/Pythia8/Event.h:69: undefined reference to `vtable for Pythia8::Particle’
[ 55%] Built target O2test-simulationdataformat-BasicHits
[ 55%] Built target O2lib-DataFormatsFDD
[ 56%] Built target O2lib-CPVBase
[ 56%] Linking CXX executable …/…/stage/tests/o2-test-simulationdataformat-MCTruthContainer
collect2: error: ld returned 1 exit status
Generators/CMakeFiles/O2lib-Generators.dir/build.make:579: recipe for target ‘stage/lib/libO2Generators.so’ failed
make[2]: *** [stage/lib/libO2Generators.so] Error 1
CMakeFiles/Makefile2:29959: recipe for target ‘Generators/CMakeFiles/O2lib-Generators.dir/all’ failed
make[1]: *** [Generators/CMakeFiles/O2lib-Generators.dir/all] Error 2

How much memory do you have on your machine?

Ciao Giulio,
I have 16 GB of RAM
Fabio

Nevermind, I misread the message. It looks like some missing virtual destructor in our code. @swenzel / Roberto can you have a look?

Hello all, sorry to ping, is there by chance any suggestion on this issue?
Thanks, cheers,
Fabio