termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
12.64k stars 2.91k forks source link

Package request: arm embedded toolchain #2482

Open BottomNotch opened 6 years ago

BottomNotch commented 6 years ago

https://developer.arm.com/open-source/gnu-toolchain/gnu-rm I want to program robots from my phone.

its-pointless commented 6 years ago

What is in there that is missing exactly? An arm gcc cross-compiler toolchain?

BottomNotch commented 6 years ago

Yes, specifically for arm embedded, control system for the robots I program has a cortex M3

its-pointless commented 6 years ago

I can actually get a gcc cross compiler what cpu type is the device running termux are you planning on using?

BottomNotch commented 6 years ago

ARMv8-A

its-pointless commented 6 years ago

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.

ghost commented 4 years ago

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?

its-pointless commented 4 years ago

The issue is the linker scripts aren't working.

AnwarMP commented 1 month ago

Are there any updates on this? I was attempting to do some similar work with building using gcc-arm-none-eabi compiler.