bazelbuild/bazel

Illegal instruction (core dumped) in risc-v

Open

#23,051 opened on 2024年7月21日

GitHub で見る
 (2 comments) (0 reactions) (0 assignees)Java (4,465 forks)batch import
P3help wantedteam-Coreteam-OSStype: bug

Repository metrics

Stars
 (25,384 stars)
PR merge metrics
 (平均マージ 22d 20h) (30d で 77 merged PRs)

説明

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)

コントリビューターガイド