bazelbuild/bazel

Illegal instruction (core dumped) in risc-v

Open

#23.051 geöffnet am 21. Juli 2024

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Java (4.465 Forks)batch import
P3help wantedteam-Coreteam-OSStype: bug

Repository-Metriken

Stars
 (25.384 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 22T 20h) (77 gemergte PRs in 30 T)

Beschreibung

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)

Contributor Guide