<div dir="ltr">Hi Karl,<div><br></div><div>Thanks for your suggestions. I am using GCC-4.8.1. I will try <span style="font-size:13px">GCC 4.6.x to see if I get anythings.</span></div><div><span style="font-size:13px"><br></span></div><div><span style="font-size:13px">Fande Kong,</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 16, 2015 at 4:04 PM, Karl Rupp <span dir="ltr"><<a href="mailto:rupp@iue.tuwien.ac.at" target="_blank">rupp@iue.tuwien.ac.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Fande,<br>
<br>
the respective configure log states that GCC 4.6.3 was used. Have you tried to compile using GCC 4.6.x? You might have it available as an alternative in your package manager.<br>
<br>
Did you check whether the flags<br>
-std=c89 -pedantic -Wno-long-long -Wno-overlength-strings -fPIC -g3 -O0<br>
show up in your build as well?<br>
<br>
Best regards,<br>
Karli<span class=""><br>
<br>
<br>
On 06/16/2015 11:29 PM, Fande Kong wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
To whom it may concern,<br>
<br>
I was wondering there are any easy ways to reproduce these warnings and<br>
errors. I did reconfigure my local branch according to the log files at<br>
<a href="http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive" rel="noreferrer" target="_blank">http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive</a>. I found some<br>
warnings and errors and fixed them, but there are still a few warnings<br>
and errors I could not reproduce so that I could not fix them.<br>
<br>
Any suggestions?<br>
<br>
Fande Kong<br>
<br>
On Tue, Jun 16, 2015 at 8:00 AM, PETSc checkBuilds<br></span>
<<a href="mailto:petsc-checkbuilds@mcs.anl.gov" target="_blank">petsc-checkbuilds@mcs.anl.gov</a> <mailto:<a href="mailto:petsc-checkbuilds@mcs.anl.gov" target="_blank">petsc-checkbuilds@mcs.anl.gov</a>>><span class=""><br>
wrote:<br>
<br>
<br>
<br>
Dear PETSc developer,<br>
<br>
This email contains listings of contributions attributed to you by<br>
`git blame` that caused compiler errors or warnings in PETSc automated<br>
testing. Follow the links to see the full log files. Please attempt<br>
to fix<br>
the issues promptly or let us know at <a href="mailto:petsc-dev@mcs.anl.gov" target="_blank">petsc-dev@mcs.anl.gov</a><br></span>
<mailto:<a href="mailto:petsc-dev@mcs.anl.gov" target="_blank">petsc-dev@mcs.anl.gov</a>> if you are unable<div><div class="h5"><br>
to resolve the issues.<br>
<br>
Thanks,<br>
The PETSc development team<br>
<br>
----<br>
<br>
warnings attributed to commit<br>
<a href="https://bitbucket.org/petsc/petsc/commits/086af2c" rel="noreferrer" target="_blank">https://bitbucket.org/petsc/petsc/commits/086af2c</a><br>
changed 'hierarchpart' to 'hierarchical'<br>
<br>
src/mat/partition/impls/hierarchical/hierarchical.c:150<br>
<br>
[<a href="http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-linux-c89_thrash.log" rel="noreferrer" target="_blank">http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-linux-c89_thrash.log</a>]<br>
<br>
/sandbox/petsc/petsc.clone-2/src/mat/partition/impls/hierarchical/hierarchical.c:150:3:<br>
warning: ISO C90 forbids mixed declarations and code [-Wpedantic]<br>
<br>
----<br>
<br>
warnings attributed to commit<br>
<a href="https://bitbucket.org/petsc/petsc/commits/5495542" rel="noreferrer" target="_blank">https://bitbucket.org/petsc/petsc/commits/5495542</a><br>
implemented MatGetSubMatrices_MPIAdj<br>
<br>
src/mat/impls/adj/mpi/mpiadj.c:575<br>
<br>
[<a href="http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-linux-opt-cxx-quad_cg.log" rel="noreferrer" target="_blank">http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-linux-opt-cxx-quad_cg.log</a>]<br>
<br>
/sandbox/petsc/petsc.clone/src/mat/impls/adj/mpi/mpiadj.c:575:35:<br>
warning: 'rlocalindex' may be used uninitialized in this function<br>
[-Wmaybe-uninitialized]<br>
<br>
----<br>
<br>
warnings attributed to commit<br>
<a href="https://bitbucket.org/petsc/petsc/commits/54b07c2" rel="noreferrer" target="_blank">https://bitbucket.org/petsc/petsc/commits/54b07c2</a><br>
implemented ISBuildTwoSided<br>
<br>
src/vec/is/is/utils/iscoloring.c:416<br>
<br>
[<a href="http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-linux-cxx-cmplx-pkgs-64idx_churn.log" rel="noreferrer" target="_blank">http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-linux-cxx-cmplx-pkgs-64idx_churn.log</a>]<br>
<br>
/sandbox/petsc/petsc.clone-2/src/vec/is/is/utils/iscoloring.c:416:11: error:<br>
no matching function for call to 'PetscCommBuildTwoSided'<br>
<br>
[<a href="http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-opensolaris-misc_n-gage.log" rel="noreferrer" target="_blank">http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-opensolaris-misc_n-gage.log</a>]<br>
<br>
"/export/home/petsc/petsc.clone-2/src/vec/is/is/utils/iscoloring.c",<br>
line 416: warning: argument #7 is incompatible with prototype:<br>
<br>
[<a href="http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-linux-pkgs-64idx_thrash.log" rel="noreferrer" target="_blank">http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-linux-pkgs-64idx_thrash.log</a>]<br>
<br>
/sandbox/petsc/petsc.clone-3/src/vec/is/is/utils/iscoloring.c:416:11: warning:<br>
passing argument 7 of 'PetscCommBuildTwoSided' from incompatible<br>
pointer type<br>
<br>
src/vec/is/is/utils/iscoloring.c:444<br>
<br>
[<a href="http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-linux-cxx-cmplx-pkgs-64idx_churn.log" rel="noreferrer" target="_blank">http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-linux-cxx-cmplx-pkgs-64idx_churn.log</a>]<br>
<br>
/sandbox/petsc/petsc.clone-2/src/vec/is/is/utils/iscoloring.c:444:41: warning:<br>
argument type 'PetscInt *' (aka 'long *') doesn't match specified<br>
'MPI' type tag that requires 'long long *' [-Wtype-safety]<br>
<br>
[<a href="http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-linux-cxx-cmplx-pkgs-64idx_churn.log" rel="noreferrer" target="_blank">http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-linux-cxx-cmplx-pkgs-64idx_churn.log</a>]<br>
<br>
/sandbox/petsc/petsc.clone-2/src/vec/is/is/utils/iscoloring.c:444:54: warning:<br>
argument type 'PetscInt *' (aka 'long *') doesn't match specified<br>
'MPI' type tag that requires 'long long *' [-Wtype-safety]<br>
<br>
src/vec/is/is/utils/iscoloring.c:445<br>
<br>
[<a href="http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-linux-cxx-cmplx-pkgs-64idx_churn.log" rel="noreferrer" target="_blank">http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-linux-cxx-cmplx-pkgs-64idx_churn.log</a>]<br>
<br>
/sandbox/petsc/petsc.clone-2/src/vec/is/is/utils/iscoloring.c:445:52: warning:<br>
argument type 'PetscInt *' (aka 'long *') doesn't match specified<br>
'MPI' type tag that requires 'long long *' [-Wtype-safety]<br>
<br>
[<a href="http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-linux-cxx-cmplx-pkgs-64idx_churn.log" rel="noreferrer" target="_blank">http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-linux-cxx-cmplx-pkgs-64idx_churn.log</a>]<br>
<br>
/sandbox/petsc/petsc.clone-2/src/vec/is/is/utils/iscoloring.c:445:39: warning:<br>
argument type 'PetscInt *' (aka 'long *') doesn't match specified<br>
'MPI' type tag that requires 'long long *' [-Wtype-safety]<br>
<br>
----<br>
<br>
warnings attributed to commit<br>
<a href="https://bitbucket.org/petsc/petsc/commits/77fca31" rel="noreferrer" target="_blank">https://bitbucket.org/petsc/petsc/commits/77fca31</a><br>
add runex40_2<br>
<br>
src/mat/examples/tests/ex40.c:22<br>
<br>
[<a href="http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/examples_next_arch-linux-cxx-cmplx-pkgs-64idx_churn.log" rel="noreferrer" target="_blank">http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/examples_next_arch-linux-cxx-cmplx-pkgs-64idx_churn.log</a>]<br>
<br>
/sandbox/petsc/petsc.clone-2/src/mat/examples/tests/ex40.c:22:18:<br>
warning: unused variable 'rmap' [-Wunused-variable]<br>
<br>
[<a href="http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/examples_next_arch-linux-gcc-ifc-cmplx_crank.log" rel="noreferrer" target="_blank">http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/examples_next_arch-linux-gcc-ifc-cmplx_crank.log</a>]<br>
<br>
/sandbox/petsc/petsc.clone-2/src/mat/examples/tests/ex40.c:22:18:<br>
warning: unused variable 'rmap' [-Wunused-variable]<br>
<br>
----<br>
<br>
warnings attributed to commit<br>
<a href="https://bitbucket.org/petsc/petsc/commits/841d17a" rel="noreferrer" target="_blank">https://bitbucket.org/petsc/petsc/commits/841d17a</a><br>
implemented a MatGetSubMatrix_MPIAdj_Single<br>
<br>
src/mat/impls/adj/mpi/mpiadj.c:574<br>
<br>
[<a href="http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-linux-opt-cxx-quad_cg.log" rel="noreferrer" target="_blank">http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-linux-opt-cxx-quad_cg.log</a>]<br>
<br>
/sandbox/petsc/petsc.clone/src/mat/impls/adj/mpi/mpiadj.c:574:29:<br>
warning: 'owner' may be used uninitialized in this function<br>
[-Wmaybe-uninitialized]<br>
<br>
----<br>
<br>
warnings attributed to commit<br>
<a href="https://bitbucket.org/petsc/petsc/commits/9d01615" rel="noreferrer" target="_blank">https://bitbucket.org/petsc/petsc/commits/9d01615</a><br>
Rewrite an implementation of matincreaseoverlap<br>
<br>
src/mat/impls/aij/mpi/mpiov.c:134<br>
<br>
[<a href="http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-opensolaris-misc_n-gage.log" rel="noreferrer" target="_blank">http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-opensolaris-misc_n-gage.log</a>]<br>
<br>
"/export/home/petsc/petsc.clone-2/src/mat/impls/aij/mpi/mpiov.c",<br>
line 134: warning: argument #7 is incompatible with prototype:<br>
<br>
[<a href="http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-linux-pkgs-64idx_thrash.log" rel="noreferrer" target="_blank">http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-linux-pkgs-64idx_thrash.log</a>]<br>
<br>
/sandbox/petsc/petsc.clone-3/src/mat/impls/aij/mpi/mpiov.c:134:10:<br>
warning: passing argument 7 of 'PetscCommBuildTwoSided' from<br>
incompatible pointer type<br>
<br>
src/mat/impls/aij/mpi/mpiov.c:170<br>
<br>
[<a href="http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-opensolaris-misc_n-gage.log" rel="noreferrer" target="_blank">http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-opensolaris-misc_n-gage.log</a>]<br>
<br>
"/export/home/petsc/petsc.clone-2/src/mat/impls/aij/mpi/mpiov.c",<br>
line 170: warning: argument #7 is incompatible with prototype:<br>
<br>
[<a href="http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-linux-pkgs-64idx_thrash.log" rel="noreferrer" target="_blank">http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/06/16/build_next_arch-linux-pkgs-64idx_thrash.log</a>]<br>
<br>
/sandbox/petsc/petsc.clone-3/src/mat/impls/aij/mpi/mpiov.c:170:10:<br>
warning: passing argument 7 of 'PetscCommBuildTwoSided' from<br>
incompatible pointer type<br>
<br>
----<br>
To opt-out from receiving these messages - send a request to<br></div></div>
<a href="mailto:petsc-dev@mcs.anl.gov" target="_blank">petsc-dev@mcs.anl.gov</a> <mailto:<a href="mailto:petsc-dev@mcs.anl.gov" target="_blank">petsc-dev@mcs.anl.gov</a>>.<br>
<br>
<br>
</blockquote>
<br>
</blockquote></div><br></div>