<div class="gmail_quote">Maybe you have spent much more time on this, but it seems premature to give up on a compiler series. I don't have a Mac to test on, but some notes from the output.</div><div class="gmail_quote">
<br></div><div class="gmail_quote">On Sun, Oct 2, 2011 at 02:44, Aron Ahmadia <span dir="ltr"><<a href="mailto:aron.ahmadia@kaust.edu.sa">aron.ahmadia@kaust.edu.sa</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<p>CMakeFiles/petsc.dir/src/sys/fsrc/somefort.F.old: warning: for symbol _petscfortran9_ tentative definition of size 16 from CMakeFiles/petsc.dir/src/vec/f90-mod/petscvecmod.F.o is is smaller than the real definition of size 4 from CMakeFiles/petsc.dir/src/sys/fsrc/somefort.F.old: warning: for symbol _petscfortran9_ tentative definition of size 16 from CMakeFiles/petsc.dir/src/mat/f90-mod/petscmatmod.F.o is is smaller than the real definition of size 4 from CMakeFiles/petsc.dir/src/sys/fsrc/somefort.F.old: warning: for symbol _petscfortran9_ tentative definition of size 16 from CMakeFiles/petsc.dir/src/dm/f90-mod/petscdmmod.F.o is is smaller than the real definition of size 4 from CMakeFiles/petsc.dir/src/sys/fsrc/somefort.F.old: warning: for symbol _petscfortran9_ tentative definition of size 16 from CMakeFiles/petsc.dir/src/ksp/f90-mod/petsckspmod.F.o is is smaller than the real definition of size 4 from CMakeFiles/petsc.dir/src/sys/fsrc/somefort.F.o</p>
<p>ld: warning: for symbol _petscfortran9_ tentative definition of size 16 from CMakeFiles/petsc.dir/src/snes/f90-mod/petscsnesmod.F.o is is smaller than the real definition of size 4 from CMakeFiles/petsc.dir/src/sys/fsrc/somefort.F.o</p>
</blockquote><div><br></div><div>It looks like this only affects PETSC_COMM_WORLD.</div><div><br></div><div><div>include/finclude/petscsys.h: common /petscfortran9/ PETSC_COMM_WORLD</div><div>include/finclude/petscsys.h: common /petscfortran10/ PETSC_COMM_SELF</div>
</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<p>Undefined symbols:</p>
<p> "_getarg_", referenced from:</p>
<p> _PETScParseFortranArgs_Private in zstart.c.o</p>
<p> _petscinitialize_ in zstart.c.o</p>
<p> "_iargc_", referenced from:</p>
<p> _PETScParseFortranArgs_Private in zstart.c.o</p>
<p>ld: symbol(s) not found</p></blockquote></div>Please send configure.log. If you look at src/sys/ftn-custom/zstart.c, you will see some logic for special cases of getarg and iargc, e.g.<div><br></div><div><div>#define iargc_ _gfortran_iargc</div>
<div>#define getarg_ _gfortran_getarg_i4</div></div><div><br></div><div>What symbols are actually in your libgfortran?</div><div><br></div><div>Also, I'm worried that configure is seeing a different libgfortran, perhaps because of more paths in the compilation line.</div>
<div><br></div><div>And does "make all-legacy" work? (It's possible that the order of all flags is not preserved across languages when we push the flags to CMake.)</div>