Skip to content

Cannot compile bazel to use a local gcc #629

@jesusandres-ferrer

Description

@jesusandres-ferrer

Hi,
I am bounded to an old machine which I cannot update.
I have compiled a gcc-5.2 local version in my home.
I have modified the tools/cpp/CROSSTOOL to use the ~/local/bin/gcc and cpp
However, when I try to compile bazel I get the following error:
.cache/bazel/_bazel/dcfa5b4604a3b008ad5ed0a566717120/bazel/_bin/build-runfiles: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by .cache/bazel/_bazel/dcfa5b4604a3b008ad5ed0a566717120/bazel/_bin/build-runfiles
ERROR: bazel/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/genclass/BUILD:1:1: Creating runfiles tree bazel-out/local_linux-fastbuild/bin/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/genclass/GenClass.runfiles failed: build-runfiles failed: error executing command .cache/bazel/_bazel/dcfa5b4604a3b008ad5ed0a566717120/bazel/_bin/build-runfiles ... (remaining 2 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
Target //src:bazel failed to build

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2We'll consider working on this in future. (Assignee optional)team-Configurabilityplatforms, toolchains, cquery, select(), config transitionstype: feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions