Skip to content
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

Fail to build for target Windows (on Mac) #4231

Closed
wchuan11 opened this issue Dec 9, 2019 · 7 comments
Closed

Fail to build for target Windows (on Mac) #4231

wchuan11 opened this issue Dec 9, 2019 · 7 comments
Labels
Help Wanted Extra attention is needed

Comments

@wchuan11
Copy link

wchuan11 commented Dec 9, 2019

Error message:

ERROR: While resolving toolchains for target @prysm//third_party/kafka:librdkafka: no matching toolchains found for types @bazel_tools//tools/cpp:toolchain_type
ERROR: Analysis of target '//beacon-chain:beacon-chain' failed; build aborted: no matching toolchains found for types @bazel_tools//tools/cpp:toolchain_type
INFO: Elapsed time: 0.416s.

Requires c++ toolchain to get it to work.

@prestonvanloon prestonvanloon added the Help Wanted Extra attention is needed label Dec 10, 2019
@prestonvanloon
Copy link
Member

Related cross compile issues: #2849 #2974

@mtbitcoin
Copy link

Just to add more info to the above, the compilation for windows binaries on a Mac used too work before and only broke recently..

@wchuan11
Copy link
Author

@nisdas If you manage to look into this, will test it out

@nisdas
Copy link
Member

nisdas commented Dec 18, 2019

Hey @wchuan11 , I haven't been able to solve this so far. Unfortunately I am still blocked on this

@rauljordan
Copy link
Contributor

Resolved by @SuburbanDad and @prestonvanloon

@wchuan11
Copy link
Author

wchuan11 commented Mar 7, 2020

@SuburbanDad @prestonvanloon Is there any instructions or documentation to test on this?
Tested using bazel build --define=ssz=minimal --platforms=@io_bazel_rules_go//go/toolchain:windows_amd64 //beacon-chain does not work on Mac still.

@prestonvanloon
Copy link
Member

Please see https://github.com/prysmaticlabs/prysm/blob/master/tools/cross-toolchain/README.md

The README needs to be updated since #5008 has been resolved. Try using the docker sandbox approach.

bazel build --config=windows_amd64_docker //beacon-chain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help Wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants