Skip to content

Bazel keeps Fetching and extracting gcc-toolchainΒ #207

@Lan-Hekary

Description

@Lan-Hekary

I am using this module in my MODULE.bazel file as follows

bazel_dep(name = "gcc_toolchain", version = "0.9.0")

gcc_toolchains = use_extension("@gcc_toolchain//toolchain:module_extensions.bzl", "gcc_toolchains")
gcc_toolchains.toolchain(
    name = "gcc_toolchain_x86_64",
    target_arch = "x86_64",
)
use_repo(gcc_toolchains, "gcc_toolchain_x86_64")
register_toolchains("@gcc_toolchain_x86_64//:cc_toolchain")

the first build of a sample program downloads and extracts the gcc-toolchain-14.3.0-x86_64.tar.xz file

but then each time I build I keep getting

Fetching repository @@gcc_toolchain++gcc_toolchains+gcc_toolchain_x86_64; starting
    Fetching /home/user/.cache/bazel/_bazel_user/343b780a0ce72e4e8bdbb0d7133af33e/external/gcc_toolchain++gcc_toolchains+gcc_toolchain_x86_64; Extracting gcc-toolchain-14.3.0-x86_64.tar.xz

even though I didn't change any thing in the MODULE.bazel or the build rule

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions