On Tue, Jul 13, 2010 at 4:31 PM, Roderich Schupp
<roderich.sch...@googlemail.com> wrote:
> On 13.07.2010, at 18:41, scott miller <scott.j.mil...@gmail.com> wrote:
>
>> Still failing with the same error.  myldr/par is sitting at about 4.2 MB.
>
> Maybe the compiler can't grok static initializers this large?
> Try the following: go into myldr. The my_*.c files you see there contain
> several large strings or char arrays. One is actually all 4 MB of myldr/par.
> These files are #included by static.c.
> chunksize determines how large any individual array may be. But the total
> amount is always the same. Delete most of the arrays (and adjust the #define
> at the end accordingly), then try to compile static.c. If it compiles, check
> your compiler's documentation for an option to increase available memory
> (the generated static.o is of course useless). If it doesn't compile, try
> running only the C preprocessor and check its output - maybe there's an
> #include cycle here.
>
> Cheers, Roderich
>

So static.c compiles if I remove almost all of the arrays out of
my_libperl.c and my_par.c.  I'll look into seeing if I can increase
the available memory, but I have a feeling something else is going
wrong.  Are my_libperl.c and my_par.c supposed to be 38MB and 31MB
respectively?

Scott

Reply via email to