This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

M4 Cross compiler error

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

Parents
  • 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 

Reply
  • 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 

Children
  • 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!

    It is not a clue at all

    Of course it is a clue!

    it is all about the file size

    Exactly - that is what the clue tells you!

    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:

    1. Make the file smaller (eg, split it into multiple files);
    2. Find an alternative approach

    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 ...