bazelbuild/bazel

Illegal instruction (core dumped) in risc-v

Open

#23.051 aperta il 21 lug 2024

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)Java (4465 fork)batch import
P3help wantedteam-Coreteam-OSStype: bug

Metriche repository

Star
 (25.384 star)
Metriche merge PR
 (Merge medio 22g 20h) (77 PR mergiate in 30 g)

Descrizione

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)

Guida contributor