public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/61099] New: Mac 2GB file limit error
@ 2014-05-07 15:33 barry.j.mcinnes at noaa dot gov
  2014-05-07 15:47 ` [Bug fortran/61099] " barry.j.mcinnes at noaa dot gov
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: barry.j.mcinnes at noaa dot gov @ 2014-05-07 15:33 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 61099
           Summary: Mac 2GB file limit error
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: barry.j.mcinnes at noaa dot gov

ifort has this fixed in versions >11.0
gfortran 4.8 on linux compiles
On Mac intel any gfortran version above 4.5 gives errors

[mac27:~] bmcinnes% gfortran-mp-4.5 -c -m64 dave.f90
[mac27:~] bmcinnes% gfortran-mp-4.7 -c -m64 dave.f90
/var/folders/48/zp9tz0_s69184wg24qr7gxph00021n/T//ccgHcRj2.s:71:zerofill size
(2304000000.) <0! Ignored.
/var/folders/48/zp9tz0_s69184wg24qr7gxph00021n/T//ccgHcRj2.s:71:Rest of line
ignored. 1st junk character valued 44 (,).
[mac27:~] bmcinnes% gfortran-mp-4.8 -c -m64 dave.f90
/var/folders/48/zp9tz0_s69184wg24qr7gxph00021n/T//ccSh0IQg.s:60:zerofill size
(2304000000.) <0! Ignored.
/var/folders/48/zp9tz0_s69184wg24qr7gxph00021n/T//ccSh0IQg.s:60:Rest of line
ignored. 1st junk character valued 44 (,).
[mac27:~] bmcinnes% gfortran-mp-4.9 -c -m64 dave.f90
/var/folders/48/zp9tz0_s69184wg24qr7gxph00021n/T//ccIqDBDn.s:60:zerofill size
(2304000000.) <0! Ignored.
/var/folders/48/zp9tz0_s69184wg24qr7gxph00021n/T//ccIqDBDn.s:60:Rest of line
ignored. 1st junk character valued 44 (,).
[mac27:~] bmcinnes% cat dave.f90
! Works for d = 23000, fails at 24000.
! Threshold appears to be the 2 Gb limit for total array size
! with 4-byte integers.

integer, parameter :: d = 24000
integer x(d,d)
print *, size (x)
end

[mac27:~/info] bmcinnes% gfortran-mp-4.9 -v
Using built-in specs.
COLLECT_GCC=gfortran-mp-4.9
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin13/4.9.0/lto-wrapper
Target: x86_64-apple-darwin13
Configured with:
/opt/local/var/macports/build/_opt_mports_dports_lang_gcc49/gcc49/work/gcc-4.9-20140416/configure
--prefix=/opt/local --build=x86_64-apple-darwin13
--enable-languages=c,c++,objc,obj-c++,fortran,java
--libdir=/opt/local/lib/gcc49 --includedir=/opt/local/include/gcc49
--infodir=/opt/local/share/info --mandir=/opt/local/share/man
--datarootdir=/opt/local/share/gcc-4.9 --with-local-prefix=/opt/local
--with-system-zlib --disable-nls --program-suffix=-mp-4.9
--with-gxx-include-dir=/opt/local/include/gcc49/c++/ --with-gmp=/opt/local
--with-mpfr=/opt/local --with-mpc=/opt/local --with-cloog=/opt/local
--enable-cloog-backend=isl --disable-cloog-version-check
--enable-stage1-checking --disable-multilib --enable-lto
--enable-libstdcxx-time --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld
--with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket
--with-pkgversion='MacPorts gcc49 4.9-20140416_0'
Thread model: posix
gcc version 4.9.0 20140416 (prerelease) (MacPorts gcc49 4.9-20140416_0)
[mac27:~/info] bmcinnes%


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug fortran/61099] Mac 2GB file limit error
  2014-05-07 15:33 [Bug fortran/61099] New: Mac 2GB file limit error barry.j.mcinnes at noaa dot gov
@ 2014-05-07 15:47 ` barry.j.mcinnes at noaa dot gov
  2014-05-07 16:31 ` pinskia at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: barry.j.mcinnes at noaa dot gov @ 2014-05-07 15:47 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Barry McInnes <barry.j.mcinnes at noaa dot gov> ---

Mac ifort test
[mac27:~] bmcinnes% ifort -c dave.f90
[mac27:~] bmcinnes% ifort -v
ifort version 14.0.1
[mac27:~] bmcinnes%


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug fortran/61099] Mac 2GB file limit error
  2014-05-07 15:33 [Bug fortran/61099] New: Mac 2GB file limit error barry.j.mcinnes at noaa dot gov
  2014-05-07 15:47 ` [Bug fortran/61099] " barry.j.mcinnes at noaa dot gov
@ 2014-05-07 16:31 ` pinskia at gcc dot gnu.org
  2014-05-07 16:43 ` barry.j.mcinnes at noaa dot gov
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2014-05-07 16:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This sounds like a bug in Apple's assembler.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug fortran/61099] Mac 2GB file limit error
  2014-05-07 15:33 [Bug fortran/61099] New: Mac 2GB file limit error barry.j.mcinnes at noaa dot gov
  2014-05-07 15:47 ` [Bug fortran/61099] " barry.j.mcinnes at noaa dot gov
  2014-05-07 16:31 ` pinskia at gcc dot gnu.org
@ 2014-05-07 16:43 ` barry.j.mcinnes at noaa dot gov
  2014-05-07 17:41 ` dominiq at lps dot ens.fr
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: barry.j.mcinnes at noaa dot gov @ 2014-05-07 16:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Barry McInnes <barry.j.mcinnes at noaa dot gov> ---
This gives the same errors within MacOS 10.8 and 10.9


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug fortran/61099] Mac 2GB file limit error
  2014-05-07 15:33 [Bug fortran/61099] New: Mac 2GB file limit error barry.j.mcinnes at noaa dot gov
                   ` (2 preceding siblings ...)
  2014-05-07 16:43 ` barry.j.mcinnes at noaa dot gov
@ 2014-05-07 17:41 ` dominiq at lps dot ens.fr
  2014-05-09 14:29 ` [Bug target/61099] " dominiq at lps dot ens.fr
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dominiq at lps dot ens.fr @ 2014-05-07 17:41 UTC (permalink / raw)
  To: gcc-bugs

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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2014-05-07
                 CC|                            |iains at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> This sounds like a bug in Apple's assembler.

I think it is: 'as' fails if the bit 32 of the length in '.zerofill' is 1 (bits
above 32 can be set as long as bit 32 is 0). 
Workaround: use the Clang 'as', i.e., compile with -Wa,-q.

Note '.zerofill' appeared between r167173 (no zerofill) and r167380 (zerofill).

Note that the code works on darwin10.

This PR should probably closed as INVALID.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/61099] Mac 2GB file limit error
  2014-05-07 15:33 [Bug fortran/61099] New: Mac 2GB file limit error barry.j.mcinnes at noaa dot gov
                   ` (3 preceding siblings ...)
  2014-05-07 17:41 ` dominiq at lps dot ens.fr
@ 2014-05-09 14:29 ` dominiq at lps dot ens.fr
  2014-05-09 15:02 ` barry.j.mcinnes at noaa dot gov
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dominiq at lps dot ens.fr @ 2014-05-09 14:29 UTC (permalink / raw)
  To: gcc-bugs

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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |*-apple-darwin*
          Component|fortran                     |target
      Known to work|                            |4.5.0

--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
zerofill has been introduced at r167242 and AFACT is darwin specific.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/61099] Mac 2GB file limit error
  2014-05-07 15:33 [Bug fortran/61099] New: Mac 2GB file limit error barry.j.mcinnes at noaa dot gov
                   ` (4 preceding siblings ...)
  2014-05-09 14:29 ` [Bug target/61099] " dominiq at lps dot ens.fr
@ 2014-05-09 15:02 ` barry.j.mcinnes at noaa dot gov
  2014-05-09 15:40 ` dominiq at lps dot ens.fr
  2014-11-04  0:30 ` fxcoudert at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: barry.j.mcinnes at noaa dot gov @ 2014-05-09 15:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Barry McInnes <barry.j.mcinnes at noaa dot gov> ---
Is there any documentation on the arguments -Wa,-q ?
With a link from Macports to /usr/bin/clang one program works without -Wa,-q,
but others still need those parameters to get rid of the zero fill error.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/61099] Mac 2GB file limit error
  2014-05-07 15:33 [Bug fortran/61099] New: Mac 2GB file limit error barry.j.mcinnes at noaa dot gov
                   ` (5 preceding siblings ...)
  2014-05-09 15:02 ` barry.j.mcinnes at noaa dot gov
@ 2014-05-09 15:40 ` dominiq at lps dot ens.fr
  2014-11-04  0:30 ` fxcoudert at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: dominiq at lps dot ens.fr @ 2014-05-09 15:40 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Is there any documentation on the arguments -Wa,-q ?

-Wa,* is documented somewhere in the manual as the way to tell the assembler to
use the option *. AFAIR 'as -q' is documented (otherwise I won't have guessed
it), but I don't have a pointer.

Note that another workaround is to make the array allocatable.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/61099] Mac 2GB file limit error
  2014-05-07 15:33 [Bug fortran/61099] New: Mac 2GB file limit error barry.j.mcinnes at noaa dot gov
                   ` (6 preceding siblings ...)
  2014-05-09 15:40 ` dominiq at lps dot ens.fr
@ 2014-11-04  0:30 ` fxcoudert at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2014-11-04  0:30 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61099

Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
                 CC|                            |fxcoudert at gcc dot gnu.org
         Resolution|---                         |INVALID

--- Comment #8 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
The assembler issue was submitted to Apple as bug #18860674. I don't have high
hopes, but I don't think there's much more we can do.

For completude: one-line C testcase that triggers the same issue:

static int x[576000000] = { 0 };

and generated assembler code which the GNU-based as cannot handle:

    .zerofill __DATA,__bss6,_x,2304000000,6
    .subsections_via_symbols


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-11-04  0:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-07 15:33 [Bug fortran/61099] New: Mac 2GB file limit error barry.j.mcinnes at noaa dot gov
2014-05-07 15:47 ` [Bug fortran/61099] " barry.j.mcinnes at noaa dot gov
2014-05-07 16:31 ` pinskia at gcc dot gnu.org
2014-05-07 16:43 ` barry.j.mcinnes at noaa dot gov
2014-05-07 17:41 ` dominiq at lps dot ens.fr
2014-05-09 14:29 ` [Bug target/61099] " dominiq at lps dot ens.fr
2014-05-09 15:02 ` barry.j.mcinnes at noaa dot gov
2014-05-09 15:40 ` dominiq at lps dot ens.fr
2014-11-04  0:30 ` fxcoudert at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).