Skip to content

arch/arm: move -mthumb option back to ARCHCPUFLAGS#9641

Merged
xiaoxiang781216 merged 1 commit into
apache:masterfrom
a-lunev:arm_gnu_eabi_build_error
Jun 29, 2023
Merged

arch/arm: move -mthumb option back to ARCHCPUFLAGS#9641
xiaoxiang781216 merged 1 commit into
apache:masterfrom
a-lunev:arm_gnu_eabi_build_error

Conversation

@a-lunev
Copy link
Copy Markdown
Contributor

@a-lunev a-lunev commented Jun 28, 2023

Summary

CONFIG_ARM_TOOLCHAIN_GNU_EABI build got broken when -mthumb option was moved from ARCHCPUFLAGS to ARCHOPTIMIZATION variable:

arm-none-eabi-ld: error: .../build/nuttx/nuttx uses VFP register arguments, /usr/lib/gcc/arm-none-eabi/5.4.1/libgcc.a(_fixunsdfdi.o) does not
arm-none-eabi-ld: failed to merge target specific data of file /usr/lib/gcc/arm-none-eabi/5.4.1/libgcc.a(_fixunsdfdi.o)
arm-none-eabi-ld: error: .../build/nuttx/nuttx uses VFP register arguments, /usr/lib/gcc/arm-none-eabi/5.4.1/libgcc.a(_udivmoddi4.o) does not
arm-none-eabi-ld: failed to merge target specific data of file /usr/lib/gcc/arm-none-eabi/5.4.1/libgcc.a(_udivmoddi4.o)

Related to #7097.

Impact

arch/arm

Testing

./tools/configure.sh -l nucleo-h743zi:nsh

CONFIG_ARM_TOOLCHAIN_GNU_EABI build got broken when -mthumb option was moved
from ARCHCPUFLAGS to ARCHOPTIMIZATION variable:

arm-none-eabi-ld: error: .../build/nuttx/nuttx uses VFP register arguments, /usr/lib/gcc/arm-none-eabi/5.4.1/libgcc.a(_fixunsdfdi.o) does not
arm-none-eabi-ld: failed to merge target specific data of file /usr/lib/gcc/arm-none-eabi/5.4.1/libgcc.a(_fixunsdfdi.o)
arm-none-eabi-ld: error: .../build/nuttx/nuttx uses VFP register arguments, /usr/lib/gcc/arm-none-eabi/5.4.1/libgcc.a(_udivmoddi4.o) does not
arm-none-eabi-ld: failed to merge target specific data of file /usr/lib/gcc/arm-none-eabi/5.4.1/libgcc.a(_udivmoddi4.o)
@xiaoxiang781216 xiaoxiang781216 merged commit 7af151a into apache:master Jun 29, 2023
@a-lunev a-lunev deleted the arm_gnu_eabi_build_error branch August 11, 2023 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants