-
Notifications
You must be signed in to change notification settings - Fork 11
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
Failure in Building LLVM-16 on Windows. #1046
Comments
Unfortunately, we have been unable to adequately test the Windows build process due to CI constraints, so it is unofficially supported, and the CI files are there to help attempt support again. I would not have expected to see too many errors building the dependencies, but it's possible now because it has been a long time (a few LLVM versions) since the Windows CI was active. I can try to find some time this week to debug this issue on my local Windows machine. Hopefully, it's an easy-ish fix. Regardless, most of our tools (remill, anvill, mcsema, etc.) are not regularly tested on Windows and might not build with MSVC compiler. You would probably have the most luck with In the meantime, if you are having issues building the upstream vcpkg llvm-17 package, then I would also recommend opening an issue there, but please make sure you are not building/using anything from this repo, or else they might close it because this repo could break their definitions. Try the following from upstream vcpkg repo:
Note that the triplet If that works, then you can try copying
to test if it fails. If that also works, then there's something wrong with the cxx-common packaging. |
Thank you for the prompt response. I will go through the steps and come back with the results. |
Hi,
First of all, thank you for all the great products and documentation!
I was trying to install Remill on Windows 10 and I had to manually build the dependencies because Windows' binaries are no longer shipped with the new releases. Since I couldn't use the
build_dependencies.sh
script, I clonedvcpkg
in thecxx-common
root directory and ran the commands in thebuild_dependencies.sh
manually:I chose
x64-windows-static-md-rel
because it is used in the windows' CI.The used
vcpkg
repository in vcpkg_info.txt breaks a lot when installing the dependencies. I finally fixed the issue by manually setting theCMAKE_PREFIX_PATH
invcpkg.cmake
. With that, all the dependencies in thedependencies.txt
were successfully installed. However, I have been struggling with installing llvm-16. The first problem was with the patches. The installation failed with an error about the patch0021-fix-find_dependency.patch
being corrupted. I commented the patch to let the installation continue but it failed again while building the project during linking. The problem was that it could not find thezstd
library correctly. The same issue withzstd
happens with llvm-17. In the case of llvm17, I didn't comment the patch because it didn't give me an error.I switched to the main
vcpkg
repo. I didn't get the initial errors regarding theCMAKE_PREFIX_PATH
but I still can't build llvm-16 and 17. Here is the log I received with llvm-17:Can you please help me with this?
The text was updated successfully, but these errors were encountered: