Skip to content

Building Firefox with rustc 1.34.0-nightly fails with LLVM ERROR: broken function found. #58881

Closed
@emilio

Description

@emilio

Unfortunately I haven't been able to reproduce outside of the Firefox build system. I assume this is a regression from #58408, cc @alexcrichton.

 0:13.50 Wrong types for attribute: byval inalloca nest noalias nocapture nonnull readnone readonly signext sret zeroext dereferenceable(1) dereferenceable_or_null(1)
 0:13.50   call void (i8*, ...) %96(i8* %101, { i64, i64 } %115, { i64, i64 } %118, { [0 x i8]*, i64 } %120, { i64, i64 } byval noalias nocapture dereferenceable(16) %124, { [0 x i8]*, i64 }* %5), !dbg !1889
 0:13.50 in function _ZN97_$LT$cubeb_pulse..backend..context..PulseContext$u20$as$u20$cubeb_backend..traits..ContextOps$GT$34register_device_collection_changed17update_collection17h9f106daf4cf87a02E
 0:13.50 LLVM ERROR: Broken function found, compilation aborted!
 0:13.64 error: Could not compile `cubeb-pulse`.
 0:13.67 Caused by:
 0:13.67   process didn't exit successfully: `CARGO_MANIFEST_DIR=/home/emilio/src/moz/gecko/media/libcubeb/cubeb-pulse-rs CARGO_PKG_VERSION_PRE= CARGO_PKG_NAME=cubeb-pulse CARGO_PKG_HOMEPAGE= CARGO_PKG_AUTHORS='Dan Glastonbury <dglastonbury@mozilla.com>' CARGO_PKG_DESCRIPTION='Cubeb backed for PulseAudio written in Rust' LD_LIBRARY_PATH='/home/emilio/src/moz/gecko/obj-x86_64-pc-linux-gnu/debug/deps:/home/emilio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/emilio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_REPOSITORY= CARGO_PKG_VERSION_MINOR=2 CARGO=/home/emilio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION=0.2.0 /home/emilio/.cargo/bin/rustc --crate-name cubeb_pulse media/libcubeb/cubeb-pulse-rs/src/lib.rs --color always --crate-type staticlib --crate-type rlib --emit=dep-info,link -C opt-level=1 -C panic=abort -C debuginfo=2 -C debug-assertions=on --cfg 'feature="pulse-dlopen"' --cfg 'feature="pulse-ffi"' -C metadata=d5a9783431e388af -C extra-filename=-d5a9783431e388af --out-dir /home/emilio/src/moz/gecko/obj-x86_64-pc-linux-gnu/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C linker=/home/emilio/src/moz/gecko/build/cargo-linker -C incremental=/home/emilio/src/moz/gecko/obj-x86_64-pc-linux-gnu/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/home/emilio/src/moz/gecko/obj-x86_64-pc-linux-gnu/x86_64-unknown-linux-gnu/debug/deps -L dependency=/home/emilio/src/moz/gecko/obj-x86_64-pc-linux-gnu/debug/deps --extern cubeb_backend=/home/emilio/src/moz/gecko/obj-x86_64-pc-linux-gnu/x86_64-unknown-linux-gnu/debug/deps/libcubeb_backend-44de29cd13d09317.rlib --extern pulse=/home/emilio/src/moz/gecko/obj-x86_64-pc-linux-gnu/x86_64-unknown-linux-gnu/debug/deps/libpulse-1a07f564e62af458.rlib --extern pulse_ffi=/home/emilio/src/moz/gecko/obj-x86_64-pc-linux-gnu/x86_64-unknown-linux-gnu/debug/deps/libpulse_ffi-3634bc0fd9d2e2d4.rlib --extern semver=/home/emilio/src/moz/gecko/obj-x86_64-pc-linux-gnu/x86_64-unknown-linux-gnu/debug/deps/libsemver-d5bc6c91229d5335.rlib -C opt-level=0 -C debuginfo=2 -Dwarnings` (exit code: 101)

Metadata

Metadata

Assignees

Labels

A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-codegenArea: Code generationC-bugCategory: This is a bug.P-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions