Compiling Eddypro shows error 127

Hi,

I want to compile some fortran code from (https://github.com/LI-COR/eddypro-engine)
using the pgi comiler (the gfortran is to old and can not be updated on this machine).
So I tried in a first step to replace gfortran with pgf90 and exclude the waring options from
the makefile. But the following short subroutine shows an error 127 (Terminated by signal 11).
a) What does it mean ?
b) Can I avoid this ?

System: Novell SLES 11SP1(64), pgi 11.9 and 14.9, gcc 4.3.4

cat …/src/src_common/copy_file.f90
ubroutine CopyFile(ifname, ofname)
use m_common_global_var
!> In/out variables
character(), intent(in) :: ifname
character(
), intent(in) :: ofname
!> Local variables
integer :: io_error
character(1024) :: row

!> Open existing file
open(10, file = trim(ifname), status = ‘old’, iostat = io_error)
if (io_error /= 0) return

!> Open new file
open(11, file = trim(ofname), status = ‘new’, iostat = io_error)
if (io_error /= 0) return

!> Copy file line by line
io_error = 0
do while (io_error == 0)
read(10, ‘(a)’, iostat = io_error) row
write(11, ‘(a)’) trim(row)
end do
end subroutine CopyFile

Error msg:
pgf90 -O -c …/src/src_common/copy_file.f90 -o …/obj/eddypro_rp/src/src_common/copy_file.o
pgf90-Fatal-/Net/Groups/Services/LNX_Local64/SLES11/apps/pgi/14.9/linux86-64/14.9/bin/pgf901 TERMINATED by signal 11
Arguments to /Net/Groups/Services/LNX_Local64/SLES11/apps/pgi/14.9/linux86-64/14.9/bin/pgf901
/Net/Groups/Services/LNX_Local64/SLES11/apps/pgi/14.9/linux86-64/14.9/bin/pgf901 …/src/src_common/copy_file.f90 -opt 2 -terse 1 -inform warn -nohpf -nostatic -x 19 0x400000 -quad -x 59 4 -x 15 2 -x 49 0x400004 -x 51 0x20 -x 57 0x4c -x 58 0x10000 -x 124 0x1000 -tp sandybridge -x 57 0xfb0000 -x 58 0x78031040 -x 70 0x6c00 -x 47 0x400000 -x 48 4608 -x 49 0x100 -x 120 0x200 -stdinc /Net/Groups/Services/LNX_Local64/SLES11/apps/pgi/14.9/linux86-64/14.9/include-gcc44:/Net/Groups/Services/LNX_Local64/SLES11/apps/pgi/14.9/linux86-64/14.9/include:/usr/local/include:/usr/lib64/gcc/x86_64-suse-linux/4.3/include:/usr/lib64/gcc/x86_64-suse-linux/4.3/include-fixed:/usr/lib64/gcc/x86_64-suse-linux/4.3/…/…/…/…/x86_64-suse-linux/include:/usr/include -def unix -def __unix -def unix -def linux -def __linux -def linux -def __NO_MATH_INLINES -def __x86_64 -def x86_64 -def LONG_MAX=9223372036854775807L -def ‘SIZE_TYPE=unsigned long int’ -def ‘PTRDIFF_TYPE=long int’ -def __THROW= -def extension= -def amd_64__amd64 -def __k8 -def k8 -def SSE -def MMX -def SSE2 -def SSE3 -def SSSE3 -freeform -vect 48 -y 54 1 -x 70 0x40000000 -y 163 0xc0000000 -modexport /scratch/tmp/pgf90LOGbVHVvP21C.cmod -modindex /scratch/tmp/pgf90nOGbNVlQwDy4.cmdx -output /scratch/tmp/pgf909OGb3kEhN8be.ilm

Hi pekompi,

It looks like the front-end compiler is having issues with the statement:

character(0) :: indent0 = ''

at line 462 of “m_common_global_var.f90”. Changing this to:

character(1) :: indent0 = ''

works around the error.

I’ve sent a report to engineering (TPR#21598) and asked them to investigate further.

Thanks,
Mat

TPR 21598 - User code using declaration " character(0)::ident=’’ " in module cause pgf901 segv

has been fixed in the current 15.7 release.

thanks,
dave