Skip to content

Failed to run arch-test on arm64 machine #506

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
howjmay opened this issue Oct 27, 2024 · 7 comments · Fixed by #590
Closed

Failed to run arch-test on arm64 machine #506

howjmay opened this issue Oct 27, 2024 · 7 comments · Fixed by #590
Assignees
Labels
bug Something isn't working

Comments

@howjmay
Copy link
Collaborator

howjmay commented Oct 27, 2024

Prebuilt binary of Sail doesn't exist.
I was running test on Macbook M1, commit 164da62b64fa050569b22910ea207525884802ba.

$make arch-test
  CC    build/map.o
  CC    build/utils.o
  CC    build/decode.o
  CC    build/io.o
  CC    build/syscall.o
  CC    build/emulate.o
  CC    build/riscv.o
  CC    build/elf.o
  CC    build/cache.o
  CC    build/mpool.o
  CC    build/main.o
  LD    build/rv32emu
Fetching SHA-1 of prebuilt binaries ... [OK]
Checking SHA-1 of prebuilt binaries ... [OK]
git submodule update --init tests/
cp: build/sail_cSim/riscv_sim_RV32: No such file or directory
make: *** [arch-test] Error 1
@ChinYikMing
Copy link
Collaborator

ChinYikMing commented Oct 27, 2024

I was running on an M2 without any errors (but having some dependency issue, i.e., riscof not found). Could you provide more details on how to reproduce this?

@howjmay
Copy link
Collaborator Author

howjmay commented Oct 27, 2024

But I did nothing. I have even run make clean to ensure I didnt change anything in the codebase.
make arch-test is the only thing I ran

@jserv
Copy link
Contributor

jserv commented Oct 28, 2024

Prebuilt binary of Sail doesn't exist.

@vacantron, If including a darwin-arm64 (i.e., macOS ARM 64-bit binary) build of sail_cSim, what modifications would be necessary for rv32emu-prebuilt?

@jserv jserv added the bug Something isn't working label Oct 28, 2024
@jserv jserv added this to the release-2024.2 milestone Nov 3, 2024
@vacantron

This comment has been minimized.

@vacantron
Copy link
Collaborator

The executable for Arm64/MacOS has been added to rv32emu-prebuilt . Rerun .ci/riscv-tests.sh on master branch and it should work as expected

See Releases .

@jserv
Copy link
Contributor

jserv commented Feb 13, 2025

The executable for Arm64/MacOS has been added to rv32emu-prebuilt . Rerun .ci/riscv-tests.sh on master branch and it should work as expected

Defer to @howjmay for confirmation.

@ChinYikMing
Copy link
Collaborator

Sail model for macOS/arm64 is runnable and arch-test is passed, see CI.

vacantron added a commit that referenced this issue Apr 28, 2025
The `riscv-arch-test` needs the `ENABLE_FULL4G` option enabled. Or simply run `.ci/riscv-tests.sh` that it will set the needed flags for all tests.

Close #506.
@jserv jserv closed this as completed in c3cd767 Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants