Compiling NwChem 6.8.1 on Ubuntu 18.04 with OpenMPI 4.0 failed

Click here for full thread
Forum Vet
NWChem Ubuntu packages have a few bugs that were later fixed.
Please use the latest NWChem packages available from the github page, instead
Here are the installation instructions
Installation instructions for the precompiled packages on Ubuntu Bionic

sudo apt -y install curl  python3-dev gfortran  mpi-default-bin mpi-default-dev libopenblas-dev ssh

curl -LJO
curl -LJO

sudo dpkg -i nwchem_7.0.0-3*.bionic.deb