Hi Santiago,

Am Fri, Jan 17, 2025 at 06:54:21PM +0000 schrieb Santiago Vila:
> yarl                  1.6.3     /<<PKGBUILDDIR>>/third_party/python/yarl
> zipp                  3.4.1     /<<PKGBUILDDIR>>/third_party/python/zipp
> WARNING: The directory '/sbuild-nonexistent/.cache/pip' or its parent 
> directory is not owned or is not writable by the current user. The cache has 
> been disabled. Check the permissions and owner of that directory. If 
> executing pip with sudo, you should use sudo's -H flag.
> fluent-syntax 0.19.0 requires typing-extensions, which is not installed.

the problem here was the moved third_party python module fluent-syntax,
which we moved away via debian/rules to fix an earlier bug. I reverted
this commit[1] but run into another build problem. This one is more
serious and seems to be a problem when compiling uniffi_bindgen
(v0.27.1) with rustc 1.84. I'll get something like this:

--8<--
error: rustc interrupted by SIGSEGV, printing backtrace

/lib/x86_64-linux-gnu/librustc_driver-5f7874cba759fb05.so(+0x86ddd6) 
[0x7f55f69a8dd6]
/lib/x86_64-linux-gnu/libc.so.6(+0x3fda0) [0x7f55f5f84da0]
/lib/x86_64-linux-gnu/libLLVM.so.19.1(_ZNK4llvm3DIE10getUnitDieEv+0x10) 
[0x7f55efaf52d0]
/lib/x86_64-linux-gnu/libLLVM.so.19.1(_ZN4llvm10DwarfDebug18finalizeModuleInfoEv+0xfc)
 [0x7f55efb0b8ec]
/lib/x86_64-linux-gnu/libLLVM.so.19.1(_ZN4llvm10DwarfDebug9endModuleEv+0x236) 
[0x7f55efb0c246]
/lib/x86_64-linux-gnu/libLLVM.so.19.1(_ZN4llvm10AsmPrinter14doFinalizationERNS_6ModuleE+0x95a)
 [0x7f55efadd3da]
/lib/x86_64-linux-gnu/libLLVM.so.19.1(_ZN4llvm13FPPassManager14doFinalizationERNS_6ModuleE+0x31)
 [0x7f55ef3056a1]
/lib/x86_64-linux-gnu/libLLVM.so.19.1(_ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE+0x551)
 [0x7f55ef300311]
/lib/x86_64-linux-gnu/librustc_driver-5f7874cba759fb05.so(LLVMRustWriteOutputFile+0x3ae)
 [0x7f55f6efdf9e]
/lib/x86_64-linux-gnu/librustc_driver-5f7874cba759fb05.so(+0xc84307) 
[0x7f55f6dbf307]
/lib/x86_64-linux-gnu/librustc_driver-5f7874cba759fb05.so(+0xc89010) 
[0x7f55f6dc4010]
/lib/x86_64-linux-gnu/librustc_driver-5f7874cba759fb05.so(+0xd1ba69) 
[0x7f55f6e56a69]
/lib/x86_64-linux-gnu/librustc_driver-5f7874cba759fb05.so(+0xd0fef6) 
[0x7f55f6e4aef6]
/lib/x86_64-linux-gnu/librustc_driver-5f7874cba759fb05.so(+0xd1d690) 
[0x7f55f6e58690]
/lib/x86_64-linux-gnu/librustc_driver-5f7874cba759fb05.so(+0x3f2023b) 
[0x7f55fa05b23b]
/lib/x86_64-linux-gnu/libc.so.6(+0x92083) [0x7f55f5fd7083]
/lib/x86_64-linux-gnu/libc.so.6(+0x1107b8) [0x7f55f60557b8]

note: we would appreciate a report at https://github.com/rust-lang/rust
help: you can increase rustc's stack size by setting RUST_MIN_STACK=16777216
warning: `uniffi_bindgen` (lib) generated 6 warnings (6 duplicates)
error: could not compile `uniffi_bindgen` (lib); 6 warnings emitted

Caused by:
  process didn't exit successfully: `CARGO=/usr/bin/cargo 
CARGO_CRATE_NAME=uniffi_bindgen 
CARGO_MANIFEST_DIR=/build/reproducible-path/thunderbird-128.7.0esr/comm/third_party/rust/uniffi_bindgen
 
CARGO_MANIFEST_PATH=/build/reproducible-path/thunderbird-128.7.0esr/comm/third_party/rust/uniffi_bindgen/Cargo.toml
 CARGO_PKG_AUTHORS='Firefox Sync Team <sync-t...@mozilla.com>' 
CARGO_PKG_DESCRIPTION='a multi-language bindings generator for rust (codegen 
and cli tooling)' CARGO_PKG_HOMEPAGE='https://mozilla.github.io/uniffi-rs' 
CARGO_PKG_LICENSE=MPL-2.0 CARGO_PKG_LICENSE_FILE='' 
CARGO_PKG_NAME=uniffi_bindgen CARGO_PKG_README=README.md 
CARGO_PKG_REPOSITORY='https://github.com/mozilla/uniffi-rs' 
CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.27.1 CARGO_PKG_VERSION_MAJOR=0 
CARGO_PKG_VERSION_MINOR=27 CARGO_PKG_VERSION_PATCH=1 CARGO_PKG_VERSION_PRE='' 
LD_LIBRARY_PATH=/build/reproducible-path/thunderbird-128.7.0esr/obj-thunderbird/release/deps
 /usr/bin/rustc --crate-name uniffi_bindgen --edition=2021 
/build/reproducible-path/thunderbird-128.7.0esr/comm/third_party/rust/uniffi_bindgen/src/lib.rs
 --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat 
--crate-type lib --emit=dep-info,metadata,link -C opt-level=2 -C 
embed-bitcode=no --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, 
values("clap"))' -C metadata=277343d9ff8cb23d -C 
extra-filename=-277343d9ff8cb23d --out-dir 
/build/reproducible-path/thunderbird-128.7.0esr/obj-thunderbird/x86_64-unknown-linux-gnu/release/deps
 --target x86_64-unknown-linux-gnu -C 
linker=/build/reproducible-path/thunderbird-128.7.0esr/build/cargo-linker -C 
strip=debuginfo -L 
dependency=/build/reproducible-path/thunderbird-128.7.0esr/obj-thunderbird/x86_64-unknown-linux-gnu/release/deps
 -L 
dependency=/build/reproducible-path/thunderbird-128.7.0esr/obj-thunderbird/release/deps
 --extern 
anyhow=/build/reproducible-path/thunderbird-128.7.0esr/obj-thunderbird/x86_64-unknown-linux-gnu/release/deps/libanyhow-5b12f6337a80cb07.rmeta
 --extern 
askama=/build/reproducible-path/thunderbird-128.7.0esr/obj-thunderbird/x86_64-unknown-linux-gnu/release/deps/libaskama-b82c6c9427a2eb20.rmeta
 --extern 
camino=/build/reproducible-path/thunderbird-128.7.0esr/obj-thunderbird/x86_64-unknown-linux-gnu/release/deps/libcamino-209fad3f9cd8363d.rmeta
 --extern 
cargo_metadata=/build/reproducible-path/thunderbird-128.7.0esr/obj-thunderbird/x86_64-unknown-linux-gnu/release/deps/libcargo_metadata-8bc3173c9a7984ba.rmeta
 --extern 
fs_err=/build/reproducible-path/thunderbird-128.7.0esr/obj-thunderbird/x86_64-unknown-linux-gnu/release/deps/libfs_err-fe148970bb1abfb2.rmeta
 --extern 
glob=/build/reproducible-path/thunderbird-128.7.0esr/obj-thunderbird/x86_64-unknown-linux-gnu/release/deps/libglob-d49cad37eec8a287.rmeta
 --extern 
goblin=/build/reproducible-path/thunderbird-128.7.0esr/obj-thunderbird/x86_64-unknown-linux-gnu/release/deps/libgoblin-e5f3821f67a6ff97.rmeta
 --extern 
heck=/build/reproducible-path/thunderbird-128.7.0esr/obj-thunderbird/x86_64-unknown-linux-gnu/release/deps/libheck-c7358308f9220ebf.rmeta
 --extern 
once_cell=/build/reproducible-path/thunderbird-128.7.0esr/obj-thunderbird/x86_64-unknown-linux-gnu/release/deps/libonce_cell-2678ee8fa66227a8.rmeta
 --extern 
paste=/build/reproducible-path/thunderbird-128.7.0esr/obj-thunderbird/release/deps/libpaste-e94b9e46fa7e258e.so
 --extern 
serde=/build/reproducible-path/thunderbird-128.7.0esr/obj-thunderbird/x86_64-unknown-linux-gnu/release/deps/libserde-8023497ca86ebfa1.rmeta
 --extern 
textwrap=/build/reproducible-path/thunderbird-128.7.0esr/obj-thunderbird/x86_64-unknown-linux-gnu/release/deps/libtextwrap-93a0c6009392eb06.rmeta
 --extern 
toml=/build/reproducible-path/thunderbird-128.7.0esr/obj-thunderbird/x86_64-unknown-linux-gnu/release/deps/libtoml-5c89b0c6b5f36da3.rmeta
 --extern 
uniffi_meta=/build/reproducible-path/thunderbird-128.7.0esr/obj-thunderbird/x86_64-unknown-linux-gnu/release/deps/libuniffi_meta-cfd7e737577240cf.rmeta
 --extern 
uniffi_testing=/build/reproducible-path/thunderbird-128.7.0esr/obj-thunderbird/x86_64-unknown-linux-gnu/release/deps/libuniffi_testing-3799f552cfa7acc2.rmeta
 --extern 
uniffi_udl=/build/reproducible-path/thunderbird-128.7.0esr/obj-thunderbird/x86_64-unknown-linux-gnu/release/deps/libuniffi_udl-f462fd37ce39d64c.rmeta
 --cap-lints warn -C debuginfo=2 --cap-lints warn -Cembed-bitcode=yes -C 
codegen-units=1` (signal: 11, SIGSEGV: invalid memory reference)
-->8--

Newer versions of Thunderbird (like 135.0-1 in experimental) build fine
with rustc 1.84, because they use a newer uniffi_bindgen (v0.28.2).
Fabian Grünbichler uploaded rustc 1.85 on Monday into experimental which
build Thunderbird 1:128.6.0esr-1 (and a newer temporary version
1:128.7.0esr-1). I hope rustc 1.85 gets released in the near future to
get Thunderbird build again. Porting uniffi_bindgen to v0.28.2 is not an
option, because the mozilla people invest a lot of effort to fix all
necessary code dependencies.

Cheers,
Christoph

[1] 
https://salsa.debian.org/mozilla-team/thunderbird/-/commit/691406526fa893140c14954ba7c1058e364d05d4

Reply via email to