This is the mail archive of the
mailing list for the GCC project.
Re: creating file more than 2 Gig on SGI Irix6.5
- From: Philip Cheng <cheng at PCIgeomatics dot com>
- To: shamus at tdcadsl dot dk
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 26 Mar 2002 15:53:05 -0500 (EST)
- Subject: Re: creating file more than 2 Gig on SGI Irix6.5
Finally I found the answer from a newsgroup:
>The old EFS filesystem does not support files of more than 2 Gb,
>but the newer XFS filesystem definitely does.
>If your system was shipped with IRIX 6.2 or newer, you are
>very likely using XFS.
>To check, 'df' and look under the Type column.
Once I tried it on a file system with xfs, it works immediately.
It even works with gcc 2.95.
> Hi Philip,
> I believe, one has to define _LARGEFILE_SOURCE or _LARGEFILE64_SOURCE
> to 1
> in order to get the API with support for files larger than 2GB. The file
> and kernel also has to support this for you to actually be able to
> such files. Try looking at
> I am not sure, if you have to do this with gcc 3.0.4 though.
> Yours sincerely,
> Philip Cheng wrote:
> > All:
> > I just installed gcc 3.0.4 on my IRIX 6.5 machine. My program crashed
> > when it tried to create a file more than 2Gig. Does gcc 3.0.4 allows
> > file more than 2G? Is there something missing that I need to install?
> > I had to use --disable-multilib option in order to build gcc successfully.
> > Could that be the problem?
> > Any help would be much appreciated
> > Philip