Compiling v1806 from source
I'm having an issue installing OpenFOAM from source on a remote cluster according to the instructions here
https://www.openfoam.com/download/install-source.php I followed all the instructions up to Code:
./Allwmake Code:
And the output of foamInstallationTest is Code:
|
Hi,
I've got the same problem too. Have you resolved yours? |
successful compile
TL;DR
I used the Third Party MPI library rather than my system MPI library - I'm not sure why my system MPI didn't work. Slightly longer version I created a prefs.sh file by copying the example one (etc/config.sh/example) into etc, although the only re-definition I have in it is Code:
export WM_MPLIB=OPENMPI Code:
source OpenFOAM-v1806/etc/bashrc |
Hmm, tried it but got the error:
checking for style of include used by make... GNU checking whether make supports nested variables... yes checking whether UID '20822' is supported by ustar format... yes checking whether GID '1002' is supported by ustar format... yes checking how to create a ustar tar archive... ATTENTION! pax archive volume change required. Ready for archive volume: 1 Input archive name or "." to quit pax. Archive name > |
Quick question @quarkz: Which installation instructions are you following and which Linux Distribution are you using?
|
Hi wyldckat,
I using instructions from: https://www.openfoam.com/code/build-guide.php My linux version is: Linux version 2.6.32-696.30.1.el6.x86_64 (mockbuild@x86-033.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC) ) #1 SMP Fri May 18 11:50:44 EDT 2018 Thanks. |
Quick answer: gcc version 4.4.7 is not supported for building the recent OpenFOAM versions, from both the OpenFOAM Foundation and ESI-OpenCFD.
It seems you are using RHEL 6.x, by looking at the kernel and GCC versions. There should be a way to have GCC 6 or GCC 7 available for your system. If you are using a machine that is managed by an administrator, I strongly advise you to talk to said admin, in order to know which MPI toolbox(es) to use and how to use a more modern GCC. If you installed this machine yourself, then you will have to either build from source code (see for example https://openfoamwiki.net/index.php/I...HEL#CentOS_6.9 for ideas) - or see https://openfoamwiki.net/index.php/I...6.10_.28SCL.29 for ideas on how to build by using the Software Collections Library that provides GCC 7. edit: I forgot to mention that the error message that you've gotten is likely from trying to build Open-MPI, which sometimes gives that error message and I don't know yet why that happens... |
Hi wyldckat,
Thanks for the help. Actually the sys comes with gcc 4.4.7 but thru module loading, I use 4.9.3. Currently, that's the version with MPI. I'm not sure if the admin will agree to install gcc 6 or 7. However, I managed to install OpenFOAM 6 on the cluster. So I'm not sure if it is due to gcc version. |
Quick answers:
Quote:
As for MPI, then you don't need to use: Code:
export WM_MPLIB=OPENMPI What I mean is that the error message that you had gotten usually occurs when trying to build Open-MPI. Quote:
|
Hi wyldckat,
I just followed the standard instruction to install OpenFOAM 6. Ya, I think the problem lies with OpenMPI. I will see what can be done. Thanks! |
Hi,
I realise that I had the same problem with v1706. Recently, I tried to recompile but using: export WM_COMPILER=Gcc49 since my cluster is using only gcc 4.9.3. I managed to successfully compile now. I also tried v1812 and it works. |
All times are GMT -4. The time now is 23:49. |