This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: creating file more than 2 Gig on SGI Irix6.5


Bjorn:

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.

Philip


> 
> 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
> system
> and kernel also has to support this for you to actually be able to
> create
> such files. Try looking at
> http://ftp.sas.com/standards/large.file/x_open.20Mar96.html#TOP
> I am not sure, if you have to do this with gcc 3.0.4 though.
> 
> Yours sincerely,
> 
> Bjorn
> 
> 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
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]