Im trying to build the uboot for the board i.MX6 and im getting this error when using the command **make**
> andersenbond@Bond:~/Desktop/IMX6QSD/u-boot$ sudo make
Your GCC is older than 6.0 and will not be supported starting in v2018.01.
> CHK include/config/uboot.release
> CHK include/generated/version_autogenerated.h
> CHK include/generated/timestamp_autogenerated.h
> UPD include/generated/timestamp_autogenerated.h
> CC lib/asm-offsets.s
> **lib/asm-offsets.c:1:0: error: bad value (armv5) for -march= switch**
>**/***
> **^**
>Kbuild:43: recipe for target 'lib/asm-offsets.s' failed
>make[1]: *** [lib/asm-offsets.s] Error 1
>Makefile:1331: recipe for target 'prepare0' failed
>make: *** [prepare0] Error 2
>andersenbond@Bond:~/Desktop/IMX6QSD/u-boot$
I tried to see if there's an extra ***/** in the **lib/asm-offsets.c** file but the file is fine, i didn't make any changes in the repository cloned from GitHub.
I really need to fix this problem and it would help a lot if anyone can help, Thanks in advanced.
Kind Regards.
the image bellow shows the error.
hello Lopes,
I have set the compilation path, even after doing so i am getting the same error!! has it got something to do with the gcc version of my ubuntu machine????
Regards,
Pavan
Sorry for not answering before Rita, I was able to solve the problem by updating the ubuntu on my pc to the last version.
Thanks for the reply
Kind Regards.
Hello Lopes,
What was the issue actually?? Even i am stuck here!! Can u kindly help me out
Regards,
Pavan
hey Pavan, not, that was not the error, the error is that you are forgetting to do export ARCH=arm at the terminal before doing the make, if your arch is different than arm change it to the one for your board.
Kind regards,
Ailton Lopes