-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Building tikv-client for Windows (x86_64-pc-windows-gnu) #362
Comments
Thanks for the feedback. grpcio has been updated to 0.10 in master. Could you try that? |
Hi @ekexium yes I saw this just after I posted the issue! I'm currently building off the master version, and it takes a lot longer (so I'm presuming that the C build works this time), but I get now this error:
This is when cross-compiling from macOS (macos on aarch64) to Windows (x86_64-pc-windows-gnu). I'll go and test this in Ubuntu (Github Actions) now. |
I tried a bit on my own linux. Seems to me cross compiling grpcio is difficult. There is a doc (it may be outdated) https://github.com/tikv/grpc-rs/blob/master/cross_compile.md Maybe just try if it builds on Windows? If not, I suggest asking in tikv/grpc-rs. |
Hi @ekexium yeah I've looked at that doc - it's very outdated! |
Have created an issue for this problem in the tikv/grpc-rs repository: tikv/grpc-rs#585 |
should be fixed by #399 |
Hi,
I'm trying to build a library (which uses tikv-client as a dependency). I've attempted to compile this library on Windows (in Github Actions), Ubuntu (in Github Actions), and macOS (locally), none of which are working.
The issue that I have is that
grpc-sys
is unable to build successfully.On Windows I have tried with the default environment (which includes all of the necessary packages), and I have also installed the following packages just in case:
On Ubuntu I have installed:
And on macOS I have installed:
In Github Actions, the tooling versions I am using are:
There are two issues that I am encountering:
1. First issue
The build fails with:
This error can be solved by editing the
grpcio-sys-0.8.1/grpc/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc
and adding#include <limits>
towards the top. Currently tikv-client relies on grpcio@v0.8.3 which relies on grpcio-sys@v0.8.1. This issue has been fixed in the later versions of grpcio and grpcio-sys.Is there a possibility of upgrading the grpcio dependency in
tikv-client
?2. Second issue
Once this issue is solved, we hit another issue. The build fails with:
I am not too sure how to get around this issue. I have set the following in my
.cargo/config.toml
file, but it does not change the outcome:Does anyone know a way of getting tikv-client and/or grpcio to build for
x86_64-pc-windows-gnu
?The text was updated successfully, but these errors were encountered: