AnsweredAssumed Answered

ERROR building u-boot for i.MX6 Sabre SD

Question asked by Ailton Lopes on Sep 12, 2017
Latest reply on Jul 24, 2018 by Ailton Lopes

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.

Outcomes