You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build a project which imported github.com/NVIDIA/go-nvml, which is a C binding to nvida nvml lib.
when I build with hermetic-cc-toolchain, an error was throw: error: unsupported linker arg: --unresolved-symbols. when I switch toolchain to local gcc, it works just fine.
I have tried to alternative --unresolved-symbols with -undefined dynamic_lookup or --allow-shlib-undefined, but it did not work.
Is anybody can help me with this? I will be really appreciate it.
I'm trying to build a project which imported
github.com/NVIDIA/go-nvml
, which is a C binding to nvida nvml lib.when I build with
hermetic-cc-toolchain
, an error was throw:error: unsupported linker arg: --unresolved-symbols
. when I switch toolchain to local gcc, it works just fine.I have tried to alternative
--unresolved-symbols
with-undefined dynamic_lookup
or--allow-shlib-undefined
, but it did not work.Is anybody can help me with this? I will be really appreciate it.
full demo can be found here: https://github.com/xuzhenglun/hermetic-go-nvml
hermetic_cc_toolchain
, and it will fail and throw errors:# bazel build @com_github_nvidia_go_nvml//examples/devices WARNING: Build options --action_env, --extra_toolchains, --features, and 2 more have changed, discarding analysis cache (this can be expensive, see https://bazel.build/advanced/performance/iteration-speed). INFO: Analyzed target @@gazelle~~go_deps~com_github_nvidia_go_nvml//examples/devices:devices (56 packages loaded, 15671 targets configured). INFO: Found 1 target... Target @@gazelle~~go_deps~com_github_nvidia_go_nvml//examples/devices:devices up-to-date: bazel-bin/external/gazelle~~go_deps~com_github_nvidia_go_nvml/examples/devices/devices_/devices INFO: Elapsed time: 15.690s, Critical Path: 14.35s INFO: 6 processes: 3 internal, 3 linux-sandbox. INFO: Build completed successfully, 6 total actions
BTW: my build machine info:
The text was updated successfully, but these errors were encountered: