• Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category Packages
  • Assigned To
    Andreas Baumann
  • Operating System pentium4
  • Severity Low
  • Priority Medium
  • Reported Version
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Arch Linux 32
Opened by Andreas Baumann - 28.10.2021
Last edited by Andreas Baumann - 30.04.2022

FS#215 - firefox 93.0 (and seamonkey 2.53.9.1) doesn't build

 2:52.15 error: `[u32; 2]` is forbidden as the type of a const generic parameter
 2:52.15   --> /build/firefox/src/firefox-93.0/third_party/rust/packed_simd/src/codegen/llvm.rs:20:44
 2:52.15    |
 2:52.15 20 | pub unsafe fn __shuffle_vector2<const IDX: [u32; 2], T, U>(x: T, y: T) -> U
 2:52.15    |                                            ^^^^^^^^
 2:52.15    |
 2:52.15    = note: the only supported types are integers, `bool` and `char`
 2:52.15    = help: more complex types are supported with `#![feature(adt_const_params)]`
 2:52.15 error: `[u32; 4]` is forbidden as the type of a const generic parameter
 2:52.15   --> /build/firefox/src/firefox-93.0/third_party/rust/packed_simd/src/codegen/llvm.rs:30:44
 2:52.15    |
 2:52.15 30 | pub unsafe fn __shuffle_vector4<const IDX: [u32; 4], T, U>(x: T, y: T) -> U
 2:52.15    |                                            ^^^^^^^^
 2:52.15    |
 2:52.15    = note: the only supported types are integers, `bool` and `char`
 2:52.15    = help: more complex types are supported with `#![feature(adt_const_params)]`
 2:52.15 error: `[u32; 8]` is forbidden as the type of a const generic parameter
 2:52.15   --> /build/firefox/src/firefox-93.0/third_party/rust/packed_simd/src/codegen/llvm.rs:40:44
 2:52.15    |
 2:52.15 40 | pub unsafe fn __shuffle_vector8<const IDX: [u32; 8], T, U>(x: T, y: T) -> U
 2:52.15    |                                            ^^^^^^^^
 2:52.15    |
 2:52.15    = note: the only supported types are integers, `bool` and `char`
 2:52.15    = help: more complex types are supported with `#![feature(adt_const_params)]`
 2:52.15 error: `[u32; 16]` is forbidden as the type of a const generic parameter
 2:52.15   --> /build/firefox/src/firefox-93.0/third_party/rust/packed_simd/src/codegen/llvm.rs:50:45
 2:52.15    |
 2:52.15 50 | pub unsafe fn __shuffle_vector16<const IDX: [u32; 16], T, U>(x: T, y: T) -> U
 2:52.15    |                                             ^^^^^^^^^
 2:52.15    |
 2:52.15    = note: the only supported types are integers, `bool` and `char`
 2:52.15    = help: more complex types are supported with `#![feature(adt_const_params)]`
 2:52.15 error: `[u32; 32]` is forbidden as the type of a const generic parameter
 2:52.15   --> /build/firefox/src/firefox-93.0/third_party/rust/packed_simd/src/codegen/llvm.rs:60:45
 2:52.15    |
 2:52.15 60 | pub unsafe fn __shuffle_vector32<const IDX: [u32; 32], T, U>(x: T, y: T) -> U
 2:52.15    |                                             ^^^^^^^^^
 2:52.15    |
 2:52.15    = note: the only supported types are integers, `bool` and `char`
 2:52.15    = help: more complex types are supported with `#![feature(adt_const_params)]`
 2:52.15 error: `[u32; 64]` is forbidden as the type of a const generic parameter
 2:52.15   --> /build/firefox/src/firefox-93.0/third_party/rust/packed_simd/src/codegen/llvm.rs:70:45
 2:52.15    |
 2:52.15 70 | pub unsafe fn __shuffle_vector64<const IDX: [u32; 64], T, U>(x: T, y: T) -> U
 2:52.15    |                                             ^^^^^^^^^
 2:52.15    |
 2:52.15    = note: the only supported types are integers, `bool` and `char`
 2:52.15    = help: more complex types are supported with `#![feature(adt_const_params)]`
 2:52.35    Compiling num_cpus v1.13.0
 2:53.13    Compiling fluent-langneg v0.13.0
 2:53.15    Compiling intl_pluralrules v7.0.1
 2:53.59    Compiling intl-memoizer v0.5.1
 2:55.32    Compiling gl_generator v0.14.0
 2:55.37    Compiling cose-c v0.1.5
 2:55.96    Compiling time v0.1.43
 2:56.01    Compiling iovec v0.1.4
 2:56.05    Compiling atty v0.2.14
 2:56.21 For more information about this error, try `rustc --explain E0557`.
 2:56.23    Compiling net2 v0.2.37
 2:56.24 The following warnings were emitted during compilation:
 2:56.25 warning: Cannot set `RUSTC_BOOTSTRAP=1` from build script of `packed_simd v0.3.4 (https://github.com/hsivonen/packed_simd?rev=6a16f954950401b92b4e220fbf2dfaf6f00e1fb2#6a16f954)`.
 2:56.25 note: Crates cannot set `RUSTC_BOOTSTRAP` themselves, as doing so would subvert the stability guarantees of Rust for your project.
 2:56.25 error: could not compile `packed_simd` due to 13 previous errors
 2:56.25 warning: build failed, waiting for other jobs to finish...
 3:17.66 error: build failed
Closed by  Andreas Baumann
30.04.2022 04:49
Reason for closing:  Fixed
Additional comments about closing:  

firefox-99.0.1-1.2 built on i686 and pentiumg4.

Admin
Andreas Baumann commented on 28.10.2021 06:48

seamonkey 2.53.9.1 shares the same gecko/rust code, so same error there, making
seamonkey less and less a lightweight alternative to firefox it seems..

Admin
Andreas Baumann commented on 07.11.2021 06:32

New versions, new bugs:

206:04.73 In file included from /build/firefox/src/firefox-94.0/modules/fdlibm/src/e_acos.cpp:44:
206:04.73 /build/firefox/src/firefox-94.0/modules/fdlibm/src/math_private.h:34:21: error: conflicting declaration ‘typedef __double_t double_t’
206:04.73    34 | typedef __double_t  double_t;
206:04.73       |                     ^~~~~~~~
206:04.73 In file included from /usr/lib/gcc/i686-pc-linux-gnu/10.3.0/include/c++/cmath:45,
206:04.73                  from /build/firefox/src/firefox-94.0/obj/dist/system_wrappers/cmath:3,
206:04.73                  from /build/firefox/src/firefox-94.0/obj/dist/stl_wrappers/cmath:64,
206:04.73                  from /build/firefox/src/firefox-94.0/modules/fdlibm/src/e_acos.cpp:41:
206:04.73 /usr/include/math.h:156:21: note: previous declaration as ‘typedef long double double_t’
206:04.73   156 | typedef long double double_t;
206:04.73       |                     ^~~~~~~~
206:04.78 make[4]: *** [/build/firefox/src/firefox-94.0/config/rules.mk:676: e_acos.o] Error 1
206:04.78 make[3]: *** [/build/firefox/src/firefox-94.0/config/recurse.mk:72: modules/fdlibm/src/target-objects] Error 2
206:04.78 make[2]: *** [/build/firefox/src/firefox-94.0/config/recurse.mk:34: compile] Error 2
206:04.78 make[1]: *** [/build/firefox/src/firefox-94.0/config/rules.mk:358: default] Error 2
206:04.78 make: *** [client.mk:54: build] Error 2
kjw commented on 08.02.2022 10:38

Some of the language packs for newer versions of firefox have got into testing while the firefox build is still stuck. i.e. firefox-i18n-en-gb 96.0.3-1.0

[~]$ sudo pacman -Syu
:: Synchronising package databases...
 testing is up to date
 core is up to date
 extra is up to date
 community-testing is up to date
 community is up to date
:: Starting full system upgrade...
resolving dependencies...
warning: cannot resolve "firefox>=96.0.3", a dependency of "firefox-i18n-en-gb"
:: The following package cannot be upgraded due to unresolvable dependencies:
      firefox-i18n-en-gb

:: Do you want to skip the above package for this upgrade? [y/N] y
looking for conflicting packages...
 there is nothing to do
Admin
Andreas Baumann commented on 27.04.2022 17:01
 0:31.79 /usr/bin/make -C . -j16 -s -w install
 0:31.86 make: Entering directory '/build/firefox/src/firefox-99.0.1/obj'
 0:32.35 make[1]: Entering directory '/build/firefox/src/firefox-99.0.1/obj/browser/installer'
 8:02.40 LLVM ERROR: out of memory
 8:02.40 Allocation failed
 8:02.40 PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
 8:02.40 Stack dump:

Funny, in package(), so will LLVM send me some more RAM, if I file in a bug? ;-)

Admin
Andreas Baumann commented on 29.04.2022 04:36
 0:20.41 /usr/bin/make -C . -j16 -s -w install

The environemnt variable MOZ_MAKE_FLAGS=-j1 is not helping it seems.

Admin
Andreas Baumann commented on 29.04.2022 04:48
11:51.60 0.     Program arguments: /usr/bin/llvm-strip ../../dist/firefox/libxul.so
11:51.72  #0 0xfffffffff15bec3d (/usr/lib/libLLVM-13.so+0x789c3d)
11:51.72  #1 0xfffffffff15bc462 (/usr/lib/libLLVM-13.so+0x787462)

Or is llvm-strip is eating up all memory when stripping libxul.so (since LLVM 13).

Besides: options=(!strip) seems to be cosmetic and doing a strip in make install
is also more than weird..

Admin
Andreas Baumann commented on 29.04.2022 04:54

There used to be a –enable-strip mozconfig option in the past, wondering if that
one can be used as –disable-strip? Or instead of using llvm-strip to use
binutils strip?

Admin
Andreas Baumann commented on 29.04.2022 07:27

there is a STRIP variable, so we should be able to overwrite it (first preference, do
some stripping)
–disable-install-strip also sounds promising (but is only the last resort if nothing
else helps)

Admin
Andreas Baumann commented on 29.04.2022 08:35

Well, it builds now, the package is 978MB big!!

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing