Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error occurs by exporting mbed classic sample to GCC (ARM Embedded) toolchain on mbed online compiler #4759

Closed
TomoYamanaka opened this issue Jul 14, 2017 · 6 comments

Comments

@TomoYamanaka
Copy link
Contributor

Description

  • Type: Bug
  • Priority: Major

Bug

As exporting mbed classic sample(e.g. mbed-blinky) to GCC (ARM Embedded) toolchain on mbed online compiler, the below build error will occurs.
This error occurs by using mbed classic rev.145 or later.

../mbed/TARGET_RZ_A1H/TOOLCHAIN_GCC_ARM/system_MBRZA1H.o: In function `InitMemorySubsystem':
system_MBRZA1H.c:(.text.InitMemorySubsystem+0x24): undefined reference to `__v7_all_cache'
collect2.exe: error: ld returned 1 exit status

I consider that cause of this error is the lack of __v7_all_cache in GCC only.
Before rev.144, it's function has been implemented.
But in rev.145, it seems that the substance of it's function does not exist because cache.S has been deleted, as a result, the above error occurs.

@0xc0170
Copy link
Contributor

0xc0170 commented Jul 14, 2017

I assume its RZ_A1H target. who and when was cache.S deleted?

cc @theotherjimmy

@theotherjimmy
Copy link
Contributor

I don't have the answer to that question @0xc0170

@theotherjimmy
Copy link
Contributor

CMSIS 5 update? seems to affect all releases >= 5.5.0

@0xc0170
Copy link
Contributor

0xc0170 commented Jul 17, 2017

Thanks Jimmy.

@TomoYamanaka For gcc, this function is declared as extern, where was (should be) the definition of this function?

What we are missing here as this is local issue, what is your GCC ARM version?

@toyowata
Copy link
Contributor

@0xc0170
The cache.S was in here, but removed by CMSIS5 update:
https://github.com/ARMmbed/mbed-os/tree/mbed-os-5.4/cmsis/TOOLCHAIN_GCC/TARGET_CORTEX_A

@0xc0170
Copy link
Contributor

0xc0170 commented Jul 19, 2017

Thanks @TomoYamanaka . I'll send PR shortly, adding this file back

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants