[petsc-dev] Why does configure ignore compiler output?

Jed Brown jedbrown at mcs.anl.gov
Mon Mar 18 20:03:14 CDT 2013


Ever since at least here, configure has ignored compiler output by default.

https://bitbucket.org/petsc/petsc/commits/08bdf6bce1142b6c3d4d318bdb8e3320d9f5808d#Lconfig/framework.pyT287

This means that all the checks in filterCompileOutput don't even run.
What's the rationale for this?


Possible ERROR while running compiler: error message =
{"/tmp/petsc-NZgbtU/PETSc.Configure/conftest.c", line 3: warning:
 attribute "unused" is unknown, ignored
"/tmp/petsc-NZgbtU/PETSc.Configure/conftest.c", line 3: warning:  attribute
"unused" is unknown, ignored
"/tmp/petsc-NZgbtU/PETSc.Configure/conftest.c", line 9: warning:  attribute
"unused" is unknown, ignored
}
Source:
#include "confdefs.h"
#include "conffix.h"
__attribute((unused)) static int myfunc(__attribute((unused)) void *name){
return 1;}

int main() {
int i = 0;
int j = myfunc(&i);
typedef void* atype;
__attribute((unused))  atype a;
;
  return 0;
}
                Pushing language C
                Popping language C
sh: /home/jed/usr/mpich-sun/bin/mpicc  -o
/tmp/petsc-NZgbtU/PETSc.Configure/conftest    -PIC
/tmp/petsc-NZgbtU/PETSc.Configure/conftest.o  -ldl
Executing: /home/jed/usr/mpich-sun/bin/mpicc  -o
/tmp/petsc-NZgbtU/PETSc.Configure/conftest    -PIC
/tmp/petsc-NZgbtU/PETSc.Configure/conftest.o  -ldl
sh:
        Defined "UNUSED" to "__attribute((unused))"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130318/d985e81b/attachment.html>


More information about the petsc-dev mailing list