Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 819486 - www-client/firefox and mail-client/thunderbird: fails to build with rust-1.56
Summary: www-client/firefox and mail-client/thunderbird: fails to build with rust-1.56
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL: https://bugzilla.mozilla.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks: 818016
  Show dependency tree
 
Reported: 2021-10-22 14:39 UTC by Thomas Deutschmann (RETIRED)
Modified: 2021-10-27 12:13 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ff-93.0-build.log (ff-93.0-build.log.gz,242.47 KB, application/x-gzip)
2021-10-22 14:39 UTC, Thomas Deutschmann (RETIRED)
Details
ff-78.15.0-build.log (ff-78.15.0-build.log.gz,262.17 KB, application/x-gzip)
2021-10-22 14:49 UTC, Thomas Deutschmann (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deutschmann (RETIRED) gentoo-dev 2021-10-22 14:39:28 UTC
Created attachment 746151 [details]
ff-93.0-build.log

Firefox 93.0 build fails against rust-1.56 with:

>  3:27.13 [glslopt 0.1.9] running: "/usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I/var/tmp/portage/www-client/firefox-93.0/work/firefox_build/dist/stl_wrappers" "-I/var/tmp/portage/www-client/firefox-93.0/work/firefox_build/dist/system_wrappers" "-include" "/var/tmp/portage/www-client/firefox-93.0/work/firefox-93.0/config/gcc_hidden.h" "-U_FORTIFY_SOURCE" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-DNDEBUG=1" "-DTRIMMED=1" "-I/var/tmp/portage/www-client/firefox-93.0/work/firefox-93.0/toolkit/library/rust" "-I/var/tmp/portage/www-client/firefox-93.0/work/firefox_build/toolkit/library/rust" "-I/var/tmp/portage/www-client/firefox-93.0/work/firefox_build/dist/include" "-I/usr/include/nspr" "-I/usr/include/nss" "-I/usr/include/nspr" "-I/var/tmp/portage/www-client/firefox-93.0/work/firefox_build/dist/include/nss" "-I/usr/include/pixman-1" "-DMOZILLA_CLIENT" "-include" "/var/tmp/portage/www-client/firefox-93.0/work/firefox_build/mozilla-config.h" "-Wall" "-Wempty-body" "-Wignored-qualifiers" "-Wpointer-arith" "-Wsign-compare" "-Wtype-limits" "-Wunreachable-code" "-Wno-invalid-offsetof" "-Wc++2a-compat" "-Wduplicated-cond" "-Wimplicit-fallthrough" "-Wno-error=maybe-uninitialized" "-Wno-error=deprecated-declarations" "-Wno-error=array-bounds" "-Wno-error=coverage-mismatch" "-Wno-error=free-nonheap-object" "-Wno-multistatement-macros" "-Wno-error=class-memaccess" "-Wno-error=deprecated-copy" "-Wno-error=unused-but-set-variable" "-Wformat" "-Wformat-security" "-Wformat-overflow=2" "-Wno-psabi" "-fno-sized-deallocation" "-fno-aligned-new" "-pipe" "-march=znver2" "-mno-clzero" "-mno-mwaitx" "-mno-wbnoinvd" "-frecord-gcc-switches" "-fno-tree-loop-vectorize" "-fno-exceptions" "-fno-strict-aliasing" "-fPIC" "-fno-rtti" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "-fno-math-errno" "-pthread" "-pipe" "-O2" "-fomit-frame-pointer" "-funwind-tables" "-DMOZILLA_CONFIG_H" "-I" "glsl-optimizer/include" "-I" "glsl-optimizer/src/mesa" "-I" "glsl-optimizer/src/mapi" "-I" "glsl-optimizer/src/compiler" "-I" "glsl-optimizer/src/compiler/glsl" "-I" "glsl-optimizer/src/gallium/auxiliary" "-I" "glsl-optimizer/src/gallium/include" "-I" "glsl-optimizer/src" "-I" "glsl-optimizer/src/util" "-D__STDC_FORMAT_MACROS" "-D_GNU_SOURCE" "-DHAVE_ENDIAN_H" "-DHAVE_PTHREAD" "-DHAVE_TIMESPEC_GET" "-DMOZ_INCLUDE_MOZALLOC_H" "-Dmozilla_throw_gcc_h" "-o" "/var/tmp/portage/www-client/firefox-93.0/work/firefox_build/release/build/glslopt-ba2e2a5c1fa54ad2/out/glsl-optimizer/src/compiler/glsl/opt_flatten_nested_if_blocks.o" "-c" "glsl-optimizer/src/compiler/glsl/opt_flatten_nested_if_blocks.cpp"
>  3:27.14 error[E0557]: feature has been removed
>  3:27.14    --> /var/tmp/portage/www-client/firefox-93.0/work/firefox-93.0/third_party/rust/packed_simd/src/lib.rs:203:5
>  3:27.14     |
>  3:27.14 203 |     const_generics,
>  3:27.14     |     ^^^^^^^^^^^^^^ feature has been removed
>  3:27.14     |
>  3:27.14     = note: removed in favor of `#![feature(adt_const_params]` and `#![feature(generic_const_exprs)]`
>  3:27.14 error: type parameters must be declared prior to const parameters
>  3:27.14   --> /var/tmp/portage/www-client/firefox-93.0/work/firefox-93.0/third_party/rust/packed_simd/src/codegen/llvm.rs:20:54
>  3:27.14    |
>  3:27.14 20 | pub unsafe fn __shuffle_vector2<const IDX: [u32; 2], T, U>(x: T, y: T) -> U
>  3:27.14    |                                ----------------------^--^- help: reorder the parameters: lifetimes, then types, then consts: `<T, U, const IDX: [u32; 2]>`
>  3:27.14 error: type parameters must be declared prior to const parameters
>  3:27.14   --> /var/tmp/portage/www-client/firefox-93.0/work/firefox-93.0/third_party/rust/packed_simd/src/codegen/llvm.rs:30:54
>  3:27.14    |
>  3:27.14 30 | pub unsafe fn __shuffle_vector4<const IDX: [u32; 4], T, U>(x: T, y: T) -> U
>  3:27.14    |                                ----------------------^--^- help: reorder the parameters: lifetimes, then types, then consts: `<T, U, const IDX: [u32; 4]>`
>  3:27.14 error: type parameters must be declared prior to const parameters
>  3:27.14   --> /var/tmp/portage/www-client/firefox-93.0/work/firefox-93.0/third_party/rust/packed_simd/src/codegen/llvm.rs:40:54
>  3:27.14    |
>  3:27.14 40 | pub unsafe fn __shuffle_vector8<const IDX: [u32; 8], T, U>(x: T, y: T) -> U
>  3:27.14    |                                ----------------------^--^- help: reorder the parameters: lifetimes, then types, then consts: `<T, U, const IDX: [u32; 8]>`
>  3:27.14 error: type parameters must be declared prior to const parameters
>  3:27.14   --> /var/tmp/portage/www-client/firefox-93.0/work/firefox-93.0/third_party/rust/packed_simd/src/codegen/llvm.rs:50:56
>  3:27.14    |
>  3:27.14 50 | pub unsafe fn __shuffle_vector16<const IDX: [u32; 16], T, U>(x: T, y: T) -> U
>  3:27.14    |                                 -----------------------^--^- help: reorder the parameters: lifetimes, then types, then consts: `<T, U, const IDX: [u32; 16]>`
>  3:27.14 [glslopt 0.1.9] exit status: 0
>  3:27.14 error: type parameters must be declared prior to const parameters
>  3:27.14   --> /var/tmp/portage/www-client/firefox-93.0/work/firefox-93.0/third_party/rust/packed_simd/src/codegen/llvm.rs:60:56
>  3:27.14    |
>  3:27.14 60 | pub unsafe fn __shuffle_vector32<const IDX: [u32; 32], T, U>(x: T, y: T) -> U
>  3:27.14    |                                 -----------------------^--^- help: reorder the parameters: lifetimes, then types, then consts: `<T, U, const IDX: [u32; 32]>`
>  3:27.14 [glslopt 0.1.9] running: "/usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I/var/tmp/portage/www-client/firefox-93.0/work/firefox_build/dist/stl_wrappers" "-I/var/tmp/portage/www-client/firefox-93.0/work/firefox_build/dist/system_wrappers" "-include" "/var/tmp/portage/www-client/firefox-93.0/work/firefox-93.0/config/gcc_hidden.h" "-U_FORTIFY_SOURCE" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-DNDEBUG=1" "-DTRIMMED=1" "-I/var/tmp/portage/www-client/firefox-93.0/work/firefox-93.0/toolkit/library/rust" "-I/var/tmp/portage/www-client/firefox-93.0/work/firefox_build/toolkit/library/rust" "-I/var/tmp/portage/www-client/firefox-93.0/work/firefox_build/dist/include" "-I/usr/include/nspr" "-I/usr/include/nss" "-I/usr/include/nspr" "-I/var/tmp/portage/www-client/firefox-93.0/work/firefox_build/dist/include/nss" "-I/usr/include/pixman-1" "-DMOZILLA_CLIENT" "-include" "/var/tmp/portage/www-client/firefox-93.0/work/firefox_build/mozilla-config.h" "-Wall" "-Wempty-body" "-Wignored-qualifiers" "-Wpointer-arith" "-Wsign-compare" "-Wtype-limits" "-Wunreachable-code" "-Wno-invalid-offsetof" "-Wc++2a-compat" "-Wduplicated-cond" "-Wimplicit-fallthrough" "-Wno-error=maybe-uninitialized" "-Wno-error=deprecated-declarations" "-Wno-error=array-bounds" "-Wno-error=coverage-mismatch" "-Wno-error=free-nonheap-object" "-Wno-multistatement-macros" "-Wno-error=class-memaccess" "-Wno-error=deprecated-copy" "-Wno-error=unused-but-set-variable" "-Wformat" "-Wformat-security" "-Wformat-overflow=2" "-Wno-psabi" "-fno-sized-deallocation" "-fno-aligned-new" "-pipe" "-march=znver2" "-mno-clzero" "-mno-mwaitx" "-mno-wbnoinvd" "-frecord-gcc-switches" "-fno-tree-loop-vectorize" "-fno-exceptions" "-fno-strict-aliasing" "-fPIC" "-fno-rtti" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "-fno-math-errno" "-pthread" "-pipe" "-O2" "-fomit-frame-pointer" "-funwind-tables" "-DMOZILLA_CONFIG_H" "-I" "glsl-optimizer/include" "-I" "glsl-optimizer/src/mesa" "-I" "glsl-optimizer/src/mapi" "-I" "glsl-optimizer/src/compiler" "-I" "glsl-optimizer/src/compiler/glsl" "-I" "glsl-optimizer/src/gallium/auxiliary" "-I" "glsl-optimizer/src/gallium/include" "-I" "glsl-optimizer/src" "-I" "glsl-optimizer/src/util" "-D__STDC_FORMAT_MACROS" "-D_GNU_SOURCE" "-DHAVE_ENDIAN_H" "-DHAVE_PTHREAD" "-DHAVE_TIMESPEC_GET" "-DMOZ_INCLUDE_MOZALLOC_H" "-Dmozilla_throw_gcc_h" "-o" "/var/tmp/portage/www-client/firefox-93.0/work/firefox_build/release/build/glslopt-ba2e2a5c1fa54ad2/out/glsl-optimizer/src/compiler/glsl/opt_flip_matrices.o" "-c" "glsl-optimizer/src/compiler/glsl/opt_flip_matrices.cpp"
>  3:27.14 error: type parameters must be declared prior to const parameters
>  3:27.14   --> /var/tmp/portage/www-client/firefox-93.0/work/firefox-93.0/third_party/rust/packed_simd/src/codegen/llvm.rs:70:56
>  3:27.14    |
>  3:27.14 70 | pub unsafe fn __shuffle_vector64<const IDX: [u32; 64], T, U>(x: T, y: T) -> U
>  3:27.14    |                                 -----------------------^--^- help: reorder the parameters: lifetimes, then types, then consts: `<T, U, const IDX: [u32; 64]>`
>  3:27.14 warning: ignoring -C extra-filename flag due to -o flag
>  3:27.14 For more information about this error, try `rustc --explain E0557`.
>  3:27.14 warning: `packed_simd` (lib) generated 1 warning
>  3:27.15 The following warnings were emitted during compilation:
>  3:27.15 warning: Cannot set `RUSTC_BOOTSTRAP=1` from build script of `packed_simd v0.3.4 (https://github.com/hsivonen/packed_simd?rev=6a16f954950401b92b4e220fbf2dfaf6f00e1fb2#6a16f954)`.
>  3:27.15 note: Crates cannot set `RUSTC_BOOTSTRAP` themselves, as doing so would subvert the stability guarantees of Rust for your project.
>  3:27.15 error: could not compile `packed_simd` due to 7 previous errors; 1 warning emitted
>  3:27.15 Caused by:
>  3:27.15   process didn't exit successfully: `CARGO=/usr/lib/rust/1.56.0/bin/cargo-1.56.0 CARGO_CRATE_NAME=packed_simd CARGO_MANIFEST_DIR=/var/tmp/portage/www-client/firefox-93.0/work/firefox-93.0/third_party/rust/packed_simd CARGO_PKG_AUTHORS='Gonzalo Brito Gadeschi <gonzalobg88@gmail.com>' CARGO_PKG_DESCRIPTION='Portable Packed SIMD vectors' CARGO_PKG_HOMEPAGE='https://github.com/rust-lang-nursery/packed_simd' CARGO_PKG_LICENSE=MIT/Apache-2.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=packed_simd CARGO_PKG_REPOSITORY='https://github.com/rust-lang-nursery/packed_simd' CARGO_PKG_VERSION=0.3.4 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=3 CARGO_PKG_VERSION_PATCH=4 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/var/tmp/portage/www-client/firefox-93.0/work/firefox_build/release/deps:/usr/lib/rust/1.56.0/lib' OUT_DIR=/var/tmp/portage/www-client/firefox-93.0/work/firefox_build/x86_64-unknown-linux-gnu/release/build/packed_simd-a49ade2cb6e99ddf/out /usr/bin/sccache /usr/bin/rustc --crate-name packed_simd --edition=2018 /var/tmp/portage/www-client/firefox-93.0/work/firefox-93.0/third_party/rust/packed_simd/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=2 -C panic=abort -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="into_bits"' -C metadata=2090ad9ea9de07ab -C extra-filename=-2090ad9ea9de07ab --out-dir /var/tmp/portage/www-client/firefox-93.0/work/firefox_build/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -C linker=/var/tmp/portage/www-client/firefox-93.0/work/firefox-93.0/build/cargo-linker -L dependency=/var/tmp/portage/www-client/firefox-93.0/work/firefox_build/x86_64-unknown-linux-gnu/release/deps -L dependency=/var/tmp/portage/www-client/firefox-93.0/work/firefox_build/release/deps --extern cfg_if=/var/tmp/portage/www-client/firefox-93.0/work/firefox_build/x86_64-unknown-linux-gnu/release/deps/libcfg_if-495fffb969e81c27.rmeta --cap-lints warn --cap-lints warn -C codegen-units=1` (exit status: 1)
>
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2021-10-22 14:49:05 UTC
Created attachment 746154 [details]
ff-78.15.0-build.log

Firefox 78.15.0 ESR (same for thunderbird) failure is similar:

>  5:17.52    Compiling mozglue-static v0.1.0 (/var/tmp/portage/www-client/firefox-78.15.0/work/firefox-78.15.0/mozglue/static/rust)
>  5:17.52      Running `CARGO=/usr/lib/rust/1.56.0/bin/cargo-1.56.0 CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/var/tmp/portage/www-client/firefox-78.15.0/work/firefox-78.15.0/third_party/rust/libloading CARGO_PKG_AUTHORS='Simonas Kazlauskas <libloading@kazlauskas.me>' CARGO_PKG_DESCRIPTION='A safer binding to platform’s dynamic library loading utilities' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=ISC CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=libloading CARGO_PKG_REPOSITORY='https://github.com/nagisa/rust_libloading/' CARGO_PKG_VERSION=0.5.2 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=5 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/var/tmp/portage/www-client/firefox-78.15.0/work/firefox_build/release/deps:/usr/lib/rust/1.56.0/lib' /usr/bin/sccache /usr/bin/rustc --crate-name build_script_build /var/tmp/portage/www-client/firefox-78.15.0/work/firefox-78.15.0/third_party/rust/libloading/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off -C metadata=b392b8b0a5ae3c46 -C extra-filename=-b392b8b0a5ae3c46 --out-dir /var/tmp/portage/www-client/firefox-78.15.0/work/firefox_build/release/build/libloading-b392b8b0a5ae3c46 -C linker=/var/tmp/portage/www-client/firefox-78.15.0/work/firefox-78.15.0/build/cargo-linker -L dependency=/var/tmp/portage/www-client/firefox-78.15.0/work/firefox_build/release/deps --extern cc=/var/tmp/portage/www-client/firefox-78.15.0/work/firefox_build/release/deps/libcc-cd5142e9430545e9.rlib --cap-lints warn`
>  5:17.52      Running `CARGO=/usr/lib/rust/1.56.0/bin/cargo-1.56.0 CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/var/tmp/portage/www-client/firefox-78.15.0/work/firefox-78.15.0/third_party/rust/libsqlite3-sys CARGO_PKG_AUTHORS='The rusqlite developers' CARGO_PKG_DESCRIPTION='Native bindings to the libsqlite3 library' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=libsqlite3-sys CARGO_PKG_REPOSITORY='https://github.com/rusqlite/rusqlite' CARGO_PKG_VERSION=0.18.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=18 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/var/tmp/portage/www-client/firefox-78.15.0/work/firefox_build/release/deps:/usr/lib/rust/1.56.0/lib' /usr/bin/sccache /usr/bin/rustc --crate-name build_script_build --edition=2018 /var/tmp/portage/www-client/firefox-78.15.0/work/firefox-78.15.0/third_party/rust/libsqlite3-sys/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="bundled"' --cfg 'feature="bundled_bindings"' --cfg 'feature="cc"' --cfg 'feature="default"' --cfg 'feature="in_gecko"' --cfg 'feature="min_sqlite_version_3_6_8"' --cfg 'feature="min_sqlite_version_3_7_7"' --cfg 'feature="pkg-config"' --cfg 'feature="vcpkg"' -C metadata=43440dc4f987daaf -C extra-filename=-43440dc4f987daaf --out-dir /var/tmp/portage/www-client/firefox-78.15.0/work/firefox_build/release/build/libsqlite3-sys-43440dc4f987daaf -C linker=/var/tmp/portage/www-client/firefox-78.15.0/work/firefox-78.15.0/build/cargo-linker -L dependency=/var/tmp/portage/www-client/firefox-78.15.0/work/firefox_build/release/deps --extern cc=/var/tmp/portage/www-client/firefox-78.15.0/work/firefox_build/release/deps/libcc-cd5142e9430545e9.rlib --extern pkg_config=/var/tmp/portage/www-client/firefox-78.15.0/work/firefox_build/release/deps/libpkg_config-c449e0d504518432.rlib --cap-lints warn`
>  5:17.52      Running `CARGO=/usr/lib/rust/1.56.0/bin/cargo-1.56.0 CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/var/tmp/portage/www-client/firefox-78.15.0/work/firefox-78.15.0/third_party/rust/glslopt CARGO_PKG_AUTHORS='Jamie Nicol <jnicol@mozilla.com>' CARGO_PKG_DESCRIPTION='Optimizes GLSL shader code' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=glslopt CARGO_PKG_REPOSITORY='https://github.com/jamienicol/glslopt-rs' CARGO_PKG_VERSION=0.1.2 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/var/tmp/portage/www-client/firefox-78.15.0/work/firefox_build/release/deps:/usr/lib/rust/1.56.0/lib' /usr/bin/sccache /usr/bin/rustc --crate-name build_script_build --edition=2018 /var/tmp/portage/www-client/firefox-78.15.0/work/firefox-78.15.0/third_party/rust/glslopt/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off -C metadata=43b50e1d2a2c83f9 -C extra-filename=-43b50e1d2a2c83f9 --out-dir /var/tmp/portage/www-client/firefox-78.15.0/work/firefox_build/release/build/glslopt-43b50e1d2a2c83f9 -C linker=/var/tmp/portage/www-client/firefox-78.15.0/work/firefox-78.15.0/build/cargo-linker -L dependency=/var/tmp/portage/www-client/firefox-78.15.0/work/firefox_build/release/deps --extern cc=/var/tmp/portage/www-client/firefox-78.15.0/work/firefox_build/release/deps/libcc-cd5142e9430545e9.rlib --cap-lints warn`
>  5:17.52      Running `CARGO=/usr/lib/rust/1.56.0/bin/cargo-1.56.0 CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/var/tmp/portage/www-client/firefox-78.15.0/work/firefox-78.15.0/third_party/rust/lmdb-rkv-sys CARGO_PKG_AUTHORS='Dan Burkert <dan@danburkert.com>:Victor Porof <vporof@mozilla.com>' CARGO_PKG_DESCRIPTION='Rust bindings for liblmdb.' CARGO_PKG_HOMEPAGE='https://github.com/mozilla/lmdb-rs' CARGO_PKG_LICENSE=Apache-2.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=lmdb-rkv-sys CARGO_PKG_REPOSITORY='https://github.com/mozilla/lmdb-rs.git' CARGO_PKG_VERSION=0.11.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=11 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/var/tmp/portage/www-client/firefox-78.15.0/work/firefox_build/release/deps:/usr/lib/rust/1.56.0/lib' /usr/bin/sccache /usr/bin/rustc --crate-name build_script_build /var/tmp/portage/www-client/firefox-78.15.0/work/firefox-78.15.0/third_party/rust/lmdb-rkv-sys/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="mdb_idl_logn_9"' -C metadata=cbb9c59688d292c0 -C extra-filename=-cbb9c59688d292c0 --out-dir /var/tmp/portage/www-client/firefox-78.15.0/work/firefox_build/release/build/lmdb-rkv-sys-cbb9c59688d292c0 -C linker=/var/tmp/portage/www-client/firefox-78.15.0/work/firefox-78.15.0/build/cargo-linker -L dependency=/var/tmp/portage/www-client/firefox-78.15.0/work/firefox_build/release/deps --extern cc=/var/tmp/portage/www-client/firefox-78.15.0/work/firefox_build/release/deps/libcc-cd5142e9430545e9.rlib --extern pkg_config=/var/tmp/portage/www-client/firefox-78.15.0/work/firefox_build/release/deps/libpkg_config-c449e0d504518432.rlib --cap-lints warn`
>  5:17.52 error[E0557]: feature has been removed
>  5:17.52    --> /var/tmp/portage/www-client/firefox-78.15.0/work/firefox-78.15.0/third_party/rust/packed_simd/src/lib.rs:202:41
>  5:17.52     |
>  5:17.52 202 | #![cfg_attr(use_const_generics, feature(const_generics))]
>  5:17.52     |                                         ^^^^^^^^^^^^^^ feature has been removed
>  5:17.52     |
>  5:17.52     = note: removed in favor of `#![feature(adt_const_params]` and `#![feature(generic_const_exprs)]`
>  5:17.52      Running `CARGO=/usr/lib/rust/1.56.0/bin/cargo-1.56.0 CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/var/tmp/portage/www-client/firefox-78.15.0/work/firefox-78.15.0/mozglue/static/rust CARGO_PKG_AUTHORS='' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MPL CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=mozglue-static CARGO_PKG_REPOSITORY='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/var/tmp/portage/www-client/firefox-78.15.0/work/firefox_build/release/deps:/usr/lib/rust/1.56.0/lib' /usr/bin/sccache /usr/bin/rustc --crate-name build_script_build --edition=2018 mozglue/static/rust/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off -C metadata=b430c2c70fe253c8 -C extra-filename=-b430c2c70fe253c8 --out-dir /var/tmp/portage/www-client/firefox-78.15.0/work/firefox_build/release/build/mozglue-static-b430c2c70fe253c8 -C linker=/var/tmp/portage/www-client/firefox-78.15.0/work/firefox-78.15.0/build/cargo-linker -L dependency=/var/tmp/portage/www-client/firefox-78.15.0/work/firefox_build/release/deps --extern cc=/var/tmp/portage/www-client/firefox-78.15.0/work/firefox_build/release/deps/libcc-cd5142e9430545e9.rlib`
>  5:17.52 error: type parameters must be declared prior to const parameters
>  5:17.53   --> /var/tmp/portage/www-client/firefox-78.15.0/work/firefox-78.15.0/third_party/rust/packed_simd/src/codegen/llvm.rs:22:54
>  5:17.53    |
>  5:17.53 22 | pub unsafe fn __shuffle_vector2<const IDX: [u32; 2], T, U>(x: T, y: T) -> U
>  5:17.53    |                                ----------------------^--^- help: reorder the parameters: lifetimes, then types, then consts: `<T, U, const IDX: [u32; 2]>`
>  5:17.53 error: type parameters must be declared prior to const parameters
>  5:17.53   --> /var/tmp/portage/www-client/firefox-78.15.0/work/firefox-78.15.0/third_party/rust/packed_simd/src/codegen/llvm.rs:33:54
>  5:17.53    |
>  5:17.53 33 | pub unsafe fn __shuffle_vector4<const IDX: [u32; 4], T, U>(x: T, y: T) -> U
>  5:17.53    |                                ----------------------^--^- help: reorder the parameters: lifetimes, then types, then consts: `<T, U, const IDX: [u32; 4]>`
>  5:17.53 error: type parameters must be declared prior to const parameters
>  5:17.53   --> /var/tmp/portage/www-client/firefox-78.15.0/work/firefox-78.15.0/third_party/rust/packed_simd/src/codegen/llvm.rs:44:54
>  5:17.53    |
>  5:17.53 44 | pub unsafe fn __shuffle_vector8<const IDX: [u32; 8], T, U>(x: T, y: T) -> U
>  5:17.53    |                                ----------------------^--^- help: reorder the parameters: lifetimes, then types, then consts: `<T, U, const IDX: [u32; 8]>`
>  5:17.53 error: type parameters must be declared prior to const parameters
>  5:17.53   --> /var/tmp/portage/www-client/firefox-78.15.0/work/firefox-78.15.0/third_party/rust/packed_simd/src/codegen/llvm.rs:55:56
>  5:17.53    |
>  5:17.53 55 | pub unsafe fn __shuffle_vector16<const IDX: [u32; 16], T, U>(x: T, y: T) -> U
>  5:17.53    |                                 -----------------------^--^- help: reorder the parameters: lifetimes, then types, then consts: `<T, U, const IDX: [u32; 16]>`
>  5:17.53 error: type parameters must be declared prior to const parameters
>  5:17.53   --> /var/tmp/portage/www-client/firefox-78.15.0/work/firefox-78.15.0/third_party/rust/packed_simd/src/codegen/llvm.rs:66:56
>  5:17.53    |
>  5:17.53 66 | pub unsafe fn __shuffle_vector32<const IDX: [u32; 32], T, U>(x: T, y: T) -> U
>  5:17.53    |                                 -----------------------^--^- help: reorder the parameters: lifetimes, then types, then consts: `<T, U, const IDX: [u32; 32]>`
>  5:17.53 error: type parameters must be declared prior to const parameters
>  5:17.53   --> /var/tmp/portage/www-client/firefox-78.15.0/work/firefox-78.15.0/third_party/rust/packed_simd/src/codegen/llvm.rs:77:56
>  5:17.53    |
>  5:17.53 77 | pub unsafe fn __shuffle_vector64<const IDX: [u32; 64], T, U>(x: T, y: T) -> U
>  5:17.53    |                                 -----------------------^--^- help: reorder the parameters: lifetimes, then types, then consts: `<T, U, const IDX: [u32; 64]>`
>  5:17.53 warning: ignoring -C extra-filename flag due to -o flag
>  5:17.53 For more information about this error, try `rustc --explain E0557`.
>  5:17.55 warning: `packed_simd` (lib) generated 1 warning
>  5:17.55 The following warnings were emitted during compilation:
>  5:17.55 warning: Cannot set `RUSTC_BOOTSTRAP=1` from build script of `packed_simd v0.3.4 (https://github.com/hsivonen/packed_simd?rev=07d285ba65d9a4e3b9d76eacbf4c6489e125127d#07d285ba)`.
>  5:17.55 note: Crates cannot set `RUSTC_BOOTSTRAP` themselves, as doing so would subvert the stability guarantees of Rust for your project.
>  5:17.55 error: could not compile `packed_simd` due to 7 previous errors; 1 warning emitted
>  5:17.55 Caused by:
>  5:17.55   process didn't exit successfully: `CARGO=/usr/lib/rust/1.56.0/bin/cargo-1.56.0 CARGO_CRATE_NAME=packed_simd CARGO_MANIFEST_DIR=/var/tmp/portage/www-client/firefox-78.15.0/work/firefox-78.15.0/third_party/rust/packed_simd CARGO_PKG_AUTHORS='Gonzalo Brito Gadeschi <gonzalobg88@gmail.com>' CARGO_PKG_DESCRIPTION='Portable Packed SIMD vectors' CARGO_PKG_HOMEPAGE='https://github.com/rust-lang-nursery/packed_simd' CARGO_PKG_LICENSE=MIT/Apache-2.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=packed_simd CARGO_PKG_REPOSITORY='https://github.com/rust-lang-nursery/packed_simd' CARGO_PKG_VERSION=0.3.4 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=3 CARGO_PKG_VERSION_PATCH=4 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/var/tmp/portage/www-client/firefox-78.15.0/work/firefox_build/release/deps:/usr/lib/rust/1.56.0/lib' OUT_DIR=/var/tmp/portage/www-client/firefox-78.15.0/work/firefox_build/x86_64-unknown-linux-gnu/release/build/packed_simd-6b342dda4630e348/out /usr/bin/sccache /usr/bin/rustc --crate-name packed_simd --edition=2018 /var/tmp/portage/www-client/firefox-78.15.0/work/firefox-78.15.0/third_party/rust/packed_simd/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=2 -C panic=abort -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="into_bits"' -C metadata=1356a273c84cc9ef -C extra-filename=-1356a273c84cc9ef --out-dir /var/tmp/portage/www-client/firefox-78.15.0/work/firefox_build/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -C linker=/var/tmp/portage/www-client/firefox-78.15.0/work/firefox-78.15.0/build/cargo-linker -L dependency=/var/tmp/portage/www-client/firefox-78.15.0/work/firefox_build/x86_64-unknown-linux-gnu/release/deps -L dependency=/var/tmp/portage/www-client/firefox-78.15.0/work/firefox_build/release/deps --extern cfg_if=/var/tmp/portage/www-client/firefox-78.15.0/work/firefox_build/x86_64-unknown-linux-gnu/release/deps/libcfg_if-495fffb969e81c27.rmeta --cap-lints warn -C opt-level=2 --cap-lints warn -C codegen-units=1 --cfg use_const_generics` (exit status: 1)
Comment 2 Niklāvs Koļesņikovs 2021-10-22 18:23:29 UTC
I just hit the same issue with dev-lang/spidermonkey-78.15.0 (other versions untested).
Comment 3 cyrillic 2021-10-22 19:40:03 UTC
This issue is fixed in www-client/firefox-94.0_beta8
I did not test any other beta versions.
Comment 4 Larry the Git Cow gentoo-dev 2021-10-23 00:33:43 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba9cb8fb42273470a6eda4dec9e5fb72a0615214

commit ba9cb8fb42273470a6eda4dec9e5fb72a0615214
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2021-10-22 23:53:25 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2021-10-23 00:33:37 +0000

    mail-client/thunderbird: update patch set
    
    - Unbreak rust-1.56
    - Allow building with LLVM 13
    - Add Python 3.10 support
    
    Bug: https://bugs.gentoo.org/818016
    Bug: https://bugs.gentoo.org/819486
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 mail-client/thunderbird/Manifest                   |  2 +-
 mail-client/thunderbird/thunderbird-78.14.0.ebuild | 14 +++++++++++---
 2 files changed, 12 insertions(+), 4 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5b8ac821e3a3cbe8c9a7edfd4109e3ddaf19f19

commit f5b8ac821e3a3cbe8c9a7edfd4109e3ddaf19f19
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2021-10-22 23:48:33 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2021-10-23 00:33:35 +0000

    dev-lang/spidermonkey: update patch set
    
    - Unbreak rust-1.56
    - Allow building with LLVM 13
    - Add Python 3.10 support
    
    Bug: https://bugs.gentoo.org/818016
    Bug: https://bugs.gentoo.org/819486
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 dev-lang/spidermonkey/Manifest                    |  2 +-
 dev-lang/spidermonkey/spidermonkey-78.15.0.ebuild | 13 ++++++++++---
 2 files changed, 11 insertions(+), 4 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57093afe2fa8a6641603e53a9ccc6349f114bc57

commit 57093afe2fa8a6641603e53a9ccc6349f114bc57
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2021-10-22 23:46:49 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2021-10-23 00:33:32 +0000

    www-client/firefox: update patch set
    
    - Unbreak rust-1.56
    - Allow building with LLVM 13
    - Add Python 3.10 support
    
    Bug: https://bugs.gentoo.org/818016
    Bug: https://bugs.gentoo.org/819486
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 www-client/firefox/Manifest               |  4 ++--
 www-client/firefox/firefox-78.15.0.ebuild | 14 +++++++++++---
 www-client/firefox/firefox-93.0.ebuild    | 12 ++++++++++--
 3 files changed, 23 insertions(+), 7 deletions(-)