Thanks Wolfgang for that suggestion.
I did try to specify C99 as you suggested but I get a new error now:
/home/saspark2/build2//tmp/unpack/p4est-2.3.2/sc/src/sc_io.c(581): warning
#266: function "fileno" declared implicitly
retval = fsync (fileno (file));
^
/home/saspark2/build2//tmp/unpack/p4est-2.3.2/sc/src/sc_random.c(153):
error: identifier "M_PI" is undefined
t = tan (M_PI * sc_rand (state));
^
compilation aborted for
/home/saspark2/build2//tmp/unpack/p4est-2.3.2/sc/src/sc_random.c (code 2)
make[1]: *** [src/libsc_la-sc_random.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2
Error: Error in make sc
On Friday, March 4, 2022 at 2:20:50 PM UTC-7 Wolfgang Bangerth wrote:
>
> Stephanie,
>
> > They told me to reinstall using intel/2019.4 as it is more compatible
> > with the setup they have. However in this second installation I'm having
> > issues with what I think might be the intel compilers in installing
> > p4est and subsequently deal.ii. I'm able to install all the other
> > packages that I need.
>
> The issue you have here...
>
> >
> /home/saspark2/build2//tmp/unpack/p4est-2.3.2/src/p8est_connectivity.c(930):
>
> > error: expected an expression
> > for (int i=0; i<num_vertices*3; ++i)
> > ^
>
> ...is that in traditional C, you cannot declare variables as part of a
> 'for' loop like you can in C++. See also
>
>
> https://stackoverflow.com/questions/1287863/c-for-loop-int-initial-declaration
> You can do that since the 1999 C standard, which means that most
> compilers now default to supporting this construct. Apparently the Intel
> compiler is 23 years behind the times :-( Can you choose which version
> of the Intel compiler you want to use? Maybe a newer version defaults to
> C99.
>
> If you can't, can you try to do something like
> export CFLAGS="-std=c99"
> (or whatever flag the Intel compiler wants to select a specific language
> standard) before you call the p4est configure script and before
> compiling p4est?
>
> 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/2cb81f87-31a9-45bb-914b-115abd92d7d2n%40googlegroups.com.