Article ID: 000075513 Content Type: Troubleshooting Last Reviewed: 03/24/2022

nios2-elf-gcc.exe: error: /mnt/c/1/synthesis/compilation/ed_fw/c3_function.c: No such file or directory

Environment

    Intel® Quartus® Prime Pro Edition
    Nios® II Embedded Design Suite (EDS)
BUILT IN - ARTICLE INTRO SECOND COMPONENT
Description

Due to a problem in the O-RAN Intel® FPGA IP design example errors will occur when using the Intel® Quartus® Prime Edition Software version 20.3, 20.4, 21.1, and 21.2 on a Windows platform.

[BSP build complete]

Info: Compiling /mnt/c/1/synthesis/compilation/ed_fw/c3_function.c to obj/default//mnt/c/1/synthesis/compilation/ed_fw/c3_function.o

nios2-elf-gcc.exe -xc -MP -MMD -c -Ic:/1/synthesis/ip_components/software/aaa/bsp/HAL/inc -Ic:/1/synthesis/ip_components/software/aaa/bsp -Ic:/1/synthesis/ip_components/software/aaa/bsp/drivers/inc  -pipe -D__hal__ -DALT_NO_INSTRUCTION_EMULATION -DALT_SINGLE_THREADED    -O0 -g -Wall -Wformat-security   -mno-hw-div -mhw-mul -mno-hw-mulx -mgpopt=global  -o obj/default//mnt/c/1/synthesis/compilation/ed_fw/c3_function.o /mnt/c/1/synthesis/compilation/ed_fw/c3_function.c

nios2-elf-gcc.exe: error: /mnt/c/1/synthesis/compilation/ed_fw/c3_function.c: No such file or directory

nios2-elf-gcc.exe: fatal error: no input files

compilation terminated.

Makefile:732: recipe for target 'obj/default//mnt/c/1/synthesis/compilation/ed_fw/c3_function.o' failed

make: *** [obj/default//mnt/c/1/synthesis/compilation/ed_fw/c3_function.o] Error 1

make: Leaving directory '/mnt/c/1/synthesis/ip_components/software/aaa/app'

 

Resolution

To work around this problem, modify Makefile as below:

Replace
#------------------------------------------------------------------------------
#                   
 PATTERN RULES TO BUILD OBJECTS
#------------------------------------------------------------------------------
define compile.c
@$(ECHO) Info: Compiling $< to $@
@$(MKDIR) $(@D)
$(CC) -MP -MMD -c $(APP_CPPFLAGS)
$(APP_CFLAGS) -o $@ $<
$(CC_POST_PROCESS)
endef
 
with:
#------------------------------------------------------------------------------
#                   
 PATTERN RULES TO BUILD OBJECTS
#------------------------------------------------------------------------------
define compile.c
@$(ECHO) Info: Compiling $< to $@
@$(MKDIR) $(@D)
$(CC) -MP -MMD -c $(APP_CPPFLAGS)
$(APP_CFLAGS) -o "$(call adjust-path-mixed,$@)" "$(call adjust-path-mixed,$<)"
$(CC_POST_PROCESS)
endef

 

This change will pass converted windows paths to the nios2-elf-gcc.exe command instead of wsl style paths.

This problem is fixed starting with the Intel® Quartus® Prime Pro Edition Software version 21.4 and Intel® Quartus® Prime Standard Edition Software version 21.1.

 

Related Products

This article applies to 2 products

Intel® Stratix® 10 FPGAs and SoC FPGAs
Intel® Arria® 10 FPGAs and SoC FPGAs

1