<div dir="ltr">On Mon, Mar 18, 2013 at 9:03 PM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov" target="_blank">jedbrown@mcs.anl.gov</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>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" target="_blank">https://bitbucket.org/petsc/petsc/commits/08bdf6bce1142b6c3d4d318bdb8e3320d9f5808d#Lconfig/framework.pyT287</a><br>
<div><br></div><div>This means that all the checks in filterCompileOutput don't even run. What's the rationale for this?</div></div></blockquote><div><br></div><div style>It was before that commit, as you can see that I just use the 1 that was already there.</div>
<div style><br></div><div style>I think it was that compilers too often spewed a bunch of meaningless crap.</div><div style><br></div><div style> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><br></div><div><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>
</blockquote></div><br><br clear="all"><div><br></div>-- <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
</div></div>