Hi,
I've been compiling the rust toolchain for some time. The scripts for that are in
https://github.com/linic/rust-i586 and
https://github.com/linic/tcl-core-rust-i586.
The rust.tcz extension gave me an illegal operation at the time on a pentium II laptop with 512 MB of RAM and I couldn't tce-load it on a 560Z with 64 MB of RAM (more here
https://forum.tinycorelinux.net/index.php/topic,26359.msg170328.html#msg170328).
The rust-i586.tcz for rust 1.85.0 I released on github (
https://github.com/linic/tcl-core-rust-i586/releases) loads and works with a 560Z with 64 MB of RAM. I don't test every release on the 560Z since it's time consuming, but the compile process prints out the version and compiles the default rust app created via cargo.
The i586 in the name of the extension is because
CFLAGS="-march=pentium"
CXXFLAGS="-march=pentium"
./configure --set change-id=140732 \
--set build.extended=true --set build.build=i686-unknown-linux-gnu \
--set build.host=i586-unknown-linux-gnu --set build.target=i586-unknown-linux-gnu \
--set build.tools='cargo, clippy' \
--set llvm.cflags='-lz -fcf-protection=none' --set llvm.cxxflags='-lz -fcf-protection=none' \
--set llvm.ldflags='-lz -fcf-protection=none' --set llvm.targets=X86 \
--set llvm.download-ci-llvm=false
which can be seen here
https://github.com/linic/rust-i586/blob/main/Dockerfile. This originally comes from
https://ww1.thecodecache.net/projects/p2-rust/ which notes that it could theoretically make rust work on the original peniums, but there is a bug
https://github.com/rust-lang/rust/issues/93059 and I'm not sure when or if it will be fixed or could already have been fixed.
I looked at some extensions, their .dep and .info on
http://tinycorelinux.net/16.x/x86/tcz/ to name and generate the extension and those files. If there are improvements, I'm happy to receive feedback. This is a hobby so I might not get the chance to change or implement much new stuff, but compiling new versions with the current scripts is usually not too demanding.
Feel free to pick up this extension or not. I thought since it exists that I should at least post here in case someone is interested.
Have a great day!