This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

keil linker report error: arm-isa clashes with m-profile.

Thanks a lot for helping me

I have a GNU GMP static library libgmp.a which is compiled with arm-none-eabi-gcc. Within one STM32F10x example under KEIL example folder, the main.c call a function within the static library libgmp.a. When compiling the project, KEIL output the following error:

Object mu_bdiv_q.o contains Build Attributes that are incompatible with the CPU attributes. Tag_CPU_arch = ARM v4T (=2) Tag_THUMB_ISA_use = Thumb instructions were permitted to be used (=1) Tag_ARM_ISA_use = ARM instructions were permitted to be used (=1)
.\Blinky.axf: Error: L6242E: Cannot link object mu_bdiv_q.o as its attributes are incompatible with the image attributes. ... arm-isa clashes with m-profile.

the Attribute Section of libgmp.a:
Attribute Section: aeabi
File Attributes Tag_CPU_name: "ARM7TDMI" Tag_CPU_arch: v4T Tag_ARM_ISA_use: Yes Tag_THUMB_ISA_use: Thumb-1 Tag_ABI_PCS_wchar_t: 4
.......