Re @bjorn3
I am back to you from my issue with cranelift.
I run RUST_BACKTRACE=1 cargo build
but get same error message
You need to use a debugger like gdb to get backtraces when a segfault happens. RUST_BACKTRACE only works with panics.
How to use gdb while I don't have a binary to debug?
gdb --args rustc ...
where rustc ...
is the command that was reported as crashing.
Reading symbols from rustc... (No debugging symbols found in rustc)
Maybe termux has a separate package for rustc debug symbols?
Seems they don't provide it :s
Maybe there is another way to debug?
Now cranelift codegen is available on Android host.
But we get rustc-logs.txt
Could be that stacker is incompatible with Android or the hacks that termux uses to keep running on modern Android versions.
(Stacker is a crate used by rustc to extend the stack when it almost gets a stackoverflow)
Last updated: Apr 06 2025 at 20:03 UTC