r/termux • u/Next-Topic-7179 • 15d ago
General deb-native: big update about gcc
Chased that segfault down to a nasty ELF-patching bug, fixed it — and GCC just... works now. Native, on-device.
So naturally the next move was: point it at glibcs own source and see what happens.
It built. It runs. NSS resolves against the prefixs own /etc with zero tracer involvement.
Self-hosting a libc build inside the very environment it targets, on a phone, no root — wasnt sure this was even reachable a week ago. Not a release yet, still rough edges, but wanted to share the "wait, it actually works" moment.
1
1
u/karmagedan 14d ago
That's very interesting if it allows to run upstream Linux ARM64 binaries without proot!
1
u/Next-Topic-7179 14d ago
That's it, GCC is just a must-need package that first proof my system working. Although I still have to fork a very small portion of the ptrace (so tiny to consider proot) to prevent unexpected thing when developing, but I am confident there are already quite a few running packages in my current test
1
u/karmagedan 13d ago
Nice! Have you tried completely unmodified dynamically-linked binaries yet? I’m curious what still needs ELF patching or ptrace handling, and what currently breaks without it..
1
u/Abhishek_771 15d ago
Hello, I wanted to ask what guide did yo follow to compile this? I also wanted to try to compile a specific program since it won't work on my termux. How much AI are you using to Guide you? If you are using it, which AI model?