O2 build fails

HI All,
I am trying to build O2 on fresh centos7 virtual linux machine created at cern openstack.
I am following guidelines from:


It fails without log, please, see below the copy of error message from terminal.
Any hint/comment what to do ?
Cheers, Roman.

==> Building FairRoot@v18.4.1
==> FairRoot is being built (use --debug for full output): ok
Using cached build for FairRoot
ln: failed to create symbolic link ‘/mnt/rl/alice/sw/BUILD/O2-latest’: No such file or directory
ln: failed to create symbolic link ‘/mnt/rl/alice/sw/slc7_x86-64/O2/latest’: No such file or directory

==> Building O2@v1.3.0
==> O2 is being built (use --debug for full output): failed
ERROR: Error while executing /mnt/rl/alice/sw/SPECS/slc7_x86-64/O2/v1.3.0-3/build.sh on `testsoft.cern.ch’.
ERROR: Log can be found in /mnt/rl/alice/sw/BUILD/O2-latest/log
ERROR: Please upload it to CERNBox/Dropbox if you intend to request support.
ERROR: Build directory is /mnt/rl/alice/sw/BUILD/O2-latest/O2.
ERROR:
ERROR: Note that you have packages in development mode.
ERROR: Devel sources are not updated automatically, you must do it by hand.
ERROR: This problem might be due to one or more outdated devel sources.
ERROR: To update all development packages required for this build it is usually sufficient to do:
ERROR:
ERROR: ( cd O2 && git pull --rebase )
-bash-4.2$ ls /mnt/rl/alice/sw/BUILD/O2-latest
log O2
-bash-4.2$ ls /mnt/rl/alice/sw/BUILD/O2-latest/log
/mnt/rl/alice/sw/BUILD/O2-latest/log
-bash-4.2$ ls /mnt/rl/alice/sw/BUILD/O2-latest/log
/mnt/rl/alice/sw/BUILD/O2-latest/log
-bash-4.2$

I redirected output to file.
Here is cernbox link:


It looks like memory problem ?
Cheers, Roman.

Dear Roman,

this indeed could be a memory issue, as it stops at the O2 analysis tasks, which are quite memory hungry at the moment. Even with 16 GB RAM this can cause problems, with 32 GB you should be safe. If you have less, you can restrict the number of cores by adding to the aliBuild command -j <nCores> taking 1 or 2 for the max. number of cores.

For more detail, you can have a look at this thread.

Cheers - and happy new year! :slight_smile:
Stefan

Dear Roman, Dear Stefan,

Indeed this looks like the same memory issue reported by me earlier. The maximum I saw is 4 GB for a single process, going up to 27 GB with 12 parallel cores. In case your virtual machine is not able to provide at least 4 GB your build will fail in any case - this for example happens on OpenStack with the medium configuration, otherwise you need to restrict to 1 core for O2. The problem is tracked in this ticket: Cern Authentication

Cheers - and happy new year!

Markus

Dear Markus and Stefan,
-j 1 (maybe also 2) helps. Thanks !
Happy New Year,
Roman.

HI All,
I upgraded machine to 30 GB memory.
I was using aliBuild build O2 --defaults o2 -j 1
Compilation fails on segfault from compiler, please, see log.
Any advice welcomed.
Roman.
https://cernbox.cern.ch/index.php/s/HhqLdoDWZ8Kufxw