-
Notifications
You must be signed in to change notification settings - Fork 49
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
Build Script Warning: clang: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] #556
Comments
Thanks for the report! I put up a PR to address this. I'm curious which platform are you compiling for? I'll look more closely at the compiler output to see what other messages need to be dealt with. |
Platform: Ubuntu 22.04, x86_64, clang 14. Anything specific you are interested in? |
Ok, I wasn't finding the warning messages you reported at first b/c I was using gcc. When I switched the compiler to clang, I saw them. I confirmed that on the PR branch that those messages are now gone. The remaining compiler warning messages are intentional for debug/diagnostic purposes:
|
I'm facing a similar issue building on Windows & Visual studio. I updated both VS Code and CMake to the latest versions.
Unfortunately the workaround for me was to switch from |
Hello @leontoeides -- I've seen the warning about We hope to have a patch out to soon to correct these issues. Thanks for contacting us! |
Apologies - I inadvertently fixed the issue when I realigned some features across a few crates I use. I'm not able to duplicate the build error anymore. If it happens again I will post the full log. Thanks for the response |
I managed ran into this error again on a completely separate project. Here is the output:
|
The output indicates that there are 1 Warning and 4 Errors:
From what I've seen the warning would not cause an MSVC build to fail, but the errors would. The 4 Errors appear to all be of the same type
Since the file it's looking for is under |
Hello Justin, I tried |
Problem:
When building with bazel (using rules_rust bzlmod crate_universe), the following warning is printed many times:
I suspect it is coming from here:
aws-lc-rs/aws-lc-sys/builder/cc_builder.rs
Line 108 in 671415f
Is there a reason pthread is added there like this (and not
-pthread
). To silence the warning,-Wno-unused-command-line-argument
should be specified.I can send a PR if any solution is deemed ok. thanks!
Relevant details
AWS-LC for Rust version: 0.21.2.
Linux, x86_64.
The text was updated successfully, but these errors were encountered: