You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@lhcamilo reported on Slack that his OpenFOAM v2406 build failed in the sanity check, because of some missing binaries that should be part of the plugins:
I reproduced the issue in the EESSI environment, see EESSI/software-layer#826. Both have in common that they use Apptainer and a Debian-based distro for the builds.
The build step basically does Allwmake && Allwmake-plugins, but in our case the second step somehow seems to rerun the first one, as the easybuild log also shows:
$ grep "Finished compile of" easybuild-jix8_9wn.log
Finished compile of OpenQBMM with OpenFOAM-v2406
Finished compile of adiosFoam with OpenFOAM-v2406
Finished compile of external-solver (petsc) with OpenFOAM-v2406
Finished compile of visualization with OpenFOAM-v2406
Finished compile of OpenQBMM with OpenFOAM-v2406
Finished compile of adiosFoam with OpenFOAM-v2406
Finished compile of external-solver (petsc) with OpenFOAM-v2406
Finished compile of visualization with OpenFOAM-v2406
After adding some debugging statement to Allwmake-plugins, I found that this line seems to be the culprit, and it never reaches the bottom part of this script that actually builds the plugins. Running the command from that line interactively did work fine, though. In the end I figured that it may perhaps be related to the /bin/sh shebang in this script (it's also used in all the other Allwmake scripts); Debian-based distros usually have /bin/sh -> dash. I'm still not entirely sure why, but changing the shebang to /bin/bash does indeed solve the issue, and so does changing the symlink itself. It also solved the issue for @lhcamilo.
We could fix this in the OpenFOAM easyblock by changing the shebangs or calling the scripts with something like bash Allwmake.
The text was updated successfully, but these errors were encountered:
@lhcamilo reported on Slack that his OpenFOAM v2406 build failed in the sanity check, because of some missing binaries that should be part of the plugins:
I reproduced the issue in the EESSI environment, see EESSI/software-layer#826. Both have in common that they use Apptainer and a Debian-based distro for the builds.
The build step basically does
Allwmake && Allwmake-plugins
, but in our case the second step somehow seems to rerun the first one, as the easybuild log also shows:After adding some debugging statement to
Allwmake-plugins
, I found that this line seems to be the culprit, and it never reaches the bottom part of this script that actually builds the plugins. Running the command from that line interactively did work fine, though. In the end I figured that it may perhaps be related to the/bin/sh
shebang in this script (it's also used in all the otherAllwmake
scripts); Debian-based distros usually have/bin/sh -> dash
. I'm still not entirely sure why, but changing the shebang to/bin/bash
does indeed solve the issue, and so does changing the symlink itself. It also solved the issue for @lhcamilo.We could fix this in the OpenFOAM easyblock by changing the shebangs or calling the scripts with something like
bash Allwmake
.The text was updated successfully, but these errors were encountered: