riscv-software-src / riscv-tools

RISC-V Tools (ISA Simulator and Tests)
1.13k stars 446 forks source link

configure: error: Spike requires a little-endian host #306

Closed yanjy1215 closed 4 years ago

yanjy1215 commented 4 years ago

My host is a little-endian host. however, this error shows

jim-wilson commented 4 years ago

Check the file riscv-isa-sim/build/config.log. You will see a message something like configure:3825: checking whether byte ordering is bigendian and then a lot of tests compiling small files checking to see if we get a big-endian result. One of these tests must have failed. This should show in the log, though you may have to cross reference with the riscv-isa-sim/configure file to see what is going on.

It isn't a question of whether the build system is little-endian, but whether the C and C++ compilers are emitting little-endian code by default. If you have a bi-endian system, or a non-host cross compiler as $CC, then these tests could fail.

yanjy1215 commented 4 years ago

thanks! It is caused by g++ version