Open yoonjesung opened 3 years ago
If I understand correctly, it tries to pickup clang
which might not be present in the docker image. I changed to use gcc
by
CppGenEnv: map[string]string{
"ABI_LIBC_VERSION": "glibc_2.19",
"ABI_VERSION": "gcc",
"BAZEL_COMPILER": "gcc",
"BAZEL_HOST_SYSTEM": "i686-unknown-linux-gnu",
"BAZEL_TARGET_CPU": "k8",
"BAZEL_TARGET_LIBC": "glibc_2.19",
"BAZEL_TARGET_SYSTEM": "x86_64-unknown-linux-gnu",
"CC": "gcc",
"CC_TOOLCHAIN_NAME": "linux_gnu_x86",
},
And then ran rbe_config_gen and it succeeded.
Alternatively, you can set this in a json file and pass --cpp_env_json cpp-env.json
. Easier and better than modifying the go code.
file: cpp-env.json (Change to your needs)
{
"ABI_LIBC_VERSION": "glibc_2.27",
"ABI_VERSION": "gcc",
"BAZEL_COMPILER": "gcc",
"BAZEL_HOST_SYSTEM": "i686-unknown-linux-gnu",
"BAZEL_TARGET_CPU": "k8",
"BAZEL_TARGET_LIBC": "glibc_2.27",
"BAZEL_TARGET_SYSTEM": "x86_64-unknown-linux-gnu",
"CC": "gcc",
"CC_TOOLCHAIN_NAME": "linux_gnu_x86"
}
I'm trying to use
rbe_configs_gen
to create toolchains for ubuntu18.04 and bazel v4.1.0, but running into this error message that I'm having trouble figuring out - wouldn't gcc be auto-installed as part of the bazelisk installation?