Dear Erik, Gabriele and Roland,
Thanks a lot for pointing out the issue. We tried a few things after looking at the tickets and solutions, and each of them landed with different errors. I am listing them below in 3 parts:
*Part A:* Keeping compiler Intel 2013, I tried to add lines -gcc_name and -gxx_name to CFLAGS and CXXFLAGS pointing to gcc/7.3.0. The error while compiling is the following:
*checking for C++ lambda expressions... yeschecking for C++ range-based for statements... noCactus requires a C++11 compiler -- check your C++ compiler and C++ compiler flagsError reconfiguring sim-configmake: *** [sim-config] Error 2*
I have attached the ini file (kanad_et7.ini), cfg file (kanad_et7.cfg) and full terminal output (out_et7.txt) for reference. I am unable to extract the issue at this point. The module gcc/7.3.0 seems to be loading properly using *module load*, as the *which cpp *changes from default cpp to cpp-7.3.0.
*PART B:* The KANAD hpc also has Intel compiler 2017, but the module file for the same is not available, so the default icc/icpc/ifort still remains intel 2013 during attempts to compile ET. I made changes in cfg file accordingly to accommodate intel 2017 but compilation of this ET lands on another issue:
*checking for mawk... nochecking for gawk... gawkchecking whether make sets ${MAKE}... yeschecking whether the C compiler (/opt/intel-17/compilers_and_libraries_2017/linux/bin/intel64/icc -g -xHOST -align -std=gnu99 -Wl,-rpath,/opt/intel-17/compilers_and_libraries_2017/linux/bin/intel64 -Wl,-rpath, /opt/intel-17/compilers_and_libraries_2017/linux/mkl/lib/intel64) works... noconfigure: error: installation or configuration problem: C compiler cannot create executables (see configs/sim/config-data/config.log for details).Error reconfiguring sim-configmake: *** [sim-config] Error 2*
Upon checking the config log file, I found the following:
*Error: Product support for your (Comp-CL) license has expired.License file(s) used were (in this order): 1. Trusted Storage** 2. /opt/intel/licenses/NCOM_L___2HWS-TFKRNMR4_1.lic** 3. /opt/intel/licenses/server.lic** 4. /opt/intel/composer_xe_2013.1.117/licenses/license.lic** 5. /home2/mallick/intel/licenses** 6. /opt/intel-17/compilers_and_libraries_2017.4.196/linux/bin/intel64/../../Licenses** 7. /home2/mallick/Licenses** 8. /Users/Shared/Library/Application Support/Intel/Licenses** 9. /opt/intel-17/compilers_and_libraries_2017.4.196/linux/bin/intel64/*.licPlease refer https://software.intel.com/en-us/faq/purchasing-renewing-upgrading#support-e... https://software.intel.com/en-us/faq/purchasing-renewing-upgrading#support-expiration for more information..icc: error #10052: could not checkout FLEXlm licenseconfigure: failed program was:#line 1094 "configure"#include "confdefs.h"*
Seems like some issue with the license, but I checked with the hpc admin and he says the license should not be any issue. I am unable to figure out the issue here as well. Could this be the problem that my environment default intel compiler is still intel 2013 while compiling? I have attached the cfg file (kanad_et4.cfg), full terminal output (out_et4.out) and config log file (config_et4.log) for reference.
*Part C:* I compiled another ET successfully using the modules gcc-7.3.0, openmpi-3.1.4, FFTW3/3.3.3, gsl/1.16, openssl/1.1.1a, zlib/1.2.8, cmake/3.15.4, libjpeg/1.2.1, HDF5/1.8.10, openmpi/3.1.4.
But there seems to be a repetitive warning while buliding ET, which I am not sure if I should be worried about: */usr/bin/ld: warning: libgfortran.so.3, needed by /usr/lib64/atlas/liblapack.so, may conflict with libgfortran.so.4*
Please let me know if I should consider changing something to get rid of this warning, I have attached ini file (kanad_et8.ini), cfg file (kanad_et8.cfg) and full terminal output (out_et8.txt) for reference.
I am currently trying to run helloworld, but it stops as it cannot find openmpi in computing nodes. Later, I checked, openmpi/3.1.4 actually does not show up in the module list of those computing nodes. I am checking with the hpc admin about this issue.
Now, having got this compiled successfully, should I continue to pursue compiling ET with intel compilers? Though I am still not sure if this ET (with gcc-7.3) will show up any errors in future as I aim to work on binary neutron star merger simulations. Please let me know your thoughts on this.
Thanks and Regards Shamim Haque Senior Research Fellow (SRF) Department of Physics IISER Bhopal
On Wed, Nov 2, 2022 at 9:27 PM Roland Haas rhaas@illinois.edu wrote:
Hello all,
First: thank you for including all the output and configuration files. This helps a lot!
The actual error message is
/home2/mallick/ET4/Cactus/arrangements/CactusUtils/Vectors/src/vectors.h(1224):
error: invalid type for defaulted constructor vmask(vmask &&) = default;
The code in question is standard C++ code. I don't understand why the compiler would not accept it. I see that you are using an old (2013) version of the Intel compiler; can you try using a newer compiler? This might be a bug in the compiler.
In most cases of C++ errors involving the intel compiler that I have seen in the recent past, the issue was the that the Intel C++ compiler relies on the C++ template library of the GNU compiler (g++). It needs to be told to use a new enough library usually.
I would try and do the following:
- find a g++ compiler that it at least gcc 6
- add -gxx-name PATH-TO-NEW-G++ to your CXXFLAGS
- compile from scratch
See eg:
https://www.einsteintoolkit.org/about/releases/ET_2022_05_announcement.html
or
https://bitbucket.org/einsteintoolkit/tickets/issues/2547/compilation-failur...
Yours, Roland
-- My email is as private as my paper mail. I therefore support encrypting and signing email messages. Get my PGP key from http://pgp.mit.edu .