<div dir="ltr"><div style>Ever since at least here, configure has ignored compiler output by default.</div><div><br></div><a href="https://bitbucket.org/petsc/petsc/commits/08bdf6bce1142b6c3d4d318bdb8e3320d9f5808d#Lconfig/framework.pyT287">https://bitbucket.org/petsc/petsc/commits/08bdf6bce1142b6c3d4d318bdb8e3320d9f5808d#Lconfig/framework.pyT287</a><br>
<div><br></div><div style>This means that all the checks in filterCompileOutput don't even run. What's the rationale for this?</div><div style><br></div><div style><br></div><div style><div>Possible ERROR while running compiler: error message = {"/tmp/petsc-NZgbtU/PETSc.Configure/conftest.c", line 3: warning: attribute "unused" is unknown, ignored</div>
<div>"/tmp/petsc-NZgbtU/PETSc.Configure/conftest.c", line 3: warning: attribute "unused" is unknown, ignored</div><div>"/tmp/petsc-NZgbtU/PETSc.Configure/conftest.c", line 9: warning: attribute "unused" is unknown, ignored</div>
<div>}</div><div>Source:</div><div>#include "confdefs.h"</div><div>#include "conffix.h"</div><div>__attribute((unused)) static int myfunc(__attribute((unused)) void *name){ return 1;}</div><div><br></div>
<div>int main() {</div><div>int i = 0;</div><div>int j = myfunc(&i);</div><div>typedef void* atype;</div><div>__attribute((unused)) atype a;</div><div>;</div><div> return 0;</div><div>}</div><div> Pushing language C</div>
<div> Popping language C</div><div>sh: /home/jed/usr/mpich-sun/bin/mpicc -o /tmp/petsc-NZgbtU/PETSc.Configure/conftest -PIC /tmp/petsc-NZgbtU/PETSc.Configure/conftest.o -ldl </div><div>Executing: /home/jed/usr/mpich-sun/bin/mpicc -o /tmp/petsc-NZgbtU/PETSc.Configure/conftest -PIC /tmp/petsc-NZgbtU/PETSc.Configure/conftest.o -ldl </div>
<div>sh: </div><div> Defined "UNUSED" to "__attribute((unused))"</div><div><br></div></div></div>