O2 fails on UBUNTU 20.04 because of pythia6

dear experts,
I am trying to compile O2 on Ubuntu 20.04.1 LTS

I am using alidock

Here is the output on my screen:

aliBuild build O2 --defaults o2

==> Packages will be built in the following order:
- autotools@v1.5.0
- GCC-Toolchain@v6.2.0-alice1
- sqlite@v3.15.0
- FreeType@v2.6
- ZeroMQ@v4.1.5
- CMake@v3.8.2
- protobuf@v3.0.2
- GSL@release-1-16
- Vc@1.3.2
- pythia6@428-alice1
- HepMC@alice/v2.06.09
- googletest@release-1.8.0
- nanomsg@c52f1bedca6b72fb31b473929d99f2fe90a13445
- libpng@v1.6.18
- hijing@v1.36
- GEANT4@v4.10.01.p03
- Python@alice/v2.7.10
- Python-modules@1.0
- boost@v1.64.0
- ROOT@v6-08-02
- DDS@1.4
- yaml-cpp@release-0.5.2
- vgm@4.3-alice1
- GEANT3@v2-4
- lhapdf@v6.1.6
- GEANT4_VMC@v3-2-p1-alice1
- pythia@v8223
- simulation@v1.0
- generators@v1.0
- FairRoot@alice-dev-20170524
- O2 (development package)

==> You have packages in development mode.
This means their source code can be freely modified under:

  /home/alidock/<package_name>

aliBuild does not automatically update such packages to avoid work loss.
In most cases this is achieved by doing in the package source directory:

  git pull --rebase

Using cached build for defaults-release
Using cached build for autotools
Using cached build for GCC-Toolchain
Using cached build for sqlite
Using cached build for FreeType
Using cached build for ZeroMQ
Using cached build for CMake
Using cached build for protobuf
Using cached build for GSL
Using cached build for Vc

==> Building pythia6@428-alice1_O2
==> pythia6 is being built (use --debug for full output): failed
ERROR: Error while executing /home/alidock/.sw/SPECS/slc7_x86-64/pythia6/428-alice1_O2-1/build.sh on `alidock-1001’.
ERROR: Log can be found in /home/alidock/.sw/BUILD/pythia6-latest/log
ERROR: Please upload it to CERNBox/Dropbox if you intend to request support.
ERROR: Build directory is /home/alidock/.sw/BUILD/pythia6-latest/pythia6.

The following is the logfile when building the pythia6 package :

++ cmake /home/alidock/.sw/SOURCES/pythia6/428-alice1_O2/428-alice1 -DCMAKE_BUILD_TYPE=RELWITHDEBINFO -DCMAKE_INSTALL_PREFIX=/home/alidock/.sw/INSTALLROOT/79c6188d37766459955ec25ef918022194779b0e/slc7_x86-64/pythia6/428-alice1_O2-1
– The C compiler identification is GNU 6.2.0
– The CXX compiler identification is GNU 6.2.0
– Check for working C compiler: /home/alidock/.sw/slc7_x86-64/GCC-Toolchain/v6.2.0-alice1-2/bin/cc
– Check for working C compiler: /home/alidock/.sw/slc7_x86-64/GCC-Toolchain/v6.2.0-alice1-2/bin/cc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
– Check for working CXX compiler: /home/alidock/.sw/slc7_x86-64/GCC-Toolchain/v6.2.0-alice1-2/bin/c++
– Check for working CXX compiler: /home/alidock/.sw/slc7_x86-64/GCC-Toolchain/v6.2.0-alice1-2/bin/c++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– The Fortran compiler identification is GNU 6.2.0
– Check for working Fortran compiler: /home/alidock/.sw/slc7_x86-64/GCC-Toolchain/v6.2.0-alice1-2/bin/gfortran
– Check for working Fortran compiler: /home/alidock/.sw/slc7_x86-64/GCC-Toolchain/v6.2.0-alice1-2/bin/gfortran – works
– Detecting Fortran compiler ABI info
– Detecting Fortran compiler ABI info - done
– Checking whether /home/alidock/.sw/slc7_x86-64/GCC-Toolchain/v6.2.0-alice1-2/bin/gfortran supports Fortran 90
– Checking whether /home/alidock/.sw/slc7_x86-64/GCC-Toolchain/v6.2.0-alice1-2/bin/gfortran supports Fortran 90 – yes
– Configuring done
– Generating done
– Build files have been written to: /home/alidock/.sw/BUILD/79c6188d37766459955ec25ef918022194779b0e/pythia6
++ make -j4
Scanning dependencies of target pythia6
[ 80%] Building Fortran object CMakeFiles/pythia6.dir/pythia-6.4.28.f.o
[ 80%] Building Fortran object CMakeFiles/pythia6.dir/tpythia6_called_from_cc.F.o
[ 80%] Building C object CMakeFiles/pythia6.dir/pythia6_common_address.c.o
[ 80%] Building C object CMakeFiles/pythia6.dir/main.c.o
[100%] Linking Fortran shared library libpythia6.so
[100%] Built target pythia6
++ make install
[100%] Built target pythia6
Install the project…
– Install configuration: “RELWITHDEBINFO”
– Installing: /home/alidock/.sw/INSTALLROOT/79c6188d37766459955ec25ef918022194779b0e/slc7_x86-64/pythia6/428-alice1_O2-1/lib/libpythia6.so
++ tar -c lib include
++ tar -x -C /home/alidock/.sw/INSTALLROOT/79c6188d37766459955ec25ef918022194779b0e/slc7_x86-64/pythia6/428-alice1_O2-1
tar: lib: Cannot stat: No such file or directory
tar: include: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors

Can anybody please help ?
Thank you in advance

Gianluigi

Dear experts,
Dear Gianluigi,

could you solve the problem? I am facing the exact same problem on Ubuntu 18.04.5 LTS and I use the aliBuild version 1.8.6

Thank you also from my side
Georgios

dear Georgios,
actually at the end I preferred to change the Linux version and I installed on my computer Linux CentOS release 7.9.2009 (core) which is similar or to the one supported by Cern.
In that way I could finally build the code
Gianluigi