Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Error configuring riscv-isa-sim in build.sh #339

Open
Z-KN opened this issue Mar 22, 2021 · 1 comment
Open

Error configuring riscv-isa-sim in build.sh #339

Z-KN opened this issue Mar 22, 2021 · 1 comment

Comments

@Z-KN
Copy link

Z-KN commented Mar 22, 2021

When I am running build.sh and configuring riscv-isa-sim, it reports:
riscv-isa-sim

Configuring project riscv-isa-sim
configure: error: Spike requires a little-endian host

However, after running command "lscpu", it tells me my virtual machine's byte order is Little Endian.
How can I fix this error?

@jim-wilson
Copy link
Collaborator

I would suggest checking riscv-isa-sim/build/config.log and then search for the string "checking whether byte ordering is bigendian". The configure script does a number of checks for target features to try to determine whether the target is little or big endian. There are mac specific checks, and linux specific checks. Configure tries the tests in series, ignoring ones that fail to compile, until it finds one that compile and runs, and that gives the answer. So one of these tests must have given a wrong result for you. Try and figure out why you got the wrong result for that test. You can find the source for these tests in riscv-isa-sim/configure.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants