bazelbuild/bazel

Illegal instruction (core dumped) in risc-v

Open

#23,051 建立於 2024年7月21日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)Java (4,465 fork)batch import
P3help wantedteam-Coreteam-OSStype: bug

倉庫指標

Star
 (25,384 star)
PR 合併指標
 (平均合併 22天 20小時) (30 天內合併 77 個 PR)

描述

Description of the bug:

nowadays, i am working on building bazel 6.1.0 from source. here are the ways.

  • first way:

$ cat /etc/os-release NAME="openEuler" VERSION="24.03 (LTS)" ID="openEuler" VERSION_ID="24.03" PRETTY_NAME="openEuler 24.03 (LTS)" ANSI_COLOR="0;31" $ uname -a Linux openeuler-riscv64-worker1 6.6.0 #1 SMP Tue Jul 2 11:21:06 CST 2024 riscv64 riscv64 riscv64 GNU/Linux

sudo dnf install bazel git clone https://github.com/bazelbuild/bazel.git cd bazel git checkout tags/6.1.0 bazel build //src:bazel-dev

$ bazel build //src:bazel-dev Illegal instruction (core dumped)

  • second way:

i download the dist file, and run env EXTRA_BAZEL_ARGS="--tool_java_runtime_version=local_jdk" ./compile.sh. happily, i get the bazel binary file. but when i run bazel version,i get the same error Illegal instruction (core dumped)

貢獻者指南