[Pkg-rust-maintainers] Bug#1070470: Rustc fails linking C code on some platforms

Jussi Pakkanen jpakkane at gmail.com
Sun May 5 23:16:59 BST 2024


Package: rustc
Version: 1.70.0+dfsg2-1

Attached is a simple program that combines Rust and C code with a
statically compiled version of zlib. The project also has a shell
script that compiles the code using only cc, ar and rustc, so there
are no build systems or anything else within to mix things up.

The project compiles and runs on x86_64 but fails on (at least) x86
and aarch64 complaining about some missing symbols with leading double
underscores.

I don't know what the correct behaviour here is but since the commands
are the same the outcome should at least be identical on all
platforms.

This issue is blocking Meson transition to testing as bug number
#1059223 but as shown by the project the underlying issue can be
replicated without Meson.

Thanks,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rustcmixbug.tar.gz
Type: application/gzip
Size: 597 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-rust-maintainers/attachments/20240506/e8d0a9b6/attachment.gz>


More information about the Pkg-rust-maintainers mailing list