Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.MSM cc1plus.exe:: error: out of memory allocating 65532
From: Jeff Flinn (Jeffrey.Flinn_at_[hidden])
Date: 2013-02-27 13:49:47


On 2/27/2013 10:39 AM, Christophe Henry wrote:
>
>> Hi,
>>
>> thanks for your fast response.
>> I've added this flags and first of all it seemed to work properly.
>> Unfortunately I get now the following
>> Assembler messages:
>>
>> Assembler messages:
>> C:\Users\**\AppData\Local\Temp\ccxOY2Lj.s: Fatal error: can't write
>> src\TransportLayer\Statemachine\main.o: File too big
>> c:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/as.exe:
>> src\TransportLayer\Statemachine\main.o: too many sections (40428)
>> C:\Users\***\AppData\Local\Temp\ccxOY2Lj.s: Fatal error: can't close
>> src\TransportLayer\Statemachine\main.o: File too bi
>>
>> Do you what is going on here?
>>
>> BTW: I have tried to compile my boost.MSM code under linux: Under linux I
>> receive no "...out of memory message" from the compiler and everything
>> works
>> fine. But this cannot be the solution, as I have to release my boost.MSM
>> based code as a binary for windows and linux systems. Maybe I could you a
>> cross-compiler on linux to produce a binary for windows....!?
>>
>> Any further comments?
>>
>> Thanks in advanced!
>>
>> Rafael
>
> Hi,
> I got this once. I think it's a Windows limitation. I was building in
> debug with -O0, I switched to -O2 and it compiled. Though then debugging
> becomes less easy... :(

IIRC, you also discovered turning off /Gm (Enable Minimal Rebuild)
alleviates build issues. :-)

Jeff


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net