[Bug c/38358] New: Could not compile gcc using large include files

ahjiefreak at yahoo dot com gcc-bugzilla@gcc.gnu.org
Tue Dec 2 00:02:00 GMT 2008


I am trying to compile a typical c file with include option turned on. The
include option includes .h file as part of the array element declaration for
the c file.

When I did compile:-

gcc c.c -include myfile.h -D STS
In file included from /usr/include/sys/cdefs.h:0,
                 from /usr/include/features.h:33,
                 from /usr/include/stdio.h:9,
                 from c.c:19:
/usr/include/bits/wordsize.h:1: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.

I have checked the c.c:19 and they are commentation without any code before and
after that line. My exact code only starts at line 40. I included the same .h
file but with smaller size of .h file. It works perfectly and compilable.This
file size is around 1-2MB. But the previous .h file which gives the above error
has 1GB of file size.

Is this a bug or do i need to specify any extra options to handle this special
case?


Please advise.


Thanks.


-- 
           Summary: Could not compile gcc using large include files
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ahjiefreak at yahoo dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38358



More information about the Gcc-bugs mailing list