-
Notifications
You must be signed in to change notification settings - Fork 62
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
aws-lc-sys
fails to compile for x86_64-pc-windows-gnu
host
#696
Comments
In
I suppose instead of |
where is this file located? edit: nevermind, I found it |
I've workarounded it by passing |
huh?
|
turns out that this is CLANG64 only issue |
CLANG64 version of Zed is being removed in msys2/MINGW-packages#23391 due to build issue with `aws-lc-sys`: aws/aws-lc-rs#696 (comment) Closes #ISSUE Release Notes: - N/A
Clang does not link pthread on Windows by default, and it should not be necessary. So, the fact that something requires it is another bug with the library. |
|
If you inspect |
patching this header allows compiling for win32 threads, but threads_win.c seems to have lots of MSVC things... |
Ah, that's unfortunate. GCC is probably never going to support a lot of this stuff. |
feel free to fix patch if needed. thankfully CLANG64 Zed now launches and even works (probably) properly |
Sorry for the delayed response on this. I see that the PR referenced was merged, but there's still an issue compiling with clang64 on Windows? We do have CI jobs to test compilation for the Do you have any guidance on how I could reproduce this error? |
I fixed it later
it's another target,
you need to use CLANG64 environment first. then build steps should be the same as for fixing an issue with clang requires patch for aws-lc itself. the patch can be upstreamed, but thread_win.c change should be not just gating uncompilable code |
oh, I see you don't use msys2 in CI, so using it will be harder. you can try to use llvm-mingw to get clang |
To get this correctly, there are two distinct issues here:
It wasn't fixed, only a hack/workaround was applied at downstream:
Another downstream hack/workaround was applied:
First issue affects both That would explain why manually adding these flags mitigates it. Build error:
Second issue affects happens only when using Clang (or to be specific Clang that is not patched to add There are two ways to solve this issue for Clang:
I have not benchmarked it, but since pthread on Windows is a wrapper over Win32 API anyway, I suppose that implementation should be faster and perhaps less problematic, because of avoiding the middleware. Build error:
The first issue should have happened on CI. I could reproduce it by cloning this repository and running |
Problem:
while working at msys2/MINGW-packages#23391 I've got compile errors with missing boringssl includes. MSYS2 doesn't provide boringssl package. I'm sure that submodules are fetched properly and required build dependencies are installed. anyway generated headers are missed in
CARGO_TARGET_DIR
Relevant details
AWS-LC for Rust versions or commit: aws-lc-sys v0.25.0
System information: can be found in github actions run below
Build log:
https://github.com/msys2/MINGW-packages/actions/runs/13323638143/job/37212571202#step:11:1788
The text was updated successfully, but these errors were encountered: