-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
FreeBSD CI tests disabled due to using more memory than sr.ht provides #3210
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
Comments
See related discussion and statement from Drew DeVault here: #3197 |
Here's some output from manually running commands on sr.ht:
It appears that a simple "hello world" const c = @cImport({
// See https://github.com/ziglang/zig/issues/515
@cDefine("_NO_CRT_STDIO_INLINE", "1");
@cInclude("stdio.h");
});
pub fn main() void {
_ = c.printf("hello\n");
}
I'm not sure how to measure peak RSS on this freebsd system ( |
unable to reproduce
I'm on: could it be environmental? what does
|
Let me see if I can get you access to the sr.ht build servers. Then you could click "resubmit build", wait for it to fail, then it will let you ssh in and mess around. |
This may not be related to out of memory. (Thanks to @mikdusan for diagnosing) I believe we are hitting this code path: Lines 2102 to 2105 in fb6b94f
I believe the
This is not actually zig's fault. The freebsd environment on sr.ht is broken; reporting the wrong CPU. I filed https://todo.sr.ht/~sircmpwn/builds.sr.ht/263 However the incorrect "out of memory" error message is zig's fault for not using libclang API correctly; translate-c needs to be improved to properly report these error messages. |
Lines 2102 to 2105 in fb6b94f
we actually get past that part -- ...and looking into clang, they may have a bug and frankly I don't think clang driver proper even uses this interface. It looks like the primary user is https://github.com/llvm/llvm-project/blob/llvmorg-9.0.1/clang/lib/Frontend/ASTUnit.cpp#L1812 Right now I've imported update: so getting past the private issue, we end up with 3 diags that do not have source file location information:
So with this hack in place: I get the following output: |
The wrong cpu problem is qemu's fault, see this bug report.
That line makes sense to me, you're moving Edit: Oh your wording confused me,
Shooting a mail to the LLVM folks to ask if this is a bug in the API or a problem with the way they're used is the way to go IMO. |
yes, the swap takes what we could access with machinery and stashes it away to a private and we're left with nothing. I verified this with lldb. |
1/2 issues resolved:
I still want to get this other problem fixed. We need access to those other kind of diagnostics. Opening new issue to track: #4455 |
Thanks to @aveao this is no longer an issue. We still have stage1 resource utilization issues but we are well underway with self-hosted to solve that. The FreeBSD CI runner is now doing a full |
This is one of the blocking issues for #1759
The text was updated successfully, but these errors were encountered: