hermetic_cc_toolchain icon indicating copy to clipboard operation
hermetic_cc_toolchain copied to clipboard

Bazel C/C++ toolchain for cross-compiling C/C++ programs

Results 42 hermetic_cc_toolchain issues
Sort by recently updated
recently updated
newest added

Hi, I've been enjoying using hermetic_cc_toolchain for the last year, but was exploring some changes to LLVM, so set up my Bazel project to use it directly as an alternative,...

Hello and first of thank you for this awesome toolchain! In order to use this zig toolchain approach for embedded development it would be very helpful to be able to...

Toolchain setup ``` http_archive( name = "bazel-zig-cc", sha256 = "e9f82bfb74b3df5ca0e67f4d4989e7f1f7ce3386c295fd7fda881ab91f83e509", strip_prefix = "bazel-zig-cc-v1.0.1", urls = ["https://github.com/uber/bazel-zig-cc/archive/v1.0.1.tar.gz"], ) load("@bazel-zig-cc//toolchain:defs.bzl", zig_toolchains = "toolchains") zig_toolchains() register_toolchains( "@zig_sdk//toolchain:linux_amd64_gnu.2.34", "@zig_sdk//toolchain:linux_arm64_gnu.2.34", "@zig_sdk//toolchain:darwin_amd64", "@zig_sdk//toolchain:darwin_arm64", ) ``` Error...

enhancement

https://github.com/uber/hermetic_cc_toolchain/blob/main/toolchain/ext.bzl#L3 seems doesn't allow to set parameters like version

Example failure here https://app.buildbuddy.io/invocation/abd101b0-f5e3-4c5a-83ad-a459949a2905 with the remotely executed action here https://app.buildbuddy.io/invocation/abd101b0-f5e3-4c5a-83ad-a459949a2905?actionDigest=2141d6f2153f2060aef65156f6f74d66f2737bf6a25a818bb3e2419fb47c01b1%2F261&executeResponseDigest=77fe59ae3016c296887efe46b0b4d5c782385a865a92dc511672fd971ebf8947%2F127#action Error message ``` runtime.gcdata: missing Go type information for global symbol .dynsym: size 72 net(.text): relocation target __errno_location not...

This issue lists what's important to `hermetic_cc_toolchain` from upstream zig. It is linked from [zig wiki](https://github.com/ziglang/zig/wiki/Third-Party-Tracking-Issues-(what-is-important-to-other-people%3F)). # Universal headers Users of `hermetic_cc_toolchain` tend to run on older versions of glibc...

local os : `macos` remote os : `linux` It's supposed to download for Linux, but instead it downloads for macos https://github.com/uber/hermetic_cc_toolchain/blob/cddeaa4c7173f8bf8bd5c14914670af352a68d89/toolchain/defs.bzl#L102C21-L107

Currently Go files in this repository are only "linted" with `gofmt`. Very soon this will be removed altogether. Task: when https://github.com/bazelbuild/rules_go/pull/3782 lands, add linters to the Go files.

Currently Zig cache is in `/tmp/zig-cc`. It could be moved to a Bazel workspace by creating a new Bazel repository, in a similar way how `bazel-gazelle` does things, as suggested...

enhancement

After upgrade on https://github.com/uber/hermetic_cc_toolchain/releases/tag/v2.1.2 On linux/amd64 VM I get error when trying to build go_binary. ``` 2023/09/30 07:07:20 ARM external linker must be gold (issue #15696), but is not: zig...

upstream