Where is the quick way to rebuild O2?


(Rafael Pezzi) #1

Dear all,

I am missing a quick way rebuild O2, without going though aliBuild. In the past, after making changes on O2 source code, I used to go to the build directory and type make install:

  $ cd ~/alice/sw/BUILD/O2-latest/O2
  $ make install -j4

However, the same procedure does not work within alidock + the current dev branch of O2, as makefile cannot be found on the BUILD directory anymore:

$ cd /home/alidock/.sw/BUILD/O2-latest/O2
[alidock] ~/.sw/BUILD/O2-latest/O2 $> make install
make: *** No rule to make target `install'.  Stop.

The instructions on https://alice-doc.github.io/alice-analysis-tutorial/building/build.html#rebuild-existing-installations do not work for O2 anymore.

I would like to avoid aliBuild having to look for changes on each package before compiling a single file that has been changed on O2. Any tip here?

Best,
Rafael


(Dario Berzano) #2

Hi, you are right. O2 installation uses ninja in your alidock environment. If you want to rebuild, you can do:

alienv enter O2/latest  # need to be in the environment for that
cd ~/.sw/BUILD/O2-latest/O2
ninja install -j4

Let me know if this works for you (it does for me, for the record). I’ll update the instructions accordingly.

Cheers


O2 Build and Rebuild
(Rafael Pezzi) #3

Thanks, Dario.

It is working. The following combination as well:

$ alidock
Starting a shell into the container
[alidock] ~ $> cd .sw/BUILD/O2-latest/O2/
[alidock] ~/.sw/BUILD/O2-latest/O2 $> alienv setenv GCC-Toolchain/latest -c ninja install

Cheers,
Rafael


(Dario Berzano) #4