I am trying to build the hello world sample project of the freedom-e-sdk.
I am using Ubuntu 20.04 on windows subsystem for linux. I added address of bin folder of GNU embedded toolchain installation folder to the PATH variable.
When I execute the command - make PROGRAM=hello TARGET=design-rtl CONFIGURATION=release
I get the following console error:
The RVV VLEN is 512.
cd /mnt/c/Users/schuttar/intel_psg_km_spc_e6_21G3.04.01_v1p0/intel_psg_km_spc_e6_21G3.04.01_v1p0/freedom-e-sdk/bsp/design-rtl/build/release/ && \
CFLAGS="-frecord-gcc-switches -march=rv32imac_zicsr_zifencei_zba_zbb -mabi=ilp32 -mcmodel=medlow -ffunction-sections -fdata-sections -I/mnt/c/Users/schuttar/intel_psg_km_spc_e6_21G3.04.01_v1p0/intel_psg_km_spc_e6_21G3.04.01_v1p0/freedom-e-sdk/bsp/design-rtl/install/include --specs=nano.specs -DMTIME_RATE_HZ_DEF=1000000 -Os -DWAIT_MS=10 -DSLEN=512 -DVLEN=512" \
/mnt/c/Users/schuttar/intel_psg_km_spc_e6_21G3.04.01_v1p0/intel_psg_km_spc_e6_21G3.04.01_v1p0/freedom-e-sdk/freedom-metal/configure \
CC="riscv64-unknown-elf-gcc" \
--host=riscv64-unknown-elf \
--prefix=/mnt/c/Users/schuttar/intel_psg_km_spc_e6_21G3.04.01_v1p0/intel_psg_km_spc_e6_21G3.04.01_v1p0/freedom-e-sdk/bsp/design-rtl/install \
--libdir=/mnt/c/Users/schuttar/intel_psg_km_spc_e6_21G3.04.01_v1p0/intel_psg_km_spc_e6_21G3.04.01_v1p0/freedom-e-sdk/bsp/design-rtl/install/lib/release \
--with-builtin-libgloss \
--with-machine-header=/mnt/c/Users/schuttar/intel_psg_km_spc_e6_21G3.04.01_v1p0/intel_psg_km_spc_e6_21G3.04.01_v1p0/freedom-e-sdk/bsp/design-rtl/metal.h \
--with-machine-inline=/mnt/c/Users/schuttar/intel_psg_km_spc_e6_21G3.04.01_v1p0/intel_psg_km_spc_e6_21G3.04.01_v1p0/freedom-e-sdk/bsp/design-rtl/metal-inline.h \
--with-platform-header=/mnt/c/Users/schuttar/intel_psg_km_spc_e6_21G3.04.01_v1p0/intel_psg_km_spc_e6_21G3.04.01_v1p0/freedom-e-sdk/bsp/design-rtl/metal-platform.h
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for riscv64-unknown-elf-strip... riscv64-unknown-elf-strip
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-pc-linux-gnu
checking host system type... riscv64-unknown-elf
checking for riscv64-unknown-elf-gcc... riscv64-unknown-elf-gcc
checking whether the C compiler works... no
configure: error: in `/mnt/c/Users/schuttar/intel_psg_km_spc_e6_21G3.04.01_v1p0/intel_psg_km_spc_e6_21G3.04.01_v1p0/freedom-e-sdk/bsp/design-rtl/build/release':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: *** [scripts/libmetal.mk:111: /mnt/c/Users/schuttar/intel_psg_km_spc_e6_21G3.04.01_v1p0/intel_psg_km_spc_e6_21G3.04.01_v1p0/freedom-e-sdk/bsp/design-rtl/build/release/Makefile] Error 77
Following is a snapshot of the errors reported by log file: