v0.3.0 riscv-tests/benchmarks compilation failures
Created by: Steinegger
Hello,
When running make all
using the v0.3.0 (366b6174) release, some benchmarks and/or tests are not compiled. It appears as though some make-targets were removed compared to the v0.2.0 release and riscv64-unknown-elf-gcc
is now missing. The logfile shows the following:
Logfile
make[1]: Entering directory '/workstore/user/ariane-4.2/ariane-sdk/riscv-isa-sim/build'
../scripts/mk-install-dirs.sh /workstore/user/ariane-4.2/toolchain/include/spike
mkdir /workstore/user/ariane-4.2/toolchain/include/spike
for file in ../riscv/common.h ../riscv/decode.h ../riscv/devices.h ../riscv/disasm.h ../riscv/dts.h ../riscv/mmu.h ../riscv/processor.h ../riscv/sim.h ../riscv/simif.h ../riscv/trap.h ../riscv/encoding.h ../riscv/cachesim.h ../riscv/memtracer.h ../riscv/tracer.h ../riscv/extension.h ../riscv/rocc.h ../riscv/insn_template.h ../riscv/mulhi.h ../riscv/debug_module.h ../riscv/debug_rom_defines.h ../riscv/remote_bitbang.h ../riscv/jtag_dtm.h icache.h insn_list.h ../softfloat/internals.h ../softfloat/platform.h ../softfloat/primitives.h ../softfloat/primitiveTypes.h ../softfloat/softfloat.h ../softfloat/softfloat_types.h ../softfloat/specialize.h config.h; \
do \
/usr/bin/install -c -m 444 $file /workstore/user/ariane-4.2/toolchain/include/spike; \
done
../scripts/mk-install-dirs.sh /workstore/user/ariane-4.2/toolchain/lib
for file in libriscv.so libdummy_rocc.so libsoftfloat.so libspike_main.so; \
do \
/usr/bin/install -c -m 644 $file /workstore/user/ariane-4.2/toolchain/lib; \
done
../scripts/mk-install-dirs.sh /workstore/user/ariane-4.2/toolchain/bin
for file in spike spike-dasm xspike termios-xspike; \
do \
/usr/bin/install -c -m 555 $file /workstore/user/ariane-4.2/toolchain/bin; \
done
../scripts/mk-install-dirs.sh /workstore/user/ariane-4.2/toolchain/lib/pkgconfig/
for file in riscv-riscv.pc riscv-dummy_rocc.pc riscv-softfloat.pc riscv-spike_main.pc; \
do \
/usr/bin/install -c -m 444 $file /workstore/user/ariane-4.2/toolchain/lib/pkgconfig/; \
done
make[1]: Leaving directory '/workstore/user/ariane-4.2/ariane-sdk/riscv-isa-sim/build'
mkdir -p riscv-tests/build
cd riscv-tests/build;\
autoconf;\
../configure --prefix=/workstore/user/ariane-4.2/toolchain/target;\
make -j20;\
make install;\
cd /workstore/user/ariane-4.2/ariane-sdk
autoconf: error: no input file
checking for gcc... gcc
configure: WARNING: using cross tools not prefixed with host triplet
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
configure: creating ./config.status
config.status: creating Makefile
make[1]: Entering directory '/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build'
mkdir -p benchmarks
mkdir -p isa
make -C benchmarks -f /workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/Makefile src_dir=/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks XLEN=64
make -C isa -f /workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../isa/Makefile src_dir=/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../isa XLEN=64
make[2]: Entering directory '/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/benchmarks'
riscv64-unknown-elf-gcc -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/../env -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/common -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/median -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/qsort -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/rsort -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/towers -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/vvadd -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/multiply -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/mm -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/dhrystone -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/spmv -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/mt-vvadd -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/mt-matmul -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/pmp -DPREALLOCATE=1 -mcmodel=medany -static -std=gnu99 -O2 -ffast-math -fno-common -fno-builtin-printf -o median.riscv /workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/median/median_main.c /workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/median/median.c /workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/common/syscalls.c /workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/common/crt.S -static -nostdlib -nostartfiles -lm -lgcc -T /workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/common/test.ld
make[2]: riscv64-unknown-elf-gcc: Command not found
/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/Makefile:54: recipe for target 'median.riscv' failed
make[2]: *** [median.riscv] Error 127
make[2]: Leaving directory '/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/benchmarks'
Makefile:24: recipe for target 'benchmarks' failed
make[1]: *** [benchmarks] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: Entering directory '/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/isa'
riscv64-unknown-elf-gcc -march=rv32g -mabi=ilp32 -static -mcmodel=medany -fvisibility=hidden -nostdlib -nostartfiles -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../isa/../env/p -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../isa/macros/scalar -T/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../isa/../env/p/link.ld /workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../isa/rv32ui/simple.S -o rv32ui-p-simple
make[2]: riscv64-unknown-elf-gcc: Command not found
riscv64-unknown-elf-gcc -march=rv32g -mabi=ilp32 -static -mcmodel=medany -fvisibility=hidden -nostdlib -nostartfiles -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../isa/../env/p -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../isa/macros/scalar -T/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../isa/../env/p/link.ld /workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../isa/rv32ui/add.S -o rv32ui-p-add
make[2]: riscv64-unknown-elf-gcc: Command not found
/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../isa/Makefile:74: recipe for target 'rv32ui-p-simple' failed
make[2]: *** [rv32ui-p-simple] Error 127
make[2]: *** Waiting for unfinished jobs....
/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../isa/Makefile:74: recipe for target 'rv32ui-p-add' failed
make[2]: *** [rv32ui-p-add] Error 127
make[2]: Leaving directory '/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/isa'
Makefile:28: recipe for target 'isa' failed
make[1]: *** [isa] Error 2
make[1]: Leaving directory '/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build'
make[1]: Entering directory '/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build'
mkdir -p benchmarks
make -C benchmarks -f /workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/Makefile src_dir=/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks XLEN=64
make[2]: Entering directory '/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/benchmarks'
riscv64-unknown-elf-gcc -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/../env -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/common -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/median -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/qsort -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/rsort -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/towers -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/vvadd -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/multiply -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/mm -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/dhrystone -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/spmv -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/mt-vvadd -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/mt-matmul -I/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/pmp -DPREALLOCATE=1 -mcmodel=medany -static -std=gnu99 -O2 -ffast-math -fno-common -fno-builtin-printf -o median.riscv /workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/median/median_main.c /workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/median/median.c /workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/common/syscalls.c /workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/common/crt.S -static -nostdlib -nostartfiles -lm -lgcc -T /workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/common/test.ld
make[2]: riscv64-unknown-elf-gcc: Command not found
/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/../benchmarks/Makefile:54: recipe for target 'median.riscv' failed
make[2]: *** [median.riscv] Error 127
make[2]: Leaving directory '/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build/benchmarks'
Makefile:24: recipe for target 'benchmarks' failed
make[1]: *** [benchmarks] Error 2
make[1]: Leaving directory '/workstore/user/ariane-4.2/ariane-sdk/riscv-tests/build'
mkdir -p riscv-pk/build
cd riscv-pk/build;\
../configure --prefix=/workstore/user/ariane-4.2/toolchain --host=riscv64-unknown-linux-gnu-elf CC=riscv64-unknown-linux-gnu-gcc OBJDUMP=riscv64-unknown-linux-gnu-objdump;\
make -j20;\
make install;\
cd /workstore/user/ariane-4.2/ariane-sdk
checking build system type... x86_64-pc-linux-gnu
checking host system type... Invalid configuration `riscv64-unknown-linux-gnu-elf': machine `riscv64-unknown-linux-gnu' not recognized
configure: error: /bin/sh ../scripts/config.sub riscv64-unknown-linux-gnu-elf failed
make[1]: Entering directory '/workstore/user/ariane-4.2/ariane-sdk/riscv-pk/build'
make[1]: *** No targets specified and no makefile found. Stop.
make[1]: Leaving directory '/workstore/user/ariane-4.2/ariane-sdk/riscv-pk/build'
make[1]: Entering directory '/workstore/user/ariane-4.2/ariane-sdk/riscv-pk/build'
make[1]: *** No rule to make target 'install'. Stop.
make[1]: Leaving directory '/workstore/user/ariane-4.2/ariane-sdk/riscv-pk/build'
Steps to reproduce:
export RISCV=$(pwd)/toolchain
export PATH=$PATH:$RISCV/bin
git clone --branch v0.3.0 https://github.com/pulp-platform/ariane-sdk.git
cd ariane-sdk
git submodule update --init --recursive
make all