public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/44116] New: 64bit inodes for source code causes "Value too large for defined data type" (XFS,inode64)
@ 2010-05-13 14:32 kasparek at fit dot vutbr dot cz
2010-05-13 14:46 ` [Bug c/44116] " amonakov at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 9+ messages in thread
From: kasparek at fit dot vutbr dot cz @ 2010-05-13 14:32 UTC (permalink / raw)
To: gcc-bugs
On multi-TB storage array with XFS filesystem I have to enable 64bit inodes
recently (inode64 mount option). Having test.c with:
int main(void){
return 0;
}
compiles fine for one file, but if i copy it to another one (several times till
it got the right inode number) it produces:
root@matylda1: /mnt/data/kasparek# LC_ALL=C gcc -o test.o test-10356.c
cc1: error: test-10356.c: Value too large for defined data type
The only difference I believe is inode number, definitely not the content of
the file:
root@matylda1: /mnt/data/kasparek# stat test.c
File: `test.c'
Size: 30 Blocks: 8 IO Block: 4096 regular file
Device: 810h/2064d Inode: 10853690 Links: 1
root@matylda1: /mnt/data/kasparek# stat test-10356.c
File: `test-10356.c'
Size: 30 Blocks: 8 IO Block: 4096 regular file
Device: 810h/2064d Inode: 15447948189 Links: 1
from strace I found that cc1 is doing fstat64 call on the source code file and
then finishes with this message. The first this I need to help with is how to
check if the code that causes this (expect somewhere is used 32bit variable to
store the inode) is from gcc itself or it is some third-party library. I
checked latest version of 4.0, 4.1, 4.2, 4.3, 4.4, 4.5 branches and all behave
the same. The system is x86_64 2.6.32.12 kernel on CentOS 5.4. All GCCs are
32bit binaries (with cross compiler for x86_64, mips, arm and alpha having the
same behavior).
Thanks in advance.
--
Summary: 64bit inodes for source code causes "Value too large for
defined data type" (XFS,inode64)
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kasparek at fit dot vutbr dot cz
GCC build triplet: x86_64-pc-linux-gnu
GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44116
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/44116] 64bit inodes for source code causes "Value too large for defined data type" (XFS,inode64)
2010-05-13 14:32 [Bug c/44116] New: 64bit inodes for source code causes "Value too large for defined data type" (XFS,inode64) kasparek at fit dot vutbr dot cz
@ 2010-05-13 14:46 ` amonakov at gcc dot gnu dot org
2010-05-13 15:32 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 9+ messages in thread
From: amonakov at gcc dot gnu dot org @ 2010-05-13 14:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from amonakov at gcc dot gnu dot org 2010-05-13 14:46 -------
> root@matylda1: /mnt/data/kasparek# LC_ALL=C gcc -o test.o test-10356.c
> cc1: error: test-10356.c: Value too large for defined data type
> The first this I need to help with is how to
> check if the code that causes this (expect somewhere is used 32bit variable to
> store the inode) is from gcc itself or it is some third-party library. I
Execute
gcc -o test.o test-10356.c -### 2>&1 | grep cc1
to get the cc1 command line. Then use gdb --args <cc1 cmdline> to debug the
compiler. Getting a backtrace before the abort would be nice.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44116
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/44116] 64bit inodes for source code causes "Value too large for defined data type" (XFS,inode64)
2010-05-13 14:32 [Bug c/44116] New: 64bit inodes for source code causes "Value too large for defined data type" (XFS,inode64) kasparek at fit dot vutbr dot cz
2010-05-13 14:46 ` [Bug c/44116] " amonakov at gcc dot gnu dot org
@ 2010-05-13 15:32 ` rguenth at gcc dot gnu dot org
2010-05-13 20:54 ` [Bug other/44116] " pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-13 15:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2010-05-13 15:31 -------
This is know. GCC does not use LFS and thus fails. A patch to fix that
was once applied but broke AIX and thus was reverted.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at gcc dot gnu dot
| |org
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2009-
| |02/msg00592.html
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44116
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug other/44116] 64bit inodes for source code causes "Value too large for defined data type" (XFS,inode64)
2010-05-13 14:32 [Bug c/44116] New: 64bit inodes for source code causes "Value too large for defined data type" (XFS,inode64) kasparek at fit dot vutbr dot cz
2010-05-13 14:46 ` [Bug c/44116] " amonakov at gcc dot gnu dot org
2010-05-13 15:32 ` rguenth at gcc dot gnu dot org
@ 2010-05-13 20:54 ` pinskia at gcc dot gnu dot org
2010-05-14 6:50 ` kasparek at fit dot vutbr dot cz
2010-06-08 10:34 ` kasparek at fit dot vutbr dot cz
4 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-05-13 20:54 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|major |normal
Component|c |other
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44116
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug other/44116] 64bit inodes for source code causes "Value too large for defined data type" (XFS,inode64)
2010-05-13 14:32 [Bug c/44116] New: 64bit inodes for source code causes "Value too large for defined data type" (XFS,inode64) kasparek at fit dot vutbr dot cz
` (2 preceding siblings ...)
2010-05-13 20:54 ` [Bug other/44116] " pinskia at gcc dot gnu dot org
@ 2010-05-14 6:50 ` kasparek at fit dot vutbr dot cz
2010-06-08 10:34 ` kasparek at fit dot vutbr dot cz
4 siblings, 0 replies; 9+ messages in thread
From: kasparek at fit dot vutbr dot cz @ 2010-05-14 6:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from kasparek at fit dot vutbr dot cz 2010-05-14 06:50 -------
(In reply to comment #1)
> to get the cc1 command line. Then use gdb --args <cc1 cmdline> to debug the
> compiler. Getting a backtrace before the abort would be nice.
(gdb) bt
#0 open_file (file=0x8a64148) at
/usr/local/lib/gcc/i686-pc-linux-gnu/4.3.4/include-fixed/sys/stat.h:510
#1 0x0866d707 in _cpp_find_file (pfile=0x8a5bb80, fname=0xff8d636f
"test-10356.c", start_dir=0x8a5bbf4, fake=0 '\0', angle_brackets=0)
at ../../libcpp/files.c:378
#2 0x0866e2cc in cpp_read_main_file (pfile=0x8a5bb80, fname=0xff8d636f
"test-10356.c") at ../../libcpp/init.c:561
#3 0x080f94a1 in c_common_post_options (pfilename=0x8945fdc) at
../../gcc/c-opts.c:1197
#4 0x08339410 in toplev_main (argc=11, argv=0xff8d4874) at
../../gcc/toplev.c:1810
#5 0x08118cb2 in main (argc=Cannot access memory at address 0x100
) at ../../gcc/main.c:35
I belive the problematic stat is gcc/files.c:232 (gcc-4.5.0). Would it be
possible to add config option to enable LFS that may be disabled by default?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44116
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug other/44116] 64bit inodes for source code causes "Value too large for defined data type" (XFS,inode64)
2010-05-13 14:32 [Bug c/44116] New: 64bit inodes for source code causes "Value too large for defined data type" (XFS,inode64) kasparek at fit dot vutbr dot cz
` (3 preceding siblings ...)
2010-05-14 6:50 ` kasparek at fit dot vutbr dot cz
@ 2010-06-08 10:34 ` kasparek at fit dot vutbr dot cz
4 siblings, 0 replies; 9+ messages in thread
From: kasparek at fit dot vutbr dot cz @ 2010-06-08 10:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from kasparek at fit dot vutbr dot cz 2010-06-08 10:34 -------
Hello, is there any progress in this, may I help with something?
--
kasparek at fit dot vutbr dot cz changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|4.5.0 |4.4.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44116
^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <bug-44116-4@http.gcc.gnu.org/bugzilla/>]
end of thread, other threads:[~2013-02-07 21:32 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-13 14:32 [Bug c/44116] New: 64bit inodes for source code causes "Value too large for defined data type" (XFS,inode64) kasparek at fit dot vutbr dot cz
2010-05-13 14:46 ` [Bug c/44116] " amonakov at gcc dot gnu dot org
2010-05-13 15:32 ` rguenth at gcc dot gnu dot org
2010-05-13 20:54 ` [Bug other/44116] " pinskia at gcc dot gnu dot org
2010-05-14 6:50 ` kasparek at fit dot vutbr dot cz
2010-06-08 10:34 ` kasparek at fit dot vutbr dot cz
[not found] <bug-44116-4@http.gcc.gnu.org/bugzilla/>
2013-02-07 21:18 ` gcc at breakpoint dot cc
2013-02-07 21:24 ` pinskia at gcc dot gnu.org
2013-02-07 21:32 ` pinskia 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).