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
Task Type Bug Report
Category Packages
Status Closed
Assigned To Anatol Pomozov (anatolik)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

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
Comment by Anatol Pomozov (anatolik) - Tuesday, 03 November 2015, 04:14 GMT
Thanks for the report.

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.
Comment by Anatol Pomozov (anatolik) - Tuesday, 03 November 2015, 06:00 GMT
I just pushed arm-none-eabi-binutils-2.25.1-2 to testing repository. Please install the version and let me know if cortex-m7 support works as expected.
Comment by Ondřej Hruška (MightyPork) - Tuesday, 03 November 2015, 09:06 GMT
@anatolik just tried it and the patch worked, no problems with m7 now
Comment by Kuldeep Singh Dhaka (kuldeep) - Tuesday, 03 November 2015, 10:18 GMT
arm-none-eabi-gcc -mcpu=cortex-m7 -mthumb -xc /dev/null

/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

Loading...