-
Notifications
You must be signed in to change notification settings - Fork 90
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
Does not compile with GCC 10.3 #33
Comments
The same error still exists with even newer versions:
Is there an alternative for building for microbit v2 that is currently working? |
It should work with GCC 10.2 or lower at the moment. |
Can confirm it doesn't compile with the latest Arm GCC release either: 10.3-2021.10 |
can confirm that it does compile with the |
Looking into this now, and it seems like the assembler is generating debug code inside the Continuing to investigate |
Perfect - thanks John. Great to have you on board! |
Upon further investigation it does seem that the newer compiler is just pickier about where symbols get looked up at the link phase. Moving the timing functions to |
Does that mean those functions will be copied to RAM to be executed from there? I assume that will increase the memory footprint? |
The fallback op-counting timer was already running in RAM to begin with, although it is extremely small. This change would still do this, but simply place it in the correct ELF section to make the linker happy, it'll still be in the final |
Does the micro:bit platform need |
Most targets run off a timer @microbit-carlos, including microbit... I'm slightly surprised it isn't optimised out... I would like to see us do a good audit of RAM/FLASH usage for micro:bit though. I suspect we can make savings in lots of places. So perhaps one for another day? |
…ata, to work with newer gcc versions. See issue #33 at lancaster-university/microbit-v2-samples#33
Tested the patch on an rp2040 and a Micro:bit, both seem happy, so tentatively placed the patch in a new branch over on the If you |
Pull request created over in |
Merged into master, (see lancaster-university/codal-core#144 ) so this should all be fixed 👍 Closing this for now, but feel free to reopen if anyone finds issues. |
Awesome, thanks @JohnVidler! |
Released last July.
Right now the CI in this repo fails on the macOS build, this is because brew tap we use has updated the arm gcc formula with v10.3:
I've tested this in my fork testing in Ubuntu with version
10.2.1
(10-2020-q4
) and that works, then on version10.3.1
(10.3-2021.07
) and it throws the same error.The text was updated successfully, but these errors were encountered: