[petsc-users] missing binary operator before token
Satish Balay
balay.anl at fastmail.org
Sat Aug 2 11:04:17 CDT 2025
Do you get these errors with 'make check' on a petsc install - or when compiling a petsc fortran example (with the corresponding makefile)?
Satish
On Sat, 2 Aug 2025, kiran hegde wrote:
> Hi ,
>
> I am compiling fortran code using petsc include & lib, but getting
> below error:
>
> 298 | #if PetscHasAttribute(format) && !defined(PETSC_SKIP_ATTRIBUTE_FORMAT)
> Error: missing binary operator before token '('
> /home/kiranhegde/MyLinuxApplications/Installations/petsc/include/petscmacros.h:330:0:
>
> 330 | #if PetscHasAttribute(__cold__)
> Error: missing binary operator before token '('
> /home/kiranhegde/MyLinuxApplications/Installations/petsc/include/petscmacros.h:332:0:
>
> 332 | #elif PetscHasAttribute(cold) /* some implementations (old gcc) use
> no underscores */
> Error: missing binary operator before token '('
> /home/kiranhegde/MyLinuxApplications/Installations/petsc/include/petscmacros.h:355:0:
>
> 298 | #if PetscHasAttribute(format) && !defined(PETSC_SKIP_ATTRIBUTE_FORMAT)
> Error: missing binary operator before token '('
> /home/kiranhegde/MyLinuxApplications/Installations/petsc/include/petscmacros.h:330:0:
>
> 330 | #if PetscHasAttribute(__cold__)
> Error: missing binary operator before token '('
> /home/kiranhegde/MyLinuxApplications/Installations/petsc/include/petscmacros.h:332:0:
>
> 332 | #elif PetscHasAttribute(cold) /* some implementations (old gcc) use
> no underscores */
> Error: missing binary operator before token '('
> /home/kiranhegde/MyLinuxApplications/Installations/petsc/include/petscmacros.h:355:0:
>
> Same errors repeat for many lines and header files
> I am using PETSC at 3.23.4 version with gcc at 15.1.0
>
>
>
>
More information about the petsc-users
mailing list