Building O2 fails at FairMQ@v1.4.9

Dear all,

I am trying to build the latest version of O2 but building fails at FairMQ with

DEBUG:O2:FairMQ:0: [ 30%] Building CXX object fairmq/plugins/DDS/CMakeFiles/fairmq-dds-command-ui.dir/runDDSCommandUI.cxx.o
DEBUG:O2:FairMQ:0: c++: internal compiler error: Killed (program cc1plus)
DEBUG:O2:FairMQ:0: Please submit a full bug report,
DEBUG:O2:FairMQ:0: with preprocessed source if appropriate.
DEBUG:O2:FairMQ:0: See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
DEBUG:O2:FairMQ:0: fairmq/plugins/DDS/CMakeFiles/FairMQPlugin_dds.dir/build.make:62: recipe for target ‘fairmq/plugins/DDS/CMakeFiles/FairMQPlugin_dds.dir/DDS.cxx.o’ failed
DEBUG:O2:FairMQ:0: make[2]: *** [fairmq/plugins/DDS/CMakeFiles/FairMQPlugin_dds.dir/DDS.cxx.o] Error 4
DEBUG:O2:FairMQ:0: CMakeFiles/Makefile2:1456: recipe for target ‘fairmq/plugins/DDS/CMakeFiles/FairMQPlugin_dds.dir/all’ failed
DEBUG:O2:FairMQ:0: make[1]: *** [fairmq/plugins/DDS/CMakeFiles/FairMQPlugin_dds.dir/all] Error 2
DEBUG:O2:FairMQ:0: make[1]: *** Waiting for unfinished jobs…
DEBUG:O2:FairMQ:0: [ 31%] Linking CXX executable fairmq-merger
DEBUG:O2:FairMQ:0: [ 32%] Linking CXX executable fairmq-proxy
DEBUG:O2:FairMQ:0: [ 32%] Built target fairmq-merger
DEBUG:O2:FairMQ:0: [ 33%] Linking CXX executable fairmq-splitter
DEBUG:O2:FairMQ:0: [ 33%] Built target fairmq-proxy
DEBUG:O2:FairMQ:0: [ 33%] Built target fairmq-splitter
DEBUG:O2:FairMQ:0: [ 33%] Linking CXX executable fairmq-dds-command-ui
DEBUG:O2:FairMQ:0: [ 33%] Built target fairmq-dds-command-ui
DEBUG:O2:FairMQ:0: [ 34%] Linking CXX executable fairmq-multiplier
DEBUG:O2:FairMQ:0: [ 34%] Linking CXX executable fairmq-sink
DEBUG:O2:FairMQ:0: [ 34%] Built target fairmq-multiplier
DEBUG:O2:FairMQ:0: [ 34%] Linking CXX executable fairmq-bsampler
DEBUG:O2:FairMQ:0: [ 34%] Built target fairmq-sink
DEBUG:O2:FairMQ:0: [ 34%] Built target fairmq-bsampler
DEBUG:O2:FairMQ:0: Makefile:140: recipe for target ‘all’ failed
DEBUG:O2:FairMQ:0: make: *** [all] Error 2
DEBUG:O2:FairMQ:0:

Log file: https://cernbox.cern.ch/index.php/s/Q9cV6BIlWDSMYvd

Thanks for any help,
Tomáš

Today I updated Ubuntu:

sudo apt-get update -y
sudo apt-get upgrade -y

I updated alidist and O2 folders:

git checkout master  # use dev instead of master for O2
git pull --rebase

I used the clean up command:

aliBuild clean --aggressive

And then I tried to build again, FairMQ built successfully now. But there was an error with building O2. So I run the clean up command again and tried to build again and now it worked…

What was the error while building O2?

Unfortunately, I did not go through the log file before I cleaned and built again so I don’t know what was the error.