Providing Intel compilers with a newer GCC is something the cluster as admins should be able to do. It is not as easy as just installing GCC, I would guess.
On Thu, Mar 10, 2022, 12:37 Stephanie Sparks <[email protected]> wrote: > Bruno, > > Thanks for that explanation. I was indeed wondering if there was a way to > use a newer version of gcc with the Intel compilers. > > I'm now trying to figure out how to call icc -gcc-name=/path/to/gcc > because I can only load the intel/2019.4 or the updated gcc compilers > independently. > > I thought I might try to install gcc locally but that is involved as there > are many dependencies. > > Thanks, > Stephanie > > On Thursday, March 10, 2022 at 7:01:24 AM UTC-7 [email protected] > wrote: > >> Stephanie, >> >> If you are still using the same compiler as before: icc version >> 19.0.4.243 (gcc version 4.8.5 compatibility) The problem is because of the >> standard library. The Intel compiler does not have its own standard >> library, instead it uses the library from gcc. In your case the compiler is >> icc 19.0 which supports C++14 but the standard library is from gcc 4.8.5 >> which does not support C++14. Usually the way to fix the problem is to load >> a newer version of gcc, then icc should use the newer standard library. >> Right now it probably uses the version from the system gcc, which is really >> old. >> >> Best, >> >> Bruno >> >> On Wednesday, March 9, 2022 at 11:08:39 PM UTC-5 [email protected] wrote: >> >>> I have a new (related) problem: >>> >>> I now can't configure deal.ii (I believe because of the compiler). >>> >>> Below is the output and attached is the CMakeOutput.log >>> >>> CMake Error at cmake/setup_compiler_flags_gnu.cmake:25 (MESSAGE): >>> >>> >>> deal.II requires support for features of C++14 that are not present in >>> >>> versions of GCC prior to 5.0. >>> Call Stack (most recent call first): >>> cmake/macros/macro_verbose_include.cmake:19 (INCLUDE) >>> cmake/setup_compiler_flags.cmake:113 (VERBOSE_INCLUDE) >>> cmake/macros/macro_verbose_include.cmake:19 (INCLUDE) >>> CMakeLists.txt:97 (VERBOSE_INCLUDE) >>> >>> >>> -- Configuring incomplete, errors occurred! >>> See also >>> "/home/saspark2/build2/tmp/build/deal.II-v9.3.3/CMakeFiles/CMakeOutput.log". >>> Failure with exit status: 1 >>> Exit message: There was a problem configuring dealii v9.3.3. >>> >>> If you have any suggestions, I'd greatly appreciate the help. >>> >>> Thank you, >>> Stephanie >>> >>> On Wednesday, March 9, 2022 at 6:00:35 PM UTC-7 Stephanie Sparks wrote: >>> >>>> I was able to install p4est successfully by >>>> >>>> (1) setting CFLAGS="-std=c99" >>>> (2) editing the sc_io.c file per the suggestion on the github issue >>>> page opened by Wolfgang >>>> (3) defining the mathematical constants (specifically M_PI, M_PI_4, and >>>> M_SQRT2) in each script that used one (a partial list was added to the >>>> github issue for this). >>>> >>>> Since the install worked I didn't try the older version. >>>> >>>> Thanks all! >>>> >>>> On Wednesday, March 9, 2022 at 1:24:09 PM UTC-7 Stephanie Sparks wrote: >>>> >>>>> Hi Timo, >>>>> >>>>> I get the following: >>>>> >>>>> icc version 19.0.4.243 (gcc version 4.8.5 compatibility) >>>>> >>>>> I'll try with an older version of p4est now. >>>>> >>>>> Stephanie >>>>> >>>>> On Wednesday, March 9, 2022 at 10:31:51 AM UTC-7 Timo Heister wrote: >>>>> >>>>>> Stephanie, >>>>>> >>>>>> What does "icc -v" return for you? I can compile p4est 2.3.2 with icc >>>>>> version 19.1.1.217 >>>>>> >>>>>> You can also try an older p4est release like 2.2 instead of having to >>>>>> fix a bunch of bugs inside the codebase. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On Mon, Mar 7, 2022 at 2:57 PM Wolfgang Bangerth < >>>>>> [email protected]> wrote: >>>>>> > >>>>>> > On 3/7/22 12:22, Stephanie Sparks wrote: >>>>>> > > >>>>>> > > The #include <math.h> declaration did not seem to work; however, >>>>>> as I >>>>>> > > still get the same error. >>>>>> > > >>>>>> > > Should I note this on the github issue? >>>>>> > >>>>>> > Yes, please do. >>>>>> > >>>>>> > You can just put >>>>>> > #define M_PI 3.14159265358979323846264338327950288 >>>>>> > anywhere in that file (before the first place where it is used) >>>>>> then. >>>>>> > >>>>>> > Best >>>>>> > W. >>>>>> > >>>>>> > -- >>>>>> > >>>>>> ------------------------------------------------------------------------ >>>>>> > Wolfgang Bangerth email: [email protected] >>>>>> > www: http://www.math.colostate.edu/~bangerth/ >>>>>> > >>>>>> > -- >>>>>> > The deal.II project is located at http://www.dealii.org/ >>>>>> > For mailing list/forum options, see >>>>>> https://groups.google.com/d/forum/dealii?hl=en >>>>>> > --- >>>>>> > You received this message because you are subscribed to the Google >>>>>> Groups "deal.II User Group" group. >>>>>> > To unsubscribe from this group and stop receiving emails from it, >>>>>> send an email to [email protected]. >>>>>> > To view this discussion on the web visit >>>>>> https://groups.google.com/d/msgid/dealii/4892fe8a-1693-acb4-cb6d-7e62af782377%40colostate.edu. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Timo Heister >>>>>> http://www.math.clemson.edu/~heister/ >>>>>> >>>>> -- > The deal.II project is located at http://www.dealii.org/ > For mailing list/forum options, see > https://groups.google.com/d/forum/dealii?hl=en > --- > You received this message because you are subscribed to the Google Groups > "deal.II User Group" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/dealii/23c5d619-781b-4f1f-b65f-96509cd3495fn%40googlegroups.com > <https://groups.google.com/d/msgid/dealii/23c5d619-781b-4f1f-b65f-96509cd3495fn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/CAMRj59F88yARtuFuY5YSbntLTaynoxZetmcNkktaPvDK_vwONA%40mail.gmail.com.
