tenspd1370 Tux's lil' helper
Joined: 14 Dec 2017 Posts: 120
|
Posted: Thu May 02, 2024 1:30 am Post subject: Bazel via bazelisk can not find ld *Solved* |
|
|
Hello -
I have a project that I need to build using bazelisk. When I try to run the project on my gentoo machine, I get the following error:
Code: |
(cd /home/dayd/.cache/bazel/_bazel_dayd/4cfe5e339d6d38b8a46a576d61f506ca/execroot/_main && \
exec env - \
PATH=/bin:/usr/bin:/usr/local/bin \
PWD=/proc/self/cwd \
ZERO_AR_DATE=1 \
/usr/bin/gcc @bazel-out/k8-opt/bin/libaxraw.so-2.params)
# Configuration: 04918be660338a121d079ec2147edda9d5eaf0d7d318d78043f6f825b04ae8b8
# Execution platform: @@local_config_platform//:host
collect2: fatal error: cannot find 'ld'
|
I can not find anything that tells me how to actually fix this. I have tried using `gold, default-gold` in binutils. Any hints?
Solution:
This was hiding in an inherited .bazelrc:
Code: |
# Use an environment with a static value for PATH and does not inherit LD_LIBRARY_PATH
build --incompatible_strict_action_env
|
Commenting out fixed it. |
|