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

Satish Balay balay at mcs.anl.gov
Fri Jun 25 13:32:20 CDT 2010


I think its a g95 bug on Mac. I see this on the Mac - but on on linux.

Will report the bug.

moving 'block data PetscCommInit' into a different sourcefile is a
workarround.

Satish


On Wed, 23 Jun 2010, Barry Smith wrote:

> 
>    Anybody know what this problem is and how to fix it?
> 
>    Barry
> 
> 
> 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
> /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
> /var/folders/M4/M4PTePd3FM4rLBeN0lPCkE+++TI/-Tmp-//ccQR27B9.s:118:non-relocatable subtraction expression, "_petscfortran10_" minus "L00000000001$pb"
> /var/folders/M4/M4PTePd3FM4rLBeN0lPCkE+++TI/-Tmp-//ccQR27B9.s:118:symbol: "_petscfortran10_" can't be undefined in a subtraction expression
> /var/folders/M4/M4PTePd3FM4rLBeN0lPCkE+++TI/-Tmp-//ccQR27B9.s:113:non-relocatable subtraction expression, "_petscfortran9_" minus "L00000000001$pb"
> /var/folders/M4/M4PTePd3FM4rLBeN0lPCkE+++TI/-Tmp-//ccQR27B9.s:113:symbol: "_petscfortran9_" can't be undefined in a subtraction expression
> make[1]: [somefort.o] Error 1 (ignored)
> /usr/bin/ar cr /Users/barrysmith/Src/petsc-dev/arch-g95/lib/libpetsc.a somefort.o
> ar: somefort.o: No such file or directory
> make[1]: [libf] Error 1 (ignored)
> /usr/bin/ranlib: file: /Users/barrysmith/Src/petsc-dev/arch-g95/lib/libpetsc.a(mhyp.o) has no symbols
> 
> 
> 




More information about the petsc-dev mailing list