Error building electron42 LLVM Producer Reader mismatch

I build Electron via poudriere. Since the port was updated to v42.11.14 my build has been failing with the linker error Not an int attribute (Producer: 'LLVM23.1.1-rust-1.99.1-stable' Reader: 'LLVM 22.1.8')

Code:
[ 19% 8495/42996] "python3" "../../build/toolchain/gcc_link_wrapper.py" --output="./transport_security_state_generator" -- c++ -fPIC -Wl,--thinlto-cache-dir=thinlto-cache -Wl,--thinlto-cache-policy=cache_size=10\%:cache_size_bytes=40g:cache_size_files=100000 -flto=thin -Wl,--thinlto-jobs=all -Wl,-mllvm,-import-instr-limit=30 -Wl,-mllvm,-disable-auto-upgrade-debug-info -Wl,-mllvm,-inlinehint-threshold=360 -fwhole-program-vtables -m64 -no-canonical-prefixes -Wl,-O2 -Wl,--gc-sections --unwindlib=none -nostdlib++ -Wl,--lto-O0 -fuse-ld=lld -Wl,--build-id=sha1 -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--icf=all -Wl,--color-diagnostics -Wl,--undefined-version -Wl,--no-call-graph-profile-sort -rdynamic -pie -Wl,--disable-new-dtags prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libstd.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/liballoc.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libcfg_if.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libcompiler_builtins.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libcore.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libgetopts.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libhashbrown.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libpanic_abort.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/librustc_demangle.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libstd_detect.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libtest.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libunwind.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libaddr2line.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libadler2.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libgimli.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/liblibc.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libmemchr.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libminiz_oxide.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libobject.rlib -L/usr/local/lib  -Wl,--undefined-version -L/usr/local/lib  -o "./transport_security_state_generator" -Wl,--start-group @"./transport_security_state_generator.rsp" -Wl,--end-group   -lpthread -lglib-2.0 -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lintl -lexecinfo -lkvm -lepoll-shim -lutil -lz -Wl,--start-group obj/third_party/rust/cxx/v1/lib/libcxx_lib.rlib obj/third_party/rust/foldhash/v0_2/lib/libfoldhash_lib.rlib obj/build/rust/allocator/liballocator_6ead5877.rlib obj/build/rust/allocator/liballoc_error_handler_impl_ffi.rlib obj/base/logging/librust_logger_5c984a66.rlib obj/base/logging/liblog_severity_bindgen_5c984a66.rlib obj/third_party/rust/log/v0_4/lib/liblog_lib.rlib obj/build/rust/chromium_prelude/libchromium.rlib obj/third_party/rust/serde_json_lenient/v0_2/wrapper/libwrapper_a1515e45.rlib obj/third_party/rust/serde/v1/lib/libserde_lib.rlib obj/third_party/rust/serde_core/v1/lib/libserde_core_lib.rlib obj/third_party/rust/serde_json_lenient/v0_2/lib/libserde_json_lenient_lib.rlib obj/third_party/rust/itoa/v1/lib/libitoa_lib.rlib obj/third_party/rust/memchr/v2/lib/libmemchr_lib.rlib obj/third_party/rust/ryu/v1/lib/libryu_lib.rlib -Wl,--end-group
FAILED: [code=1] transport_security_state_generator
"python3" "../../build/toolchain/gcc_link_wrapper.py" --output="./transport_security_state_generator" -- c++ -fPIC -Wl,--thinlto-cache-dir=thinlto-cache -Wl,--thinlto-cache-policy=cache_size=10\%:cache_size_bytes=40g:cache_size_files=100000 -flto=thin -Wl,--thinlto-jobs=all -Wl,-mllvm,-import-instr-limit=30 -Wl,-mllvm,-disable-auto-upgrade-debug-info -Wl,-mllvm,-inlinehint-threshold=360 -fwhole-program-vtables -m64 -no-canonical-prefixes -Wl,-O2 -Wl,--gc-sections --unwindlib=none -nostdlib++ -Wl,--lto-O0 -fuse-ld=lld -Wl,--build-id=sha1 -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--icf=all -Wl,--color-diagnostics -Wl,--undefined-version -Wl,--no-call-graph-profile-sort -rdynamic -pie -Wl,--disable-new-dtags prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libstd.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/liballoc.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libcfg_if.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libcompiler_builtins.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libcore.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libgetopts.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libhashbrown.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libpanic_abort.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/librustc_demangle.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libstd_detect.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libtest.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libunwind.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libaddr2line.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libadler2.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libgimli.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/liblibc.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libmemchr.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libminiz_oxide.rlib prebuilt_rustc_sysroot/lib/rustlib/x86_64-unknown-freebsd/lib/libobject.rlib -L/usr/local/lib  -Wl,--undefined-version -L/usr/local/lib  -o "./transport_security_state_generator" -Wl,--start-group @"./transport_security_state_generator.rsp" -Wl,--end-group   -lpthread -lglib-2.0 -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lintl -lexecinfo -lkvm -lepoll-shim -lutil -lz -Wl,--start-group obj/third_party/rust/cxx/v1/lib/libcxx_lib.rlib obj/third_party/rust/foldhash/v0_2/lib/libfoldhash_lib.rlib obj/build/rust/allocator/liballocator_6ead5877.rlib obj/build/rust/allocator/liballoc_error_handler_impl_ffi.rlib obj/base/logging/librust_logger_5c984a66.rlib obj/base/logging/liblog_severity_bindgen_5c984a66.rlib obj/third_party/rust/log/v0_4/lib/liblog_lib.rlib obj/build/rust/chromium_prelude/libchromium.rlib obj/third_party/rust/serde_json_lenient/v0_2/wrapper/libwrapper_a1515e45.rlib obj/third_party/rust/serde/v1/lib/libserde_lib.rlib obj/third_party/rust/serde_core/v1/lib/libserde_core_lib.rlib obj/third_party/rust/serde_json_lenient/v0_2/lib/libserde_json_lenient_lib.rlib obj/third_party/rust/itoa/v1/lib/libitoa_lib.rlib obj/third_party/rust/memchr/v2/lib/libmemchr_lib.rlib obj/third_party/rust/ryu/v1/lib/libryu_lib.rlib -Wl,--end-group
clang++: warning: argument unused during compilation: '--unwindlib=none' [-Wunused-command-line-argument]
ld.lld: error: obj/third_party/rust/cxx/v1/lib/libcxx_lib.rlib(libcxx_lib.cxx.8e755ce130c7673f-cgu.0.rcgu.o): Not an int attribute (Producer: 'LLVM23.1.1-rust-1.99.1-stable' Reader: 'LLVM 22.1.8')
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

I looked through the build-depends portion of the log, and I only see references to llvm19 and llvm22. I don't understand why llvm23 is being used. Has anyone seen this problem before and could help me figure out the issue?

Thanks!
 
Back
Top