Your message dated Mon, 23 Nov 2026 06:19:52 +0000
with message-id <[email protected]>
and subject line Bug#1154487: fixed in rustc 1.99.1+dfsg1-1
has caused the Debian Bug report #1154487,
regarding rustc panics when building a dylib/cdylib if the linker is called 
directly
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1154487: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1154487
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: rustc
Version: 1.98.1+dfsg1-1
Severity: normal

Dear Maintainer,

rustc crashes with an internal compiler error whenever it builds a
shared library (crate type dylib or cdylib) and links by calling the
linker directly instead of going through a C compiler driver.

This was originally discovered when attempting to compile for targets
without a C compiler and always call the linker directly such as
`amdgcn-amd-amdhsa`, but it can be triggered on ordinary targets simply
by picking a direct linker.

The bug also exists on Ubuntu; I will forward a fix once we
have one.

The bug can be reproduced on sid simply by trying to build a shared
library and calling the linker directly:

$ touch empty.rs
$ rustc --crate-type cdylib -C linker-flavor=ld empty.rs

thread 'rustc' (1306) panicked at
/usr/src/rustc-1.98.1/compiler/rustc_codegen_ssa/src/back/linker.rs:227:5:
assertion failed: l.is_cc()
stack backtrace:
   0:     0x795673b31661 -
<<std[7fe79bafe4c86b4c]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace
as core[6c3da472cdac379e]::fmt::Display>::fmt
   1:     0x795673b73caa - core[6c3da472cdac379e]::fmt::write
   2:     0x795673b4374c - <unknown>
   3:     0x795673afeb32 - <unknown>
   4:     0x795673b21d9c - std[7fe79bafe4c86b4c]::panicking::default_hook
   5:     0x7956700b1934 - <unknown>
   6:     0x795673b22102 - std[7fe79bafe4c86b4c]::panicking::panic_with_hook
   7:     0x795673afec14 - <unknown>
   8:     0x795673af5779 - <unknown>
   9:     0x795673b002ad - __rustc[c8f6c1900a8e1dee]::rust_begin_unwind
  10:     0x79566fffa01c - core[6c3da472cdac379e]::panicking::panic_fmt
  11:     0x79566fff9fe2 - core[6c3da472cdac379e]::panicking::panic
  12:     0x79567242ea1c - <unknown>
  13:     0x795672421b74 - <unknown>
  14:     0x79567241ccbd -
rustc_codegen_ssa[fa19cb6208fdbd81]::back::link::link_binary
  15:     0x7956704012e2 -
<rustc_codegen_llvm[5a8c0bb1d9169099]::LlvmCodegenBackend as
rustc_codegen_ssa[fa19cb6208fdbd81]::traits::backend::CodegenBackend>::link
  16:     0x7956702e2da1 -
<rustc_interface[8e60d55e728e0a67]::queries::Linker>::link
  17:     0x7956700c7a0b - <unknown>
  18:     0x7956700bb0fb - <unknown>
  19:     0x79567006ac6f - <unknown>
  20:     0x7956700c84e3 - <unknown>
  21:     0x795673b2dc4f - <unknown>
  22:     0x79566f69edb8 - <unknown>
  23:     0x79566f71cf98 - <unknown>
  24:                0x0 - <unknown>

error: the compiler unexpectedly panicked. This is a bug

note: we would appreciate a bug report:
https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.98.1 (48a229cea 2026-09-01) (built from a source tarball)
running on x86_64-unknown-linux-gnu

note: compiler flags: --crate-type cdylib -C linker-flavor=ld

query stack during panic:
end of query stack

--- End Message ---
--- Begin Message ---
Source: rustc
Source-Version: 1.99.1+dfsg1-1
Done: Fabian Grünbichler <[email protected]>

We believe that the bug you reported is fixed in the latest version of
rustc, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Fabian Grünbichler <[email protected]> (supplier of updated 
rustc package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 22 Nov 2026 20:05:50 +0100
Source: rustc
Architecture: source
Version: 1.99.1+dfsg1-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Rust Maintainers 
<[email protected]>
Changed-By: Fabian Grünbichler <[email protected]>
Closes: 1154487
Changes:
 rustc (1.99.1+dfsg1-1) unstable; urgency=medium
 .
   [ Brent Kerby ]
   * rustc: fix Debian-specific SONAME handling for targets where the linker is
     invoked directly, instead of via gcc (Closes: #1154487)
Checksums-Sha1:
 23c77042a52cd6a2c5508856f80a1f6cde4a50c0 4341 rustc_1.99.1+dfsg1-1.dsc
 5e10d49b3eb92e007d4c493280c410bbf2be89c7 152236 
rustc_1.99.1+dfsg1-1.debian.tar.xz
 fa2b059cf862cbd07a9b3128b7ba5c9ea11af8d1 10881 
rustc_1.99.1+dfsg1-1_source.buildinfo
Checksums-Sha256:
 ad28f2c7f0d728e7b0a1b9934e99c47eb3a75d3e564e737ec406bddf052e3859 4341 
rustc_1.99.1+dfsg1-1.dsc
 301c8533c685b2386bd5015b3c87c2c8dd3358486e3d8e366172024b84464724 152236 
rustc_1.99.1+dfsg1-1.debian.tar.xz
 0aec30d897b4023eb6330a1c765287820b62c44fe27f6b4b2ba6865fa3c01cf2 10881 
rustc_1.99.1+dfsg1-1_source.buildinfo
Files:
 53723c00f0ff2dc767a185b9a8426192 4341 devel optional rustc_1.99.1+dfsg1-1.dsc
 db15e2bb1fd8c57a6f617cadd4fd680f 152236 devel optional 
rustc_1.99.1+dfsg1-1.debian.tar.xz
 e121d28eda77f1e133f691d86eef303f 10881 devel optional 
rustc_1.99.1+dfsg1-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJVBAEBCgA/FiEEbdkGe7ToK0Amc9ppdh5TKjcTRTAFAmsD2ZshHGRlYmlhbkBm
YWJpYW4uZ3J1ZW5iaWNobGVyLmVtYWlsAAoJEHYeUyo3E0UwMkMP/1y8SG2YGqw+
Lyg7hlxM4clMUP3nu2aDlkqZFLOsN3HjjYkq1uIDFzkucnIqe8Tj+GrKMKNnEryH
eWDzPcEk+Hxci3Z6WtLce/XWFThyYs00ux0r7XKgAfAOmLsLgv0Q4/8Ft9z3zeGy
HkDLyVDvnVyYQaxIFcDRrdEThvZke6ELsUukyj5xj/uCKNThwep67zmsrmZ7H32A
0NUyc9/ydKEbuHpJEat6YYC25JUi3yk1tnUMILdH6qpFRgsNj8ef8bLvZ8MM9S4/
50f/NzNz9uWhce6zMGibGTgTqTevJQjNI2phhVx4p2dmfFBNt8zHpQKMqjKKPK79
2UYAqe9ykIcZ2h+ezntnUjEDP/XPKES6tZo4RdjMeDe4ECdjafIEmVjBVT+qEbj8
TcsRgChUitXs8ZWzY2Mhl7kad/A6aD9sWLGVNK2f95YtheM1B1K3rtfKY0lV/gpc
Cca2saE5Bv1QERSLZrVoBEb1Ddc3MMs8U4Bk7uSscV1lScq827Fpw8TYk2EuMo2l
lOtdOi11YjHGVIlqNyGSj08n8GkOkRx7LEGMqxneiWi0OUAM0FCFYKkwoGr4rKtA
d9742b7ruo4PMdqI1QVAfSpSE2SMHejXHSbTffyWhzy4pTfB01JvhCNfUWMjJ1dF
f1rcJa496KvyC2bT7QuSHLygSM8FT8dD
=JCXy
-----END PGP SIGNATURE-----

Attachment: pgpR0mMwIpkVI.pgp
Description: PGP signature


--- End Message ---

Reply via email to