Package Details: librewolf 133.0.3-1

Git Clone URL: https://aur.archlinux.org/librewolf.git (read-only, click to copy)
Package Base: librewolf
Description: Community-maintained fork of Firefox, focused on privacy, security and freedom.
Upstream URL: https://librewolf.net/
Keywords: browser web
Licenses: GPL, MPL, LGPL
Submitter: lsf
Maintainer: lsf
Last Packager: lsf
Votes: 144
Popularity: 4.35
First Submitted: 2019-06-14 18:41 (UTC)
Last Updated: 2024-12-15 09:44 (UTC)

Dependencies (58)

Sources (3)

Latest Comments

« First ‹ Previous 1 .. 14 15 16 17 18 19 20 21 22 23 24 .. 28 Next › Last »

lsf commented on 2021-10-31 10:03 (UTC)

When directly using makechrootpkg, you can just install specific packages for a build by adding -I /path/to/some.pkg.tar.zst. I'm not sure if you can also do that with the paru chroot option (seems like you could install specific packages before running a build using --chrootctl and -i, but I've never tried it – maybe it will be thwarted by paru updating things?

…and if all else failed, that should be fixed with upcoming firefox/librewolf releases – those usually get configured for the newer/current rust versions ^^

Neko-san commented on 2021-10-31 00:39 (UTC)

How do I do that in the chroot?

lsf commented on 2021-10-30 23:30 (UTC)

You might want to try building it with rust 1.55 – the upstream firefox sources probably won't support 1.56 (1.55 was current when librewolf 93.0 was released).

Neko-san commented on 2021-10-30 22:20 (UTC) (edited on 2021-10-30 22:26 (UTC) by Neko-san)

And in the chroot, it seems to go through fine until it throws a lot of rust errors:

I also needed:

  CFLAGS="${CFLAGS/-fno-plt/}"
  CXXFLAGS="${CXXFLAGS/-fno-plt/}"

enabled to prevent the earlier issue

1:09.01    Compiling crossbeam-queue v0.1.2
 1:09.55 error[E0557]: feature has been removed
 1:09.55    --> /build/librewolf/src/firefox-93.0/third_party/rust/packed_simd/src/lib.rs:203:5
 1:09.55     |
 1:09.55 203 |     const_generics,
 1:09.55     |     ^^^^^^^^^^^^^^ feature has been removed
 1:09.55     |
 1:09.55     = note: removed in favor of `#![feature(adt_const_params]` and `#![feature(generic_const_exprs)]`
 1:10.67    Compiling idna v0.2.0
 1:10.99    Compiling hashlink v0.6.0
 1:11.13    Compiling fallible_collections v0.4.2
 1:11.16 error: type parameters must be declared prior to const parameters
 1:11.16   --> /build/librewolf/src/firefox-93.0/third_party/rust/packed_simd/src/codegen/llvm.rs:20:54
 1:11.16    |
 1:11.16 20 | pub unsafe fn __shuffle_vector2<const IDX: [u32; 2], T, U>(x: T, y: T) -> U
 1:11.16    |                                ----------------------^--^- help: reorder the parameters: lifetimes, then types, then consts: `<T, U, const IDX: [u32; 2]>`
 1:11.16 error: type parameters must be declared prior to const parameters
 1:11.16   --> /build/librewolf/src/firefox-93.0/third_party/rust/packed_simd/src/codegen/llvm.rs:30:54
 1:11.16    |
 1:11.16 30 | pub unsafe fn __shuffle_vector4<const IDX: [u32; 4], T, U>(x: T, y: T) -> U
 1:11.16    |                                ----------------------^--^- help: reorder the parameters: lifetimes, then types, then consts: `<T, U, const IDX: [u32; 4]>`
 1:11.17 error: type parameters must be declared prior to const parameters
 1:11.17   --> /build/librewolf/src/firefox-93.0/third_party/rust/packed_simd/src/codegen/llvm.rs:40:54
 1:11.17    |
 1:11.17 40 | pub unsafe fn __shuffle_vector8<const IDX: [u32; 8], T, U>(x: T, y: T) -> U
 1:11.17    |                                ----------------------^--^- help: reorder the parameters: lifetimes, then types, then consts: `<T, U, const IDX: [u32; 8]>`
 1:11.17 error: type parameters must be declared prior to const parameters
 1:11.17   --> /build/librewolf/src/firefox-93.0/third_party/rust/packed_simd/src/codegen/llvm.rs:50:56
 1:11.17    |
 1:11.17 50 | pub unsafe fn __shuffle_vector16<const IDX: [u32; 16], T, U>(x: T, y: T) -> U
 1:11.17    |                                 -----------------------^--^- help: reorder the parameters: lifetimes, then types, then consts: `<T, U, const IDX: [u32; 16]>`
 1:11.17 error: type parameters must be declared prior to const parameters
 1:11.17   --> /build/librewolf/src/firefox-93.0/third_party/rust/packed_simd/src/codegen/llvm.rs:60:56
 1:11.17    |
 1:11.17 60 | pub unsafe fn __shuffle_vector32<const IDX: [u32; 32], T, U>(x: T, y: T) -> U
 1:11.17    |                                 -----------------------^--^- help: reorder the parameters: lifetimes, then types, then consts: `<T, U, const IDX: [u32; 32]>`
 1:11.17 error: type parameters must be declared prior to const parameters
 1:11.17   --> /build/librewolf/src/firefox-93.0/third_party/rust/packed_simd/src/codegen/llvm.rs:70:56
 1:11.17    |
 1:11.17 70 | pub unsafe fn __shuffle_vector64<const IDX: [u32; 64], T, U>(x: T, y: T) -> U
 1:11.17    |                                 -----------------------^--^- help: reorder the parameters: lifetimes, then types, then consts: `<T, U, const IDX: [u32; 64]>`
 1:11.50    Compiling cubeb-sys v0.9.0
 1:11.56    Compiling unic-langid v0.9.0
 1:12.54 chrome
 1:12.56    Compiling rustc_version v0.2.3
 1:12.95    Compiling gpu-descriptor-types v0.1.1
 1:13.11    Compiling gpu-alloc-types v0.2.0
 1:13.14    Compiling quote v1.0.9
 1:13.51    Compiling ffi-support v0.4.3
 1:13.52    Compiling dogear v0.4.0
 1:13.58    Compiling tokio-current-thread v0.1.6
 1:13.79    Compiling tokio-timer v0.2.11
 1:14.04    Compiling time v0.1.43
 1:14.08    Compiling iovec v0.1.4
 1:14.21 error: `[u32; 2]` is forbidden as the type of a const generic parameter
 1:14.21   --> /build/librewolf/src/firefox-93.0/third_party/rust/packed_simd/src/codegen/llvm.rs:20:44
 1:14.21    |
 1:14.21 20 | pub unsafe fn __shuffle_vector2<const IDX: [u32; 2], T, U>(x: T, y: T) -> U
 1:14.21    |                                            ^^^^^^^^
 1:14.21    |
 1:14.21    = note: the only supported types are integers, `bool` and `char`
 1:14.21    = help: more complex types are supported with `#![feature(adt_const_params)]`
 1:14.21 error: `[u32; 4]` is forbidden as the type of a const generic parameter
 1:14.21   --> /build/librewolf/src/firefox-93.0/third_party/rust/packed_simd/src/codegen/llvm.rs:30:44
 1:14.21    |
 1:14.21 30 | pub unsafe fn __shuffle_vector4<const IDX: [u32; 4], T, U>(x: T, y: T) -> U
 1:14.21    |                                            ^^^^^^^^
 1:14.21    |
 1:14.21    = note: the only supported types are integers, `bool` and `char`
 1:14.21    = help: more complex types are supported with `#![feature(adt_const_params)]`
 1:14.21 error: `[u32; 8]` is forbidden as the type of a const generic parameter
 1:14.21   --> /build/librewolf/src/firefox-93.0/third_party/rust/packed_simd/src/codegen/llvm.rs:40:44
 1:14.21    |
 1:14.21 40 | pub unsafe fn __shuffle_vector8<const IDX: [u32; 8], T, U>(x: T, y: T) -> U
 1:14.21    |                                            ^^^^^^^^
 1:14.21    |
 1:14.21    = note: the only supported types are integers, `bool` and `char`
 1:14.21    = help: more complex types are supported with `#![feature(adt_const_params)]`
 1:14.21 error: `[u32; 16]` is forbidden as the type of a const generic parameter
 1:14.21   --> /build/librewolf/src/firefox-93.0/third_party/rust/packed_simd/src/codegen/llvm.rs:50:45
 1:14.21    |
 1:14.21 50 | pub unsafe fn __shuffle_vector16<const IDX: [u32; 16], T, U>(x: T, y: T) -> U
 1:14.21    |                                             ^^^^^^^^^
 1:14.21    |
 1:14.21    = note: the only supported types are integers, `bool` and `char`
 1:14.21    = help: more complex types are supported with `#![feature(adt_const_params)]`
 1:14.21 error: `[u32; 32]` is forbidden as the type of a const generic parameter
 1:14.21   --> /build/librewolf/src/firefox-93.0/third_party/rust/packed_simd/src/codegen/llvm.rs:60:45
 1:14.21    |
 1:14.21 60 | pub unsafe fn __shuffle_vector32<const IDX: [u32; 32], T, U>(x: T, y: T) -> U
 1:14.21    |                                             ^^^^^^^^^
 1:14.21    |
 1:14.21    = note: the only supported types are integers, `bool` and `char`
 1:14.21    = help: more complex types are supported with `#![feature(adt_const_params)]`
 1:14.21 error: `[u32; 64]` is forbidden as the type of a const generic parameter
 1:14.21   --> /build/librewolf/src/firefox-93.0/third_party/rust/packed_simd/src/codegen/llvm.rs:70:45
 1:14.21    |
 1:14.21 70 | pub unsafe fn __shuffle_vector64<const IDX: [u32; 64], T, U>(x: T, y: T) -> U
 1:14.21    |                                             ^^^^^^^^^
 1:14.21    |
 1:14.21    = note: the only supported types are integers, `bool` and `char`
 1:14.21    = help: more complex types are supported with `#![feature(adt_const_params)]`
 1:14.25    Compiling num_cpus v1.13.0
 1:14.33    Compiling atty v0.2.14
 1:14.38    Compiling net2 v0.2.37
 1:14.38    Compiling hashglobe v0.1.0 (/build/librewolf/src/firefox-93.0/servo/components/hashglobe)
 1:14.43    Compiling zeitstempel v0.1.1
 1:14.50    Compiling memmap2 v0.2.3
 1:15.03    Compiling raw-window-handle v0.3.3
 1:15.15    Compiling dirs-sys v0.3.5
 1:15.16    Compiling freetype v0.7.0
 1:15.23    Compiling pulse-ffi v0.1.0 (https://github.com/mozilla/cubeb-pulse-rs?rev=0d168cc5be8865b21694b1b0c5a1c810de104e46#0d168cc5)
 1:15.25    Compiling libudev-sys v0.1.3 (/build/librewolf/src/firefox-93.0/dom/webauthn/libudev-sys)
 1:15.28    Compiling socket2 v0.3.19
 1:15.60    Compiling memmap2 v0.3.0
 1:15.85    Compiling memmap v0.7.0
 1:16.44    Compiling aho-corasick v0.7.18
 1:16.67 For more information about this error, try `rustc --explain E0557`.
 1:16.70 The following warnings were emitted during compilation:
 1:16.70 warning: Cannot set `RUSTC_BOOTSTRAP=1` from build script of `packed_simd v0.3.4 (https://github.com/hsivonen/packed_simd?rev=6a16f954950401b92b4e220fbf2dfaf6f00e1fb2#6a16f954)`.
 1:16.70 note: Crates cannot set `RUSTC_BOOTSTRAP` themselves, as doing so would subvert the stability guarantees of Rust for your project.
 1:16.70 error: could not compile `packed_simd` due to 13 previous errors
 1:16.70 warning: build failed, waiting for other jobs to finish...
 1:16.70 config/external/ffi
 1:16.75 config/external/icu/common
 1:17.02 /build/librewolf/src/firefox-93.0/js/src/ctypes/libffi/src/closures.c:748:29: warning: comparison of integers of different signs: 'off_t' (aka 'long') and 'size_t' (aka 'unsigned long') [-Wsign-compare]
 1:17.02       off_t to_write = (len < page_size) ? len : page_size;
 1:17.02                         ~~~ ^ ~~~~~~~~~
 1:17.28 config/external/icu/data/icu_data.o
 1:17.46 /build/librewolf/src/firefox-93.0/js/src/ctypes/libffi/src/java_raw_api.c:328:46: warning: 'ffi_java_raw_size' is deprecated [-Wdeprecated-declarations]
 1:17.46   ffi_java_raw *raw = (ffi_java_raw*)alloca (ffi_java_raw_size (cif));
 1:17.46                                              ^
 1:17.46 /build/librewolf/src/firefox-93.0/obj/js/src/ctypes/libffi/include/ffi.h:299:56: note: 'ffi_java_raw_size' has been explicitly marked deprecated here
 1:17.46 size_t ffi_java_raw_size (ffi_cif *cif) __attribute__((deprecated));
 1:17.46                                                        ^
 1:17.46 /build/librewolf/src/firefox-93.0/js/src/ctypes/libffi/src/java_raw_api.c:331:3: warning: 'ffi_java_ptrarray_to_raw' is deprecated [-Wdeprecated-declarations]
 1:17.46   ffi_java_ptrarray_to_raw (cif, avalue, raw);
 1:17.46   ^
 1:17.46 /build/librewolf/src/firefox-93.0/obj/js/src/ctypes/libffi/include/ffi.h:295:93: note: 'ffi_java_ptrarray_to_raw' has been explicitly marked deprecated here
 1:17.46 void ffi_java_ptrarray_to_raw (ffi_cif *cif, void **args, ffi_java_raw *raw) __attribute__((deprecated));
 1:17.46                                                                                             ^
 1:17.51 2 warnings generated.
 1:17.62 1 warning generated.
 1:18.13 config/external/ffi/unix64.o
 1:18.24 config/external/ffi/win64.o
 1:20.03 config/external/icu/i18n
 1:21.40 config/external/rlbox
 1:21.61 devtools/platform
 1:21.71 devtools/shared/heapsnapshot
 1:22.25 docshell/base
 1:22.27 docshell/base/timeline
 1:25.46 docshell/build
 1:25.60 docshell/shistory
 1:25.67 dom/abort
 1:25.73 dom/animation
 1:26.22 dom/audiochannel
 1:26.45 dom/base
 1:26.70 dom/battery
 1:28.98 dom/bindings
 1:29.14 dom/broadcastchannel
 1:30.54 dom/cache
 1:36.06 dom/canvas
 1:38.06 dom/clients/api
 1:38.08 dom/clients/manager
 2:15.29 dom/commandhandler
 2:20.05 dom/console
 2:21.92 error: build failed
 2:21.95 make[4]: *** [/build/librewolf/src/firefox-93.0/config/makefiles/rust.mk:406: force-cargo-library-build] Error 101
 2:21.95 make[3]: *** [/build/librewolf/src/firefox-93.0/config/recurse.mk:72: toolkit/library/rust/target] Error 2
 2:21.95 make[3]: *** Waiting for unfinished jobs....
 3:55.97 make[2]: *** [/build/librewolf/src/firefox-93.0/config/recurse.mk:34: compile] Error 2
 3:55.97 make[1]: *** [/build/librewolf/src/firefox-93.0/config/rules.mk:358: default] Error 2
 3:55.99 make: *** [client.mk:65: build] Error 2
 3:56.04 4 compiler warnings present.
 Config object not found by mach.
Configure complete!
Be sure to run |mach build| to pick up any changes
==> ERROR: A failure occurred in build().
    Aborting...

Neko-san commented on 2021-10-30 19:06 (UTC) (edited on 2021-10-30 22:53 (UTC) by Neko-san)

I finally figured out the reason why, I think? In the first block of configure statements (around where Clang is declared), the "ac" command for adding lld isn't declared at the time and the build system just refuses to assume what should be used, for some reason. :/

(Also, I had to pass !lto as a PKGBUILD option [because I have it enabled in makepkg.conf] or else the "instrumented build" fails in some parts)

So, when it gets to the "instrumented" build phase, it doesn't know what to do and fails

I have no idea why it doesn't fail for you guys :/

The "optimized" build part fails for me though but for a different reason:

12:00.05 media/ffvpx/libavcodec/libmozavcodec.so
12:07.03 toolkit/library/build/libxul.so
13:37.88 Wrong types for attribute: inalloca nest noalias nocapture noundef nonnull readnone readonly signext zeroext byref(void) byval(void) preallocated(void) sret(void) align 1 dereferenceable(1) dereferenceable_or_null(1)
13:37.88 void (i32, i64**)* @"_ZN10wgpu_types1_79_$LT$impl$u20$serde..ser..Serialize$u20$for$u20$wgpu_types..CompareFunction$GT$9serialize17hd5ec5d9e5da5552eE"
13:37.88 Wrong types for attribute: inalloca nest noalias nocapture noundef nonnull readnone readonly signext zeroext byref(void) byval(void) preallocated(void) sret(void) align 1 dereferenceable(1) dereferenceable_or_null(1)
13:37.88 void (i32, i64**)* @"_ZN10wgpu_types1_84_$LT$impl$u20$serde..ser..Serialize$u20$for$u20$wgpu_types..TextureViewDimension$GT$9serialize17hce7c57ae7960971fE"
13:38.03 Wrong types for attribute: inalloca nest noalias nocapture noundef nonnull readnone readonly signext zeroext byref(void) byval(void) preallocated(void) sret(void) align 1 dereferenceable(1) dereferenceable_or_null(1)
13:38.03 void (i64**, i32, i32, i32)* @"_ZN83_$LT$bincode..ser..Compound$LT$W$C$O$GT$$u20$as$u20$serde..ser..SerializeStruct$GT$15serialize_field17h3ddd8cc63b00fbc0E"
13:38.03 Wrong types for attribute: inalloca nest noalias nocapture noundef nonnull readnone readonly signext zeroext byref(void) byval(void) preallocated(void) sret(void) align 1 dereferenceable(1) dereferenceable_or_null(1)
13:38.14   call fastcc align 8 void @"_ZN83_$LT$bincode..ser..Compound$LT$W$C$O$GT$$u20$as$u20$serde..ser..SerializeStruct$GT$15serialize_field17h8632589ed622bc4bE"(i64** nonnull align 8 dereferenceable(8) Wrong types for attribute: inalloca nest noalias nocapture noundef nonnull readnone readonly signext zeroext byref(void) byval(void) preallocated(void) sret(void) align 1 dereferenceable(1) dereferenceable_or_null(1)
13:38.14 void (%"style::gecko::traversal::RecalcStyleOnly"*, i64*, i64*)* @_ZN5style6driver12traverse_dom17h642151276aaf8ce2E
13:38.18 %15, i32 %1) #19, !dbg !290190
13:38.18 Wrong types for attribute: inalloca nest noalias nocapture noundef nonnull readnone readonly signext zeroext byref(void) byval(void) preallocated(void) sret(void) align 1 dereferenceable(1) dereferenceable_or_null(1)
13:38.18   call fastcc align 8 void @"_ZN83_$LT$bincode..ser..Compound$LT$W$C$O$GT$$u20$as$u20$serde..ser..SerializeStruct$GT$15serialize_field17h8632589ed622bc4bE"(i64** nonnull align 8 dereferenceable(8) %15, i32 %2) #19, !dbg !290190
13:38.18 Wrong types for attribute: inalloca nest noalias nocapture noundef nonnull readnone readonly signext zeroext byref(void) byval(void) preallocated(void) sret(void) align 1 dereferenceable(1) dereferenceable_or_null(1)
13:38.18 void (i64**, i32)* @"_ZN83_$LT$bincode..ser..Compound$LT$W$C$O$GT$$u20$as$u20$serde..ser..SerializeStruct$GT$15serialize_field17h8632589ed622bc4bE"
13:38.18 Wrong types for attribute: inalloca nest noalias nocapture noundef nonnull readnone readonly signext zeroext byref(void) byval(void) preallocated(void) sret(void) align 1 dereferenceable(1) dereferenceable_or_null(1)
13:38.18 void (i64**, i32)* @"_ZN83_$LT$bincode..ser..Compound$LT$W$C$O$GT$$u20$as$u20$serde..ser..SerializeStruct$GT$15serialize_field17ha96a9cc0fb4fdda1E"
13:38.40 Wrong types for attribute: inalloca nest noalias nocapture noundef nonnull readnone readonly signext zeroext byref(void) byval(void) preallocated(void) sret(void) align 1 dereferenceable(1) dereferenceable_or_null(1)
13:38.40   call fastcc align 8 void @"_ZN10wgpu_types1_84_$LT$impl$u20$serde..ser..Serialize$u20$for$u20$wgpu_types..TextureViewDimension$GT$9serialize17hce7c57ae7960971fE"(i32 %616, i64** nonnull align 8 dereferenceable(8) %25) #19, !dbg !634425
13:38.40 Wrong types for attribute: inalloca nest noalias nocapture noundef nonnull readnone readonly signext zeroext byref(void) byval(void) preallocated(void) sret(void) align 1 dereferenceable(1) dereferenceable_or_null(1)
13:38.54   call fastcc align 8 void @_ZN5style6driver12traverse_dom17h642151276aaf8ce2E(%"style::gecko::traversal::RecalcStyleOnly"* noalias nonnull readonly align 8 dereferenceable(64) Wrong types for attribute: inalloca nest noalias nocapture noundef nonnull readnone readonly signext zeroext byref(void) byval(void) preallocated(void) sret(void) align 1 dereferenceable(1) dereferenceable_or_null(1)
13:38.55   tail call fastcc align 8 void @"_ZN10wgpu_types1_79_$LT$impl$u20$serde..ser..Serialize$u20$for$u20$wgpu_types..CompareFunction$GT$9serialize17hd5ec5d9e5da5552eE"(i32 %2464, i64** nonnull align 8 dereferenceable(8) %1) #19, !dbg !826921
13:38.55 Wrong types for attribute: inalloca nest noalias nocapture noundef nonnull readnone readonly signext zeroext byref(void) byval(void) preallocated(void) sret(void) align 1 dereferenceable(1) dereferenceable_or_null(1)
13:38.55   tail call fastcc align 8 void @"_ZN10wgpu_types1_84_$LT$impl$u20$serde..ser..Serialize$u20$for$u20$wgpu_types..TextureViewDimension$GT$9serialize17hce7c57ae7960971fE"(i32 %4201, i64** nonnull align 8 dereferenceable(8) %1) #19, !dbg !833066
13:38.55 Wrong types for attribute: inalloca nest noalias nocapture noundef nonnull readnone readonly signext zeroext byref(void) byval(void) preallocated(void) sret(void) align 1 dereferenceable(1) dereferenceable_or_null(1)
13:38.55   tail call fastcc align 8 void @"_ZN10wgpu_types1_84_$LT$impl$u20$serde..ser..Serialize$u20$for$u20$wgpu_types..TextureViewDimension$GT$9serialize17hce7c57ae7960971fE"(i32 %4390, i64** nonnull align 8 dereferenceable(8) %1) #19, !dbg !833729
13:38.56 Wrong types for attribute: inalloca nest noalias nocapture noundef nonnull readnone readonly signext zeroext byref(void) byval(void) preallocated(void) sret(void) align 1 dereferenceable(1) dereferenceable_or_null(1)
13:38.56   tail call fastcc align 8 void @"_ZN10wgpu_types1_79_$LT$impl$u20$serde..ser..Serialize$u20$for$u20$wgpu_types..CompareFunction$GT$9serialize17hd5ec5d9e5da5552eE"(i32 %10482, i64** nonnull align 8 dereferenceable(8) %1) #19, !dbg !854743
13:38.56 Wrong types for attribute: inalloca nest noalias nocapture noundef nonnull readnone readonly signext zeroext byref(void) byval(void) preallocated(void) sret(void) align 1 dereferenceable(1) dereferenceable_or_null(1)
13:38.56   tail call fastcc align 8 void @"_ZN10wgpu_types1_79_$LT$impl$u20$serde..ser..Serialize$u20$for$u20$wgpu_types..CompareFunction$GT$9serialize17hd5ec5d9e5da5552eE"(i32 %10487, i64** nonnull align 8 dereferenceable(8) %1) #19, !dbg !854841
13:38.56 Wrong types for attribute: inalloca nest noalias nocapture noundef nonnull readnone readonly signext zeroext byref(void) byval(void) preallocated(void) sret(void) align 1 dereferenceable(1) dereferenceable_or_null(1)
13:38.56   call fastcc align 8 void @"_ZN83_$LT$bincode..ser..Compound$LT$W$C$O$GT$$u20$as$u20$serde..ser..SerializeStruct$GT$15serialize_field17ha96a9cc0fb4fdda1E"(i64** nonnull align 8 dereferenceable(8) %394, i32 %10489) #19, !dbg !854838
13:38.56 Wrong types for attribute: inalloca nest noalias nocapture noundef nonnull readnone readonly signext zeroext byref(void) byval(void) preallocated(void) sret(void) align 1 dereferenceable(1) dereferenceable_or_null(1)
13:38.56   call fastcc align 8 void @"_ZN83_$LT$bincode..ser..Compound$LT$W$C$O$GT$$u20$as$u20$serde..ser..SerializeStruct$GT$15serialize_field17ha96a9cc0fb4fdda1E"(i64** nonnull align 8 dereferenceable(8) %394, i32 %10492) #19, !dbg !854838
13:38.56 Wrong types for attribute: inalloca nest noalias nocapture noundef nonnull readnone readonly signext zeroext byref(void) byval(void) preallocated(void) sret(void) align 1 dereferenceable(1) dereferenceable_or_null(1)
13:38.56   call fastcc align 8 void @"_ZN83_$LT$bincode..ser..Compound$LT$W$C$O$GT$$u20$as$u20$serde..ser..SerializeStruct$GT$15serialize_field17ha96a9cc0fb4fdda1E"(i64** nonnull align 8 dereferenceable(8) %394, i32 %10494) #19, !dbg !854838
13:38.56 Wrong types for attribute: inalloca nest noalias nocapture noundef nonnull readnone readonly signext zeroext byref(void) byval(void) preallocated(void) sret(void) align 1 dereferenceable(1) dereferenceable_or_null(1)
13:38.56   tail call fastcc align 8 void @"_ZN10wgpu_types1_79_$LT$impl$u20$serde..ser..Serialize$u20$for$u20$wgpu_types..CompareFunction$GT$9serialize17hd5ec5d9e5da5552eE"(i32 %10499, i64** nonnull align 8 dereferenceable(8) %1) #19, !dbg !854859
13:38.56 Wrong types for attribute: inalloca nest noalias nocapture noundef nonnull readnone readonly signext zeroext byref(void) byval(void) preallocated(void) sret(void) align 1 dereferenceable(1) dereferenceable_or_null(1)
13:38.56   call fastcc align 8 void @"_ZN83_$LT$bincode..ser..Compound$LT$W$C$O$GT$$u20$as$u20$serde..ser..SerializeStruct$GT$15serialize_field17ha96a9cc0fb4fdda1E"(i64** nonnull align 8 dereferenceable(8) %393, i32 %10501) #19, !dbg !854856
13:38.56 Wrong types for attribute: inalloca nest noalias nocapture noundef nonnull readnone readonly signext zeroext byref(void) byval(void) preallocated(void) sret(void) align 1 dereferenceable(1) dereferenceable_or_null(1)
13:38.56   call fastcc align 8 void @"_ZN83_$LT$bincode..ser..Compound$LT$W$C$O$GT$$u20$as$u20$serde..ser..SerializeStruct$GT$15serialize_field17ha96a9cc0fb4fdda1E"(i64** nonnull align 8 dereferenceable(8) %393, i32 %10504) #19, !dbg !854856
13:38.56 Wrong types for attribute: inalloca nest noalias nocapture noundef nonnull readnone readonly signext zeroext byref(void) byval(void) preallocated(void) sret(void) align 1 dereferenceable(1) dereferenceable_or_null(1)
13:38.56   call fastcc align 8 void @"_ZN83_$LT$bincode..ser..Compound$LT$W$C$O$GT$$u20$as$u20$serde..ser..SerializeStruct$GT$15serialize_field17ha96a9cc0fb4fdda1E"(i64** nonnull align 8 dereferenceable(8) %393, i32 %10506) #19, !dbg !854856
13:38.56 Wrong types for attribute: inalloca nest noalias nocapture noundef nonnull readnone readonly signext zeroext byref(void) byval(void) preallocated(void) sret(void) align 1 dereferenceable(1) dereferenceable_or_null(1)
13:38.56   call fastcc align 8 void @"_ZN83_$LT$bincode..ser..Compound$LT$W$C$O$GT$$u20$as$u20$serde..ser..SerializeStruct$GT$15serialize_field17h3ddd8cc63b00fbc0E"(i64** nonnull align 8 dereferenceable(8) %395, i32 %11302, i32 %11304, i32 %11305) #19, !dbg !857810
13:38.56 Wrong types for attribute: inalloca nest noalias nocapture noundef nonnull readnone readonly signext zeroext byref(void) byval(void) preallocated(void) sret(void) align 1 dereferenceable(1) dereferenceable_or_null(1)
13:38.56   call fastcc align 8 void @"_ZN83_$LT$bincode..ser..Compound$LT$W$C$O$GT$$u20$as$u20$serde..ser..SerializeStruct$GT$15serialize_field17h3ddd8cc63b00fbc0E"(i64** nonnull align 8 dereferenceable(8) %395, i32 %11307, i32 %11309, i32 %11311) #19, !dbg !857810
13:38.56 %17, i64* nonnull align 8 dereferenceable_or_null(128) %337, i64* noalias readonly align 8 dereferenceable_or_null(8) %347), !dbg !860187
13:38.56 Wrong types for attribute: inalloca nest noalias nocapture noundef nonnull readnone readonly signext zeroext byref(void) byval(void) preallocated(void) sret(void) align 1 dereferenceable(1) dereferenceable_or_null(1)
13:38.56   call fastcc align 8 void @_ZN5style6driver12traverse_dom17h642151276aaf8ce2E(%"style::gecko::traversal::RecalcStyleOnly"* noalias nonnull readonly align 8 dereferenceable(64) %17, i64* nonnull align 8 dereferenceable_or_null(128) %337, i64* noalias readonly align 8 dereferenceable_or_null(8) null), !dbg !860187
13:38.62 LLVM ERROR: Broken module found, compilation aborted!
13:38.62 PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
13:38.66  #0 0x00007f27b0657793 (/usr/bin/../lib/libLLVM-12.so+0xb49793)
13:38.66  #1 0x00007f27b0654e96 (/usr/bin/../lib/libLLVM-12.so+0xb46e96)
13:38.66  #2 0x00007f27afb00870 __restore_rt (/usr/bin/../lib/libpthread.so.0+0x13870)
13:38.66  #3 0x00007f27af747d22 raise (/usr/bin/../lib/libc.so.6+0x3cd22)
13:38.66  #4 0x00007f27af731862 abort (/usr/bin/../lib/libc.so.6+0x26862)
13:38.66  #5 0x00007f27b057b454 llvm::report_fatal_error(llvm::Twine const&, bool) (/usr/bin/../lib/libLLVM-12.so+0xa6d454)
13:38.66  #6 0x00007f27b057b5e8 (/usr/bin/../lib/libLLVM-12.so+0xa6d5e8)
13:38.66  #7 0x00007f27b0694bfb (/usr/bin/../lib/libLLVM-12.so+0xb86bfb)
13:38.66  #8 0x00007f27b11909c8 (/usr/bin/../lib/libLLVM-12.so+0x16829c8)
13:38.66  #9 0x00007f27b07d5aeb llvm::Module::materializeAll() (/usr/bin/../lib/libLLVM-12.so+0xcc7aeb)
13:38.66 #10 0x00007f27b118ff69 llvm::BitcodeModule::getModuleImpl(llvm::LLVMContext&, bool, bool, bool, llvm::function_ref<llvm::Optional<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > (llvm::StringRef)>) (/usr/bin/../lib/libLLVM-12.so+0x1681f69)
13:38.66 #11 0x00007f27b119002c llvm::BitcodeModule::parseModule(llvm::LLVMContext&, llvm::function_ref<llvm::Optional<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > (llvm::StringRef)>) (/usr/bin/../lib/libLLVM-12.so+0x168202c)
13:38.66 #12 0x00007f27b1e8ff01 (/usr/bin/../lib/libLLVM-12.so+0x2381f01)
13:38.66 #13 0x00007f27b05da592 (/usr/bin/../lib/libLLVM-12.so+0xacc592)
13:38.66 #14 0x00007f27b05b89b9 (/usr/bin/../lib/libLLVM-12.so+0xaaa9b9)
13:38.66 #15 0x00007f27afafdc27 __pthread_once_slow (/usr/bin/../lib/libpthread.so.0+0x10c27)
13:38.66 #16 0x00007f27b05daf25 (/usr/bin/../lib/libLLVM-12.so+0xaccf25)
13:38.66 #17 0x00007f27af9aa3c4 std::default_delete<std::thread::_State>::operator()(std::thread::_State*) const /build/gcc/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/unique_ptr.h:85:2
13:38.66 #18 0x00007f27af9aa3c4 std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >::~unique_ptr() /build/gcc/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/unique_ptr.h:361:17
13:38.66 #19 0x00007f27af9aa3c4 execute_native_thread_routine /build/gcc/src/gcc/libstdc++-v3/src/c++11/thread.cc:84:5
13:38.66 #20 0x00007f27afaf6259 start_thread (/usr/bin/../lib/libpthread.so.0+0x9259)
13:38.66 #21 0x00007f27af8095e3 clone (/usr/bin/../lib/libc.so.6+0xfe5e3)
13:49.35 clang-12: error: unable to execute command: Aborted (core dumped)
13:49.35 clang-12: error: linker command failed due to signal (use -v to see invocation)
13:49.36 make[4]: *** [/mnt/extraStorage/AUR/paru/clone/librewolf/src/firefox-93.0/config/rules.mk:545: libxul.so] Error 254
13:49.36 make[3]: *** [/mnt/extraStorage/AUR/paru/clone/librewolf/src/firefox-93.0/config/recurse.mk:72: toolkit/library/build/target] Error 2
13:49.39 make[2]: *** [/mnt/extraStorage/AUR/paru/clone/librewolf/src/firefox-93.0/config/recurse.mk:34: compile] Error 2
13:49.43 make[1]: *** [/mnt/extraStorage/AUR/paru/clone/librewolf/src/firefox-93.0/config/rules.mk:358: default] Error 2
13:49.45 make: *** [client.mk:65: build] Error 2
13:49.48 133 compiler warnings present.
13:49.85 Failed to parse ccache stats output: Summary:
==> ERROR: A failure occurred in build().
    Aborting...

lsf commented on 2021-10-30 11:15 (UTC)

@Neko-san

Unfortunately, I have no idea what's going wrong here.

I've done a quick test by adding the vars/changes from your modified makepkg.conf to the PKGBUILD directly and then starting a build with makechrootpkg directly (not using paru), and that went fine and started building properly. (btw: there's a typo in one of your vars, you have DEBUG_CLAGS in there at some point, instead of DEBUG_CFLAGS :)

So either something totally odd is going on, or it's soooomehow caused by the way paru uses makechrootpkg (eg. adding -D /mnt/extraStorage/AUR/ParuChroot/repo/aur -d /var/cache/pacman/pkg/). The changes in the makepkg.conf, as far as I understand them, shouldn't cause such an issue (lld, clang etc are also used by the build anyway, as you've stated already, and all the other ones shouldn't really be relevant for linker functioning).

Neko-san commented on 2021-10-29 17:56 (UTC)

I know, I didn't list it as a separate package: read the PKGBUILD

What I said was: "in the PKGBUILD body"

In the body, lld is referenced in configure statements to be targeted as the used linker; coincidentally, lld is its own package, but that should have no bearing on the context I'm mentioning because binutils is a package with multiple components and isn't synonymous with these FireFox configure statements.

lahwaacz commented on 2021-10-29 07:09 (UTC)

As I said, ld (i.e. /usr/bin/ld) is provided by binutils, it is not a separate package. And valid compiler flags still don't mean that the project will successfully compile when they are applied.

Neko-san commented on 2021-10-28 21:52 (UTC)

This still failed

And if what you say really wasn't an issue, then explain how changing the lld references in the PKGBUILD body to ld creates an error:

==> Checking buildtime dependencies...
==> Installing missing dependencies...
error: target not found: ld
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> unzip
  -> zip
  -> yasm
  -> imake
  -> inetutils
  -> xorg-server-xvfb
  -> autoconf2.13
  -> rust
  -> nodejs
  -> cbindgen
  -> nasm
  -> python-setuptools
  -> python-psutil
  -> python-zstandard
  -> git
  -> ld
  -> dump_syms
==> ERROR: Could not resolve all dependencies.

Also, that shouldn't make a difference anyway; those are valid compiler flags

lahwaacz commented on 2021-10-28 21:38 (UTC) (edited on 2021-10-28 21:40 (UTC) by lahwaacz)

ld is provided by binutils which is in makedepends. (It is also part of the base-devel group which is an implicit dependency that everybody building Arch packages must have installed.)

Anyway, you have also modified CFLAGS, e.g. -march=native -mtune=native. Try building with the default CFLAGS.