I'm getting started with NIOS-II
I've succesfully built hardware design and created bsp from it
When I am trying to build example "hello World" project i am getting errors like:
arm-none-eabi-gcc.exe: error: unrecognized command line option '-mno-hw-div'
arm-none-eabi-gcc.exe: error: unrecognized command line option '-mno-hw-mul'
arm-none-eabi-gcc.exe: error: unrecognized command line option '-mno-hw-mulx'
arm-none-eabi-gcc.exe: error: unrecognized command line option '-mgpopt=global'
make: *** [obj/default/hello_world.o] Error 1
I haven't touched any build settings or bsp options, my qsys project also has the most default settings possible
I am using Quartus Prime Lite 18.1
Couls you please tell me what I am doing wrong?
Thank you for posting in Intel community forum, hope this message find you well and apologies for the delayed in response.
Did some investigation and it seem that the culprith might be the wslpath program environment on your machine have changed.
Is there any OS updates on your machine recently?
Would suggest to try on the following workaround, Open the project Makefile, and look for the following link of code:
APP_LDFLAGS += -msys-lib=$(call adjust-path-mixed,$(SYS_LIB))
(by default it is around line 326 if there is no changes on the files)
Change to the following :
APP_LDFLAGS += -msys-lib=hal_bsp
And try to rebuild your project to see if it works.
Please do let us know if that helps.
Hope this message find you well and good day, unfortunately as we do not receive any response from you to the previous clarification that we have provided. Please post a response in the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you with your follow-up questions.