Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 784053 - gnome-base/librsvg-2.50.4 fails to build: error[E0460]: found possibly newer version of crate `std` which `pkg_config` depends on
Summary: gnome-base/librsvg-2.50.4 fails to build: error[E0460]: found possibly newer ...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-19 08:47 UTC by Thomas Deutschmann
Modified: 2021-04-19 14:28 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,20.99 KB, text/plain)
2021-04-19 08:47 UTC, Thomas Deutschmann
Details
build.log (build.log,72.17 KB, text/plain)
2021-04-19 08:47 UTC, Thomas Deutschmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deutschmann gentoo-dev 2021-04-19 08:47:18 UTC
Created attachment 700710 [details]
build.log

>    Compiling cairo-sys-rs v0.9.2
>      Running `/usr/bin/sccache rustc --crate-name build_script_build /var/tmp/portage/gnome-base/librsvg-2.50.4/work/librsvg-2.50.4/vendor/cairo-sys-rs/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C debug-assertions=off --cfg 'feature="glib-sys"' --cfg 'feature="use_glib"' --cfg 'feature="v1_14"' --cfg 'feature="v1_16"' -C metadata=a17ea659c10562f1 -C extra-filename=-a17ea659c10562f1 --out-dir /var/tmp/portage/gnome-base/librsvg-2.50.4/work/librsvg-2.50.4-abi_x86_64.amd64/target/release/build/cairo-sys-rs-a17ea659c10562f1 -L dependency=/var/tmp/portage/gnome-base/librsvg-2.50.4/work/librsvg-2.50.4-abi_x86_64.amd64/target/release/deps --extern pkg_config=/var/tmp/portage/gnome-base/librsvg-2.50.4/work/librsvg-2.50.4-abi_x86_64.amd64/target/release/deps/libpkg_config-d62a1186eba48953.rlib --cap-lints allow`
> error[E0460]: found possibly newer version of crate `std` which `pkg_config` depends on
>  --> /var/tmp/portage/gnome-base/librsvg-2.50.4/work/librsvg-2.50.4/vendor/glib-sys/build.rs:6:1
>   |
> 6 | extern crate pkg_config;
>   | ^^^^^^^^^^^^^^^^^^^^^^^^
>   |
>   = note: perhaps that crate needs to be recompiled?
>   = note: the following crate versions were found:
>           crate `std`: /usr/lib/rust/1.51.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-1ede6689d7ed6e20.rlib
>           crate `std`: /usr/lib/rust/1.51.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-1ede6689d7ed6e20.so
>           crate `pkg_config`: /var/tmp/portage/gnome-base/librsvg-2.50.4/work/librsvg-2.50.4-abi_x86_64.amd64/target/release/deps/libpkg_config-d62a1186eba48953.rlib
> 
> error: aborting due to previous error
> 
> error: could not compile `glib-sys`
> 
> Caused by:
>   process didn't exit successfully: `/usr/bin/sccache rustc --crate-name build_script_build /var/tmp/portage/gnome-base/librsvg-2.50.4/work/librsvg-2.50.4/vendor/glib-sys/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C debug-assertions=off --cfg 'feature="v2_44"' --cfg 'feature="v2_46"' --cfg 'feature="v2_48"' --cfg 'feature="v2_50"' -C metadata=d316329db89722f7 -C extra-filename=-d316329db89722f7 --out-dir /var/tmp/portage/gnome-base/librsvg-2.50.4/work/librsvg-2.50.4-abi_x86_64.amd64/target/release/build/glib-sys-d316329db89722f7 -L dependency=/var/tmp/portage/gnome-base/librsvg-2.50.4/work/librsvg-2.50.4-abi_x86_64.amd64/target/release/deps --extern pkg_config=/var/tmp/portage/gnome-base/librsvg-2.50.4/work/librsvg-2.50.4-abi_x86_64.amd64/target/release/deps/libpkg_config-d62a1186eba48953.rlib --cap-lints allow` (exit code: 1)
> warning: build failed, waiting for other jobs to finish...
> error[E0460]: found possibly newer version of crate `std` which `pkg_config` depends on
>  --> /var/tmp/portage/gnome-base/librsvg-2.50.4/work/librsvg-2.50.4/vendor/cairo-sys-rs/build.rs:1:1
>   |
> 1 | extern crate pkg_config;
>   | ^^^^^^^^^^^^^^^^^^^^^^^^
>   |
>   = note: perhaps that crate needs to be recompiled?
>   = note: the following crate versions were found:
>           crate `std`: /usr/lib/rust/1.51.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-1ede6689d7ed6e20.rlib
>           crate `std`: /usr/lib/rust/1.51.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-1ede6689d7ed6e20.so
>           crate `pkg_config`: /var/tmp/portage/gnome-base/librsvg-2.50.4/work/librsvg-2.50.4-abi_x86_64.amd64/target/release/deps/libpkg_config-d62a1186eba48953.rlib
> 
> error: aborting due to previous error
> 
> error[E0460]: found possibly newer version of crate `std` which `pkg_config` depends on
>  --> /var/tmp/portage/gnome-base/librsvg-2.50.4/work/librsvg-2.50.4/vendor/gobject-sys/build.rs:6:1
>   |
> 6 | extern crate pkg_config;
>   | ^^^^^^^^^^^^^^^^^^^^^^^^
>   |
>   = note: perhaps that crate needs to be recompiled?
>   = note: the following crate versions were found:
>           crate `std`: /usr/lib/rust/1.51.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-1ede6689d7ed6e20.rlib
>           crate `std`: /usr/lib/rust/1.51.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-1ede6689d7ed6e20.so
>           crate `pkg_config`: /var/tmp/portage/gnome-base/librsvg-2.50.4/work/librsvg-2.50.4-abi_x86_64.amd64/target/release/deps/libpkg_config-d62a1186eba48953.rlib
> 
> error: aborting due to previous error
> 
> error: build failed
> make[2]: *** [Makefile:1779: librsvg_c_api.la] Error 101
> make[2]: Leaving directory '/var/tmp/portage/gnome-base/librsvg-2.50.4/work/librsvg-2.50.4-abi_x86_64.amd64'
> make[1]: *** [Makefile:1276: all-recursive] Error 1
> make[1]: Leaving directory '/var/tmp/portage/gnome-base/librsvg-2.50.4/work/librsvg-2.50.4-abi_x86_64.amd64'
> make: *** [Makefile:827: all] Error 2
>  * ERROR: gnome-base/librsvg-2.50.4::gentoo failed (compile phase):
>  *   emake failed
Comment 1 Thomas Deutschmann gentoo-dev 2021-04-19 08:47:50 UTC
Created attachment 700713 [details]
build.log
Comment 2 Thomas Deutschmann gentoo-dev 2021-04-19 08:52:26 UTC
> Portage 3.0.18 (python 3.9.4-final-0, default/linux/amd64/17.1/desktop/gnome, gcc-10.3.0, glibc-2.33, 5.11.15-gentoo-x86_64 x86_64)
> =================================================================
>                          System Settings
> =================================================================
> System uname: Linux-5.11.15-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i5-7300U_CPU_@_2.60GHz-with-glibc2.33
> KiB Mem:    32626256 total,  26128520 free
> KiB Swap:   41943036 total,  41943036 free
> Timestamp of repository gentoo: Mon, 19 Apr 2021 08:35:07 +0000
> Head commit of repository gentoo: 7991105f5ed6a89d3c7d5a79037bb7d716d21e2c
> 
> sh bash 5.1_p4
> ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
> distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
> ccache version 4.2.1 [disabled]
> app-shells/bash:          5.1_p4::gentoo
> dev-java/java-config:     2.3.1::gentoo
> dev-lang/perl:            5.32.1::gentoo
> dev-lang/python:          2.7.18_p8::gentoo, 3.8.9::gentoo, 3.9.4::gentoo
> dev-lang/rust:            1.51.0-r2::gentoo
> dev-util/ccache:          4.2.1::gentoo
> dev-util/cmake:           3.20.1::gentoo
> dev-util/pkgconfig:       0.29.2::gentoo
> sys-apps/baselayout:      2.7-r2::gentoo
> sys-apps/openrc:          0.42.1-r1::gentoo
> sys-apps/sandbox:         2.23::gentoo
> sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo, 2.71::gentoo
> sys-devel/automake:       1.16.3-r1::gentoo
> sys-devel/binutils:       2.35.2::gentoo
> sys-devel/gcc:            10.3.0::gentoo
> sys-devel/gcc-config:     2.4::gentoo
> sys-devel/libtool:        2.4.6-r6::gentoo
> sys-devel/make:           4.3::gentoo
> sys-kernel/linux-headers: 5.11::gentoo (virtual/os-headers)
> sys-libs/glibc:           2.33::gentoo
> 
> 
> =================================================================
>                         Package Settings
> =================================================================
> 
> gnome-base/librsvg-2.50.4::gentoo was built with the following:
> USE="introspection vala" ABI_X86="(64) -32 (-x32)"
>
Comment 3 tt_1 2021-04-19 14:09:11 UTC
I have same use flags for librsvg and the very same emerge --info, only glibc on stable (2.32-r7) and linux-headers on stable (5.10), and no problems with building =gnome-base/librsvg-2.50.4

However I refrain from using ccache, distcc and sccache. Maybe you want to disable the wrapper, given you have not tried that yet.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-04-19 14:16:19 UTC
Interestingly, you have dev-util/pkgconfig, not pkgconf. I doubt it’s related here but the original doesn’t work a lot of the time. pkgconf should really be the only provider.
Comment 5 tt_1 2021-04-19 14:28:56 UTC
emerge --info from my system where I can't reproduce the error:  

Portage 3.0.17 (python 3.8.8-final-0, default/linux/amd64/17.1/desktop, gcc-10.3.0, glibc-2.32-r8, 5.4.113-gentoo x86_64)
=================================================================
System uname: Linux-5.4.113-gentoo-x86_64-AMD_Ryzen_5_2600_Six-Core_Processor-with-glibc2.2.5
KiB Mem:    32891844 total,  23896584 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 19 Apr 2021 13:00:01 +0000
Head commit of repository gentoo: 74528e5fef9e99d5e98d5af2582a97bb2b1bf91d
sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.0_p18::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          3.8.8_p1::gentoo
dev-lang/rust:            1.51.0-r2::gentoo
dev-util/cmake:           3.18.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.2-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            10.3.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r8::gentoo


with dev-util/pkgconf-1.6.3 for your information only

p.s: its not in the list, while dev-util/pkgconfig is. maybe this should be changed in the profiles?