I have cross compilation set up in my bazel project to allow building with 
multiple separate toolchains (currently x86-64 and cross compilation for 
aarch64). As I understand it, protobuf officially supports aarch64. 
However, compilation of @com_google_protobuf//:protobuf_python fails when 
my cross-compiled toolchain is selected. Is there a proper way to handle 
this? I would like to build either the correct protoc for this cross 
compilation, or if that's not possible, disable the toolchain for just this 
target (so that the protoc for this platform can be used).

I currently select the toolchain with something like this in my .bazelrc:
build:cross --crosstool_top=//toolchains:cross
build:cross --cpu=arm
build:cross --force_pic=true

The errors I get come from the linker thinking that all the symbols are 
undefined (even std library symbols).

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/ca8f0d4b-ad24-427d-9343-0e6a59865758n%40googlegroups.com.

Reply via email to