Нужно починить приложение на java
WORKSPACE:
Заменить - load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "cc_toolchain_suite", "cc_toolchain_config")
Добавить:
cc_toolchain_suite(
name = "default_toolchain_suite",
toolchains = {
"local": ":local_cc_toolchain",
},
)
cc_toolchain_config(
name = "local_cc_toolchain",
cpu = "local",
compiler = "gcc",
toolchain_identifier = "local_toolchain",
toolchain_config = ":local_cc_toolchain_config",
)
BUILD:
cc_toolchain(
name = "local_cc_toolchain",
toolchain_identifier = "local_toolchain",
toolchain_config = ":local_cc_toolchain_config",
)
cc_toolchain_suite(
name = "toolchain",
toolchains = {
"local": ":local_cc_toolchain",
},
)
cc_toolchain_config(
name = "local_cc_toolchain_config",
toolchain_identifier = "local_toolchain",
host_system_name = "local",
target_system_name = "local",
target_cpu = "local",
target_libc = "local",
compiler = "gcc",
abi_version = "local",
abi_libc_version = "local",
tool_paths = [
{"name": "ar", "path": "/usr/bin/ar"},
{"name": "cpp", "path": "/usr/bin/cpp"},
{"name": "gcc", "path": "/usr/bin/gcc"},
{"name": "gcov", "path": "/usr/bin/gcov"},
{"name": "ld", "path": "/usr/bin/ld"},
{"name": "nm", "path": "/usr/bin/nm"},
{"name": "objdump", "path": "/usr/bin/objdump"},
{"name": "strip", "path": "/usr/bin/strip"},
],
cxx_builtin_include_directories = ["/usr/include"],
compiler_flags = ["-O2", "-g"],
linker_flags = ["-lpthread"],
unfiltered_cxx_flag = ["-no-canonical-prefixes"],
)
В команду:
--crosstool_top=//:toolchain //