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/6a21892f-603e-43fd-b27f-0b8d34101098n%40googlegroups.com.

Reply via email to