Open BottomNotch opened 6 years ago
What is in there that is missing exactly? An arm gcc cross-compiler toolchain?
Yes, specifically for arm embedded, control system for the robots I program has a cortex M3
I can actually get a gcc cross compiler what cpu type is the device running termux are you planning on using?
ARMv8-A
okay so far whats happening here.
can build arm-none-eabi cross compiler and im just going to repackage newlib libc etc.
issues that are holding me up aren't neccesarily bugs in gcc. Its actually bugs in binutils that are also applicable to normal binutils package.
So @fornwall ...
If you are compiling an assembly file that needs to be preprocessed clang works unless you are using -no-integrated-as.
The assembler in binutils doesn't like how post processed assembler has comments such as
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 32 "<command-line>" 2
# 1 "startup_ARMCM0.S"
# 33 "startup_ARMCM0.S"
it simply interprets the entire file as a comment. This can be fixed when using gcc with -P switch.
Another issue is linker scripts to configure memory regions. which is also binutils ... using the versions used by arm or not do not seem to make a difference.
Also stuff like this is why we shouldn't be using -no-integrated-as to build llvm when compiling for arm since no-integrated-as ends up in llvm-config among other issues.
An ARM cross compiler would be very nice to have for building and compiling on devices.
@its-pointless You have been able to build it from source with no required patching?
The issue is the linker scripts aren't working.
Are there any updates on this? I was attempting to do some similar work with building using gcc-arm-none-eabi compiler.
https://developer.arm.com/open-source/gnu-toolchain/gnu-rm I want to program robots from my phone.