Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bazel via bazelisk can not find ld *Solved*
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
tenspd1370
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2017
Posts: 120

PostPosted: Thu May 02, 2024 1:30 am    Post subject: Bazel via bazelisk can not find ld *Solved* Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum