I’m getting this error when trying to compile a v3 board. It compiles fine with ~61 presets, but if I try to add more it gives me this error. It seems to be a Windows error of some sort but I can’t find anything related to Proffie when searching. Or anyone else having the same problem.
When it compiles at 61 presets it’s at less than 70% flash memory. Did I hit some other ceiling? Or is there a way around this?
cc1plus.exe: out of memory allocating 134217728 bytes
exit status 1
Compilation error: exit status 1
I think this is the compiler running out of memory because it’s a 32-bit application and it can only allocate 2Gb.
The experimental 3.7.0 version of the arduino-proffieboard plugin has a 64-bit compiler, and might work better.
Instructions for how to install it here:
Ok, so I made a version of the arduino-proffieboard plugin that uses gcc 12.3.
It seems to work pretty well and generate slightly smaller code.
If you want to try it, you’ll need to have the “experimental” package index in your “additional board manager urls”:
https://profezzorn.github.io/arduino-proffieboard/package_proffieboard_experimental_index.json
Arduino 2.x is reasonably good at keeping things separate, so you can have both the experimental and the regular version installed and swap between them in Tools → Board.
If you try it out, let me know if it works for you. (Just drop a note in this thread) I hope to promote this to beta, and then stable eventually, but I want plenty of testing first, and it takes forever if I have to do it all myself.
I received the same error when using “Proffieboard Experimental”.
Any difference if you change the “optimize” choice in Arduino?
Faster and fastest cut the number in half. But still no go.
Fast
cc1plus.exe: out of memory allocating 134217728 bytes
exit status 1
Compilation error: exit status 1
Faster
cc1plus.exe: out of memory allocating 67108864 bytes
exit status 1
Compilation error: exit status 1
Fastest
cc1plus.exe: out of memory allocating 67108864 bytes
exit status 1
Compilation error: exit status 1
1 Like
How about an Arduino uninstall / reinstall?
I first tried on an old version, 1.8 or something. After that I downloaded and installed the current version.
And just to verify, you’re using version 3.7.0, right?
Can you post your full config file? I’m curious to see if it happens for me too.
Yes to 3.7.
It was too large for pastebin.