This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/40812] Incorrectly writes/reads formatted ASCII files greater than 2Gb
- From: "apotapov at math dot ualberta dot ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jul 2009 00:12:49 -0000
- Subject: [Bug fortran/40812] Incorrectly writes/reads formatted ASCII files greater than 2Gb
- References: <bug-40812-17966@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from apotapov at math dot ualberta dot ca 2009-07-21 00:12 -------
Subject: Re: Incorrectly writes/reads formatted ASCII files greater than 2Gb
The output for gfortran -v is
gfortran -v try.f
Driving: E:\Program Files\gfortran\bin\gfortran.EXE -v
try.f -lgfortranbegin -lgfortran
Using built-in specs.
Target: i586-pc-mingw32
Configured with:
../gcc-trunk/configure --prefix=/mingw --enable-languages=c,fortran
--with-gmp=/home/FX/gfortran/dependencies
-
-disable-werror --enable-threads --disable-nls --build=i586-pc-mingw32
--enable-libgomp
--disable-shared --disable-win32-registr
y --with-dwarf2 --disable-sjlj-exceptions
Thread model: win32
gcc version 4.5.0 20090421 (experimental) [trunk revision 146519] (GCC)
COLLECT_GCC_OPTIONS='-v' '-mtune=pentium'
e:/program files/gfortran/bin/../libexec/gcc/i586-pc-mingw32/4.5.0/f951.exe
try.f -ffixed-form -quiet -dumpbase try.f -mtune=pe
ntium -auxbase try -version -fintrinsic-modules-path e:/program
files/gfortran/bin/../lib/gcc/i586-pc-mingw32/4.5.0/finclude -o
E:\DOCUME~1\ALEX-L~1\LOCALS~1\Temp\ccRXXkfW.s
GNU Fortran (GCC) version 4.5.0 20090421 (experimental) [trunk revision
146519] (i586-pc-mingw32)
compiled by GNU C version 4.5.0 20090421 (experimental) [trunk
revision 146519], GMP version 4.3, MPFR version 2.4.1-p5.
warning: GMP header version 4.3 differs from library version 4.3.0.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU Fortran (GCC) version 4.5.0 20090421 (experimental) [trunk revision
146519] (i586-pc-mingw32)
compiled by GNU C version 4.5.0 20090421 (experimental) [trunk
revision 146519], GMP version 4.3, MPFR version 2.4.1-p5.
warning: GMP header version 4.3 differs from library version 4.3.0.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
COLLECT_GCC_OPTIONS='-v' '-mtune=pentium'
as -o E:\DOCUME~1\ALEX-L~1\LOCALS~1\Temp\cc7YRxVV.o
E:\DOCUME~1\ALEX-L~1\LOCALS~1\Temp\ccRXXkfW.s
COMPILER_PATH=e:/program
files/gfortran/bin/../libexec/gcc/i586-pc-mingw32/4.5.0/;e:/program
files/gfortran/bin/../libexec/gcc/
LIBRARY_PATH=e:/program
files/gfortran/bin/../lib/gcc/i586-pc-mingw32/4.5.0/;e:/program
files/gfortran/bin/../lib/gcc/;e:/progra
m files/gfortran/bin/../lib/gcc/i586-pc-mingw32/4.5.0/../../../;/mingw/lib/
COLLECT_GCC_OPTIONS='-v' '-mtune=pentium'
e:/program
files/gfortran/bin/../libexec/gcc/i586-pc-mingw32/4.5.0/collect2.exe -Bdynamic
e:/program files/gfortran/bin/../lib/
gcc/i586-pc-mingw32/4.5.0/../../../crt2.o e:/program
files/gfortran/bin/../lib/gcc/i586-pc-mingw32/4.5.0/crtbegin.o -Le:/program
files/gfortran/bin/../lib/gcc/i586-pc-mingw32/4.5.0 -Le:/program
files/gfortran/bin/../lib/gcc -Le:/program files/gfortran/bin/
../lib/gcc/i586-pc-mingw32/4.5.0/../../.. -L/mingw/lib
E:\DOCUME~1\ALEX-L~1\LOCALS~1\Temp\cc7YRxVV.o -lgfortranbegin -lgfortran
-lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32
-lshell32 -lmingw32 -lgcc -lmoldname -lmingwex -lms
vcrt e:/program files/gfortran/bin/../lib/gcc/i586-pc-mingw32/4.5.0/crtend.o
Thanks,
Alex
----- Original Message -----
From: "kargl at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: <apotapov@math.ualberta.ca>
Sent: Monday, July 20, 2009 6:01 PM
Subject: [Bug fortran/40812] Incorrectly writes/reads formatted ASCII files
greater than 2Gb
>
>
> ------- Comment #1 from kargl at gcc dot gnu dot org 2009-07-21
> 00:01 -------
> What's the output to 'gfortran -v'?
>
> Since you said it's a 2 GB file size problem, I modified your
> program to
>
> nrp = huge(nrp) / 60
> open(1, file = 'tst.dat')
> do i = 1, nrp+1
> write(1, '(6i10)') (i, k=1,6)
> end do
> close(1)
> end
>
> gfc4x -o z -O big.f90
> ./z
>
> produces
>
> -rw-r--r-- 1 sgk sgk - 2183275095 Jul 20 16:55 tst.dat
>
> The last 10 lines are
>
> troutmask:sgk[223] tail tst.dat
> 35791386 35791386 35791386 35791386 35791386 35791386
> 35791387 35791387 35791387 35791387 35791387 35791387
> 35791388 35791388 35791388 35791388 35791388 35791388
> 35791389 35791389 35791389 35791389 35791389 35791389
> 35791390 35791390 35791390 35791390 35791390 35791390
> 35791391 35791391 35791391 35791391 35791391 35791391
> 35791392 35791392 35791392 35791392 35791392 35791392
> 35791393 35791393 35791393 35791393 35791393 35791393
> 35791394 35791394 35791394 35791394 35791394 35791394
> 35791395 35791395 35791395 35791395 35791395 35791395
>
> This is on x86_64-*-freebsd. Looks like it might be a
> MingW or Cywin issue.
>
>
> --
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40812
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40812