-
Notifications
You must be signed in to change notification settings - Fork 21
Travis build hits internal compiler error #43
Comments
Both
|
https://travis-ci.org/avr-llvm/llvm/jobs/51697028
Killed externally? Memory usage/cpu time limit exceeded? |
Out of memory likely, I’ve had jobs run longer. I’m thinking of a few options here:
Not sure what the easiest first pass would be. I’m inclined to try #5 first. On Feb 22, 2015, at 2:02 AM, Anton Smirnov [email protected] wrote:
|
I believe it is an out of memory error. Clang tends to be more memory efficient than gcc. Previously, both clang and gcc would fail. After I merged your patch which only enabled the AVR target, now it is just GCC failing. It is likely that memory was conserved because less jobs were run in parallel. |
"On the Linux platform, builds have 3 GB of memory available" LLVM tends to take about that much for me when using GCC and 3 or 4 parallel jobs, so yeah, that's probably it. |
I believe these two options are equivalent, but the first is easier and less hacky to implement. Either way you are simply reducing the amount of work done at once, and compilation will still take the same amount of time for both options. |
I added the |
|
The only difference between 1 and 5, breaking the sections down into sub section should result in less deep recursion and more memory saved from Make. I'll run through a few of the options Edwin (on the move)
|
There's gotta be a way around this. I'll throw it around with the C++ guys at work and see what they think. Overlaying new files over the old builds is the best idea in my head now, but that can lead to some inconsistencies. Edwin (on the move)
|
Because the failing builds are making the project look bad (and the fact they are actually caused by out of memory errors), I have removed the build status button from the README's of |
I agree. I'm not really sure how we can speed this up either, even after discussing with folks. I do wish LLVM were a lot more modular at the source level. Building everything in one go is a bit silly. |
I'll post to the |
I'm also testing with CMake in my fork to see if it's going to be safer for memory usage with GCC. At the very least we have a percentage telling us how long it got in the build before being killed. |
Woo! Good news everyone! It looks like even with GCC, we're coming in at about 35 minutes, so we have a ten minute buffer. Dylan accidentally had to do the same patchwork I put in... I'm a bit embarrassed about my lack of proper branching. |
At least travis is finally working! :D |
Setting -j3 made it finish MUCH faster. I'm fighting with git at the moment to get it into a merge request. Will try again tomorrow. Results here: (build 8 uses -j2, build 9 uses -j3) |
Are you using the free version of travis? |
As far as I'm aware. I haven't given them a credit card or anything. My current guess is it's late in North America, so probably the build systems are draining so we have more resources? |
The pull request looks good for speed too. |
Closing as travis builds are now succeeding. |
See the compile log (gcc).
The text was updated successfully, but these errors were encountered: