Help for building MOOSE in a offline HPC #28466
-
Check these boxes if you have followed the posting rules.
Issue or question about MOOSEHi Moose Team, I am a new MOOSE user and currently learning to use MOOSE. I am installing moose in a offline HPC (on which I dont have sudo access) following this method - https://mooseframework.inl.gov/getting_started/installation/offline_installation.html I have already installed these offline packages in my system and they are working correctly. But in the HPC, I am getting following error related to clang compiler: /home/lus03/vikramr/projects/moose/scripts
INFO: Checking for HDF5...
INFO: HDF5 library not detected, opting to download via PETSc...
=============================================================================================
Configuring PETSc to compile on your system
=============================================================================================
TESTING: checkCCompiler from config.setCompilers(config/BuildSystem/config/setCompilers.py:1427)
*********************************************************************************************
UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):
---------------------------------------------------------------------------------------------
C compiler you provided with -CC= cannot be found or does not work.
*********************************************************************************************
There was an error. Exiting...
[vikramr@atulya335 scripts]$ module load openmpi-gcc/4.0.1
[vikramr@atulya335 scripts]$ ./update_and_rebuild_petsc.sh --CC=$CC --CXX=$CXX --FC=$FC --with-packages-download-dir=~/projects/downloads
/home/lus03/vikramr/projects/moose/scripts
INFO: Checking for HDF5...
INFO: HDF5 library not detected, opting to download via PETSc...
=============================================================================================
Configuring PETSc to compile on your system
=============================================================================================
TESTING: checkCCompiler from config.setCompilers(config/BuildSystem/config/setCompilers.py:1427)
*********************************************************************************************
UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):
---------------------------------------------------------------------------------------------
C compiler you provided with -CC= cannot be found or does not work.
*********************************************************************************************
There was an error. Exiting...
[vikramr@atulya335 scripts]$ export CC=mpicc CXX=mpicxx FC=mpif90 F90=mpif90 F77=mpif77
[vikramr@atulya335 scripts]$ ./update_and_rebuild_petsc.sh --CC=$CC --CXX=$CXX --FC=$FC --with-packages-download-dir=~/projects/downloads
/home/lus03/vikramr/projects/moose/scripts
INFO: Checking for HDF5...
INFO: HDF5 library not detected, opting to download via PETSc...
=============================================================================================
Configuring PETSc to compile on your system
=============================================================================================
=============================================================================================
***** WARNING *****
Found environment variable: CC=mpicc. Ignoring it, since its also set on command line
=============================================================================================
=============================================================================================
***** WARNING *****
Found environment variable: CXX=mpicxx. Ignoring it, since its also set on command line
=============================================================================================
=============================================================================================
***** WARNING *****
Found environment variable: FC=mpif90. Ignoring it, since its also set on command line
=============================================================================================
=============================================================================================
***** WARNING *****
Found environment variable: F77=mpif77. Ignoring it! Use "./configure F77=$F77" if you
really want to use this value
=============================================================================================
=============================================================================================
***** WARNING *****
Found environment variable: F90=mpif90. Ignoring it! Use "./configure F90=$F90" if you
really want to use this value
=============================================================================================
TESTING: checkCxxDialect from config.setCompilers(config/BuildSystem/config/setCompilers.py:773)
*********************************************************************************************
UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):
---------------------------------------------------------------------------------------------
Using CUDA dialect C++11 as lower bound due to package(s):
- hypre
- strumpack
- SuperLU_DIST
But CUDA compiler (clang) appears non-compliant with C++11 or didn't accept:
- -std=gnu++20
- -std=c++20
- -std=gnu++17
- -std=c++17
- -std=gnu++14
- -std=c++14
- -std=gnu++11
- -std=c++11
*********************************************************************************************
There was an error. Exiting...
I have tried hiding the clang compiler by exporting the following line - In my pc I didnt had clang but still moose installed correctly Kindly help me for resolving this error. (Optional) code in question / simulation log / errorsNo response Encountering Errors? Please include diagnostic output
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
With the mention of Cuda, I wouldn't be surprised if GCC 9.x is too old. I hope I am wrong. Tagging @grmnptr for possible confirmation... Also, would it be possible for you to attach the configure.log it mentions? It should reside:
|
Beta Was this translation helpful? Give feedback.
-
Hi Jason, Thankyou for your reply. Please find the configure.log file. I have also tried gcc 12.3.0 but still I am getting the same error. Is it possible to build moose without cuda so as to avoid this error configure.log - |
Beta Was this translation helpful? Give feedback.
-
Thank you Jason and Guillaume, For your replies and support. I successfully compiled and installed moose in the HPC system by installing and compiling a newer version of llvm and clang. |
Beta Was this translation helpful? Give feedback.
Thank you Jason and Guillaume,
For your replies and support.
I successfully compiled and installed moose in the HPC system by installing and compiling a newer version of llvm and clang.