[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-fortran
Subject:    Re: bug? runtime error passing POD
From:       Daniel Franke <daniel.franke () imbs ! uni-luebeck ! de>
Date:       2005-07-04 22:37:47
Message-ID: 200507050037.47488.daniel.franke () imbs ! uni-luebeck ! de
[Download RAW message or body]

On Monday 04 July 2005 23:20, you wrote:
> > $> ./test.gfortran
> > Fortran runtime error: End of record
>
> This is now PR libfortran/22298. You can add yourself to the Cc list if
> you want to be kept informed on progress about this bug.
>
> The good workaround for now is to use dynamic linking.

Rebuild gcc-4.0.1-20050616 with shared libraries (--enable-shared) and 
recompiled the testcase:

$> gfortran -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../../gcc-4.0.1-20050616/configure --prefix=<path> 
--enable-threads --with-cpu=pentium4 --enable-languages=f95,c,c++ 
--disable-multilib --without-newlib --enable-shared --disable-nls 
--with-gmp=<path> --with-mpfr=<path>
Thread model: posix
gcc version 4.0.1 20050617 (prerelease)

$> gfortran -g -W -Wall -c f.f90 -o f.o
$> gcc -g -ansi -pedantic -W -Wall  -c test.c -o test.o
$> gfortran f.o test.o -lgfortran -lm -o test.gfortran

$> ldd test.gfortran
        libgfortran.so.0 => <path>/lib/libgfortran.so.0 (0x40015000)
        libm.so.6 => /lib/libm.so.6 (0x40081000)
        libgcc_s.so.1 => <path>/lib/libgcc_s.so.1 (0x400a3000)
        libc.so.6 => /lib/libc.so.6 (0x400ad000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

$> ./test.gfortran
 n =           42

This works now - thanks a lot!

	Daniel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic