Windows 10.0.19041.508
Quartus 20.1.0 Build 711 Standard
I tried to generate the DDR3 module in Quartus 20.1 on Windows 10. The results are different with and without WSL installed. Both failed to generate the HDLs at the end.
1. Without WSL as suggested FB: 533911/2205701105
Error: s0: Error during execution of "{C:/intelfpga/20.1/quartus/../nios2eds/Nios II Command Shell.bat} make all 2>> stderr.txt": child process exited abnormally
Error: s0: Execution of command "{C:/intelfpga/20.1/quartus/../nios2eds/Nios II Command Shell.bat} make all 2>> stderr.txt" failed
Error: s0: child process exited abnormally
Error: s0: Cannot find sequencer/sequencer.elf
Error: s0: An error occurred while executing "error "An error occurred"" (procedure "_error" line invoked from within "_error "Cannot find $seq_file"" ("if" then script line 2) invoked from within "if {[file exists $seq_file] == 0} { _error "Cannot find $seq_file" }" (procedure "alt_mem_if::util::seq_mem_size::get_max_memory_usage" line 14) invoked from within "alt_mem_if::util::seq_mem_size::get_max_memory_usage [file join "sequencer" "sequencer.elf"" invoked from within "set calc_mem_size [alt_mem_if::util::seq_mem_size::get_max_memory_usage [file join "sequencer" "sequencer.elf"]]" ("if" then script line 2) invoked from within "if { !$do_only_rw_mgr_mc && !($bfm_mode || $hps_mode)} { set calc_mem_size [alt_mem_if::util::seq_mem_size::get_max_memory_usage [file join "sequenc..." (procedure "generate_qsys_sequencer_sw" line 943) invoked from within "generate_qsys_sequencer_sw $prepend_str $protocol $pre_compile_dir $fileset $inhdl_dir $rdimm $lrdimm 0 0 $nios_hex_file_name $ac_rom_init_file_name ..." invoked from within "set seq_mem_size_list [generate_qsys_sequencer_sw $prepend_str $protocol $pre_compile_dir $fileset $inhdl_dir $rdimm $lrdimm 0 0 $nios_hex_file_name ..." ("if" else script line 2) invoked from within "if {[::alt_mem_if::util::qini::qini_value alt_mem_if_seq_size_request 0] > 0} { set seq_mem_size [::alt_mem_if::util::qini::qini_value alt_mem_if_se..." (procedure "alt_mem_if::gen::uniphy_gen::generate_qsys_sequencer" line 238) invoked from within "alt_mem_if::gen::uniphy_gen::generate_qsys_sequencer "${name}" $protocol $tmpdir $fileset {}" invoked from within "set qsys_sequencer_files_list [alt_mem_if::gen::uniphy_gen::generate_qsys_sequencer "${name}" $protocol $tmpdir $fileset {}]" (procedure "alt_mem_if::gen::uniphy_gen::generate_sequencer_files" line 3) invoked from within "alt_mem_if::gen::uniphy_gen::generate_sequencer_files $name "DDR3" $tmpdir QUARTUS_SYNTH" invoked from within "foreach generated_file [alt_mem_if::gen::uniphy_gen::generate_sequencer_files $name "DDR3" $tmpdir QUARTUS_SYNTH] { set file_name [file tail $genera..." (procedure "generate_synth" line invoked from within "generate_synth ddr3test_mem_if_ddr3_emif_0_s0"
Info: s0: "mem_if_ddr3_emif_0" instantiated altera_mem_if_ddr3_qseq "s0"
2. WSL installed as directed in the Installation Documents
It didn't fail at the above location but proceeded to generate the makefile. Than it failed to compile the alt_dcache_flush_all.c for some reasons. The nios2-elf-gcc.exe may be missing but I cannot verify it because the temporary folder is removed after the failure.
Error: s0: Info: Building /mnt/c/Users/user/AppData/Local/Temp/alt8546_7808681284429980738.dir/0005_s0_gen/qsys_pre_compile/ddr3wsl_mem_if_ddr3_emif_0_s0_software/sequencer_bsp
Error: s0: make --no-print-directory -C /mnt/c/Users/user/AppData/Local/Temp/alt8546_7808681284429980738.dir/0005_s0_gen/qsys_pre_compile/ddr3wsl_mem_if_ddr3_emif_0_s0_software/sequencer_bsp
Error: s0: Compiling alt_dcache_flush_all.c...
Error: s0: nios2-elf-gcc.exe -xc -MP -MMD -c -I./HAL/inc -I. -I./drivers/inc -pipe -D__hal__ -DALT_NO_C_PLUS_PLUS -DALT_NO_CLEAN_EXIT -D'exit(a)=_exit(a)' -DALT_NO_EXIT -DALT_USE_DIRECT_DRIVERS -DALT_NO_INSTRUCTION_EMULATION -DALT_USE_SMALL_DRIVERS -DSMALL_C_LIB -DALT_SINGLE_THREADED -Os -g -Wall -mno-hw-div -mno-hw-mul -mno-hw-mulx -mgpopt=global -o obj/HAL/src/alt_dcache_flush_all.o HAL/src/alt_dcache_flush_all.c
Error: s0: Makefile:539: recipe for target 'obj/HAL/src/alt_dcache_flush_all.o' failed
Error: s0: Makefile:844: recipe for target '/mnt/c/Users/user/AppData/Local/Temp/alt8546_7808681284429980738.dir/0005_s0_gen/qsys_pre_compile/ddr3wsl_mem_if_ddr3_emif_0_s0_software/sequencer_bsp-recurs-make-lib' failed
Error: s0: make[1]: Leaving directory '/mnt/c/Users/user/AppData/Local/Temp/alt8546_7808681284429980738.dir/0005_s0_gen/qsys_pre_compile/ddr3wsl_mem_if_ddr3_emif_0_s0_software/sequencer'
Error: s0: Makefile:12: recipe for target 'elf' failed
Error: s0: child process exited abnormally
Error: s0: Cannot find sequencer/sequencer.elf
Attaching the QSYS script and logs.
Thanks,
Shige