[petsc-dev] g95 with PETSc and somefort.F

Jed Brown jed at 59A2.org
Wed Jun 23 14:02:05 CDT 2010


On Wed, 23 Jun 2010 13:29:21 -0500, Barry Smith <bsmith at mcs.anl.gov> wrote:
> make PETSC_DIR=/Users/barrysmith/Src/petsc-dev PETSC_ARCH=arch-g95
> /Users/barrysmith/Src/petsc-dev/arch-g95/bin/mpif90 -c  -Wall -Wno-unused-variable -g  -I/Users/barrysmith/Src/petsc-dev/arch-g95/include -I/Users/barrysmith/Src/petsc-dev/include -I/opt/local/include -I/Users/barrysmith/Src/petsc-dev/arch-g95/include   -I/Users/barrysmith/Src/petsc-dev/arch-g95/include -I/opt/local/include -I/Users/barrysmith/Src/petsc-dev/arch-g95/include    -o somefort.o somefort.F
> Warning (115): Line 17 of somefort.F is being truncated
> Warning (115): Line 18 of somefort.F is being truncated
> Warning (115): Line 19 of somefort.F is being truncated
> Warning (115): Line 17 of somefort.F is being truncated
> Warning (115): Line 18 of somefort.F is being truncated
> Warning (115): Line 19 of somefort.F is being truncated

Is this a new version of G95?  GFortran 4.5.0 needs -Wno-line-truncation
because of

  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42852

I don't know if there is much code sharing between G95 and GFortran
these days.

> /var/folders/M4/M4PTePd3FM4rLBeN0lPCkE+++TI/-Tmp-//ccQR27B9.s:321:non-relocatable subtraction expression, "_petscfortran9_" minus "L00000000002$pb"
> /var/folders/M4/M4PTePd3FM4rLBeN0lPCkE+++TI/-Tmp-//ccQR27B9.s:321:symbol: "_petscfortran9_" can't be undefined in a subtraction expression

What does this path have to with anything?  Does mkstemp give you
temporary files in places like that on a Mac?  I don't understand where
the subtraction could occur, but perhaps the assembly in this file holds
clues?

Jed



More information about the petsc-dev mailing list