Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 865257 - dev-lang/rust-1.62.1:/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found [Prefix]
Summary: dev-lang/rust-1.62.1:/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' no...
Status: UNCONFIRMED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Rust Project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2022-08-15 16:55 UTC by Steven Trogdon
Modified: 2024-02-14 10:26 UTC (History)
7 users (show)

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


Attachments
build.log (build.log.bz2,34.62 KB, application/x-bzip)
2022-08-15 16:59 UTC, Steven Trogdon
Details
emerge --info (emerge.info,6.46 KB, text/plain)
2022-08-15 17:04 UTC, Steven Trogdon
Details
interpreter patch (elf_interpreter.patch,845 bytes, patch)
2022-08-16 05:00 UTC, Steven Trogdon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steven Trogdon 2022-08-15 16:55:04 UTC
The Traceback is:

For more information about this error, try `rustc --explain E0432`.
warning: `serde` (lib) generated 115 warnings
error: could not compile `serde` due to 2 previous errors; 115 warnings emitted

Caused by:
  process didn't exit successfully: `CARGO=/storage/strogdon/gentoo-rap/var/tmp/portage/dev-lang/rust-1.62.1/work/rust-stage0/bin/cargo CARGO_CRATE_NAME=serde CARGO_MANIFEST_DIR=/storage/strogdon/gentoo-rap/var/tmp/portage/dev-lang/rust-1.62.1/work/rustc-1.62.1-src/vendor/serde-1.0.125 CARGO_PKG_AUTHORS='Erick Tryzelaar <erick.tryzelaar@gmail.com>:David Tolnay <dtolnay@gmail.com>' CARGO_PKG_DESCRIPTION='A generic serialization/deserialization framework' CARGO_PKG_HOMEPAGE='https://serde.rs' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=serde CARGO_PKG_REPOSITORY='https://github.com/serde-rs/serde' CARGO_PKG_VERSION=1.0.125 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=125 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/storage/strogdon/gentoo-rap/var/tmp/portage/dev-lang/rust-1.62.1/work/rustc-1.62.1-src/build/bootstrap/debug/deps:/storage/strogdon/gentoo-rap/var/tmp/portage/dev-lang/rust-1.62.1/work/rust-stage0/lib:' OUT_DIR=/storage/strogdon/gentoo-rap/var/tmp/portage/dev-lang/rust-1.62.1/work/rustc-1.62.1-src/build/bootstrap/debug/build/serde-072b7567022876b6/out /storage/strogdon/gentoo-rap/var/tmp/portage/dev-lang/rust-1.62.1/work/rust-stage0/bin/rustc --crate-name serde /storage/strogdon/gentoo-rap/var/tmp/portage/dev-lang/rust-1.62.1/work/rustc-1.62.1-src/vendor/serde-1.0.125/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=0 --cfg 'feature="default"' --cfg 'feature="derive"' --cfg 'feature="serde_derive"' --cfg 'feature="std"' -C metadata=d3a42463248ff26d -C extra-filename=-d3a42463248ff26d --out-dir /storage/strogdon/gentoo-rap/var/tmp/portage/dev-lang/rust-1.62.1/work/rustc-1.62.1-src/build/bootstrap/debug/deps -L dependency=/storage/strogdon/gentoo-rap/var/tmp/portage/dev-lang/rust-1.62.1/work/rustc-1.62.1-src/build/bootstrap/debug/deps --extern serde_derive=/storage/strogdon/gentoo-rap/var/tmp/portage/dev-lang/rust-1.62.1/work/rustc-1.62.1-src/build/bootstrap/debug/deps/libserde_derive-761745a46e3f99c7.so --cap-lints warn -C linker=x86_64-pc-linux-gnu-gcc -Wrust_2018_idioms -Wunused_lifetimes -Wsemicolon_in_expressions_from_macros -Dwarnings --cfg ops_bound --cfg core_reverse --cfg de_boxed_c_str --cfg de_boxed_path --cfg de_rc_dst --cfg core_duration --cfg integer128 --cfg range_inclusive --cfg num_nonzero --cfg serde_derive --cfg core_try_from --cfg num_nonzero_signed --cfg systemtime_checked_add --cfg std_atomic64 --cfg std_atomic` (exit status: 1)
Traceback (most recent call last):
  File "/storage/strogdon/gentoo-rap/var/tmp/portage/dev-lang/rust-1.62.1/work/rustc-1.62.1-src/./x.py", line 27, in <module>
    bootstrap.main()
  File "/storage/strogdon/gentoo-rap/var/tmp/portage/dev-lang/rust-1.62.1/work/rustc-1.62.1-src/src/bootstrap/bootstrap.py", line 1195, in main
    bootstrap(help_triggered)
  File "/storage/strogdon/gentoo-rap/var/tmp/portage/dev-lang/rust-1.62.1/work/rustc-1.62.1-src/src/bootstrap/bootstrap.py", line 1169, in bootstrap
    build.build_bootstrap()
  File "/storage/strogdon/gentoo-rap/var/tmp/portage/dev-lang/rust-1.62.1/work/rustc-1.62.1-src/src/bootstrap/bootstrap.py", line 899, in build_bootstrap
    run(args, env=env, verbose=self.verbose)
  File "/storage/strogdon/gentoo-rap/var/tmp/portage/dev-lang/rust-1.62.1/work/rustc-1.62.1-src/src/bootstrap/bootstrap.py", line 190, in run
    raise RuntimeError(err)
RuntimeError: failed to run: /storage/strogdon/gentoo-rap/var/tmp/portage/dev-lang/rust-1.62.1/work/rust-stage0/bin/cargo build --manifest-path /storage/strogdon/gentoo-rap/var/tmp/portage/dev-lang/rust-1.62.1/work/rustc-1.62.1-src/src/bootstrap/Cargo.toml --verbose --verbose --locked --frozen

The source of the failure is:

warning: `serde_derive` (lib) generated 92 warnings
     Running `CARGO=/storage/strogdon/gentoo-rap/var/tmp/portage/dev-lang/rust-1.62.1/work/rust-stage0/bin/cargo CARGO_CRATE_NAME=serde CARGO_MANIFEST_DIR=/storage/strogdon/gentoo-rap/var/tmp/portage/dev-lang/rust-1.62.1/work/rustc-1.62.1-src/ve                          ndor/serde-1.0.125 CARGO_PKG_AUTHORS='Erick Tryzelaar <erick.tryzelaar@gmail.com>:David Tolnay <dtolnay@gmail.com>' CARGO_PKG_DESCRIPTION='A generic serialization/deserialization framework' CARGO_PKG_HOMEPAGE='https://serde.rs' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=serde CARGO_PKG_REPOSITORY='https://github.com/serde-rs/serde' CARGO_PKG_VERSION=1.0.125 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=125 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/storage/strogdon/gentoo-rap/var/tmp/portage/dev-lang/rust-1.62.1/work/rustc-1.62.1-src/build/bootstrap/debug/deps:/storage/strogdon/gentoo-rap/var/tmp/portage/dev-lang/rust-1.62.1/work/rust-stage0/lib:' OUT_DIR=/storage/strogdon/gentoo-rap/var/tmp/portage/dev-lang/rust-1.62.1/work/rustc-1.62.1-src/build/bootstrap/debug/build/serde-072b7567022876b6/out /storage/strogdon/gentoo-rap/var/tmp/portage/dev-lang/rust-1.62.1/work/rust-stage0/bin/rustc --crate-name serde /storage/strogdon/gentoo-rap/var/tmp/portage/dev-lang/rust-1.62.1/work/rustc-1.62.1-src/vendor/serde-1.0.125/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=0 --cfg 'feature="default"' --cfg 'feature="derive"' --cfg 'feature="serde_derive"' --cfg 'feature="std"' -C metadata=d3a42463248ff26d -C extra-filename=-d3a42463248ff26d --out-dir /storage/strogdon/gentoo-rap/var/tmp/portage/dev-lang/rust-1.62.1/work/rustc-1.62.1-src/build/bootstrap/debug/deps -L dependency=/storage/strogdon/gentoo-rap/var/tmp/portage/dev-lang/rust-1.62.1/work/rustc-1.62.1-src/build/bootstrap/debug/deps --extern serde_derive=/storage/strogdon/gentoo-rap/var/tmp/portage/dev-lang/rust-1.62.1/work/rustc-1.62.1-src/build/bootstrap/debug/deps/libserde_derive-761745a46e3f99c7.so --cap-lints warn -C linker=x86_64-pc-linux-gnu-gcc -Wrust_2018_idioms -Wunused_lifetimes -Wsemicolon_in_expressions_from_macros -Dwarnings --cfg ops_bound --cfg core_reverse --cfg de_boxed_c_str --cfg de_boxed_path --cfg de_rc_dst --cfg core_duration --cfg integer128 --cfg range_inclusive --cfg num_nonzero --cfg serde_derive --cfg core_try_from --cfg num_nonzero_signed --cfg systemtime_checked_add --cfg std_atomic64 --cfg std_atomic`
error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /storage/strogdon/gentoo-rap/var/tmp/portage/dev-lang/rust-1.62.1/work/rustc-1.62.1-src/build/bootstrap/debug/deps/libserde_derive-761745a46e3f99c7.so)                                    

Somehow it appears that the host libc is interferring.
Comment 1 Steven Trogdon 2022-08-15 16:59:48 UTC
Created attachment 799739 [details]
build.log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-15 17:00:05 UTC
Please always include the full build.log and emerge --info.
Comment 3 Steven Trogdon 2022-08-15 17:04:05 UTC
Created attachment 799741 [details]
emerge --info
Comment 4 Steven Trogdon 2022-08-16 05:00:07 UTC
I had a suspicion that this issue is similar to https://bugs.gentoo.org/837746 in that the interpreter is set incorrectly for provided ELF files. Following https://bugs.gentoo.org/682370 and adjusting the interpreter of the ELF files under ${WORKDIR}/rust-stage0/bin I'm able to build rust-1.62.1. A minimal patch is attached.
Comment 5 Steven Trogdon 2022-08-16 05:00:53 UTC
Created attachment 799835 [details, diff]
interpreter patch
Comment 6 Christian Glindkamp 2023-03-25 09:02:08 UTC
Just yesterday I ran into the same issue and I can confirm that the patch in comment 5 works for me for rust version 1.66.1.