Enrico I have accidentally stepped on the same issue. You may want to check if it works with this branch https://gitlab.com/petsc/petsc/-/tree/stefanozampini/cray-arm
Il giorno mar 2 mar 2021 alle ore 23:03 Barry Smith <[email protected]> ha scritto: > > 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 > > Send all the output. > > > > test1.c > #include <complex.h> > > test2.c > #define _BSD_SOURCE > #include <complex.h> > > test3.c > #define _DEFAULT_SOURCE > #include <complex.h> > > test4.c > #define _GNU_SOURCE > #include <complex.h> > > > On Mar 2, 2021, at 7:33 AM, Enrico <[email protected]> wrote: > > > > Hi, > > > > attached is the configuration and make log files. > > > > Enrico > > > > On 02/03/2021 14:13, Matthew Knepley wrote: > >> On Tue, Mar 2, 2021 at 7:49 AM Enrico <[email protected] <mailto: > [email protected]>> wrote: > >> Hi, > >> I'm having some problems installing PETSC with Cray compiler. > >> I use this configuration: > >> ./configure --with-cc=cc --with-cxx=CC --with-fc=0 --with-debugging=1 > >> --with-shared-libraries=1 COPTFLAGS=-O0 CXXOPTFLAGS=-O0 > >> and when I do > >> make all > >> I get the following error because of cmathcalls.h: > >> CC-1043 craycc: ERROR File = /usr/include/bits/cmathcalls.h, Line = > 55 > >> _Complex can only be used with floating-point types. > >> __MATHCALL (cacos, (_Mdouble_complex_ __z)); > >> ^ > >> Am I doing something wrong? > >> This was expended from somewhere. Can you show the entire err log? > >> Thanks, > >> Matt > >> Regards, > >> Enrico Degregori > >> -- > >> What most experimenters take for granted before they begin their > experiments is infinitely more interesting than any results to which their > experiments lead. > >> -- Norbert Wiener > >> https://www.cse.buffalo.edu/~knepley/ < > http://www.cse.buffalo.edu/~knepley/> > > <configure.log><make.log> > > -- Stefano
