# O2 build fails

**URL:** <https://alice-talk.web.cern.ch/t/o2-build-fails/790>\
**Category:** O²\
**Tags:** build\
**Created:** [December 30, 2020, 8:41am UTC](https://alice-talk.web.cern.ch/t/o2-build-fails/790 "2020-12-30T08:41:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lietava](https://alice-talk.web.cern.ch/letter_avatar_proxy/v4/letter/l/f08c70/32.png) [@lietava](https://alice-talk.web.cern.ch/u/lietava)\
**Post date:** [December 30, 2020, 8:41am UTC](https://alice-talk.web.cern.ch/t/o2-build-fails/790/1 "2020-12-30T08:41:47Z")

</div>

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

> **[Prerequisites for CentOS 7 · ALICE Analysis Tutorial](https://alice-doc.github.io/alice-analysis-tutorial/building/prereq-centos7.html)**

  
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$

---

<div class="post-metadata">

**Author:** ![lietava](https://alice-talk.web.cern.ch/letter_avatar_proxy/v4/letter/l/f08c70/32.png) [@lietava](https://alice-talk.web.cern.ch/u/lietava)\
**Post date:** [December 31, 2020, 8:37am UTC](https://alice-talk.web.cern.ch/t/o2-build-fails/790/3 "2020-12-31T08:37:17Z")

</div>

I redirected output to file.  
Here is cernbox link:

> **[CERNBox](https://cernbox.cern.ch/index.php/s/qa2dA2xGUEKSjdP)**

  
It looks like memory problem ?  
Cheers, Roman.

---

<div class="post-metadata">

**Author:** ![sheckel](https://alice-talk.web.cern.ch/user_avatar/alice-talk.web.cern.ch/sheckel/32/259_2.png) [@sheckel](https://alice-talk.web.cern.ch/u/sheckel)\
**Post date:** [December 31, 2020, 3:07pm UTC](https://alice-talk.web.cern.ch/t/o2-build-fails/790/4 "2020-12-31T15:07:22Z")

</div>

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](https://alice-talk.web.cern.ch/t/memory-consumption-of-the-analysis-framework-during-the-build-phase/637).

Cheers - and happy new year! 🙂  
Stefan

---

<div class="post-metadata">

**Author:** ![mfasel](https://alice-talk.web.cern.ch/letter_avatar_proxy/v4/letter/m/8edcca/32.png) [@mfasel](https://alice-talk.web.cern.ch/u/mfasel)\
**Post date:** [December 31, 2020, 3:34pm UTC](https://alice-talk.web.cern.ch/t/o2-build-fails/790/5 "2020-12-31T15:34:05Z")

</div>

> [@lietava](#):
>
> os7 virtual linux machine created at cern openstack.  
> I am following guidelines from:

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](https://alice.its.cern.ch/jira/browse/O2-1805)

Cheers - and happy new year!

Markus

---

<div class="post-metadata">

**Author:** ![lietava](https://alice-talk.web.cern.ch/letter_avatar_proxy/v4/letter/l/f08c70/32.png) [@lietava](https://alice-talk.web.cern.ch/u/lietava)\
**Post date:** [January 1, 2021, 11:32am UTC](https://alice-talk.web.cern.ch/t/o2-build-fails/790/6 "2021-01-01T11:32:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lietava](https://alice-talk.web.cern.ch/letter_avatar_proxy/v4/letter/l/f08c70/32.png) [@lietava](https://alice-talk.web.cern.ch/u/lietava)\
**Post date:** [February 11, 2021, 9:01am UTC](https://alice-talk.web.cern.ch/t/o2-build-fails/790/7 "2021-02-11T09:01:53Z")

</div>

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](https://cernbox.cern.ch/index.php/s/HhqLdoDWZ8Kufxw)
