FPGAStormRaider
New Contributor
4 years agoNIOS II Command Shell "make" issue with WSL
Hi,
I recently migrated from Quartus 18.1 to 20.1 (Lite). I installed WSL1 with Ubuntu 18.04 LTS and installed all necessary packages according to the Intel NIOSII guidelines. I am able to build and handle BSPs using Eclipse, no problem. However, my shell script to generate and build the BSP does not work anymore:
$QUARTUS_ROOTDIR/../nios2eds/nios2_command_shell.sh nios2-bsp hal . ../../hardware/$PROCESSOR_FILE.sopcinfo --cpu-name cpu $QUARTUS_ROOTDIR/../nios2eds/nios2_command_shell.sh make
The nios2-bsp works, but the make gives me the error:
C:\intelFPGA_lite\20.1\quartus/../nios2eds/nios2_command_shell.sh: line 186: exec: make: not found
If I modify it to "wsl make", I get the following error:
Compiling alt_alarm_start.c... nios2-elf-gcc.exe -xc -MP -MMD -c -I./newlib/nios2-elf/include -I./HAL/inc -I. -I./drivers/inc -pipe -D__hal__ -DALT_NO_INSTRUCTION_EMULATION -DALT_SINGLE_THREADED -O0 -g -Wall -mno-hw-div -mhw-mul -mno-hw-mulx -mgpopt=global -fno-math-errno -mcustom-fabss=224 -mcustom-fadds=253 -mcustom-fcmpeqs=227 -mcustom-fcmpges=228 -mcustom-fcmpgts=229 -mcustom-fcmples=230 -mcustom-fcmplts=231 -mcustom-fcmpnes=226 -mcustom-fdivs=255 -mcustom-fixsi=249 -mcustom-floatis=250 -mcustom-fmuls=252 -mcustom-fnegs=225 -mcustom-fsubs=254 -o obj/HAL/src/alt_alarm_start.o HAL/src/alt_alarm_start.c make: nios2-elf-gcc.exe: Command not found Makefile:553: recipe for target 'obj/HAL/src/alt_alarm_start.o' failed
I tried to add the following before the line with the make command in the shell-script:
export WSLENV=PATH/l:${WSLENV} sed -i 's/\(adjust-path[-mixed]*\) = .*/\1 = $1/' Makefile
but it didn't help.
Any idea why I cannot use make with my build script?
I use Windows 10 1909 build 18363.1256