qorc-sdk build error

Post Reply
Jack
Posts: 15
Joined: Tue May 19, 2020 10:03 am

qorc-sdk build error

Post by Jack »

I'm using Windows subsystem for Linux (Ubuntu 18.04 LTS) following the video on Quicklogic website below.
https://www.youtube.com/embed/1lhxTlOSFPA

I installed ARM GNU GCC toolchain and make already, when I try to make the project downloaded from github (https://github.com/QuickLogic-Corp/qorc-sdk), I hit build error:

jack@XPS13-JZHANG:/mnt/c/QLogic/Products/FOSS/M4/FreeRTOS/qorc-sdk/qf_apps/qf_helloworldsw/GCC_Project$ make
"shell Bash"
Building using GCC Toolchain
Using Linux GNU GCC Toolchain
make -f makefiles/Makefile_Startup
make[1]: Entering directory '/mnt/c/QLogic/Products/FOSS/M4/FreeRTOS/qorc-sdk/qf_apps/qf_helloworldsw/GCC_Project'
Compile: /mnt/c/QLogic/Products/FOSS/M4/FreeRTOS/qorc-sdk/qf_apps/qf_helloworldsw/GCC_Project/../../../HAL/startup/startup_EOSS3B_GCC.c
/bin/sh: 1: /usr/bin /mnt/c/Program Files (x86)/GNU Tools ARM Embedded/7 2017-q4-major/bin.exe/arm-none-eabi-gcc: not found
makefiles/Makefile_Startup:15: recipe for target '/mnt/c/QLogic/Products/FOSS/M4/FreeRTOS/qorc-sdk/qf_apps/qf_helloworldsw/GCC_Project/output/startup_EOSS3B_GCC.o' failed
make[1]: *** [/mnt/c/QLogic/Products/FOSS/M4/FreeRTOS/qorc-sdk/qf_apps/qf_helloworldsw/GCC_Project/output/startup_EOSS3B_GCC.o] Error 127
make[1]: Leaving directory '/mnt/c/QLogic/Products/FOSS/M4/FreeRTOS/qorc-sdk/qf_apps/qf_helloworldsw/GCC_Project'
Makefile:40: recipe for target 'Startup' failed
make: *** [Startup] Error 2


I found arm-none-eabi-gcc.exe existed in C:\Program Files (x86)\GNU Tools ARM Embedded\7 2017-q4-major\bin, but is that supposed to be a different path?
Any idea on this? Thanks
Jack
Posts: 15
Joined: Tue May 19, 2020 10:03 am

Re: qorc-sdk build error

Post by Jack »

It seems like incorrect path issue.
I changed toolchain pach in config.mk to specify the correct path as below.
export TC_PATH=/mnt/c/"Program Files (x86)"/"GNU Tools ARM Embedded"/"7 2017-q4-major"/bin


But still got build error.
jack@XPS13-JZHANG:/mnt/c/QLogic/Products/FOSS/M4/FreeRTOS/qorc-sdk/qf_apps/qf_helloworldsw/GCC_Project$ make
"shell Bash"
Building using GCC Toolchain
Using Linux GNU GCC Toolchain
make -f makefiles/Makefile_Startup
make[1]: Entering directory '/mnt/c/QLogic/Products/FOSS/M4/FreeRTOS/qorc-sdk/qf_apps/qf_helloworldsw/GCC_Project'
Compile: /mnt/c/QLogic/Products/FOSS/M4/FreeRTOS/qorc-sdk/qf_apps/qf_helloworldsw/GCC_Project/../../../HAL/startup/startup_EOSS3B_GCC.c
/bin/sh: 1: Syntax error: "(" unexpected
makefiles/Makefile_Startup:15: recipe for target '/mnt/c/QLogic/Products/FOSS/M4/FreeRTOS/qorc-sdk/qf_apps/qf_helloworldsw/GCC_Project/output/startup_EOSS3B_GCC.o' failed
make[1]: *** [/mnt/c/QLogic/Products/FOSS/M4/FreeRTOS/qorc-sdk/qf_apps/qf_helloworldsw/GCC_Project/output/startup_EOSS3B_GCC.o] Error 2
make[1]: Leaving directory '/mnt/c/QLogic/Products/FOSS/M4/FreeRTOS/qorc-sdk/qf_apps/qf_helloworldsw/GCC_Project'
Makefile:40: recipe for target 'Startup' failed
make: *** [Startup] Error 2


What is the correct way to specify the path with spaces in it?
murthy.vedula
Posts: 3
Joined: Thu Jun 04, 2020 11:31 pm

Re: qorc-sdk build error

Post by murthy.vedula »

It appears that you are combining Windows and Linux environment. Please install GNU toolchain on the Linux subsystem, refer the Video and the README.md.
Post Reply