FS#46951 - [arm-none-eabi-binutils] does not support cortex-m7
Attached to Project:
Community Packages
Opened by Kuldeep Singh Dhaka (kuldeep) - Monday, 02 November 2015, 18:05 GMT
Last edited by Anatol Pomozov (anatolik) - Tuesday, 03 November 2015, 14:24 GMT
Opened by Kuldeep Singh Dhaka (kuldeep) - Monday, 02 November 2015, 18:05 GMT
Last edited by Anatol Pomozov (anatolik) - Tuesday, 03 November 2015, 14:24 GMT
|
Details
Description:
arm-none-eabi-gcc does not support cortex-m7 but as per https://gcc.gnu.org/gcc-5/changes.html it should. Additional info: * package version(s) * config and/or log files etc. Package: arm-none-eabi-gcc 5.2.0-1 Version: arm-none-eabi-gcc (Arch Repository) 5.2.0 Steps to reproduce: $arm-none-eabi-gcc -mcpu=cortex-m7 -mthumb -xc /dev/null Assembler messages: Error: unknown cpu `cortex-m7' Error: unrecognized option -mcpu=cortex-m7 |
This task depends upon
Closed by Anatol Pomozov (anatolik)
Tuesday, 03 November 2015, 14:24 GMT
Reason for closing: Fixed
Additional comments about closing: arm-none-eabi-binutils-2.25.1-2
Tuesday, 03 November 2015, 14:24 GMT
Reason for closing: Fixed
Additional comments about closing: arm-none-eabi-binutils-2.25.1-2
The error comes from 'as' binutils tool. Following patch should be backported to make it working https://sourceware.org/ml/binutils/2014-09/msg00201.html
This change might be required for arm-none-eabi-gcc as well https://gcc.gnu.org/ml/gcc-patches/2014-09/msg02058.html
I'll care of it.
/usr/lib/gcc/arm-none-eabi/5.2.0/../../../../arm-none-eabi/lib/armv7e-m/libc.a(lib_a-exit.o): In function `exit':
exit.c:(.text.exit+0x16): undefined reference to `_exit'
/usr/lib/gcc/arm-none-eabi/5.2.0/../../../../arm-none-eabi/lib/armv7e-m/crt0.o: In function `_start':
(.text+0x44): undefined reference to `main'
collect2: error: ld returned 1 exit status
also, i was able to compile libopencm3 with it, so, look good to me.
+1