Mock Version: 5.2 Mock Version: 5.2 Mock Version: 5.2 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-cpython.spec'], chrootPath='/var/lib/mock/f40-build-2613102-64051/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=997gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-cpython.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1711324800 Wrote: /builddir/build/SRPMS/rust-cpython-0.7.1-1.fc40.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-cpython.spec'], chrootPath='/var/lib/mock/f40-build-2613102-64051/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=997gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-cpython.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1711324800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.s3GecA + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf cpython-0.7.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/cpython-0.7.1.crate + STATUS=0 + '[' 0 -ne 0 ']' + cd cpython-0.7.1 + rm -rf /builddir/build/BUILD/cpython-0.7.1-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/cpython-0.7.1-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/cpython-fix-metadata.diff + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + rm tests/check_symbols.py + set -euo pipefail + /usr/bin/mkdir -p target/rpm + /usr/bin/ln -s rpm target/release + /usr/bin/rm -rf .cargo/ + /usr/bin/mkdir -p .cargo + cat + cat + /usr/bin/rm -f Cargo.lock + /usr/bin/rm -f Cargo.toml.orig + find -type f -executable -exec chmod -x '{}' + + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.rPam55 + umask 022 + cd /builddir/build/BUILD + cd cpython-0.7.1 + /usr/bin/cargo2rpm --path Cargo.toml buildrequires --with-check + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/rust-cpython-0.7.1-1.fc40.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-cpython.spec'], chrootPath='/var/lib/mock/f40-build-2613102-64051/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=997gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-cpython.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1711324800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.aXqwg8 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf cpython-0.7.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/cpython-0.7.1.crate + STATUS=0 + '[' 0 -ne 0 ']' + cd cpython-0.7.1 + rm -rf /builddir/build/BUILD/cpython-0.7.1-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/cpython-0.7.1-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/cpython-fix-metadata.diff + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + rm tests/check_symbols.py + set -euo pipefail + /usr/bin/mkdir -p target/rpm + /usr/bin/ln -s rpm target/release + /usr/bin/rm -rf .cargo/ + /usr/bin/mkdir -p .cargo + cat + cat + /usr/bin/rm -f Cargo.lock + /usr/bin/rm -f Cargo.toml.orig + find -type f -executable -exec chmod -x '{}' + + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.56dcgN + umask 022 + cd /builddir/build/BUILD + cd cpython-0.7.1 + /usr/bin/cargo2rpm --path Cargo.toml buildrequires --with-check + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/rust-cpython-0.7.1-1.fc40.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-cpython.spec'], chrootPath='/var/lib/mock/f40-build-2613102-64051/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=997gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-cpython.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1711324800 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.DtZRQm + umask 022 + cd /builddir/build/BUILD + cd cpython-0.7.1 + /usr/bin/cargo2rpm --path Cargo.toml buildrequires --with-check + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.bsSzlW + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd cpython-0.7.1 + /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' /usr/bin/cargo build -j64 -Z avoid-dev-deps --profile rpm Compiling memchr v2.7.1 Compiling regex-syntax v0.8.2 Compiling libc v0.2.152 Compiling autocfg v1.1.0 Compiling paste v1.0.14 Compiling cpython v0.7.1 (/builddir/build/BUILD/cpython-0.7.1) Running `/usr/bin/rustc --crate-name memchr --edition=2021 /usr/share/cargo/registry/memchr-2.7.1/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 debug-assertions=off --cfg 'feature="alloc"' --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=63543634a750c1dd -C extra-filename=-63543634a750c1dd --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/usr/bin/rustc --crate-name regex_syntax --edition=2021 /usr/share/cargo/registry/regex-syntax-0.8.2/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 debug-assertions=off --cfg 'feature="default"' --cfg 'feature="std"' --cfg 'feature="unicode"' --cfg 'feature="unicode-age"' --cfg 'feature="unicode-bool"' --cfg 'feature="unicode-case"' --cfg 'feature="unicode-gencat"' --cfg 'feature="unicode-perl"' --cfg 'feature="unicode-script"' --cfg 'feature="unicode-segment"' -C metadata=1fc6faf1bdd33856 -C extra-filename=-1fc6faf1bdd33856 --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/usr/bin/rustc --crate-name build_script_build /usr/share/cargo/registry/libc-0.2.152/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=23dacbb882f4c8e9 -C extra-filename=-23dacbb882f4c8e9 --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/build/libc-23dacbb882f4c8e9 -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/usr/bin/rustc --crate-name autocfg /usr/share/cargo/registry/autocfg-1.1.0/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 debug-assertions=off -C metadata=43486544924e9a9a -C extra-filename=-43486544924e9a9a --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/usr/bin/rustc --crate-name build_script_build --edition=2018 /usr/share/cargo/registry/paste-1.0.14/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off -C metadata=78e43e91fa087a87 -C extra-filename=-78e43e91fa087a87 --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/build/paste-78e43e91fa087a87 -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/usr/bin/rustc --crate-name build_script_build --edition=2018 build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="python3-sys"' -C metadata=907c3ed4d86bf46c -C extra-filename=-907c3ed4d86bf46c --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/build/cpython-907c3ed4d86bf46c -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Compiling aho-corasick v1.1.2 Running `/usr/bin/rustc --crate-name aho_corasick --edition=2021 /usr/share/cargo/registry/aho-corasick-1.1.2/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 debug-assertions=off --cfg 'feature="default"' --cfg 'feature="perf-literal"' --cfg 'feature="std"' -C metadata=2f5048b60c918cc4 -C extra-filename=-2f5048b60c918cc4 --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --extern memchr=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libmemchr-63543634a750c1dd.rmeta --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/builddir/build/BUILD/cpython-0.7.1/target/rpm/build/paste-78e43e91fa087a87/build-script-build` Running `/usr/bin/rustc --crate-name paste --edition=2018 /usr/share/cargo/registry/paste-1.0.14/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C embed-bitcode=no -C debug-assertions=off -C metadata=28994e062164ac9c -C extra-filename=-28994e062164ac9c --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --extern proc_macro --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/builddir/build/BUILD/cpython-0.7.1/target/rpm/build/libc-23dacbb882f4c8e9/build-script-build` Running `/usr/bin/rustc --crate-name libc /usr/share/cargo/registry/libc-0.2.152/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=3f14fdac3e7b4753 -C extra-filename=-3f14fdac3e7b4753 --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn --cfg freebsd11 --cfg libc_priv_mod_use --cfg libc_union --cfg libc_const_size_of --cfg libc_align --cfg libc_int128 --cfg libc_core_cvoid --cfg libc_packedN --cfg libc_cfg_target_vendor --cfg libc_non_exhaustive --cfg libc_long_array --cfg libc_ptr_addr_of --cfg libc_underscore_const_names --cfg libc_const_extern_fn` Compiling num-traits v0.2.17 Running `/usr/bin/rustc --crate-name build_script_build --edition=2018 /usr/share/cargo/registry/num-traits-0.2.17/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=36e2f5fab38bad52 -C extra-filename=-36e2f5fab38bad52 --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/build/num-traits-36e2f5fab38bad52 -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --extern autocfg=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libautocfg-43486544924e9a9a.rlib --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/builddir/build/BUILD/cpython-0.7.1/target/rpm/build/num-traits-36e2f5fab38bad52/build-script-build` Running `/usr/bin/rustc --crate-name num_traits --edition=2018 /usr/share/cargo/registry/num-traits-0.2.17/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=705915cf967eae0f -C extra-filename=-705915cf967eae0f --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn --cfg has_to_int_unchecked --cfg has_reverse_bits --cfg has_leading_trailing_ones --cfg has_div_euclid --cfg has_copysign --cfg has_is_subnormal --cfg has_int_to_from_bytes --cfg has_float_to_from_bytes` Compiling regex-automata v0.4.3 Running `/usr/bin/rustc --crate-name regex_automata --edition=2021 /usr/share/cargo/registry/regex-automata-0.4.3/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 debug-assertions=off --cfg 'feature="alloc"' --cfg 'feature="dfa-onepass"' --cfg 'feature="hybrid"' --cfg 'feature="meta"' --cfg 'feature="nfa-backtrack"' --cfg 'feature="nfa-pikevm"' --cfg 'feature="nfa-thompson"' --cfg 'feature="perf-inline"' --cfg 'feature="perf-literal"' --cfg 'feature="perf-literal-multisubstring"' --cfg 'feature="perf-literal-substring"' --cfg 'feature="std"' --cfg 'feature="syntax"' --cfg 'feature="unicode"' --cfg 'feature="unicode-age"' --cfg 'feature="unicode-bool"' --cfg 'feature="unicode-case"' --cfg 'feature="unicode-gencat"' --cfg 'feature="unicode-perl"' --cfg 'feature="unicode-script"' --cfg 'feature="unicode-segment"' --cfg 'feature="unicode-word-boundary"' -C metadata=bf1842b44e0324c1 -C extra-filename=-bf1842b44e0324c1 --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --extern aho_corasick=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libaho_corasick-2f5048b60c918cc4.rmeta --extern memchr=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libmemchr-63543634a750c1dd.rmeta --extern regex_syntax=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libregex_syntax-1fc6faf1bdd33856.rmeta --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Compiling regex v1.10.2 Running `/usr/bin/rustc --crate-name regex --edition=2021 /usr/share/cargo/registry/regex-1.10.2/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 debug-assertions=off --cfg 'feature="default"' --cfg 'feature="perf"' --cfg 'feature="perf-backtrack"' --cfg 'feature="perf-cache"' --cfg 'feature="perf-dfa"' --cfg 'feature="perf-inline"' --cfg 'feature="perf-literal"' --cfg 'feature="perf-onepass"' --cfg 'feature="std"' --cfg 'feature="unicode"' --cfg 'feature="unicode-age"' --cfg 'feature="unicode-bool"' --cfg 'feature="unicode-case"' --cfg 'feature="unicode-gencat"' --cfg 'feature="unicode-perl"' --cfg 'feature="unicode-script"' --cfg 'feature="unicode-segment"' -C metadata=fd9e88037fe911eb -C extra-filename=-fd9e88037fe911eb --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --extern aho_corasick=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libaho_corasick-2f5048b60c918cc4.rmeta --extern memchr=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libmemchr-63543634a750c1dd.rmeta --extern regex_automata=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libregex_automata-bf1842b44e0324c1.rmeta --extern regex_syntax=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libregex_syntax-1fc6faf1bdd33856.rmeta --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Compiling python3-sys v0.7.1 Running `/usr/bin/rustc --crate-name build_script_build --edition=2018 /usr/share/cargo/registry/python3-sys-0.7.1/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="python-3"' -C metadata=4cd9d623ce2c4c7f -C extra-filename=-4cd9d623ce2c4c7f --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/build/python3-sys-4cd9d623ce2c4c7f -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --extern regex=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libregex-fd9e88037fe911eb.rlib --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/builddir/build/BUILD/cpython-0.7.1/target/rpm/build/python3-sys-4cd9d623ce2c4c7f/build-script-build` Running `/usr/bin/rustc --crate-name python3_sys --edition=2018 /usr/share/cargo/registry/python3-sys-0.7.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="python-3"' -C metadata=23f70a00842a1c8e -C extra-filename=-23f70a00842a1c8e --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --extern libc=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/liblibc-3f14fdac3e7b4753.rmeta --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn -L native=/usr/lib64 -l python3.12 --cfg Py_3_4 --cfg Py_3_5 --cfg Py_3_6 --cfg Py_3_7 --cfg Py_3_8 --cfg Py_3_9 --cfg Py_3_10 --cfg Py_3_11 --cfg Py_3_12` Running `/builddir/build/BUILD/cpython-0.7.1/target/rpm/build/cpython-907c3ed4d86bf46c/build-script-build` Running `/usr/bin/rustc --crate-name cpython --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="python3-sys"' -C metadata=c511b697aaf5713a -C extra-filename=-c511b697aaf5713a --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --extern libc=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/liblibc-3f14fdac3e7b4753.rmeta --extern num_traits=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libnum_traits-705915cf967eae0f.rmeta --extern paste=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpaste-28994e062164ac9c.so --extern python3_sys=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpython3_sys-23f70a00842a1c8e.rmeta -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn -L native=/usr/lib64` Finished rpm [optimized + debuginfo] target(s) in 3m 04s + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.wQBb9q + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rust-cpython-0.7.1-1.fc40.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rust-cpython-0.7.1-1.fc40.riscv64 ++ dirname /builddir/build/BUILDROOT/rust-cpython-0.7.1-1.fc40.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rust-cpython-0.7.1-1.fc40.riscv64 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd cpython-0.7.1 + set -euo pipefail ++ /usr/bin/cargo2rpm --path Cargo.toml is-lib + '[' 1 -eq 1 ']' ++ /usr/bin/cargo2rpm --path Cargo.toml name + CRATE_NAME=cpython ++ /usr/bin/cargo2rpm --path Cargo.toml version + CRATE_VERSION=0.7.1 + REG_DIR=/builddir/build/BUILDROOT/rust-cpython-0.7.1-1.fc40.riscv64/usr/share/cargo/registry/cpython-0.7.1 + /usr/bin/mkdir -p /builddir/build/BUILDROOT/rust-cpython-0.7.1-1.fc40.riscv64/usr/share/cargo/registry/cpython-0.7.1 + /usr/bin/awk -i inplace -v INPLACE_SUFFIX=.deps '/^\[((.+\.)?((dev|build)-)?dependencies|features)/{f=1;next} /^\[/{f=0}; !f' Cargo.toml + /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' /usr/bin/cargo package -l + grep -w -E -v 'Cargo.(lock|toml.orig)' + xargs -d '\n' /usr/bin/cp --parents -a -t /builddir/build/BUILDROOT/rust-cpython-0.7.1-1.fc40.riscv64/usr/share/cargo/registry/cpython-0.7.1 warning: No (git) VCS found for `/builddir/build/BUILD/cpython-0.7.1` + /usr/bin/mv Cargo.toml.deps Cargo.toml + /usr/bin/cp -a Cargo.toml /builddir/build/BUILDROOT/rust-cpython-0.7.1-1.fc40.riscv64/usr/share/cargo/registry/cpython-0.7.1/Cargo.toml + /usr/bin/rm -f /builddir/build/BUILDROOT/rust-cpython-0.7.1-1.fc40.riscv64/usr/share/cargo/registry/cpython-0.7.1/Cargo.toml.deps + echo '{"files":{},"package":""}' ++ /usr/bin/cargo2rpm --path Cargo.toml is-bin + '[' 0 -eq 1 ']' + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j64 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.ySafYa + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd cpython-0.7.1 + /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' /usr/bin/cargo test -j64 -Z avoid-dev-deps --profile rpm --no-fail-fast Fresh memchr v2.7.1 Fresh aho-corasick v1.1.2 Fresh regex-syntax v0.8.2 Fresh autocfg v1.1.0 Compiling serde v1.0.193 Compiling rustversion v1.0.14 Compiling half v1.8.2 Running `/usr/bin/rustc --crate-name build_script_build --edition=2018 /usr/share/cargo/registry/serde-1.0.193/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="std"' -C metadata=2585b058b3408ed2 -C extra-filename=-2585b058b3408ed2 --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/build/serde-2585b058b3408ed2 -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/usr/bin/rustc --crate-name build_script_build --edition=2018 /usr/share/cargo/registry/rustversion-1.0.14/build/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off -C metadata=d5b2ff69ce6ca09d -C extra-filename=-d5b2ff69ce6ca09d --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/build/rustversion-d5b2ff69ce6ca09d -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Fresh regex-automata v0.4.3 Running `/usr/bin/rustc --crate-name half --edition=2018 /usr/share/cargo/registry/half-1.8.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 -C metadata=d7fb7d0d9ae5b506 -C extra-filename=-d7fb7d0d9ae5b506 --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Fresh regex v1.10.2 Fresh libc v0.2.152 Fresh paste v1.0.14 Fresh num-traits v0.2.17 Fresh python3-sys v0.7.1 Running `/builddir/build/BUILD/cpython-0.7.1/target/rpm/build/serde-2585b058b3408ed2/build-script-build` Running `/usr/bin/rustc --crate-name serde --edition=2018 /usr/share/cargo/registry/serde-1.0.193/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --cfg 'feature="std"' -C metadata=ebae301108c3ae04 -C extra-filename=-ebae301108c3ae04 --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/builddir/build/BUILD/cpython-0.7.1/target/rpm/build/rustversion-d5b2ff69ce6ca09d/build-script-build` Running `/usr/bin/rustc --crate-name rustversion --edition=2018 /usr/share/cargo/registry/rustversion-1.0.14/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C embed-bitcode=no -C debug-assertions=off -C metadata=50cda9651f68a49d -C extra-filename=-50cda9651f68a49d --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --extern proc_macro --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Compiling serde_cbor v0.11.2 Compiling serde_bytes v0.11.14 Running `/usr/bin/rustc --crate-name serde_cbor --edition=2018 /usr/share/cargo/registry/serde_cbor-0.11.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=334c5cbd45a4eec1 -C extra-filename=-334c5cbd45a4eec1 --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --extern half=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libhalf-d7fb7d0d9ae5b506.rmeta --extern serde=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libserde-ebae301108c3ae04.rmeta --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/usr/bin/rustc --crate-name serde_bytes --edition=2018 /usr/share/cargo/registry/serde_bytes-0.11.14/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=4f2bbb95848e56e8 -C extra-filename=-4f2bbb95848e56e8 --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --extern serde=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libserde-ebae301108c3ae04.rmeta --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Compiling cpython v0.7.1 (/builddir/build/BUILD/cpython-0.7.1) Running `/usr/bin/rustc --crate-name test_class --edition=2018 tests/test_class.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="python3-sys"' -C metadata=a96069e8e60fc9e3 -C extra-filename=-a96069e8e60fc9e3 --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --extern cpython=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libcpython-c511b697aaf5713a.rlib --extern libc=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/liblibc-3f14fdac3e7b4753.rlib --extern num_traits=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libnum_traits-705915cf967eae0f.rlib --extern paste=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpaste-28994e062164ac9c.so --extern python3_sys=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpython3_sys-23f70a00842a1c8e.rlib --extern rustversion=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/librustversion-50cda9651f68a49d.so --extern serde_bytes=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libserde_bytes-4f2bbb95848e56e8.rlib --extern serde_cbor=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libserde_cbor-334c5cbd45a4eec1.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn -L native=/usr/lib64` Running `/usr/bin/rustc --crate-name cpython --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="python3-sys"' -C metadata=5d592b1dddeeb435 -C extra-filename=-5d592b1dddeeb435 --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --extern libc=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/liblibc-3f14fdac3e7b4753.rlib --extern num_traits=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libnum_traits-705915cf967eae0f.rlib --extern paste=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpaste-28994e062164ac9c.so --extern python3_sys=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpython3_sys-23f70a00842a1c8e.rlib --extern rustversion=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/librustversion-50cda9651f68a49d.so --extern serde_bytes=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libserde_bytes-4f2bbb95848e56e8.rlib --extern serde_cbor=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libserde_cbor-334c5cbd45a4eec1.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn -L native=/usr/lib64` Running `/usr/bin/rustc --crate-name test_function --edition=2018 tests/test_function.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="python3-sys"' -C metadata=fb35bd889d3b7477 -C extra-filename=-fb35bd889d3b7477 --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --extern cpython=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libcpython-c511b697aaf5713a.rlib --extern libc=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/liblibc-3f14fdac3e7b4753.rlib --extern num_traits=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libnum_traits-705915cf967eae0f.rlib --extern paste=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpaste-28994e062164ac9c.so --extern python3_sys=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpython3_sys-23f70a00842a1c8e.rlib --extern rustversion=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/librustversion-50cda9651f68a49d.so --extern serde_bytes=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libserde_bytes-4f2bbb95848e56e8.rlib --extern serde_cbor=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libserde_cbor-334c5cbd45a4eec1.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn -L native=/usr/lib64` Running `/usr/bin/rustc --crate-name test_sharedref --edition=2018 tests/test_sharedref.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="python3-sys"' -C metadata=4711d1ca6ed4a13c -C extra-filename=-4711d1ca6ed4a13c --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --extern cpython=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libcpython-c511b697aaf5713a.rlib --extern libc=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/liblibc-3f14fdac3e7b4753.rlib --extern num_traits=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libnum_traits-705915cf967eae0f.rlib --extern paste=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpaste-28994e062164ac9c.so --extern python3_sys=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpython3_sys-23f70a00842a1c8e.rlib --extern rustversion=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/librustversion-50cda9651f68a49d.so --extern serde_bytes=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libserde_bytes-4f2bbb95848e56e8.rlib --extern serde_cbor=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libserde_cbor-334c5cbd45a4eec1.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn -L native=/usr/lib64` Running `/usr/bin/rustc --crate-name test_thread_exit --edition=2018 tests/test_thread_exit.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="python3-sys"' -C metadata=ce3f9eb139aa3cfa -C extra-filename=-ce3f9eb139aa3cfa --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --extern cpython=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libcpython-c511b697aaf5713a.rlib --extern libc=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/liblibc-3f14fdac3e7b4753.rlib --extern num_traits=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libnum_traits-705915cf967eae0f.rlib --extern paste=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpaste-28994e062164ac9c.so --extern python3_sys=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpython3_sys-23f70a00842a1c8e.rlib --extern rustversion=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/librustversion-50cda9651f68a49d.so --extern serde_bytes=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libserde_bytes-4f2bbb95848e56e8.rlib --extern serde_cbor=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libserde_cbor-334c5cbd45a4eec1.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn -L native=/usr/lib64` Running `/usr/bin/rustc --crate-name hello --edition=2018 examples/hello.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="python3-sys"' -C metadata=1a19170a230f0242 -C extra-filename=-1a19170a230f0242 --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/examples -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --extern cpython=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libcpython-c511b697aaf5713a.rlib --extern libc=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/liblibc-3f14fdac3e7b4753.rlib --extern num_traits=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libnum_traits-705915cf967eae0f.rlib --extern paste=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpaste-28994e062164ac9c.so --extern python3_sys=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpython3_sys-23f70a00842a1c8e.rlib --extern rustversion=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/librustversion-50cda9651f68a49d.so --extern serde_bytes=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libserde_bytes-4f2bbb95848e56e8.rlib --extern serde_cbor=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libserde_cbor-334c5cbd45a4eec1.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn -L native=/usr/lib64` warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing --> tests/test_function.rs:114:9 | 114 | drop(py); // avoid unused variable warning | ^^^^^--^ | | | argument has type `Python<'_>` | = note: use `let _ = ...` to ignore the expression or result = note: `#[warn(dropping_copy_types)]` on by default warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing --> tests/test_function.rs:133:9 | 133 | drop(py); | ^^^^^--^ | | | argument has type `Python<'_>` | = note: use `let _ = ...` to ignore the expression or result error: linking with `cc` failed: exit status: 1 | = note: LC_ALL="C" PATH="/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin" VSLANG="1033" "cc" "/tmp/rustco4fjYp/symbols.o" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/examples/hello-1a19170a230f0242.hello.a74e3000413106b4-cgu.0.rcgu.o" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/examples/hello-1a19170a230f0242.44ziu4djxr3km3fp.rcgu.o" "-Wl,--as-needed" "-L" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps" "-L" "/usr/lib64" "-L" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libcpython-c511b697aaf5713a.rlib" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libnum_traits-705915cf967eae0f.rlib" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpython3_sys-23f70a00842a1c8e.rlib" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/liblibc-3f14fdac3e7b4753.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libstd-befa7e56df894fae.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libpanic_unwind-574434bd876e4112.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libobject-b6d9959645804675.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libmemchr-da932604426d461a.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libaddr2line-71c2cd558908de35.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libgimli-03c08960f605463c.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/librustc_demangle-9d0233e5d3b9198f.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libstd_detect-993242b356d83926.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libhashbrown-cf977378f7e151ae.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/librustc_std_workspace_alloc-348f4ab943227917.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libminiz_oxide-678836944cbf25c6.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libadler-6e1fa5e52385fd7b.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libunwind-0858b6a38ac7efbe.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libcfg_if-00ee27db9da8f8e7.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/liblibc-5f031a2735ea4416.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/liballoc-fae6466012f7545c.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/librustc_std_workspace_core-2325eb17ce835e68.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libcore-8c6bce3e93f15dc4.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libcompiler_builtins-1e531fffa0f6f2be.rlib" "-Wl,-Bdynamic" "-lpython3.12" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib" "-o" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/examples/hello-1a19170a230f0242" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs" "-Wl,-z,relro" "-Wl,-z,now" "-specs=/usr/lib/rpm/redhat/redhat-package-notes" = note: /usr/bin/ld: /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libcpython-c511b697aaf5713a.rlib(cpython-c511b697aaf5713a.cpython.40b02d4220c122ae-cgu.0.rcgu.o): in function `python3_sys::unicodeobject::PyUnicode_READY': /usr/share/cargo/registry/python3-sys-0.7.1/src/unicodeobject.rs:544:(.text._ZN7cpython7objects6string8PyString15to_string_lossy17h9d798f551a810925E+0x1e): undefined reference to `_PyUnicode_Ready' collect2: error: ld returned 1 exit status = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified = note: use the `-l` flag to specify native libraries to link = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname) error: could not compile `cpython` (example "hello") due to previous error Caused by: process didn't exit successfully: `/usr/bin/rustc --crate-name hello --edition=2018 examples/hello.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="python3-sys"' -C metadata=1a19170a230f0242 -C extra-filename=-1a19170a230f0242 --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/examples -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --extern cpython=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libcpython-c511b697aaf5713a.rlib --extern libc=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/liblibc-3f14fdac3e7b4753.rlib --extern num_traits=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libnum_traits-705915cf967eae0f.rlib --extern paste=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpaste-28994e062164ac9c.so --extern python3_sys=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpython3_sys-23f70a00842a1c8e.rlib --extern rustversion=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/librustversion-50cda9651f68a49d.so --extern serde_bytes=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libserde_bytes-4f2bbb95848e56e8.rlib --extern serde_cbor=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libserde_cbor-334c5cbd45a4eec1.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn -L native=/usr/lib64` (exit status: 1) warning: build failed, waiting for other jobs to finish... error: linking with `cc` failed: exit status: 1 | = note: LC_ALL="C" PATH="/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin" VSLANG="1033" "cc" "/tmp/rustcbq1RDX/symbols.o" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/test_sharedref-4711d1ca6ed4a13c.test_sharedref.69618cb652a65af9-cgu.0.rcgu.o" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/test_sharedref-4711d1ca6ed4a13c.37x50tl68qfu4qv0.rcgu.o" "-Wl,--as-needed" "-L" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps" "-L" "/usr/lib64" "-L" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libtest-5d68867f8008afa6.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libgetopts-009e7f44baa30bf2.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libunicode_width-7c3dbe56df7dc310.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/librustc_std_workspace_std-b65b965739c7a000.rlib" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libcpython-c511b697aaf5713a.rlib" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libnum_traits-705915cf967eae0f.rlib" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpython3_sys-23f70a00842a1c8e.rlib" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/liblibc-3f14fdac3e7b4753.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libstd-befa7e56df894fae.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libpanic_unwind-574434bd876e4112.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libobject-b6d9959645804675.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libmemchr-da932604426d461a.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libaddr2line-71c2cd558908de35.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libgimli-03c08960f605463c.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/librustc_demangle-9d0233e5d3b9198f.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libstd_detect-993242b356d83926.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libhashbrown-cf977378f7e151ae.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/librustc_std_workspace_alloc-348f4ab943227917.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libminiz_oxide-678836944cbf25c6.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libadler-6e1fa5e52385fd7b.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libunwind-0858b6a38ac7efbe.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libcfg_if-00ee27db9da8f8e7.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/liblibc-5f031a2735ea4416.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/liballoc-fae6466012f7545c.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/librustc_std_workspace_core-2325eb17ce835e68.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libcore-8c6bce3e93f15dc4.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libcompiler_builtins-1e531fffa0f6f2be.rlib" "-Wl,-Bdynamic" "-lpython3.12" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib" "-o" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/test_sharedref-4711d1ca6ed4a13c" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs" "-Wl,-z,relro" "-Wl,-z,now" "-specs=/usr/lib/rpm/redhat/redhat-package-notes" = note: /usr/bin/ld: /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libcpython-c511b697aaf5713a.rlib(cpython-c511b697aaf5713a.cpython.40b02d4220c122ae-cgu.0.rcgu.o): in function `python3_sys::unicodeobject::PyUnicode_READY': /usr/share/cargo/registry/python3-sys-0.7.1/src/unicodeobject.rs:544:(.text._ZN7cpython7objects6string8PyString15to_string_lossy17h9d798f551a810925E+0x1e): undefined reference to `_PyUnicode_Ready' collect2: error: ld returned 1 exit status = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified = note: use the `-l` flag to specify native libraries to link = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname) error: could not compile `cpython` (test "test_sharedref") due to previous error Caused by: process didn't exit successfully: `/usr/bin/rustc --crate-name test_sharedref --edition=2018 tests/test_sharedref.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="python3-sys"' -C metadata=4711d1ca6ed4a13c -C extra-filename=-4711d1ca6ed4a13c --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --extern cpython=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libcpython-c511b697aaf5713a.rlib --extern libc=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/liblibc-3f14fdac3e7b4753.rlib --extern num_traits=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libnum_traits-705915cf967eae0f.rlib --extern paste=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpaste-28994e062164ac9c.so --extern python3_sys=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpython3_sys-23f70a00842a1c8e.rlib --extern rustversion=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/librustversion-50cda9651f68a49d.so --extern serde_bytes=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libserde_bytes-4f2bbb95848e56e8.rlib --extern serde_cbor=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libserde_cbor-334c5cbd45a4eec1.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn -L native=/usr/lib64` (exit status: 1) error: linking with `cc` failed: exit status: 1 | = note: LC_ALL="C" PATH="/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin" VSLANG="1033" "cc" "/tmp/rustcL3QWkb/symbols.o" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/test_function-fb35bd889d3b7477.test_function.a9d1dbf1929d4264-cgu.0.rcgu.o" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/test_function-fb35bd889d3b7477.289p2v3hety0vqjk.rcgu.o" "-Wl,--as-needed" "-L" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps" "-L" "/usr/lib64" "-L" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libtest-5d68867f8008afa6.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libgetopts-009e7f44baa30bf2.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libunicode_width-7c3dbe56df7dc310.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/librustc_std_workspace_std-b65b965739c7a000.rlib" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libcpython-c511b697aaf5713a.rlib" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libnum_traits-705915cf967eae0f.rlib" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpython3_sys-23f70a00842a1c8e.rlib" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/liblibc-3f14fdac3e7b4753.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libstd-befa7e56df894fae.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libpanic_unwind-574434bd876e4112.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libobject-b6d9959645804675.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libmemchr-da932604426d461a.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libaddr2line-71c2cd558908de35.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libgimli-03c08960f605463c.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/librustc_demangle-9d0233e5d3b9198f.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libstd_detect-993242b356d83926.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libhashbrown-cf977378f7e151ae.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/librustc_std_workspace_alloc-348f4ab943227917.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libminiz_oxide-678836944cbf25c6.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libadler-6e1fa5e52385fd7b.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libunwind-0858b6a38ac7efbe.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libcfg_if-00ee27db9da8f8e7.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/liblibc-5f031a2735ea4416.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/liballoc-fae6466012f7545c.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/librustc_std_workspace_core-2325eb17ce835e68.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libcore-8c6bce3e93f15dc4.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libcompiler_builtins-1e531fffa0f6f2be.rlib" "-Wl,-Bdynamic" "-lpython3.12" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib" "-o" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/test_function-fb35bd889d3b7477" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs" "-Wl,-z,relro" "-Wl,-z,now" "-specs=/usr/lib/rpm/redhat/redhat-package-notes" = note: /usr/bin/ld: /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libcpython-c511b697aaf5713a.rlib(cpython-c511b697aaf5713a.cpython.40b02d4220c122ae-cgu.0.rcgu.o): in function `python3_sys::unicodeobject::PyUnicode_READY': /usr/share/cargo/registry/python3-sys-0.7.1/src/unicodeobject.rs:544:(.text._ZN7cpython7objects6string8PyString15to_string_lossy17h9d798f551a810925E+0x1e): undefined reference to `_PyUnicode_Ready' collect2: error: ld returned 1 exit status = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified = note: use the `-l` flag to specify native libraries to link = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname) warning: `cpython` (test "test_function") generated 2 warnings error: could not compile `cpython` (test "test_function") due to previous error; 2 warnings emitted Caused by: process didn't exit successfully: `/usr/bin/rustc --crate-name test_function --edition=2018 tests/test_function.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="python3-sys"' -C metadata=fb35bd889d3b7477 -C extra-filename=-fb35bd889d3b7477 --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --extern cpython=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libcpython-c511b697aaf5713a.rlib --extern libc=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/liblibc-3f14fdac3e7b4753.rlib --extern num_traits=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libnum_traits-705915cf967eae0f.rlib --extern paste=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpaste-28994e062164ac9c.so --extern python3_sys=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpython3_sys-23f70a00842a1c8e.rlib --extern rustversion=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/librustversion-50cda9651f68a49d.so --extern serde_bytes=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libserde_bytes-4f2bbb95848e56e8.rlib --extern serde_cbor=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libserde_cbor-334c5cbd45a4eec1.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn -L native=/usr/lib64` (exit status: 1) error: linking with `cc` failed: exit status: 1 | = note: LC_ALL="C" PATH="/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin" VSLANG="1033" "cc" "/tmp/rustcKu54kv/symbols.o" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/cpython-5d592b1dddeeb435.cpython.7415f34fb11ddbdd-cgu.0.rcgu.o" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/cpython-5d592b1dddeeb435.1vfoai1ys3i95j94.rcgu.o" "-Wl,--as-needed" "-L" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps" "-L" "/usr/lib64" "-L" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libtest-5d68867f8008afa6.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libgetopts-009e7f44baa30bf2.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libunicode_width-7c3dbe56df7dc310.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/librustc_std_workspace_std-b65b965739c7a000.rlib" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libnum_traits-705915cf967eae0f.rlib" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpython3_sys-23f70a00842a1c8e.rlib" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/liblibc-3f14fdac3e7b4753.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libstd-befa7e56df894fae.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libpanic_unwind-574434bd876e4112.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libobject-b6d9959645804675.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libmemchr-da932604426d461a.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libaddr2line-71c2cd558908de35.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libgimli-03c08960f605463c.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/librustc_demangle-9d0233e5d3b9198f.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libstd_detect-993242b356d83926.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libhashbrown-cf977378f7e151ae.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/librustc_std_workspace_alloc-348f4ab943227917.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libminiz_oxide-678836944cbf25c6.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libadler-6e1fa5e52385fd7b.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libunwind-0858b6a38ac7efbe.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libcfg_if-00ee27db9da8f8e7.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/liblibc-5f031a2735ea4416.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/liballoc-fae6466012f7545c.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/librustc_std_workspace_core-2325eb17ce835e68.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libcore-8c6bce3e93f15dc4.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libcompiler_builtins-1e531fffa0f6f2be.rlib" "-Wl,-Bdynamic" "-lpython3.12" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib" "-o" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/cpython-5d592b1dddeeb435" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs" "-Wl,-z,relro" "-Wl,-z,now" "-specs=/usr/lib/rpm/redhat/redhat-package-notes" = note: /usr/bin/ld: /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/cpython-5d592b1dddeeb435.cpython.7415f34fb11ddbdd-cgu.0.rcgu.o: in function `python3_sys::unicodeobject::PyUnicode_READY': /usr/share/cargo/registry/python3-sys-0.7.1/src/unicodeobject.rs:544:(.text._ZN4core3ops8function6FnOnce9call_once17h7f68b511e4b1b17bE+0x76): undefined reference to `_PyUnicode_Ready' /usr/bin/ld: /usr/share/cargo/registry/python3-sys-0.7.1/src/unicodeobject.rs:544:(.text._ZN4core3ops8function6FnOnce9call_once17h8a58ac2fb0924382E+0x78): undefined reference to `_PyUnicode_Ready' /usr/bin/ld: /usr/share/cargo/registry/python3-sys-0.7.1/src/unicodeobject.rs:544:(.text._ZN7cpython7objects6string8PyString15to_string_lossy17hadfaf8a4014eb9fcE+0x2e): undefined reference to `_PyUnicode_Ready' collect2: error: ld returned 1 exit status = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified = note: use the `-l` flag to specify native libraries to link = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname) error: could not compile `cpython` (lib test) due to previous error Caused by: process didn't exit successfully: `/usr/bin/rustc --crate-name cpython --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="python3-sys"' -C metadata=5d592b1dddeeb435 -C extra-filename=-5d592b1dddeeb435 --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --extern libc=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/liblibc-3f14fdac3e7b4753.rlib --extern num_traits=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libnum_traits-705915cf967eae0f.rlib --extern paste=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpaste-28994e062164ac9c.so --extern python3_sys=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpython3_sys-23f70a00842a1c8e.rlib --extern rustversion=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/librustversion-50cda9651f68a49d.so --extern serde_bytes=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libserde_bytes-4f2bbb95848e56e8.rlib --extern serde_cbor=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libserde_cbor-334c5cbd45a4eec1.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn -L native=/usr/lib64` (exit status: 1) error: linking with `cc` failed: exit status: 1 | = note: LC_ALL="C" PATH="/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin" VSLANG="1033" "cc" "/tmp/rustcQgOtov/symbols.o" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/test_class-a96069e8e60fc9e3.test_class.d4b283d4b6b7d4ce-cgu.0.rcgu.o" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/test_class-a96069e8e60fc9e3.3myurz25wzlyvfdi.rcgu.o" "-Wl,--as-needed" "-L" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps" "-L" "/usr/lib64" "-L" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libtest-5d68867f8008afa6.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libgetopts-009e7f44baa30bf2.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libunicode_width-7c3dbe56df7dc310.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/librustc_std_workspace_std-b65b965739c7a000.rlib" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libcpython-c511b697aaf5713a.rlib" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libnum_traits-705915cf967eae0f.rlib" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpython3_sys-23f70a00842a1c8e.rlib" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/liblibc-3f14fdac3e7b4753.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libstd-befa7e56df894fae.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libpanic_unwind-574434bd876e4112.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libobject-b6d9959645804675.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libmemchr-da932604426d461a.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libaddr2line-71c2cd558908de35.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libgimli-03c08960f605463c.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/librustc_demangle-9d0233e5d3b9198f.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libstd_detect-993242b356d83926.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libhashbrown-cf977378f7e151ae.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/librustc_std_workspace_alloc-348f4ab943227917.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libminiz_oxide-678836944cbf25c6.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libadler-6e1fa5e52385fd7b.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libunwind-0858b6a38ac7efbe.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libcfg_if-00ee27db9da8f8e7.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/liblibc-5f031a2735ea4416.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/liballoc-fae6466012f7545c.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/librustc_std_workspace_core-2325eb17ce835e68.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libcore-8c6bce3e93f15dc4.rlib" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib/libcompiler_builtins-1e531fffa0f6f2be.rlib" "-Wl,-Bdynamic" "-lpython3.12" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib" "-o" "/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/test_class-a96069e8e60fc9e3" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs" "-Wl,-z,relro" "-Wl,-z,now" "-specs=/usr/lib/rpm/redhat/redhat-package-notes" = note: /usr/bin/ld: /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libcpython-c511b697aaf5713a.rlib(cpython-c511b697aaf5713a.cpython.40b02d4220c122ae-cgu.0.rcgu.o): in function `python3_sys::unicodeobject::PyUnicode_READY': /usr/share/cargo/registry/python3-sys-0.7.1/src/unicodeobject.rs:544:(.text._ZN7cpython7objects6string8PyString15to_string_lossy17h9d798f551a810925E+0x1e): undefined reference to `_PyUnicode_Ready' collect2: error: ld returned 1 exit status = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified = note: use the `-l` flag to specify native libraries to link = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname) error: could not compile `cpython` (test "test_class") due to previous error Caused by: process didn't exit successfully: `/usr/bin/rustc --crate-name test_class --edition=2018 tests/test_class.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="python3-sys"' -C metadata=a96069e8e60fc9e3 -C extra-filename=-a96069e8e60fc9e3 --out-dir /builddir/build/BUILD/cpython-0.7.1/target/rpm/deps -L dependency=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps --extern cpython=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libcpython-c511b697aaf5713a.rlib --extern libc=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/liblibc-3f14fdac3e7b4753.rlib --extern num_traits=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libnum_traits-705915cf967eae0f.rlib --extern paste=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpaste-28994e062164ac9c.so --extern python3_sys=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libpython3_sys-23f70a00842a1c8e.rlib --extern rustversion=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/librustversion-50cda9651f68a49d.so --extern serde_bytes=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libserde_bytes-4f2bbb95848e56e8.rlib --extern serde_cbor=/builddir/build/BUILD/cpython-0.7.1/target/rpm/deps/libserde_cbor-334c5cbd45a4eec1.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn -L native=/usr/lib64` (exit status: 1) error: Bad exit status from /var/tmp/rpm-tmp.ySafYa (%check) Bad exit status from /var/tmp/rpm-tmp.ySafYa (%check) RPM build errors: Child return code was: 1 EXCEPTION: [Error("Command failed: \n # bash --login -c '/usr/bin/rpmbuild -ba --noprep --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-cpython.spec'\n", 1)] Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/mockbuild/util.py", line 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c '/usr/bin/rpmbuild -ba --noprep --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-cpython.spec'