[Bug libgcj/16204] New: File I/O fails on files >= 2^31 bytes (2GB)
mckinlay at redhat dot com
gcc-bugzilla@gcc.gnu.org
Fri Jun 25 19:28:00 GMT 2004
libgcj does not appear to support files > 2GB. However the Sun implementation
works fine on the same system & file system. The attached test case fails with
the following error:
$ gij LargeFile
Exception in thread "main" java.io.IOException: Invalid argument
at gnu.java.nio.channels.FileChannelImpl.seek(long)
(/local/gcc-clean/lib/libgcj.so.6.0.0)
at gnu.java.nio.channels.FileChannelImpl.position(long)
(/local/gcc-clean/lib/libgcj.so.6.0.0)
at java.io.RandomAccessFile.seek(long) (/local/gcc-clean/lib/libgcj.so.6.0.0)
It appears we need to enable LFS support. see:
http://www.suse.de/~aj/linux_lfs.html
--
Summary: File I/O fails on files >= 2^31 bytes (2GB)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mckinlay at redhat dot com
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16204
More information about the Java-prs
mailing list