This repository has been archived by the owner on Nov 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Fails to build on arch linux with bazel version 0.5.3 #9
Comments
Also happens on ubuntu as well. |
This should be fixed by: 9a2c142. Make sure you are running the latest version of Bazel. |
I tried removing |
Seems to be a known upstream issue: bazelbuild/rules_go#252
… On Aug 29, 2017, at 11:07, James Myers ***@***.***> wrote:
***@***.*** cryptdo]$ bazel build //...
Extracting Bazel installation...
..........
INFO: Found 15 targets...
ERROR: /home/jfmyers9/.cache/bazel/_bazel_jfmyers9/e98d2b9cb4b10236e6ed586e39086627/external/org_golang_x_sys/unix/BUILD.bazel:3:1: Linking ../org_golang_x_sys/unix/go_default_library.cgo.dir/_all.o failed (Exit 1).
/usr/bin/ld.gold: fatal error: -pie and -r are incompatible
collect2: error: ld returned 1 exit status
INFO: Elapsed time: 167.756s, Critical Path: 12.95s
***@***.*** cryptdo]$ bazel version
Build label: 0.5.4- ***@***.***)
Build target: bazel-out/local-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue Aug 29 01:47:12 2017 (1503971232)
Build timestamp: 1503971232
Build timestamp as int: 1503971232
I tried removing ~/.cache/bazel but that did not appear to help.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Adding
This error was fixed by running:
Is this an expected dependency? |
No, it's not required on my system. I'll open an issue upstream to work out why it isn't using the vendored dependency. |
As this fixed my issues on arch linux I'll close out this issue. We are seeing issues building in CI, but I'll investigate and open a new issue if its not clear. Thanks. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: