Closed frederikhors closed 2 days ago
Hello! Thanks for the report. I'm sorry that our build is failing (and our diagnostic output for this seems lacking).
I don't think I've seen an error like this reported before. The functions that the linker is unable to find are defined in C code (e.g., EVP_PKEY_derive_init) so I don't think this is related to our prebuilt NASM objects. But to be sure, you might try installing NASM as well: https://www.nasm.us/pub/nasm/releasebuilds/2.16.03/win64/
One thought I had was that the "prefixing" (e.g, adding the aws_lc_0_21_2_
to the front of function names, etc.) for our build might not be working as expected?
Also, I'm wondering whether you might be able to send us the aws-lc-sys build log from your environment?
-- From your development workspace, run a cargo clean
then cargo build
; wait for the failure, then search for the aws-lc-sys build log under your workspace directory. It should have a path similar to target\debug\build\aws-lc-sys-XXXXXX\output
, where the XXXXXX
is some random hex digits. (There will actually be two "aws-lc-sys-XXXXXX" directories, one will have the "build-script-main" executable, but the other will have the output from when the build script was executed.) There should also be a aws_lc_0_21_2_crypto.lib
file under target\debug\build\aws-lc-sys-XXXXXX\out\build\artifacts\
that might be helpful to verify that it wasn't place in a diffeerent location.
Thanks for your help!
It appears the downstream issue has been closed: https://github.com/programatik29/axum-server/issues/152. So, I will close this issue as well.
Feel free to open this issue again if you're still experiencing this failure. Thanks!
@justsmth the downstream was closed by myself because this was opened! 🤣
Oh. Sorry! :-)
Is there any other information you can provide for this? We've been unable to reproduce it. Is it still occurring in your build environment?
I'll re-try in a few hours with more time available to better understand (I downgraded for now).
Hello! I had the same problem on Windows 10. I tried different versions of cmake, VS Build Tools, it didn't help. There were no problems on the mac.
Fixed after downgraded library versions:
rustls = "0.23.14" -> "0.22.4"
tokio-rustls = "0.26" -> "0.25.0"
I had the same problem on Windows 10.
I have Windows 11. I tried uninstalling then reinstalling all of the VS build tools and CMake to see whether I could reproduce this problem. (I chose the Desktop development w/ C++ workload for the installation.) I did get the Missing dependency: cmake
error to happen prior to installing CMake, but the build succeeded once I installed it.
I'm wondering whether this problem might be specific to Windows 10. Could that be the case? Any other information you can provide about this would be appreciated. Thanks!
I don't think this has something to do with Windows 10 instead of Windows 11.
I just found out the reason (maybe).
I'm using https://github.com/rust-lang/rustc_codegen_cranelift for development and the error appears only with it.
Without it works.
You decide, @justinwsmith, whether to close this issue or not.
Ok, it looks like someone may have figured out the issue: https://github.com/rust-lang/rustc_codegen_cranelift/issues/1520#issuecomment-2254213030
Hello -- I updated the title of this issue to reflect that the issue is with using the rustc_codegen_cranelift compiler backend.
Hello!
I don't see any action that we can take to correct this, so I will close it for now. Feel free to reopen (or open a new issue) if there are specific actions you'd like for us to consider for this. Thanks again for letting us know about this problem!
Problem:
From https://github.com/rustls/rustls/issues/2133:
On Windows 10 with Microsoft Build Tools latest version as of today I get this error:
aws-lc-sys
is required byaws-lc-rs@1.9.0
which is required byrustls@0.23.13
which is required byaxum-server@0.7.1
.Then I followed what is in here: https://aws.github.io/aws-lc-rs/requirements/windows.html.
I installed C/C++ Compiler and CMake but not NASM and it builds but at the end I get a lot of errors like these:
Everything is fine if I downgrade
axum-server
to 0.6.0.Relevant details