-
-
Notifications
You must be signed in to change notification settings - Fork 345
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
Work-around for our windows CI system. #2086
Conversation
…'t commit memory for cygwin heap, Win32 error 0" This change tries to work around this issue on appveyor.
I've failed to reproduce the problem in my own appveyor builds, but the issue looks like it's related to CMake / MinGW interaction - https://help.appveyor.com/discussions/problems/3193-cmake-building-for-mingw-issue-with-git-shexe |
@slaff Sorry, didn't intend to push to your repo! |
@mikee47 It's ok. But the compilation now fails even earlier. |
3766ed9
to
1b0e772
Compare
OK, so CMake not involved here so ignore that. This error has been reported quite recently (https://osdn.net/projects/mingw/ticket/38356) so updating MinGW (more precisely, MSYS) might fix it. Doing that causes the error with @slaff All builds fine when I push to appveyor, so have pushed to your branch to check if it fixes things. I don't understand why appveyor doesn't fail in my account though - perhaps there are additional resource limitations when running for SmingHub? |
It does not fail in my one either... I should probably open a ticket in their system and see what they can tell us. |
This breaks linux build, easy fix but I'll wait to see if it's sorted the appveyor before pushing anything else. |
OK, so still broken... |
I'm now checking out this approach https://stackoverflow.com/questions/9932874/win-8-cygwin-heap-failure using a rebased |
1b0e772
to
a395c42
Compare
Rebased DLL didn't work. |
The failure is with |
623d27e
to
9bf3ada
Compare
Fixed by reducing PATH to the minimum:
Still looking for the actual culprit and a formal fix. |
3cd389b
to
7a55d98
Compare
I've bisected the PATH directories and it looks like reducing the PATH environment variable to below 512 characters fixes the problem. If there's internal path truncation (or buffer overruns) going on then this would explain the unpredictable behaviour. |
7a55d98
to
b9da5fe
Compare
Problem not yet fixed but here's a rundown of what I've tried. Remoting into the appveyor session after build failure, I can reproduce the error like this:
Note that running As noted above, if I reduce the length of the Note also that rebasing as noted above doesn't have any effect, nor does updating mingw to latest version. Something else to try is using |
I'm happy to keep pursuing this but need a checklist of thing to try as it's quite tedious. At present, the queue time for the SmingHub appveyor builds is quite long (1 hour+) and then I get an hour at most to try things out. |
Something that would really help is to be able to reproduce the error on my own appveyor account. As yet I have no clue as to why the two should differ. |
@mikee47 Better leave it for now. It would be better to spend time on ESP32 architecture instead of the Appveyor build which runs fine on yours and mine VM but fails on the official Sming VM. |
…nto fix/appveyor-out-of-memory
476965a
to
39ee211
Compare
39ee211
to
d131aee
Compare
437a230
to
85e1323
Compare
@slaff I've found the actual cause of this, bear with... |
Closing in favour of #2124. |
The compilation ends with "C:\MinGW\msys\1.0\bin\make.exe: *** couldn't commit memory for cygwin heap, Win32 error 0"
This change tries to work around this issue on appveyor.