Microchip-MPLAB-Harmony / usb

Harmony 3 USB library
https://onlinedocs.microchip.com/v2/keyword-lookup?keyword=MH3_usb&redirect=true
Other
12 stars 7 forks source link

USB MSD-base example compile failed on linux machine #14

Open zizimumu opened 3 years ago

zizimumu commented 3 years ago

USB example usb_host_msd_bootloader/test_app/firmware/sam_e54_xpro.X/ shows compile error as bellow:

make[2]: No rule to make target '..\src\config\sam_e54_xpro\ATSAME54P20A.ld', needed by 'dist/sam_e54_xpro/production/sam_e54_xpro.X.production.hex'. Stop. make[2]: Waiting for unfinished jobs....


harmony is updated to latest version: USB : v3.7.0 BSP: v3.8.2 CORE: v3.8.1

XC32: V2.41 Product Version: MPLAB X IDE v5.40 Java: 1.8.0_202; OpenJDK 64-Bit Server VM 25.202-b05 Runtime: OpenJDK Runtime Environment 1.8.0_202-b05 System: Linux version 4.15.0-72-generic running on amd64; UTF-8; en_US (mplab)

amitraddi commented 3 years ago

@zizimumu Thank you for reporting.

I tried on my local Setup and was unable to reproduce the issue.

Can you please clean and regenerate using the latest MHC v3.6.5 and latest mblabx plugin v3.6.2 and let us know if it resolves the issue. Also try deleting the temporary MPLAB X Build files from same_e54_xpro.X folder

zizimumu commented 3 years ago

hello, I just tried to compile this example in my windows machine using same Harmony version, it could work, but it still could not work in my linux machine (Ubuntu 16.04). and yes, MHC is v3.6.5.


CLEAN SUCCESSFUL (total time: 51ms) make -f nbproject/Makefile-sam_e54_xpro.mk SUBPROJECTS= .build-conf make[1]: Entering directory '/media/ssd2/harmony3/usb/apps/host/msd_basic/firmware/sam_e54_xpro.X' make -f nbproject/Makefile-sam_e54_xpro.mk dist/sam_e54_xpro/production/sam_e54_xpro.X.production.hex make[2]: Entering directory '/media/ssd2/harmony3/usb/apps/host/msd_basic/firmware/sam_e54_xpro.X' "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/544748269/bsp.o.d" -o build/sam_e54_xpro/production/_ext/544748269/bsp.o ../src/config/sam_e54_xpro/bsp/bsp.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/1342280293/drv_usbfsv1.o.d" -o build/sam_e54_xpro/production/_ext/1342280293/drv_usbfsv1.o ../src/config/sam_e54_xpro/driver/usb/usbfsv1/src/drv_usbfsv1.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/1342280293/drv_usbfsv1_host.o.d" -o build/sam_e54_xpro/production/_ext/1342280293/drv_usbfsv1_host.o ../src/config/sam_e54_xpro/driver/usb/usbfsv1/src/drv_usbfsv1_host.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/2056749927/plib_clock.o.d" -o build/sam_e54_xpro/production/_ext/2056749927/plib_clock.o ../src/config/sam_e54_xpro/peripheral/clock/plib_clock.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/2058899413/plib_evsys.o.d" -o build/sam_e54_xpro/production/_ext/2058899413/plib_evsys.o ../src/config/sam_e54_xpro/peripheral/evsys/plib_evsys.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/348958103/plib_nvic.o.d" -o build/sam_e54_xpro/production/_ext/348958103/plib_nvic.o ../src/config/sam_e54_xpro/peripheral/nvic/plib_nvic.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/1986180951/plib_nvmctrl.o.d" -o build/sam_e54_xpro/production/_ext/1986180951/plib_nvmctrl.o ../src/config/sam_e54_xpro/peripheral/nvmctrl/plib_nvmctrl.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/348904952/plib_port.o.d" -o build/sam_e54_xpro/production/_ext/348904952/plib_port.o ../src/config/sam_e54_xpro/peripheral/port/plib_port.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/1183993270/plib_tc0.o.d" -o build/sam_e54_xpro/production/_ext/1183993270/plib_tc0.o ../src/config/sam_e54_xpro/peripheral/tc/plib_tc0.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/498645085/xc32_monitor.o.d" -o build/sam_e54_xpro/production/_ext/498645085/xc32_monitor.o ../src/config/sam_e54_xpro/stdio/xc32_monitor.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/2098947918/sys_cache.o.d" -o build/sam_e54_xpro/production/_ext/2098947918/sys_cache.o ../src/config/sam_e54_xpro/system/cache/sys_cache.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/1171329604/ff.o.d" -o build/sam_e54_xpro/production/_ext/1171329604/ff.o ../src/config/sam_e54_xpro/system/fs/fat_fs/file_system/ff.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/1171329604/ffunicode.o.d" -o build/sam_e54_xpro/production/_ext/1171329604/ffunicode.o ../src/config/sam_e54_xpro/system/fs/fat_fs/file_system/ffunicode.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/349294639/plib_cmcc.o.d" -o build/sam_e54_xpro/production/_ext/349294639/plib_cmcc.o ../src/config/sam_e54_xpro/peripheral/cmcc/plib_cmcc.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/743848790/sys_fs.o.d" -o build/sam_e54_xpro/production/_ext/743848790/sys_fs.o ../src/config/sam_e54_xpro/system/fs/src/sys_fs.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/656274803/diskio.o.d" -o build/sam_e54_xpro/production/_ext/656274803/diskio.o ../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access/diskio.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/743848790/sys_fs_media_manager.o.d" -o build/sam_e54_xpro/production/_ext/743848790/sys_fs_media_manager.o ../src/config/sam_e54_xpro/system/fs/src/sys_fs_media_manager.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/129427312/sys_int.o.d" -o build/sam_e54_xpro/production/_ext/129427312/sys_int.o ../src/config/sam_e54_xpro/system/int/src/sys_int.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/1978655830/sys_time.o.d" -o build/sam_e54_xpro/production/_ext/1978655830/sys_time.o ../src/config/sam_e54_xpro/system/time/src/sys_time.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/743848790/sys_fs_fat_interface.o.d" -o build/sam_e54_xpro/production/_ext/743848790/sys_fs_fat_interface.o ../src/config/sam_e54_xpro/system/fs/src/sys_fs_fat_interface.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/95599699/usb_host_msd.o.d" -o build/sam_e54_xpro/production/_ext/95599699/usb_host_msd.o ../src/config/sam_e54_xpro/usb/src/usb_host_msd.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/95599699/usb_host.o.d" -o build/sam_e54_xpro/production/_ext/95599699/usb_host.o ../src/config/sam_e54_xpro/usb/src/usb_host.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/95599699/usb_host_scsi.o.d" -o build/sam_e54_xpro/production/_ext/95599699/usb_host_scsi.o ../src/config/sam_e54_xpro/usb/src/usb_host_scsi.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/68098787/initialization.o.d" -o build/sam_e54_xpro/production/_ext/68098787/initialization.o ../src/config/sam_e54_xpro/initialization.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/68098787/interrupts.o.d" -o build/sam_e54_xpro/production/_ext/68098787/interrupts.o ../src/config/sam_e54_xpro/interrupts.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/68098787/exceptions.o.d" -o build/sam_e54_xpro/production/_ext/68098787/exceptions.o ../src/config/sam_e54_xpro/exceptions.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/68098787/startup_xc32.o.d" -o build/sam_e54_xpro/production/_ext/68098787/startup_xc32.o ../src/config/sam_e54_xpro/startup_xc32.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/68098787/libc_syscalls.o.d" -o build/sam_e54_xpro/production/_ext/68098787/libc_syscalls.o ../src/config/sam_e54_xpro/libc_syscalls.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/68098787/usb_host_init_data.o.d" -o build/sam_e54_xpro/production/_ext/68098787/usb_host_init_data.o ../src/config/sam_e54_xpro/usb_host_init_data.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/68098787/tasks.o.d" -o build/sam_e54_xpro/production/_ext/68098787/tasks.o ../src/config/sam_e54_xpro/tasks.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/1360937237/main.o.d" -o build/sam_e54_xpro/production/_ext/1360937237/main.o ../src/main.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" make[2]: No rule to make target '..\src\config\sam_e54_xpro\ATSAME54P20A.ld', needed by 'dist/sam_e54_xpro/production/sam_e54_xpro.X.production.hex'. Stop. make[2]: Waiting for unfinished jobs.... "/media/ssd2/program/microchip/xc32/v2.41/bin/xc32-gcc" -g -x c -c -mprocessor=ATSAME54P20A -ffunction-sections -fdata-sections -O1 -I"../src/config/sam_e54_xpro/system/fs/fat_fs/file_system" -I"../src/config/sam_e54_xpro/system/fs/fat_fs/hardware_access" -I"../src" -I"../src/config/sam_e54_xpro" -I"../src/packs/ATSAME54P20A_DFP" -I"../src/packs/CMSIS/CMSIS/Core/Include" -I"../src/packs/CMSIS/" -Werror -Wall -MMD -MF "build/sam_e54_xpro/production/_ext/1360937237/app.o.d" -o build/sam_e54_xpro/production/_ext/1360937237/app.o ../src/app.c -DXPRJ_sam_e54_xpro=sam_e54_xpro -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wno-deprecated-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wmissing-noreturn -mdfp="/home/emy/.mchp_packs/Microchip/SAME54_DFP/3.3.64" -I "/media/ssd2/program/microchip/mplabx/v5.40/packs/arm/CMSIS/5.4.0/CMSIS/Core/Include" make[1]: [nbproject/Makefile-sam_e54_xpro.mk:94: .build-conf] Error 2 make: [nbproject/Makefile-impl.mk:39: .build-impl] Error 2 make[2]: Leaving directory '/media/ssd2/harmony3/usb/apps/host/msd_basic/firmware/sam_e54_xpro.X' make[1]: Leaving directory '/media/ssd2/harmony3/usb/apps/host/msd_basic/firmware/sam_e54_xpro.X'

BUILD FAILED (exit value 2, total time: 1s)

zizimumu commented 3 years ago

it could work now, need to modify the Makefile "./firmware/sam_e54_xpro.X/nbproject/Makefile-sam_e54_xpro.mk" , change '..\src\config\sam_e54_xpro\ATSAME54P20A.ld' to '../src/config/sam_e54_xpro/ATSAME54P20A.ld', it's the difference between "\" and "/", "\" is not supported in linux.

zizimumu commented 3 years ago

I also met this issue in other module, the MPLAB linux version or Harmony 3 may not good compatible with linux system