It seems like open(.., O_RDWR|O_WRONLY) returns EOVERFLOW for a not yet known minimum file size in 64-bit kernels >3.0. I haven't figured out what file minimum size this starts happening at yet, but a few kilobytes works fine and a few megabytes is "too much".
Where have you seen such code ? From fcntl.h, it seems O_RDWR|O_WRONLY equals to O_ACCMODE which is a mask to find the access mode. This flag set doesn´t seem valid and open should probably return -EINVAL instead. For reference, O_RDWR = 2 and O_WRONLY = 1.
Apparently those bits were confusing.
GCC has been patched upstream.
What versions are affected?
The bug has been fixed in 4.4 and up. 4.5 is HPPA stable.
So can we get that patch into 4.5 and 4.6, please?
looks like it's been released in gcc-4.4.7 already i've added this to 4.5.3 and 4.6.3 though (no revbump)
http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.5.3/gentoo/64_all_gcc-hppa-64bit-pr52408.patch?rev=1.1 http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.6.3/gentoo/64_all_gcc-hppa-64bit-pr52408.patch?rev=1.1
should be all set now in the tree; thanks for the report! Commit message: Push out hppa 64bit fix http://sources.gentoo.org/sys-devel/gcc/gcc-4.5.3-r2.ebuild?r1=1.12&r2=1.13 http://sources.gentoo.org/sys-devel/gcc/gcc-4.6.3.ebuild?r1=1.1&r2=1.2
(In reply to comment #9) > should be all set now in the tree; thanks for the report! Well, apart from sys-devel/kgcc64, where it matters, but I've taken care of that now. # ChangeLog for sys-devel/kgcc64 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 # $Header: /var/cvsroot/gentoo-x86/sys-devel/kgcc64/ChangeLog,v 1.41 2012/05/10 04:17:44 jer Exp $ 10 May 2012; Jeroen Roovers <jer@gentoo.org> kgcc64-4.5.3.ebuild: Bump patchset for bug #382075.