pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: rust: use system libunwind



On 4/4/24 11:44, Tobias Nygren wrote:
On Thu, 4 Apr 2024 10:08:28 -0500
Jason Bacon <jtocino%gmx.com@localhost> wrote:

On 4/4/24 09:15, Martin Husemann wrote:
On Thu, Apr 04, 2024 at 03:16:42PM +0200, Thomas Klausner wrote:
My Alma 8 system doesn't have it at all outside of pkgsrc.  Which raises
an even more important issue about relying on "system" libraries under
Linux: They may or may not exist in the first place, or may be outright
removed beyond the control of pkgsrc.

Yes, we don't want to depend on the "system" libraries on Linux.

Is this a naming misunderstanding?

My understanding of the various "system" configure args out there is
that they boil down to "something already present, do not build the
embedded one in my own distribution". In pkgsrc context "system" would
be pkgsrc, not the base system or some other package management.

Martin

That's a good question.  My notion of what "system" usually means is the
same.  I have not picked apart the rust build system in order to figure
out what it means to rust, but for whatever reason, it fails to find the
pkgsrc libunwind when enabled (at least on Linux).  I'll update the
comment before committing the workaround to better reflect this.  Maybe
there's a better solution to be found, but the package is broken on
Linux right now, so I wouldn't want to delay some sort of fix much longer.

I think this has to do with the platform specific unwinder linkage
selection logic which you can find in library/unwind/src/lib.rs.

If I read this right, then libunwind is not being dynamically linked by
this module on NetBSD which explains why we don't see an issue there.
In the Linux case it tries to use libunwind dynamically, but it is outside
of the system's default search path when using pkgsrc. Providing library
paths to rust code is not straight forward. Something like this might
work assuming it will get the correct run path as a side effect of
linking with llvm.

RCS file: /cvsroot/pkgsrc/lang/rust/options.mk,v
retrieving revision 1.37
diff -p -u -r1.37 options.mk
--- options.mk	10 Mar 2024 21:24:36 -0000	1.37
+++ options.mk	4 Apr 2024 16:40:28 -0000
@@ -40,6 +40,7 @@ BUILDLINK_API_DEPENDS.llvm+=	llvm>=15
  CONFIGURE_ARGS+=	--enable-llvm-link-shared
  CONFIGURE_ARGS+=	--llvm-libunwind=system
  CONFIGURE_ARGS+=	--llvm-root=${BUILDLINK_PREFIX.llvm}
+BUILDLINK_TRANSFORM.Linux+=	opt:-lunwind:${BUILDLINK_PREFIX.libunwind}/lib/libunwind.so
  .endif




This leads to a different error on Lubuntu 23.10, shown below.  Any
objections to patching out --llvm-libunwind=system for Linux as a
temporary workaround?  It will be documented as such.

===

    Finished release [optimized] target(s) in 0.41s
Building compiler artifacts (stage1 -> stage2, x86_64-unknown-linux-gnu)
running: cd "/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src"
&& env -u MAKEFLAGS -u MFLAGS AR_x86_64_unknown_linux_gnu="ar"
CARGO_INCREMENTAL="0" CARGO_PROFILE_RELEASE_DEBUG="0"
CARGO_PROFILE_RELEASE_DEBUG_ASSERTIONS="false"
CARGO_PROFILE_RELEASE_OVERFLOW_CHECKS="false"
CARGO_TARGET_DIR="/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1-rustc"
CC_x86_64_unknown_linux_gnu="cc"
CFG_COMPILER_HOST_TRIPLE="x86_64-unknown-linux-gnu"
CFG_DEFAULT_CODEGEN_BACKEND="llvm" CFG_DISABLE_UNSTABLE_FEATURES="1"
CFG_LIBDIR_RELATIVE="lib"
CFG_LLVM_ROOT="/home/bacon/Pkgsrc/pkg/bin/llvm-config"
CFG_RELEASE="1.75.0" CFG_RELEASE_CHANNEL="stable" CFG_VERSION="1.75.0
(82e1608df 2023-12-21) (built from a source tarball)"
CFG_VER_DATE="2023-12-21"
CFG_VER_HASH="82e1608dfa6e0b5569232559e3d385fea5a93112"
CFLAGS_x86_64_unknown_linux_gnu="-O2 -ffunction-sections -fdata-sections
-fPIC -m64 -O2 -I/home/bacon/Pkgsrc/pkg/include -I/usr/include
-I/home/bacon/Pkgsrc/pkg/include/python3.11"
CXXFLAGS_x86_64_unknown_linux_gnu="-O2 -ffunction-sections
-fdata-sections -fPIC -m64 -O2 -I/home/bacon/Pkgsrc/pkg/include
-I/usr/include -I/home/bacon/Pkgsrc/pkg/include/python3.11"
CXX_x86_64_unknown_linux_gnu="c++" LIBC_CHECK_CFG="1"
LLVM_CONFIG="/home/bacon/Pkgsrc/pkg/bin/llvm-config"
LLVM_LINK_SHARED="1" LLVM_NDEBUG="1" RANLIB_x86_64_unknown_linux_gnu="ar
s"
REAL_LIBRARY_PATH="/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rust-bootstrap/lib"
REAL_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
RUSTBUILD_NATIVE_DIR="/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/native"
RUSTC="/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/bootstrap/debug/rustc"
RUSTC_BOOTSTRAP="1" RUSTC_BREAK_ON_ICE="1"
RUSTC_ERROR_METADATA_DST="/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/tmp/extended-error-metadata"
RUSTC_FORCE_UNSTABLE="1" RUSTC_HOST_FLAGS="-Zunstable-options
--check-cfg=values(bootstrap)" RUSTC_INSTALL_BINDIR="bin"
RUSTC_LIBDIR="/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1/lib"
RUSTC_LINT_FLAGS="-Wrust_2018_idioms -Wunused_lifetimes
-Wsemicolon_in_expressions_from_macros -Dwarnings"
RUSTC_REAL="/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1/bin/rustc"
RUSTC_SNAPSHOT="/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1/bin/rustc"
RUSTC_SNAPSHOT_LIBDIR="/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1/lib"
RUSTC_STAGE="1"
RUSTC_SYSROOT="/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1"
RUSTC_TLS_MODEL_INITIAL_EXEC="1" RUSTC_VERBOSE="1"
RUSTDOC="/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/bootstrap/debug/rustdoc"
RUSTDOCFLAGS="--cfg=windows_raw_dylib -Csymbol-mangling-version=v0
-Zunstable-options --check-cfg=values(bootstrap)
--check-cfg=values(parallel_compiler)
--check-cfg=values(no_btreemap_remove_entry)
--check-cfg=values(crossbeam_loom) --check-cfg=values(span_locations)
--check-cfg=values(rustix_use_libc)
--check-cfg=values(emulate_second_only_system)
--check-cfg=values(windows_raw_dylib) -Dwarnings
-Wrustdoc::invalid_codeblock_attributes --crate-version
1.75.0\t(82e1608df\t2023-12-21)\t(built\tfrom\ta\tsource\ttarball)
-Zcrate-attr=warn(rust_2018_idioms)"
RUSTDOC_REAL="/path/to/nowhere/rustdoc/not/required"
RUSTFLAGS="--cfg=windows_raw_dylib -Csymbol-mangling-version=v0
-Zunstable-options --check-cfg=values(bootstrap)
--check-cfg=values(parallel_compiler)
--check-cfg=values(no_btreemap_remove_entry)
--check-cfg=values(crossbeam_loom) --check-cfg=values(span_locations)
--check-cfg=values(rustix_use_libc)
--check-cfg=values(emulate_second_only_system)
--check-cfg=values(windows_raw_dylib) -Zmacro-backtrace
-Clink-args=-Wl,-z,origin
-Clink-args=-Wl,-rpath,/home/bacon/Pkgsrc/pkg/lib -Csplit-debuginfo=off
-Zunstable-options -Wrustc::internal -Cprefer-dynamic"
RUST_TEST_THREADS="8" WINAPI_NO_BUNDLED_LIBRARIES="1"
__CARGO_DEFAULT_LIB_METADATA="stable"
"/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rust-bootstrap/bin/cargo"
"build" "--target" "x86_64-unknown-linux-gnu" "--release"
"-Zcheck-cfg=names,values,output,features" "-Zbinary-dep-depinfo" "-j"
"8" "-v" "--frozen" "--features" "llvm max_level_info" "--manifest-path"
"/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/compiler/rustc/Cargo.toml"
"--message-format" "json-render-diagnostics"
   Compiling proc-macro2 v1.0.63
       Fresh unicode-ident v1.0.9
       Fresh cfg-if v1.0.0
       Fresh version_check v0.9.4
     Running
`/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1-rustc/release/build/proc-macro2-dbbf54d646f2fc97/build-script-build`
   Compiling quote v1.0.29
   Compiling libc v0.2.150
   Compiling syn v1.0.109
       Fresh once_cell v1.18.0
       Fresh autocfg v1.1.0
     Running
`/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1-rustc/release/build/quote-8bfd564ca479046d/build-script-build`
     Running
`/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1-rustc/release/build/libc-4a158cf2e633cb18/build-script-build`
     Running
`/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1-rustc/release/build/syn-89ca5715cc62635d/build-script-build`
   Compiling ahash v0.8.3
   Compiling stable_deref_trait v1.2.0
   Compiling memchr v2.5.0
   Compiling cc v1.0.79
error: failed to run custom build command for `proc-macro2 v1.0.63`

Caused by:
  process didn't exit successfully:
`/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1-rustc/release/build/proc-macro2-dbbf54d646f2fc97/build-script-build`
(exit status: 127)
  --- stderr

/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1-rustc/release/build/proc-macro2-dbbf54d646f2fc97/build-script-build:
error while loading shared libraries: libunwind.so.1: cannot open shared
object file: No such file or directory
warning: build failed, waiting for other jobs to finish...
     Running
`/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/bootstrap/debug/rustc
--crate-name build_script_build --edition=2018
/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/vendor/ahash/./build.rs
--error-format=json
--json=diagnostic-rendered-ansi,artifacts,future-incompat
--diagnostic-width=80 --crate-type bin --emit=dep-info,link -C
embed-bitcode=no -C debug-assertions=off -Zunstable-options --check-cfg
'values(feature, "atomic-polyfill", "compile-time-rng", "const-random",
"default", "getrandom", "no-rng", "runtime-rng", "serde", "std")'
--check-cfg 'names()' --check-cfg 'values()' -C
metadata=55cefe78d1279a89 -C extra-filename=-55cefe78d1279a89 --out-dir
/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1-rustc/release/build/ahash-55cefe78d1279a89
-L
dependency=/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1-rustc/release/deps
--extern
version_check=/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1-rustc/release/deps/libversion_check-6d5dbf40d2d627bd.rlib
--cap-lints allow -Z binary-dep-depinfo`
     Running
`/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/bootstrap/debug/rustc
--crate-name stable_deref_trait
/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/vendor/stable_deref_trait/src/lib.rs
--error-format=json
--json=diagnostic-rendered-ansi,artifacts,future-incompat
--diagnostic-width=80 --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"' -Zunstable-options --check-cfg
'values(feature, "alloc", "default", "std")' --check-cfg 'names()'
--check-cfg 'values()' -C metadata=5f41346386bbcde4 -C
extra-filename=-5f41346386bbcde4 --out-dir
/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1-rustc/release/deps
-L
dependency=/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1-rustc/release/deps
--cap-lints allow -Z binary-dep-depinfo`
error: failed to run custom build command for `quote v1.0.29`

Caused by:
  process didn't exit successfully:
`/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1-rustc/release/build/quote-8bfd564ca479046d/build-script-build`
(exit status: 127)
  --- stderr

/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1-rustc/release/build/quote-8bfd564ca479046d/build-script-build:
error while loading shared libraries: libunwind.so.1: cannot open shared
object file: No such file or directory
error: failed to run custom build command for `libc v0.2.150`

Caused by:
  process didn't exit successfully:
`/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1-rustc/release/build/libc-4a158cf2e633cb18/build-script-build`
(exit status: 127)
  --- stderr

/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1-rustc/release/build/libc-4a158cf2e633cb18/build-script-build:
error while loading shared libraries: libunwind.so.1: cannot open shared
object file: No such file or directory
     Running
`/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/bootstrap/debug/rustc
--crate-name build_script_build --edition=2018
/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/vendor/memchr-2.5.0/build.rs
--error-format=json
--json=diagnostic-rendered-ansi,artifacts,future-incompat
--diagnostic-width=80 --crate-type bin --emit=dep-info,link -C
embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg
'feature="std"' -Zunstable-options --check-cfg 'values(feature,
"compiler_builtins", "core", "default", "libc", "rustc-dep-of-std",
"std", "use_std")' --check-cfg 'names()' --check-cfg 'values()' -C
metadata=6f0013853f1548f4 -C extra-filename=-6f0013853f1548f4 --out-dir
/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1-rustc/release/build/memchr-6f0013853f1548f4
-L
dependency=/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1-rustc/release/deps
--cap-lints allow -Z binary-dep-depinfo`
     Running
`/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/bootstrap/debug/rustc
--crate-name cc --edition=2018
/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/vendor/cc/src/lib.rs
--error-format=json
--json=diagnostic-rendered-ansi,artifacts,future-incompat
--diagnostic-width=80 --crate-type lib --emit=dep-info,metadata,link -C
embed-bitcode=no -C debug-assertions=off -Zunstable-options --check-cfg
'values(feature, "jobserver", "parallel")' --check-cfg 'names()'
--check-cfg 'values()' -C metadata=2f08de4a83cb6875 -C
extra-filename=-2f08de4a83cb6875 --out-dir
/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1-rustc/release/deps
-L
dependency=/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1-rustc/release/deps
--cap-lints allow -Z binary-dep-depinfo`
error: failed to run custom build command for `syn v1.0.109`

Caused by:
  process didn't exit successfully:
`/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1-rustc/release/build/syn-89ca5715cc62635d/build-script-build`
(exit status: 127)
  --- stderr

/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1-rustc/release/build/syn-89ca5715cc62635d/build-script-build:
error while loading shared libraries: libunwind.so.1: cannot open shared
object file: No such file or directory
command did not execute successfully: cd
"/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src" && env -u
MAKEFLAGS -u MFLAGS AR_x86_64_unknown_linux_gnu="ar"
CARGO_INCREMENTAL="0" CARGO_PROFILE_RELEASE_DEBUG="0"
CARGO_PROFILE_RELEASE_DEBUG_ASSERTIONS="false"
CARGO_PROFILE_RELEASE_OVERFLOW_CHECKS="false"
CARGO_TARGET_DIR="/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1-rustc"
CC_x86_64_unknown_linux_gnu="cc"
CFG_COMPILER_HOST_TRIPLE="x86_64-unknown-linux-gnu"
CFG_DEFAULT_CODEGEN_BACKEND="llvm" CFG_DISABLE_UNSTABLE_FEATURES="1"
CFG_LIBDIR_RELATIVE="lib"
CFG_LLVM_ROOT="/home/bacon/Pkgsrc/pkg/bin/llvm-config"
CFG_RELEASE="1.75.0" CFG_RELEASE_CHANNEL="stable" CFG_VERSION="1.75.0
(82e1608df 2023-12-21) (built from a source tarball)"
CFG_VER_DATE="2023-12-21"
CFG_VER_HASH="82e1608dfa6e0b5569232559e3d385fea5a93112"
CFLAGS_x86_64_unknown_linux_gnu="-O2 -ffunction-sections -fdata-sections
-fPIC -m64 -O2 -I/home/bacon/Pkgsrc/pkg/include -I/usr/include
-I/home/bacon/Pkgsrc/pkg/include/python3.11"
CXXFLAGS_x86_64_unknown_linux_gnu="-O2 -ffunction-sections
-fdata-sections -fPIC -m64 -O2 -I/home/bacon/Pkgsrc/pkg/include
-I/usr/include -I/home/bacon/Pkgsrc/pkg/include/python3.11"
CXX_x86_64_unknown_linux_gnu="c++" LIBC_CHECK_CFG="1"
LLVM_CONFIG="/home/bacon/Pkgsrc/pkg/bin/llvm-config"
LLVM_LINK_SHARED="1" LLVM_NDEBUG="1" RANLIB_x86_64_unknown_linux_gnu="ar
s"
REAL_LIBRARY_PATH="/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rust-bootstrap/lib"
REAL_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
RUSTBUILD_NATIVE_DIR="/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/native"
RUSTC="/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/bootstrap/debug/rustc"
RUSTC_BOOTSTRAP="1" RUSTC_BREAK_ON_ICE="1"
RUSTC_ERROR_METADATA_DST="/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/tmp/extended-error-metadata"
RUSTC_FORCE_UNSTABLE="1" RUSTC_HOST_FLAGS="-Zunstable-options
--check-cfg=values(bootstrap)" RUSTC_INSTALL_BINDIR="bin"
RUSTC_LIBDIR="/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1/lib"
RUSTC_LINT_FLAGS="-Wrust_2018_idioms -Wunused_lifetimes
-Wsemicolon_in_expressions_from_macros -Dwarnings"
RUSTC_REAL="/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1/bin/rustc"
RUSTC_SNAPSHOT="/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1/bin/rustc"
RUSTC_SNAPSHOT_LIBDIR="/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1/lib"
RUSTC_STAGE="1"
RUSTC_SYSROOT="/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/x86_64-unknown-linux-gnu/stage1"
RUSTC_TLS_MODEL_INITIAL_EXEC="1" RUSTC_VERBOSE="1"
RUSTDOC="/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/bootstrap/debug/rustdoc"
RUSTDOCFLAGS="--cfg=windows_raw_dylib -Csymbol-mangling-version=v0
-Zunstable-options --check-cfg=values(bootstrap)
--check-cfg=values(parallel_compiler)
--check-cfg=values(no_btreemap_remove_entry)
--check-cfg=values(crossbeam_loom) --check-cfg=values(span_locations)
--check-cfg=values(rustix_use_libc)
--check-cfg=values(emulate_second_only_system)
--check-cfg=values(windows_raw_dylib) -Dwarnings
-Wrustdoc::invalid_codeblock_attributes --crate-version
1.75.0\t(82e1608df\t2023-12-21)\t(built\tfrom\ta\tsource\ttarball)
-Zcrate-attr=warn(rust_2018_idioms)"
RUSTDOC_REAL="/path/to/nowhere/rustdoc/not/required"
RUSTFLAGS="--cfg=windows_raw_dylib -Csymbol-mangling-version=v0
-Zunstable-options --check-cfg=values(bootstrap)
--check-cfg=values(parallel_compiler)
--check-cfg=values(no_btreemap_remove_entry)
--check-cfg=values(crossbeam_loom) --check-cfg=values(span_locations)
--check-cfg=values(rustix_use_libc)
--check-cfg=values(emulate_second_only_system)
--check-cfg=values(windows_raw_dylib) -Zmacro-backtrace
-Clink-args=-Wl,-z,origin
-Clink-args=-Wl,-rpath,/home/bacon/Pkgsrc/pkg/lib -Csplit-debuginfo=off
-Zunstable-options -Wrustc::internal -Cprefer-dynamic"
RUST_TEST_THREADS="8" WINAPI_NO_BUNDLED_LIBRARIES="1"
__CARGO_DEFAULT_LIB_METADATA="stable"
"/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rust-bootstrap/bin/cargo"
"build" "--target" "x86_64-unknown-linux-gnu" "--release"
"-Zcheck-cfg=names,values,output,features" "-Zbinary-dep-depinfo" "-j"
"8" "-v" "--frozen" "--features" "llvm max_level_info" "--manifest-path"
"/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/compiler/rustc/Cargo.toml"
"--message-format" "json-render-diagnostics"
expected success, got: exit status: 101
Traceback (most recent call last):
  File
"/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/./x.py", line
50, in <module>
    bootstrap.main()
  File
"/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/src/bootstrap/bootstrap.py",
line 1145, in main
    bootstrap(args)
  File
"/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/src/bootstrap/bootstrap.py",
line 1121, in bootstrap
    run(args, env=env, verbose=build.verbose, is_bootstrap=True)
  File
"/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/src/bootstrap/bootstrap.py",
line 187, in run
    raise RuntimeError(err)
RuntimeError: failed to run:
/home/bacon/Pkgsrc/pkgsrc/lang/rust/work/rustc-1.75.0-src/build/bootstrap/debug/bootstrap
-v build --stage 2 -j 8
*** Error code 1



Home | Main Index | Thread Index | Old Index