Hello ,
i am using gcc-arm-none-eabi-7-2018-q2-update-win32 for windows and i am trying to build my software for IMX8 (M4 core) but i got this error during compilation cc1.exe: out of memory allocating 268439551 bytes , how this error could be solved ?
Thanks in advance
... by investigating the possible reasons.
Mohamed_Tarek said:i got this error during compilation
When & where, exactly, does it occur ?
It looks rather like a compiler internal error.
It happened in the middle of the compilation ( when it was compiling a big sized file (208 MB)) , i was complining on my win 10 machine
That's still pretty vague. You need to narrow it down.
208 MB sounds unreasonably large for a source file !
The 208 MB file is a generated file that hold some data from (bin2c tool) when this file is removed the compilation went fine.
if you have methods to narrow it down , please let me know.
Go on - software development is all about problem solving.
Mohamed_Tarek said:when this file is removed the compilation went fine.
when this file is removed the compilation went fine.
Surely, that gives you a clue on somewhere to start ...
It is not a clue at all .. it is all about the file size if the file size is small it will compile and this problem seems regarding the memory used by the compiler (all of that which i already know before posting) .. so do you have any other clues ??? as my question was regarding the a work around for the problem
So if you knew it, why did you not mention it in your original post? Or your earlier replies?
We can't read your mind, you know!
Mohamed_Tarek said:It is not a clue at all
Of course it is a clue!
Mohamed_Tarek said:it is all about the file size
Exactly - that is what the clue tells you!
Mohamed_Tarek said: a work around for the problem
Make the file smaller!
Again, 208 MB is unreasonably large for a source file.
Have you checked the compiler specs to see if there is some specific limit(s) that this file is exceeding?
You have 2 options:
To make suggestions for 2, we would have to know what your goal is:
http://www.catb.org/esr/faqs/smart-questions.html#goal
There are plenty of other ways to include arbitrary binary data into a build image ...
the book definition of cross compiler is not useful in my situation as i already know it :) !!
Here's an overview and more resources: http://www.scratchbox.org/documentation/general/tutorials/explained.html paymydoctor
don't see anything in there which addresses the OP's issue?