-
-
Notifications
You must be signed in to change notification settings - Fork 39.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Too Many Keyboards! → make stackdump #13416
Comments
Additional information:
|
This issue AFAIK only occurs in MSYS2 (ie. it is a problem with MSYS Line 245 in 11a406f
Apparently, there is some kind of size limit on arguments passed to
with
will work for the moment, as it lists slightly fewer boards. It does not take into account So, it is only a bandaid to fix a larger problem, which is... that the Makefile logic is kinda horrible spaghetti code forcing |
The issue is stack overflow in make due to extremely deep recursion. As can be seen in gdb session (ignore me typing the keyboard name wrong): Default msys2 make has 2MB stack size, as can be seen by running dumpbin on it:
We can change this easily with editbin, for example for 128M stack:
(FWIW, it doesn't seem to waste any physical memory until the corresponding pages are used, so a large value like 128M should be OK). Here's an edited make.exe you can drop in or alternatively, qmk-msys could provide a patched version with a larger stack |
QMK MSYS Release 1.4.4 should fix this issue by increasing the stack size of make.exe to 128MB. |
Ran into this today and gave a shot at an MSYS2 bug report explaining how to fix the issue at compile/link time instead of patching after the fact with a Windows SDK binary. |
Should be fixed now #15988 is merged (master@0.16.0). |
Apologies for reviving a closed issue, but I am getting this issue with MSYS 1.7.1 and QMK firmware 0.15.16 |
Update your repo, or use one of the mitigations above. |
🤦 Thought this was a MSYS issue and updated that. Thanks for the help! |
Describe the Bug
We were bound to hit this problem. and today is that day.
make stops with a very weird error message. like...
System Information
Additional Context
Reducing the number of keyboards in the working repository helps. I mean, if you leave only the directories for keyboards you need under 'keyboards' directory and delete all others, then it will compile.
for advanced git users, it is a good opportunity to tryout git separse-checkout. example follows...
The text was updated successfully, but these errors were encountered: