Comment 11 for bug 1731938

Revision history for this message
Xavier Besseron (besserox) wrote :

There was a typo in my previous comment, so I will post here the full list of commands to re-build OpenMPI package on Ubuntu Bionic without --enable-heterogeneous

# Install OpenJDK 8
sudo apt install openjdk-8-jdk-headless

# Download openmpi source and install build dependencies
sudo apt-get -y build-dep openmpi
apt-get source openmpi
cd openmpi-*

# Remove --enable-heterogeneous configure option
sed -i '/enable-heterogeneous/d' debian/rules

# Force OpenMPI to use OpenJDK 8
sed -i 's|--with-jdk-dir=/usr/lib/jvm/default-java|--with-jdk-dir=/usr/lib/jvm/java-8-openjdk-amd64|' debian/rules

# Build newly fixed package
debuild -uc -us -b

# Install the newly built package
sudo debi