<div dir="ltr"><div>Enrico</div><div><br></div><div>I have accidentally stepped on the same issue. You may want to check if it works with this branch <a href="https://gitlab.com/petsc/petsc/-/tree/stefanozampini/cray-arm">https://gitlab.com/petsc/petsc/-/tree/stefanozampini/cray-arm</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mar 2 mar 2021 alle ore 23:03 Barry Smith <<a href="mailto:bsmith@petsc.dev">bsmith@petsc.dev</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Please try the following. Make four files as below then compile each with cc -c -o test.o test1.c again for test2.c etc<br>
<br>
Send all the output.<br>
<br>
<br>
<br>
test1.c<br>
#include <complex.h><br>
<br>
test2.c<br>
#define _BSD_SOURCE<br>
#include <complex.h><br>
<br>
test3.c<br>
#define _DEFAULT_SOURCE<br>
#include <complex.h><br>
<br>
test4.c<br>
#define _GNU_SOURCE<br>
#include <complex.h><br>
<br>
> On Mar 2, 2021, at 7:33 AM, Enrico <<a href="mailto:degregori@dkrz.de" target="_blank">degregori@dkrz.de</a>> wrote:<br>
> <br>
> Hi,<br>
> <br>
> attached is the configuration and make log files.<br>
> <br>
> Enrico<br>
> <br>
> On 02/03/2021 14:13, Matthew Knepley wrote:<br>
>> On Tue, Mar 2, 2021 at 7:49 AM Enrico <<a href="mailto:degregori@dkrz.de" target="_blank">degregori@dkrz.de</a> <mailto:<a href="mailto:degregori@dkrz.de" target="_blank">degregori@dkrz.de</a>>> wrote:<br>
>> Hi,<br>
>> I'm having some problems installing PETSC with Cray compiler.<br>
>> I use this configuration:<br>
>> ./configure --with-cc=cc --with-cxx=CC --with-fc=0 --with-debugging=1<br>
>> --with-shared-libraries=1 COPTFLAGS=-O0 CXXOPTFLAGS=-O0<br>
>> and when I do<br>
>> make all<br>
>> I get the following error because of cmathcalls.h:<br>
>> CC-1043 craycc: ERROR File = /usr/include/bits/cmathcalls.h, Line = 55<br>
>> _Complex can only be used with floating-point types.<br>
>> __MATHCALL (cacos, (_Mdouble_complex_ __z));<br>
>> ^<br>
>> Am I doing something wrong?<br>
>> This was expended from somewhere. Can you show the entire err log?<br>
>> Thanks,<br>
>> Matt<br>
>> Regards,<br>
>> Enrico Degregori<br>
>> -- <br>
>> What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
>> -- Norbert Wiener<br>
>> <a href="https://www.cse.buffalo.edu/~knepley/" rel="noreferrer" target="_blank">https://www.cse.buffalo.edu/~knepley/</a> <<a href="http://www.cse.buffalo.edu/~knepley/" rel="noreferrer" target="_blank">http://www.cse.buffalo.edu/~knepley/</a>><br>
> <configure.log><make.log><br>
<br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">Stefano</div>