Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure on NetBSD/sparc64 when using the embedded version of LLVM #117231

Open
he32 opened this issue Oct 26, 2023 · 7 comments
Open

Build failure on NetBSD/sparc64 when using the embedded version of LLVM #117231

he32 opened this issue Oct 26, 2023 · 7 comments
Labels
C-bug Category: This is a bug. O-netbsd Operating system: NetBSD O-SPARC Target: SPARC processors

Comments

@he32
Copy link
Contributor

he32 commented Oct 26, 2023

I tried to build the rust compiler, version 1.73.0, "natively" on NetBSD/sparc64 10.0_BETA, but that failed with an "illegal instruction" fault.
It's entirely conceivable that this issue is or was present in earlier versions as well.

I expected to see this happen: to see the build succeed.

Instead, this happened: the build failed, with the compiler bombing out with SIGILL ("illegal instruction") in the stage2 phase of the build, with:

     Running `/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/sparc64-unknown-netbsd/stage2-tools/release/build/proc-macro-test-0016d4c2c13207b7/build-script-build`
error: failed to run custom build command for `proc-macro-test v0.0.0 (/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/src/tools/rust-analyzer/crates/proc-macro-test)`

Caused by:
  process didn't exit successfully: `/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/sparc64-unknown-netbsd/stage2-tools/release/build/proc-macro-test-0016d4c2c13207b7/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=imp
  cargo:rerun-if-env-changed=PROC_MACRO_TEST_TOOLCHAIN
  Creating /usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/sparc64-unknown-netbsd/stage2-tools/sparc64-unknown-netbsd/release/build/proc-macro-test-d774d9ce9a192410/out/proc-macro-test-imp-staging
  Creating /usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/sparc64-unknown-netbsd/stage2-tools/sparc64-unknown-netbsd/release/build/proc-macro-test-d774d9ce9a192410/out/proc-macro-test-imp-staging/src
  Copying /usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/src/tools/rust-analyzer/crates/proc-macro-test/imp/Cargo.toml to /usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/sparc64-unknown-netbsd/stage2-tools/sparc64-unknown-netbsd/release/build/proc-macro-test-d774d9ce9a192410/out/proc-macro-test-imp-staging/Cargo.toml
  Copying /usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/src/tools/rust-analyzer/crates/proc-macro-test/imp/src/lib.rs to /usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/sparc64-unknown-netbsd/stage2-tools/sparc64-unknown-netbsd/release/build/proc-macro-test-d774d9ce9a192410/out/proc-macro-test-imp-staging/src/lib.rs
  Running cd "/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/sparc64-unknown-netbsd/stage2-tools/sparc64-unknown-netbsd/release/build/proc-macro-test-d774d9ce9a192410/out/proc-macro-test-imp-staging" && "/usr/pkgsrc/wip/rust/work/rust-bootstrap/bin/cargo" "build" "-p" "proc-macro-test-impl" "--message-format" "json" "--target-dir" "/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/sparc64-unknown-netbsd/stage2-tools/sparc64-unknown-netbsd/release/build/proc-macro-test-d774d9ce9a192410/out/target"
  proc-macro-test-impl failed to build
  ============ stdout ============

  Did not run successfully: signal: 4 (SIGILL) (core dumped)
  LD_LIBRARY_PATH="/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/sparc64-unknown-netbsd/stage2/lib:/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/sparc64-unknown-netbsd/stage2-tools/sparc64-unknown-netbsd/release/build/proc-macro-test-d774d9ce9a192410/out/target/debug/deps:/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/sparc64-unknown-netbsd/stage2/lib:/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/sparc64-unknown-netbsd/stage2-tools/release/deps:/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/sparc64-unknown-netbsd/stage2-tools/release:/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/sparc64-unknown-netbsd/stage2/lib/rustlib/sparc64-unknown-netbsd/lib:/usr/pkgsrc/wip/rust/work/rust-bootstrap/lib" "/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/sparc64-unknown-netbsd/stage2/bin/rustc" "--crate-name" "proc_macro_test_impl" "--edition=2021" "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" "debuginfo=2" "-C" "metadata=0b44ceb97b41db90" "-C" "extra-filename=-0b44ceb97b41db90" "--out-dir" "/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/sparc64-unknown-netbsd/stage2-tools/sparc64-unknown-netbsd/release/build/proc-macro-test-d774d9ce9a192410/out/target/debug/deps" "-L" "dependency=/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/sparc64-unknown-netbsd/stage2-tools/sparc64-unknown-netbsd/release/build/proc-macro-test-d774d9ce9a192410/out/target/debug/deps" "--extern" "proc_macro" "-Csymbol-mangling-version=v0" "-Zunstable-options" "--check-cfg=values(bootstrap)" "-Zmacro-backtrace" "-Clink-args=-Wl,-z,origin" "-Clink-args=-Wl,-rpath,/usr/pkg/lib" "-Zunstable-options" "-Csplit-debuginfo=off" "-Wrust_2018_idioms" "-Wunused_lifetimes" "-Wsemicolon_in_expressions_from_macros" "-Dwarnings" "-Zunstable-options" "--check-cfg=values(bootstrap)" "-Zallow-features=binary-dep-depinfo,proc_macro_span,proc_macro_span_shrink,proc_macro_diagnostic,proc_macro_internals,proc_macro_diagnostic,proc_macro_span,proc_macro_span_shrink"
  -------------
  {"reason":"build-finished","success":false}

  ============ stderr ============
     Compiling proc-macro-test-impl v0.0.0 (/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/sparc64-unknown-netbsd/stage2-tools/sparc64-unknown-netbsd/release/build/proc-macro-test-d774d9ce9a192410/out/proc-macro-test-imp-staging)
  rustc exited with signal: 4 (SIGILL) (core dumped)
  error: could not compile `proc-macro-test-impl` (lib)

  Caused by:
    process didn't exit successfully: `/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/bootstrap/debug/rustc --crate-name proc_macro_test_impl --edition=2021 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 debuginfo=2 -C metadata=0b44ceb97b41db90 -C extra-filename=-0b44ceb97b41db90 --out-dir /usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/sparc64-unknown-netbsd/stage2-tools/sparc64-unknown-netbsd/release/build/proc-macro-test-d774d9ce9a192410/out/target/debug/deps -L dependency=/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/sparc64-unknown-netbsd/stage2-tools/sparc64-unknown-netbsd/release/build/proc-macro-test-d774d9ce9a192410/out/target/debug/deps --extern proc_macro -Csymbol-mangling-version=v0 -Zunstable-options '--check-cfg=values(bootstrap)' -Zmacro-backtrace -Clink-args=-Wl,-z,origin -Clink-args=-Wl,-rpath,/usr/pkg/lib -Zunstable-options -Csplit-debuginfo=off` (exit status: 254)


  --- stderr
  thread 'main' panicked at crates/proc-macro-test/build.rs:83:9:
  proc-macro-test-impl failed to build
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

command did not execute successfully: cd "/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src" && AR_sparc64_unknown_netbsd="ar" CARGO_INCREMENTAL="0" CARGO_PROFILE_RELEASE_DEBUG="0" CARGO_PROFILE_RELEASE_DEBUG_ASSERTIONS="false" CARGO_PROFILE_RELEASE_OVERFLOW_CHECKS="false" CARGO_TARGET_DIR="/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/sparc64-unknown-netbsd/stage2-tools" CC_sparc64_unknown_netbsd="gcc" CFG_COMPILER_HOST_TRIPLE="sparc64-unknown-netbsd" CFG_RELEASE="1.73.0" CFG_RELEASE_CHANNEL="stable" CFG_RELEASE_NUM="1.73.0" CFG_VERSION="1.73.0 (cc66ad468 2023-10-03) (built from a source tarball)" CFG_VER_DATE="2023-10-03" CFG_VER_HASH="cc66ad468955717ab92600c770da8c1601a4ff33" CFLAGS_sparc64_unknown_netbsd="-O2 -ffunction-sections -fdata-sections -fPIC -O2 -fPIC -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include/krb5 -I/usr/include -I/usr/pkg/include/python3.10" CXXFLAGS_sparc64_unknown_netbsd="-O2 -ffunction-sections -fdata-sections -fPIC -O2 -fPIC -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include/krb5 -I/usr/include -I/usr/pkg/include/python3.10" CXX_sparc64_unknown_netbsd="c++" DOC_RUST_LANG_ORG_CHANNEL="https://doc.rust-lang.org/1.73.0" LIBC_CHECK_CFG="1" LZMA_API_STATIC="1" RANLIB_sparc64_unknown_netbsd="ar s" REAL_LIBRARY_PATH="/usr/pkgsrc/wip/rust/work/rust-bootstrap/lib" REAL_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" RUSTBUILD_NATIVE_DIR="/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/sparc64-unknown-netbsd/native" RUSTC="/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/bootstrap/debug/rustc" RUSTC_ALLOW_FEATURES="binary-dep-depinfo,proc_macro_span,proc_macro_span_shrink,proc_macro_diagnostic,proc_macro_internals,proc_macro_diagnostic,proc_macro_span,proc_macro_span_shrink" RUSTC_BOOTSTRAP="1" RUSTC_BREAK_ON_ICE="1" RUSTC_ERROR_METADATA_DST="/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/tmp/extended-error-metadata" RUSTC_INSTALL_BINDIR="bin" RUSTC_LIBDIR="/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/sparc64-unknown-netbsd/stage2/lib" RUSTC_LINT_FLAGS="-Wrust_2018_idioms -Wunused_lifetimes -Wsemicolon_in_expressions_from_macros -Dwarnings" RUSTC_REAL="/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/sparc64-unknown-netbsd/stage2/bin/rustc" RUSTC_SNAPSHOT="/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/sparc64-unknown-netbsd/stage2/bin/rustc" RUSTC_SNAPSHOT_LIBDIR="/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/sparc64-unknown-netbsd/stage2/lib" RUSTC_STAGE="2" RUSTC_SYSROOT="/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/sparc64-unknown-netbsd/stage2" RUSTC_TLS_MODEL_INITIAL_EXEC="1" RUSTC_VERBOSE="1" RUSTDOC="/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/bootstrap/debug/rustdoc" RUSTDOCFLAGS="-Csymbol-mangling-version=v0 -Zunstable-options --check-cfg=values(bootstrap) -Dwarnings -Wrustdoc::invalid_codeblock_attributes --crate-version 1.73.0\t(cc66ad468\t2023-10-03)\t(built\tfrom\ta\tsource\ttarball)" RUSTDOC_REAL="/path/to/nowhere/rustdoc/not/required" RUSTFLAGS="-Csymbol-mangling-version=v0 -Zunstable-options --check-cfg=values(bootstrap) -Zmacro-backtrace -Clink-args=-Wl,-z,origin -Clink-args=-Wl,-rpath,/usr/pkg/lib -Zunstable-options -Csplit-debuginfo=off" RUST_TEST_THREADS="1" SYSROOT="/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/build/sparc64-unknown-netbsd/stage2" __CARGO_DEFAULT_LIB_METADATA="stable" "/usr/pkgsrc/wip/rust/work/rust-bootstrap/bin/cargo" "build" "--target" "sparc64-unknown-netbsd" "--release" "-Zcheck-cfg=names,values,output,features" "-Zbinary-dep-depinfo" "-j" "1" "-v" "--frozen" "--manifest-path" "/usr/pkgsrc/wip/rust/work/rustc-1.73.0-src/src/tools/rust-analyzer/Cargo.toml" "--features" "rust-analyzer/in-rust-tree"
expected success, got: exit status: 101

Meta

Hmm, the rustc version used to bootstrap this is (obviously) the previous rust version, 1.72.1, which is cross-built from another platform (NetBSD/amd64):

s1: {17} ls -l work
total 40
drwxr-xr-x  12 he  wsrc  1024 Sep 24 17:48 rust-1.72.0-sparc64-unknown-netbsd
drwxr-xr-x   6 he  wsrc   512 Oct 24 03:19 rust-bootstrap
drwxr-xr-x   3 he  wsrc   512 Sep 24 17:32 rust-std-1.72.0-sparc64-unknown-netbsd
drwxr-xr-x   9 he  wsrc   512 Oct 24 03:24 rustc-1.73.0-src
drwxr-xr-x   2 he  wsrc   512 Oct 24 03:22 scripts
s1: {18} 

To test a theory that this particular problem stems from the embedded LLVM, I re-tried the build by using an external LLVM, version 15.0.7, and with that configuration, the build succeeds.

It's conceivable that I will re-test this with LLVM version 16.something, but it will at a minimum take multiple days to complete that test.

Sorry, I did not collect the backtrace for this problem, though it's not a given that it would have fared much better than producing the log above. My sparc64 host isn't exactly a speed demon, so the lead time for a test is in the order of days.

I have also tried to look at the core dump with gdb on this system, but regrettably didn't get very far with that -- I believe there are ... "regressions in our gdb port" which makes this difficult.

For now I'm asking if this is something other users of the sparc64 CPU platform are seeing, and whether anyone has any hints about this particular problem.

@he32 he32 added the C-bug Category: This is a bug. label Oct 26, 2023
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Oct 26, 2023
@he32
Copy link
Contributor Author

he32 commented Oct 26, 2023

Rummaging through my mail archive appears to indicate that this problem was also present in rust 1.70.0.

@Jules-Bertholet
Copy link
Contributor

@rustbot label o-sparc o-netbsd

@rustbot rustbot added O-netbsd Operating system: NetBSD O-SPARC Target: SPARC processors labels Oct 26, 2023
@he32
Copy link
Contributor Author

he32 commented Oct 26, 2023

Rummaging through my mail archive appears to indicate that this problem was also present in rust 1.70.0.

My current bet is that this has something to do with it:

rust 1.70.0 carries LLVM 16.0.2 inside.
rust 1.69.0 carries LLVM 15.0.7 inside.

@saethlin saethlin removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Oct 31, 2023
@he32
Copy link
Contributor Author

he32 commented Nov 14, 2023

However... The build of rust 1.73.0 with the embedded LLVM succeeds on NetBSD/sparc64 9.2(!), and my two test systems are nearly identical (same system type).

NetBSD/sparc64 9.2 has gcc 7.5.0 included
NetBSD/sparc64 10.0_BETA has gcc 10.4.0 included

gcc (and the g++ component) is used to build LLVM.

I am currently reproducing the problem (will take days), to see if some more sense can be made out of the core dump resulting from the SIGILL in 10.0_BETA.

@he32
Copy link
Contributor Author

he32 commented Nov 27, 2023

Here is some more information about the crash I am seeing (reproducibly) on NetBSD/sparc64 10.0_BETA. The build log ends with

     Running `/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2-tools/release/build/proc-macro-test-64fe4c8a589e6847/build-script-build`
error: failed to run custom build command for `proc-macro-test v0.0.0 (/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/src/tools/rust-analyzer/crates/proc-macro-test)`

Caused by:
  process didn't exit successfully: `/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2-tools/release/build/proc-macro-test-64fe4c8a589e6847/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=imp
  cargo:rerun-if-env-changed=PROC_MACRO_TEST_TOOLCHAIN
  Creating /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2-tools/sparc64-unknown-netbsd/release/build/proc-macro-test-e388f081f48ec38c/out/proc-macro-test-imp-staging
  Creating /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2-tools/sparc64-unknown-netbsd/release/build/proc-macro-test-e388f081f48ec38c/out/proc-macro-test-imp-staging/src
  Copying /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/src/tools/rust-analyzer/crates/proc-macro-test/imp/Cargo.toml to /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2-tools/sparc64-unknown-netbsd/release/build/proc-macro-test-e388f081f48ec38c/out/proc-macro-test-imp-staging/Cargo.toml
  Copying /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/src/tools/rust-analyzer/crates/proc-macro-test/imp/src/lib.rs to /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2-tools/sparc64-unknown-netbsd/release/build/proc-macro-test-e388f081f48ec38c/out/proc-macro-test-imp-staging/src/lib.rs
  Running cd "/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2-tools/sparc64-unknown-netbsd/release/build/proc-macro-test-e388f081f48ec38c/out/proc-macro-test-imp-staging" && "/usr/pkgsrc/wip/rust174/work/rust-bootstrap/bin/cargo" "build" "-p" "proc-macro-test-impl" "--message-format" "json" "--target-dir" "/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2-tools/sparc64-unknown-netbsd/release/build/proc-macro-test-e388f081f48ec38c/out/target" "--target" "sparc64-unknown-netbsd"
  proc-macro-test-impl failed to build
  ============ stdout ============

  Did not run successfully: signal: 4 (SIGILL) (core dumped)
  LD_LIBRARY_PATH="/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib:/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2-tools/sparc64-unknown-netbsd/release/build/proc-macro-test-e388f081f48ec38c/out/target/debug/deps:/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib:/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2-tools/release/deps:/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2-tools/release:/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/rustlib/sparc64-unknown-netbsd/lib:/usr/pkgsrc/wip/rust174/work/rust-bootstrap/lib" "/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/bin/rustc" "--crate-name" "proc_macro_test_impl" "--edition=2021" "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" "debuginfo=2" "-C" "metadata=b37551d75af401e1" "-C" "extra-filename=-b37551d75af401e1" "--out-dir" "/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2-tools/sparc64-unknown-netbsd/release/build/proc-macro-test-e388f081f48ec38c/out/target/debug/deps" "-L" "dependency=/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2-tools/sparc64-unknown-netbsd/release/build/proc-macro-test-e388f081f48ec38c/out/target/debug/deps" "--extern" "proc_macro" "-Wrust_2018_idioms" "-Wunused_lifetimes" "-Wsemicolon_in_expressions_from_macros" "-Dwarnings" "-Zunstable-options" "--check-cfg=values(bootstrap)" "-Zallow-features=binary-dep-depinfo,proc_macro_span,proc_macro_span_shrink,proc_macro_diagnostic,proc_macro_internals,proc_macro_diagnostic,proc_macro_span,proc_macro_span_shrink"
  -------------
  {"reason":"build-finished","success":false}

  ============ stderr ============
     Compiling proc-macro-test-impl v0.0.0 (/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2-tools/sparc64-unknown-netbsd/release/build/proc-macro-test-e388f081f48ec38c/out/proc-macro-test-imp-staging)
  rustc exited with signal: 4 (SIGILL) (core dumped)
  error: could not compile `proc-macro-test-impl` (lib)

  Caused by:
    process didn't exit successfully: `/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/bootstrap/debug/rustc --crate-name proc_macro_test_impl --edition=2021 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 debuginfo=2 -C metadata=b37551d75af401e1 -C extra-filename=-b37551d75af401e1 --out-dir /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2-tools/sparc64-unknown-netbsd/release/build/proc-macro-test-e388f081f48ec38c/out/target/debug/deps -L dependency=/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2-tools/sparc64-unknown-netbsd/release/build/proc-macro-test-e388f081f48ec38c/out/target/debug/deps --extern proc_macro` (exit status: 254)


  --- stderr
  thread 'main' panicked at crates/proc-macro-test/build.rs:87:9:
  proc-macro-test-impl failed to build
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


command did not execute successfully: cd "/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src" && AR_sparc64_unknown_netbsd="ar" CARGO_INCREMENTAL="0" CARGO_PROFILE_RELEASE_DEBUG="0" CARGO_PROFILE_RELEASE_DEBUG_ASSERTIONS="false" CARGO_PROFILE_RELEASE_OVERFLOW_CHECKS="false" CARGO_TARGET_DIR="/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2-tools" CC_sparc64_unknown_netbsd="gcc" CFG_COMPILER_HOST_TRIPLE="sparc64-unknown-netbsd" CFG_RELEASE="1.74.0" CFG_RELEASE_CHANNEL="stable" CFG_RELEASE_NUM="1.74.0" CFG_VERSION="1.74.0 (79e9716c9 2023-11-13) (built from a source tarball)" CFG_VER_DATE="2023-11-13" CFG_VER_HASH="79e9716c980570bfd1f666e3b16ac583f0168962" CFLAGS_sparc64_unknown_netbsd="-O2 -ffunction-sections -fdata-sections -fPIC -O2 -fPIC -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include/krb5 -I/usr/include -I/usr/pkg/include/python3.10" CXXFLAGS_sparc64_unknown_netbsd="-O2 -ffunction-sections -fdata-sections -fPIC -O2 -fPIC -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include/krb5 -I/usr/include -I/usr/pkg/include/python3.10" CXX_sparc64_unknown_netbsd="c++" DOC_RUST_LANG_ORG_CHANNEL="https://doc.rust-lang.org/1.74.0" LIBC_CHECK_CFG="1" LZMA_API_STATIC="1" RANLIB_sparc64_unknown_netbsd="ar s" REAL_LIBRARY_PATH="/usr/pkgsrc/wip/rust174/work/rust-bootstrap/lib" REAL_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" RUSTBUILD_NATIVE_DIR="/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/native" RUSTC="/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/bootstrap/debug/rustc" RUSTC_ALLOW_FEATURES="binary-dep-depinfo,proc_macro_span,proc_macro_span_shrink,proc_macro_diagnostic,proc_macro_internals,proc_macro_diagnostic,proc_macro_span,proc_macro_span_shrink" RUSTC_BOOTSTRAP="1" RUSTC_BREAK_ON_ICE="1" RUSTC_ERROR_METADATA_DST="/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/tmp/extended-error-metadata" RUSTC_INSTALL_BINDIR="bin" RUSTC_LIBDIR="/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib" RUSTC_LINT_FLAGS="-Wrust_2018_idioms -Wunused_lifetimes -Wsemicolon_in_expressions_from_macros -Dwarnings" RUSTC_REAL="/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/bin/rustc" RUSTC_SNAPSHOT="/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/bin/rustc" RUSTC_SNAPSHOT_LIBDIR="/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib" RUSTC_STAGE="2" RUSTC_SYSROOT="/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2" RUSTC_TLS_MODEL_INITIAL_EXEC="1" RUSTC_VERBOSE="1" RUSTDOC="/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/bootstrap/debug/rustdoc" RUSTDOCFLAGS="-Csymbol-mangling-version=v0 -Zunstable-options --check-cfg=values(bootstrap) -Dwarnings -Wrustdoc::invalid_codeblock_attributes --crate-version 1.74.0\t(79e9716c9\t2023-11-13)\t(built\tfrom\ta\tsource\ttarball)" RUSTDOC_REAL="/path/to/nowhere/rustdoc/not/required" RUSTFLAGS="-Csymbol-mangling-version=v0 -Zunstable-options --check-cfg=values(bootstrap) -Zmacro-backtrace -Clink-args=-Wl,-z,origin -Clink-args=-Wl,-rpath,/usr/pkg/lib -Zunstable-options -Csplit-debuginfo=off" RUST_TEST_THREADS="1" SYSROOT="/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2" __CARGO_DEFAULT_LIB_METADATA="stable" "/usr/pkgsrc/wip/rust174/work/rust-bootstrap/bin/cargo" "build" "--target" "sparc64-unknown-netbsd" "--release" "-Zcheck-cfg=names,values,output,features" "-Zbinary-dep-depinfo" "-j" "1" "-v" "--frozen" "--manifest-path" "/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/src/tools/rust-analyzer/Cargo.toml" "--features" "rust-analyzer/in-rust-tree"
expected success, got: exit status: 101

and a session with gdb points towards somewhere in the text segment of rustc_driver (surprise!):

s1: {13} find work -name '*.core'
work/rustc-1.74.0-src/src/llvm-project/lldb/test/API/tools/lldb-vscode/coreFile/linux-x86_64.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/API/functionalities/postmortem/netbsd-core/2lwp_t2_SIGSEGV.amd64.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/API/functionalities/postmortem/netbsd-core/1lwp_SIGSEGV.amd64.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/API/functionalities/postmortem/netbsd-core/2lwp_process_SIGSEGV.amd64.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/API/functionalities/postmortem/netbsd-core/2lwp_t2_SIGSEGV.aarch64.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/API/functionalities/postmortem/netbsd-core/1lwp_SIGSEGV.aarch64.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/API/functionalities/postmortem/netbsd-core/2lwp_process_SIGSEGV.aarch64.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/API/functionalities/postmortem/elf-core/gcore/linux-x86_64.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/API/functionalities/postmortem/elf-core/gcore/linux-i386.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/API/functionalities/postmortem/elf-core/thread_crash/linux-x86_64.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/API/functionalities/postmortem/elf-core/thread_crash/linux-i386.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/API/functionalities/postmortem/elf-core/linux-x86_64.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/API/functionalities/postmortem/elf-core/linux-fpr_sse_x86_64.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/API/functionalities/postmortem/elf-core/linux-i386.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/API/functionalities/postmortem/elf-core/linux-fpr_sse_i386.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-pac.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-sve-fpsimd.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/API/functionalities/postmortem/elf-core/linux-ppc64le.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-sve-full.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/API/functionalities/postmortem/elf-core/linux-arm.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/API/functionalities/postmortem/elf-core/altmain.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-neon.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/API/functionalities/postmortem/elf-core/linux-s390x.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/API/functionalities/unwind/noreturn/module-end/test.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/Shell/Register/Core/Inputs/x86-32-freebsd-multithread.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/Shell/Register/Core/Inputs/x86-64-freebsd-multithread.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/Shell/Register/Core/Inputs/aarch64-freebsd-multithread.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/Shell/Register/Core/Inputs/x86-32-netbsd-multithread.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/Shell/Register/Core/Inputs/x86-64-netbsd-multithread.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/Shell/Register/Core/Inputs/x86-32-linux-multithread.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/Shell/Register/Core/Inputs/x86-64-linux-multithread.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/Shell/Register/Core/Inputs/x86-32-freebsd.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/Shell/Register/Core/Inputs/x86-64-freebsd.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/Shell/Register/Core/Inputs/x86-32-netbsd.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/Shell/Register/Core/Inputs/x86-64-netbsd.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/Shell/Register/Core/Inputs/x86-32-linux.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/Shell/Register/Core/Inputs/x86-64-linux.core
work/rustc-1.74.0-src/src/llvm-project/lldb/test/Shell/ObjectFile/ELF/Inputs/netbsd-amd64.core
work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2-tools/sparc64-unknown-netbsd/release/build/proc-macro-test-e388f081f48ec38c/out/proc-macro-test-imp-staging/rustc.core
s1: {14} find work -type f -name rustc
work/rustc-1.74.0-src/build/bootstrap/debug/rustc
work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage1/bin/rustc
work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/bin/rustc
work/rust-1.73.0-sparc64-unknown-netbsd/rustc/bin/rustc
work/rust-bootstrap/bin/rustc
s1: {15} mkdir debug
s1: {16} ln work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/bin/rustc work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2-tools/sparc64-unknown-netbsd/release/build/proc-macro-test-e388f081f48ec38c/out/proc-macro-test-imp-staging/rustc.core debug
s1: {17} cd debug
s1: {18} ls
rustc      rustc.core
s1: {19} gdb -q rustc rustc.core
Reading symbols from rustc...
(No debugging symbols found in rustc)
[New process 5033]
[New process 22127]
[New process 28919]
[New process 26840]
[New process 1580]
Core was generated by `rustc'.
Program terminated with signal SIGILL, Illegal instruction.
#0  0x000000004298a27c in ?? ()
   from /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so
[Current thread is 1 (process 5033)]
(gdb) i regi
g0             0x0                 0
g1             0x4298c2e0          1117307616
g2             0x14                20
g3             0x124               292
g4             0x52421c10          1380064272
g5             0x4                 4
g6             0x74c3a0            7652256
g7             0x5218b8b0          1377351856
o0             0x5243fc00          1380187136
o1             0x52b32800          1387472896
o2             0x10                16
o3             0x0                 0
o4             0x52421be0          1380064224
o5             0x5284d900          1384438016
sp             0x52421431          0x52421431
o7             0x4298a048          1117298760
l0             0x52421c68          1380064360
l1             0x0                 0
l2             0x0                 0
l3             0x0                 0
l4             0x0                 0
l5             0x0                 0
l6             0x0                 0
l7             0x4aa22078          1252139128
i0             0x527ad030          1383780400
i1             0x5243fc00          1380187136
i2             0x5                 5
i3             0x1                 1
i4             0x20                32
i5             0x5243fc00          1380187136
fp             0x524214f1          0x524214f1
i7             0x42980eb8          1117261496
pc             0x4298a27c          0x4298a27c
npc            0x4298a280          0x4298a280
state          0x82000204          2181038596
fsr            0x20                [ NXA ]
fprs           <unavailable>
y              0x156955da          359224794
cwp            0x4                 4
pstate         0x2                 [ IE ]
asi            0x82                130
ccr            0x0                 [ ]
(gdb) x/i 0x4298a27c
=> 0x4298a27c:  nop 
(gdb) x/i 0x4298a280
   0x4298a280:  illtrap  0x120
(gdb) i target
Symbols from "/usr/pkgsrc/wip/rust174/debug/rustc".
Local core dump file:
        `/usr/pkgsrc/wip/rust174/debug/rustc.core', file type elf64-sparc.
        0x0000000000100000 - 0x0000000000102000 is load0
        0x0000000000200000 - 0x0000000000201ff8 is load1a
        0x0000000000201ff8 - 0x0000000000202000 is load1b
        0x0000000000202000 - 0x0000000000202288 is load2a
        0x0000000000202288 - 0x0000000000204000 is load2b
        0x0000000040204000 - 0x0000000040206000 is load3
        0x0000000040206000 - 0x000000004021f8c8 is load4a
        0x000000004021f8c8 - 0x0000000040222000 is load4b
        0x0000000040222000 - 0x00000000402319e8 is load5a
        0x00000000402319e8 - 0x0000000040234000 is load5b
        0x0000000040234000 - 0x0000000040234028 is load6a
        0x0000000040234028 - 0x0000000040244000 is load6b
        0x0000000040244000 - 0x0000000040246a48 is load7a
        0x0000000040246a48 - 0x000000004025c000 is load7b
        0x000000004025c000 - 0x000000004025c3f0 is load8a
        0x000000004025c3f0 - 0x0000000040262000 is load8b
        0x0000000040262000 - 0x000000004026c368 is load9a
        0x000000004026c368 - 0x0000000040270000 is load9b
        0x0000000040270000 - 0x0000000040280540 is load10a
        0x0000000040280540 - 0x000000004028a000 is load10b
        0x000000004028a000 - 0x0000000040291118 is load11a
        0x0000000040291118 - 0x000000004029e000 is load11b
        0x000000004029e000 - 0x000000004029e680 is load12a
        0x000000004029e680 - 0x00000000402ac000 is load12b
        0x00000000402ac000 - 0x00000000402ac3b8 is load13a
        0x00000000402ac3b8 - 0x00000000402b2000 is load13b
        0x00000000402b2000 - 0x00000000402c0d00 is load14a
        0x00000000402c0d00 - 0x00000000402ce000 is load14b
        0x00000000402ce000 - 0x00000000402d2218 is load15a
        0x00000000402d2218 - 0x00000000402dc000 is load15b
        0x00000000402dc000 - 0x00000000402dc2a8 is load16a
        0x00000000402dc2a8 - 0x00000000402ec000 is load16b
        0x00000000402ec000 - 0x0000000040300000 is load17
        0x0000000040300000 - 0x0000000040314000 is load18
        0x0000000040314000 - 0x0000000040412000 is load19
        0x0000000040412000 - 0x00000000404151c0 is load20a
        0x00000000404151c0 - 0x0000000040420000 is load20b
        0x0000000040420000 - 0x000000004042b008 is load21a
        0x000000004042b008 - 0x000000004044a000 is load21b
        0x000000004044a000 - 0x000000004045e8a0 is load22a
        0x000000004045e8a0 - 0x000000004049e000 is load22b
        0x000000004049e000 - 0x00000000404c8af0 is load23a
        0x00000000404c8af0 - 0x00000000404ce000 is load23b
        0x00000000404ce000 - 0x00000000404e0880 is load24a
        0x00000000404e0880 - 0x00000000404e4000 is load24b
        0x00000000404e4000 - 0x00000000404e99f8 is load25a
        0x00000000404e99f8 - 0x00000000404ea000 is load25b
        0x00000000404ea000 - 0x00000000404ec000 is load26
        0x00000000404ec000 - 0x00000000404f6000 is load27
        0x00000000404f6000 - 0x00000000404f6cc0 is load28a
        0x00000000404f6cc0 - 0x00000000404fa000 is load28b
        0x00000000404fa000 - 0x00000000404fcf70 is load29a
        0x00000000404fcf70 - 0x0000000040500000 is load29b
        0x0000000040500000 - 0x000000004a5c0000 is load30
        0x000000004a5c0000 - 0x000000004a6c0000 is load31
        0x000000004a6c0000 - 0x000000004a8a0000 is load32
        0x000000004a8a0000 - 0x000000004a9c0000 is load33
        0x000000004a9c0000 - 0x000000004ab68000 is load34
        0x000000004ab68000 - 0x000000004abbe000 is load35
        0x000000004abbe000 - 0x000000004ac424c8 is load36a
        0x000000004ac424c8 - 0x000000004ac44000 is load36b
        0x000000004ac44000 - 0x000000004ac4f3a0 is load37a
        0x000000004ac4f3a0 - 0x000000004ac58000 is load37b
        0x000000004ac58000 - 0x000000004ac5a600 is load38a
        0x000000004ac5a600 - 0x000000004ac60000 is load38b
        0x000000004ac60000 - 0x000000004ac60408 is load39a
        0x000000004ac60408 - 0x000000004ac6a000 is load39b
        0x000000004ac6a000 - 0x000000004ac6bff8 is load40a
        0x000000004ac6bff8 - 0x000000004ac6e000 is load40b
        0x000000004ac6e000 - 0x000000004ac6e020 is load41a
        0x000000004ac6e020 - 0x000000004ac80000 is load41b
        0x000000004ac80000 - 0x000000004ac91000 is load42a
        0x000000004ac91000 - 0x000000004ac9a000 is load42b
        0x000000004ac9a000 - 0x000000004acb18c8 is load43a
        0x000000004acb18c8 - 0x000000004acb4000 is load43b
        0x000000004acb4000 - 0x000000004acb5ff8 is load44a
        0x000000004acb5ff8 - 0x000000004acb6000 is load44b
        0x000000004acb6000 - 0x000000004acb8000 is load45
        0x000000004acb8000 - 0x000000004acc2000 is load46
        0x000000004acc2000 - 0x000000004accbe08 is load47a
        0x000000004accbe08 - 0x000000004acce000 is load47b
        0x000000004acce000 - 0x000000004aced5f0 is load48a
        0x000000004aced5f0 - 0x000000004acf8000 is load48b
        0x000000004acf8000 - 0x000000004acffff0 is load49a
        0x000000004acffff0 - 0x000000004ad00000 is load49b
        0x000000004ad00000 - 0x000000004aedc000 is load50
        0x000000004aedc000 - 0x000000004afdc000 is load51
        0x000000004afdc000 - 0x000000004aff4000 is load52
        0x000000004aff4000 - 0x000000004aff7c98 is load53a
        0x000000004aff7c98 - 0x000000004aff8000 is load53b
        0x000000004aff8000 - 0x000000004aff9ff8 is load54a
        0x000000004aff9ff8 - 0x000000004affc000 is load54b
        0x000000004affc000 - 0x000000004b000000 is load55
        0x000000004b000000 - 0x000000004b20e000 is load56
        0x000000004b20e000 - 0x000000004b30c000 is load57
        0x000000004b30c000 - 0x000000004b32f9a0 is load58a
        0x000000004b32f9a0 - 0x000000004b330000 is load58b
        0x000000004b330000 - 0x000000004b337e70 is load59a
        0x000000004b337e70 - 0x000000004b436000 is load59b
        0x000000004b436000 - 0x000000004b4380c8 is load60a
        0x000000004b4380c8 - 0x000000004b440000 is load60b
        0x000000004b440000 - 0x000000004b441690 is load61a
--Type <RET> for more, q to quit, c to continue without paging--
        0x000000004b441690 - 0x000000004b44a000 is load61b
        0x000000004b44a000 - 0x000000004b450018 is load62a
        0x000000004b450018 - 0x000000004b452000 is load62b
        0x000000004b452000 - 0x000000004b45b1f0 is load63a
        0x000000004b45b1f0 - 0x000000004b460000 is load63b
        0x000000004b460000 - 0x000000004b4de2e0 is load64a
        0x000000004b4de2e0 - 0x000000004b4e2000 is load64b
        0x000000004b4e2000 - 0x000000004b4ffd00 is load65a
        0x000000004b4ffd00 - 0x000000004b500000 is load65b
        0x000000004b500000 - 0x000000004b504000 is load66
        0x000000004b504000 - 0x000000004b602000 is load67
        0x000000004b602000 - 0x000000004b602a20 is load68a
        0x000000004b602a20 - 0x000000004b604000 is load68b
        0x000000004b604000 - 0x000000004b6e7348 is load69a
        0x000000004b6e7348 - 0x000000004b6ea000 is load69b
        0x000000004b6ea000 - 0x000000004b6fb408 is load70a
        0x000000004b6fb408 - 0x000000004b6fc000 is load70b
        0x000000004b6fc000 - 0x000000004b700000 is load71
        0x000000004b700000 - 0x000000004b716000 is load72
        0x000000004b716000 - 0x000000004b814000 is load73
        0x000000004b814000 - 0x000000004b817f10 is load74a
        0x000000004b817f10 - 0x000000004b818000 is load74b
        0x000000004b818000 - 0x000000004b843ff0 is load75a
        0x000000004b843ff0 - 0x000000004b844000 is load75b
        0x000000004b844000 - 0x000000004b850000 is load76
        0x000000004b850000 - 0x000000004b854000 is load77
        0x000000004b854000 - 0x000000004b8b0000 is load78
        0x000000004b8b0000 - 0x000000004b8ba000 is load79
        0x000000004b8ba000 - 0x000000004b8bc000 is load80
        0x000000004b8bc000 - 0x000000004b8be000 is load81
        0x000000004b8be000 - 0x000000004b8c3eb8 is load82a
        0x000000004b8c3eb8 - 0x000000004b8c4000 is load82b
        0x000000004b8c4000 - 0x000000004b8e4000 is load83
        0x000000004b8e4000 - 0x000000004b8ec000 is load84
        0x000000004b8ec000 - 0x000000004b8fffe8 is load85a
        0x000000004b8fffe8 - 0x000000004b900000 is load85b
        0x000000004b900000 - 0x000000004b950000 is load86
        0x000000004b950000 - 0x000000004ba4e000 is load87
        0x000000004ba4e000 - 0x000000004ba55038 is load88a
        0x000000004ba55038 - 0x000000004ba56000 is load88b
        0x000000004ba56000 - 0x000000004ba57028 is load89a
        0x000000004ba57028 - 0x000000004ba58000 is load89b
        0x000000004ba58000 - 0x000000004bab8000 is load90
        0x000000004bab8000 - 0x000000004bb00000 is load91
        0x000000004bb00000 - 0x000000004bb16000 is load92
        0x000000004bb16000 - 0x000000004bc16000 is load93
        0x000000004bc16000 - 0x000000004bc16d80 is load94a
        0x000000004bc16d80 - 0x000000004bc18000 is load94b
        0x000000004bc18000 - 0x000000004bc86000 is load95
        0x000000004bc86000 - 0x000000004bccc700 is load96a
        0x000000004bccc700 - 0x000000004bcd6000 is load96b
        0x000000004bcd6000 - 0x000000004bce1260 is load97a
        0x000000004bce1260 - 0x000000004bce4000 is load97b
        0x000000004bce4000 - 0x000000004bd00000 is load98
        0x000000004bd00000 - 0x000000004bee4000 is load99
        0x000000004bee4000 - 0x000000004bfe4000 is load100
        0x000000004bfe4000 - 0x000000004bffa000 is load101
        0x000000004bffa000 - 0x000000004bffdaf0 is load102a
        0x000000004bffdaf0 - 0x000000004bffe000 is load102b
        0x000000004bffe000 - 0x000000004bffffe8 is load103a
        0x000000004bffffe8 - 0x000000004c000000 is load103b
        0x000000004c000000 - 0x000000004c012000 is load104
        0x000000004c012000 - 0x000000004c110000 is load105
        0x000000004c110000 - 0x000000004c111d50 is load106a
        0x000000004c111d50 - 0x000000004c112000 is load106b
        0x000000004c112000 - 0x000000004c113ff0 is load107a
        0x000000004c113ff0 - 0x000000004c114000 is load107b
        0x000000004c114000 - 0x000000004c194000 is load108
        0x000000004c194000 - 0x000000004c1ff2a0 is load109a
        0x000000004c1ff2a0 - 0x000000004c200000 is load109b
        0x000000004c200000 - 0x000000004c21a000 is load110
        0x000000004c21a000 - 0x000000004c31a000 is load111
        0x000000004c31a000 - 0x000000004c31b600 is load112a
        0x000000004c31b600 - 0x000000004c31c000 is load112b
        0x000000004c31c000 - 0x000000004c3656b0 is load113a
        0x000000004c3656b0 - 0x000000004c37c000 is load113b
        0x000000004c37c000 - 0x000000004c3dd300 is load114a
        0x000000004c3dd300 - 0x000000004c3e0000 is load114b
        0x000000004c3e0000 - 0x000000004c3f03b0 is load115a
        0x000000004c3f03b0 - 0x000000004c3f2000 is load115b
        0x000000004c3f2000 - 0x000000004c41ffe8 is load116a
        0x000000004c41ffe8 - 0x000000004c420000 is load116b
        0x000000004c420000 - 0x000000004c4417e8 is load117a
        0x000000004c4417e8 - 0x000000004c600000 is load117b
        0x000000004c600000 - 0x000000004c600040 is load118a
        0x000000004c600040 - 0x000000004c620000 is load118b
        0x000000004c620000 - 0x000000004c700000 is load119
        0x000000004c700000 - 0x000000004c701500 is load120a
        0x000000004c701500 - 0x000000004c72a000 is load120b
        0x000000004c72a000 - 0x000000004c731100 is load121a
        0x000000004c731100 - 0x000000004c734000 is load121b
        0x000000004c734000 - 0x000000004c7378c0 is load122a
        0x000000004c7378c0 - 0x000000004c73a000 is load122b
        0x000000004c73a000 - 0x000000004c73a090 is load123a
        0x000000004c73a090 - 0x000000004c746000 is load123b
        0x000000004c746000 - 0x000000004c74ae18 is load124a
        0x000000004c74ae18 - 0x000000004c760000 is load124b
        0x000000004c760000 - 0x000000004ca00000 is load125
        0x000000004ca00000 - 0x000000004ca10000 is load126
        0x000000004ca10000 - 0x000000004d1a0000 is load127
        0x000000004d1a0000 - 0x000000004d1aa000 is load128
        0x000000004d1aa000 - 0x000000004d1bfff0 is load129a
        0x000000004d1bfff0 - 0x000000004d1c0000 is load129b
        0x000000004d1c0000 - 0x000000004d20ffd0 is load130a
        0x000000004d20ffd0 - 0x000000004d210000 is load130b
--Type <RET> for more, q to quit, c to continue without paging--
        0x000000004d210000 - 0x000000004d37a000 is load131
        0x000000004d37a000 - 0x000000004d37b0a0 is load132a
        0x000000004d37b0a0 - 0x000000004d37c000 is load132b
        0x000000004d37c000 - 0x000000004d95e000 is load133
        0x000000004d95e000 - 0x000000004d960000 is load134
        0x000000004d960000 - 0x000000004dae6000 is load135
        0x000000004dae6000 - 0x000000004dae8000 is load136
        0x000000004dae8000 - 0x000000004dc4a000 is load137
        0x000000004dc4a000 - 0x000000004dc59b80 is load138a
        0x000000004dc59b80 - 0x000000004dc5c000 is load138b
        0x000000004dc5c000 - 0x000000004dd53fa8 is load139a
        0x000000004dd53fa8 - 0x000000004dd54000 is load139b
        0x000000004dd54000 - 0x000000004dd56000 is load140
        0x000000004dd56000 - 0x000000004dd69060 is load141a
        0x000000004dd69060 - 0x000000004dd6c000 is load141b
        0x000000004dd6c000 - 0x000000004dd8e808 is load142a
        0x000000004dd8e808 - 0x000000004dd92000 is load142b
        0x000000004dd92000 - 0x000000004dda6f50 is load143a
        0x000000004dda6f50 - 0x000000004ddb2000 is load143b
        0x000000004ddb2000 - 0x000000004ddb8808 is load144a
        0x000000004ddb8808 - 0x000000004ddc0000 is load144b
        0x000000004ddc0000 - 0x000000004ddd4100 is load145a
        0x000000004ddd4100 - 0x000000004ddd8000 is load145b
        0x000000004ddd8000 - 0x000000004dde4880 is load146a
        0x000000004dde4880 - 0x000000004ddec000 is load146b
        0x000000004ddec000 - 0x000000004ddf0000 is load147
        0x000000004ddf0000 - 0x000000004e7e2000 is load148
        0x000000004e7e2000 - 0x000000004e7e3ec0 is load149a
        0x000000004e7e3ec0 - 0x000000004e7e4000 is load149b
        0x000000004e7e4000 - 0x0000000050828000 is load150
        0x0000000050828000 - 0x0000000050e34000 is load151
        0x0000000050e34000 - 0x0000000051644000 is load152
        0x0000000051644000 - 0x000000005199e000 is load153
        0x000000005199e000 - 0x00000000519abfe8 is load154a
        0x00000000519abfe8 - 0x00000000519be000 is load154b
        0x00000000519be000 - 0x00000000519f6e88 is load155a
        0x00000000519f6e88 - 0x00000000519fa000 is load155b
        0x00000000519fa000 - 0x0000000051a2fd58 is load156a
        0x0000000051a2fd58 - 0x0000000051a3c000 is load156b
        0x0000000051a3c000 - 0x0000000051a5b830 is load157a
        0x0000000051a5b830 - 0x0000000051a76000 is load157b
        0x0000000051a76000 - 0x0000000051a88708 is load158a
        0x0000000051a88708 - 0x0000000051a8c000 is load158b
        0x0000000051a8c000 - 0x0000000051aa9588 is load159a
        0x0000000051aa9588 - 0x0000000051aae000 is load159b
        0x0000000051aae000 - 0x0000000051ac3788 is load160a
        0x0000000051ac3788 - 0x0000000051ac8000 is load160b
        0x0000000051ac8000 - 0x0000000051b2c448 is load161a
        0x0000000051b2c448 - 0x0000000051b3a000 is load161b
        0x0000000051b3a000 - 0x0000000051b4d148 is load162a
        0x0000000051b4d148 - 0x0000000051b50000 is load162b
        0x0000000051b50000 - 0x0000000051b81060 is load163a
        0x0000000051b81060 - 0x0000000051b8c000 is load163b
        0x0000000051b8c000 - 0x0000000051b90000 is load164
        0x0000000051b90000 - 0x0000000051ba1f08 is load165a
        0x0000000051ba1f08 - 0x0000000051c24000 is load165b
        0x0000000051c24000 - 0x0000000051c69860 is load166a
        0x0000000051c69860 - 0x0000000051c6e000 is load166b
        0x0000000051c6e000 - 0x0000000051c7e630 is load167a
        0x0000000051c7e630 - 0x0000000051c86000 is load167b
        0x0000000051c86000 - 0x0000000051ca1288 is load168a
        0x0000000051ca1288 - 0x0000000051ca4000 is load168b
        0x0000000051ca4000 - 0x0000000051cc49c0 is load169a
        0x0000000051cc49c0 - 0x0000000051cc8000 is load169b
        0x0000000051cc8000 - 0x0000000051ccb418 is load170a
        0x0000000051ccb418 - 0x0000000051cd2000 is load170b
        0x0000000051cd2000 - 0x0000000051cea038 is load171a
        0x0000000051cea038 - 0x0000000051cf8000 is load171b
        0x0000000051cf8000 - 0x0000000051d04688 is load172a
        0x0000000051d04688 - 0x0000000051d08000 is load172b
        0x0000000051d08000 - 0x0000000051d616c8 is load173a
        0x0000000051d616c8 - 0x0000000051d64000 is load173b
        0x0000000051d64000 - 0x0000000051d74000 is load174
        0x0000000051d74000 - 0x0000000051f60000 is load175
        0x0000000051f60000 - 0x0000000051f72000 is load176
        0x0000000051f72000 - 0x0000000051f73fd0 is load177a
        0x0000000051f73fd0 - 0x0000000051f74000 is load177b
        0x0000000051f74000 - 0x0000000051f84000 is load178
        0x0000000051f84000 - 0x0000000052180000 is load179
        0x0000000052180000 - 0x000000005218b8c8 is load180a
        0x000000005218b8c8 - 0x0000000052190000 is load180b
        0x0000000052190000 - 0x00000000521c84f8 is load181a
        0x00000000521c84f8 - 0x00000000521ca000 is load181b
        0x00000000521ca000 - 0x00000000521cc000 is load182
        0x00000000521cc000 - 0x00000000521d6000 is load183
        0x00000000521d6000 - 0x00000000521d8000 is load184
        0x00000000521d8000 - 0x00000000521e8000 is load185
        0x00000000521e8000 - 0x00000000521f4fe0 is load186a
        0x00000000521f4fe0 - 0x00000000521fe000 is load186b
        0x00000000521fe000 - 0x00000000522006b0 is load187a
        0x00000000522006b0 - 0x0000000052212000 is load187b
        0x0000000052212000 - 0x0000000052213c08 is load188a
        0x0000000052213c08 - 0x0000000052214000 is load188b
        0x0000000052214000 - 0x0000000052224000 is load189
        0x0000000052224000 - 0x000000005241a000 is load190
        0x000000005241a000 - 0x0000000052420000 is load191
        0x0000000052420000 - 0x0000000052423fd0 is load192a
        0x0000000052423fd0 - 0x0000000052424000 is load192b
        0x0000000052424000 - 0x000000005243a948 is load193a
        0x000000005243a948 - 0x000000005243e000 is load193b
        0x000000005243e000 - 0x0000000052538fb0 is load194a
        0x0000000052538fb0 - 0x000000005253c000 is load194b
        0x000000005253c000 - 0x00000000525a3a88 is load195a
        0x00000000525a3a88 - 0x00000000525a6000 is load195b
        0x00000000525a6000 - 0x0000000052604548 is load196a
--Type <RET> for more, q to quit, c to continue without paging--
        0x0000000052604548 - 0x0000000052608000 is load196b
        0x0000000052608000 - 0x000000005261dff8 is load197a
        0x000000005261dff8 - 0x000000005261e000 is load197b
        0x000000005261e000 - 0x00000000526bbe70 is load198a
        0x00000000526bbe70 - 0x00000000526be000 is load198b
        0x00000000526be000 - 0x00000000526f2a08 is load199a
        0x00000000526f2a08 - 0x00000000526f6000 is load199b
        0x00000000526f6000 - 0x0000000052727140 is load200a
        0x0000000052727140 - 0x000000005272c000 is load200b
        0x000000005272c000 - 0x00000000527453c0 is load201a
        0x00000000527453c0 - 0x000000005274a000 is load201b
        0x000000005274a000 - 0x0000000052758000 is load202a
        0x0000000052758000 - 0x0000000052768000 is load202b
        0x0000000052768000 - 0x000000005276a4f0 is load203a
        0x000000005276a4f0 - 0x000000005276e000 is load203b
        0x000000005276e000 - 0x0000000052770000 is load204
        0x0000000052770000 - 0x000000005277a000 is load205
        0x000000005277a000 - 0x0000000052805350 is load206a
        0x0000000052805350 - 0x000000005280c000 is load206b
        0x000000005280c000 - 0x00000000528c1ae0 is load207a
        0x00000000528c1ae0 - 0x00000000528c4000 is load207b
        0x00000000528c4000 - 0x00000000528c6640 is load208a
        0x00000000528c6640 - 0x00000000528ce000 is load208b
        0x00000000528ce000 - 0x0000000052953fd8 is load209a
        0x0000000052953fd8 - 0x000000005295e000 is load209b
        0x000000005295e000 - 0x000000005296dfc0 is load210a
        0x000000005296dfc0 - 0x000000005296e000 is load210b
        0x000000005296e000 - 0x0000000052987ec8 is load211a
        0x0000000052987ec8 - 0x000000005298a000 is load211b
        0x000000005298a000 - 0x00000000529df768 is load212a
        0x00000000529df768 - 0x00000000529e2000 is load212b
        0x00000000529e2000 - 0x0000000052a6aff8 is load213a
        0x0000000052a6aff8 - 0x0000000052a6e000 is load213b
        0x0000000052a6e000 - 0x0000000052a90fa0 is load214a
        0x0000000052a90fa0 - 0x0000000052a94000 is load214b
        0x0000000052a94000 - 0x0000000052a97388 is load215a
        0x0000000052a97388 - 0x0000000052a9a000 is load215b
        0x0000000052a9a000 - 0x0000000052aacca8 is load216a
        0x0000000052aacca8 - 0x0000000052ab0000 is load216b
        0x0000000052ab0000 - 0x0000000052ac8ef8 is load217a
        0x0000000052ac8ef8 - 0x0000000052ad0000 is load217b
        0x0000000052ad0000 - 0x0000000052af31f8 is load218a
        0x0000000052af31f8 - 0x0000000052af8000 is load218b
        0x0000000052af8000 - 0x0000000052b0e0b0 is load219a
        0x0000000052b0e0b0 - 0x0000000052b14000 is load219b
        0x0000000052b14000 - 0x0000000052b2b578 is load220a
        0x0000000052b2b578 - 0x0000000052b32000 is load220b
        0x0000000052b32000 - 0x0000000052b350d8 is load221a
        0x0000000052b350d8 - 0x0000000052b46000 is load221b
        0xfffffffff7efe000 - 0xfffffffff8ffe000 is load222
        0xfffffffff8ffe000 - 0xfffffffff9000000 is load223
        0xfffffffff9000000 - 0xfffffffffffe0000 is load224
        0xfffffffffffe0000 - 0xffffffffffff2000 is load225
        0xffffffffffff2000 - 0xffffffffffffe000 is load226
        While running this, GDB does not access memory from...
Local exec file:
        `/usr/pkgsrc/wip/rust174/debug/rustc', file type elf64-sparc.
        Entry point: 0x100b00
        0x0000000000100238 - 0x000000000010024f is .interp
        0x0000000000100250 - 0x0000000000100268 is .note.netbsd.ident
        0x0000000000100268 - 0x000000000010027c is .note.netbsd.pax
        0x0000000000100280 - 0x0000000000100350 is .hash
        0x0000000000100350 - 0x0000000000100560 is .dynsym
        0x0000000000100560 - 0x00000000001006a7 is .dynstr
        0x00000000001006a8 - 0x00000000001009d8 is .rela.dyn
        0x00000000001009d8 - 0x0000000000100ae0 is .rela.plt
        0x0000000000100ae0 - 0x0000000000100af4 is .init
        0x0000000000100b00 - 0x00000000001012a0 is .text
        0x00000000001012a0 - 0x00000000001012b4 is .fini
        0x00000000001012b8 - 0x00000000001012cc is .rodata
        0x00000000001012cc - 0x0000000000101338 is .eh_frame_hdr
        0x0000000000101338 - 0x000000000010148c is .eh_frame
        0x0000000000201ce0 - 0x0000000000201cf0 is .ctors
        0x0000000000201cf0 - 0x0000000000201d00 is .dtors
        0x0000000000201d00 - 0x0000000000201d08 is .jcr
        0x0000000000201d08 - 0x0000000000201d38 is .data.rel.ro
        0x0000000000201d38 - 0x0000000000201f08 is .dynamic
        0x0000000000201f08 - 0x0000000000202000 is .got
        0x0000000000202000 - 0x00000000002021e0 is .plt
        0x00000000002021e0 - 0x00000000002021f0 is .data
        0x0000000000202200 - 0x0000000000202288 is .bss
        0x0000000040500238 - 0x000000004051915c is .hash in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so
        0x0000000040519160 - 0x0000000040590c50 is .dynsym in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so
        0x0000000040590c50 - 0x000000004078de1b is .dynstr in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so
        0x000000004078de1c - 0x0000000040797db0 is .gnu.version in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so
        0x0000000040797db0 - 0x0000000040797ef0 is .gnu.version_r in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so
        0x0000000040797ef0 - 0x000000004107ed80 is .rela.dyn in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so
        0x000000004107ed80 - 0x00000000410acb60 is .rela.plt in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so
        0x00000000410acb60 - 0x00000000410acb74 is .init in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so
        0x00000000410acb80 - 0x0000000047fef430 is .text in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so
        0x0000000047fef430 - 0x0000000047fef444 is .fini in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so
        0x0000000047fef480 - 0x0000000049d0249d is .rodata in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so
        0x0000000049d024a0 - 0x0000000049eb591c is .eh_frame_hdr in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so
--Type <RET> for more, q to quit, c to continue without paging--
        0x0000000049eb5920 - 0x000000004a3d310c is .eh_frame in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so
        0x000000004a3d310c - 0x000000004a5bf934 is .gcc_except_table in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so
        0x000000004a5bf934 - 0x000000004a5bf94c is .note.netbsd.ident in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so
        0x000000004a5bf94c - 0x000000004a5bf960 is .note.netbsd.pax in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so
        0x000000004a6c03e8 - 0x000000004a6c0418 is .tbss in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so
        0x000000004a6c03e8 - 0x000000004a6c1568 is .init_array in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so
        0x000000004a6c1568 - 0x000000004a6c1578 is .ctors in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so
        0x000000004a6c1578 - 0x000000004a6c1588 is .dtors in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so
        0x000000004a6c1588 - 0x000000004a6c1590 is .jcr in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so
        0x000000004a6c1590 - 0x000000004aa21e18 is .data.rel.ro in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so
        0x000000004aa21e18 - 0x000000004aa22078 is .dynamic in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so
        0x000000004aa22078 - 0x000000004ab68000 is .got in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so
        0x000000004ab68000 - 0x000000004aba5300 is .plt in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so
        0x000000004aba5300 - 0x000000004abbc488 is .data in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so
        0x000000004abbc488 - 0x000000004ac424d8 is .bss in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so
        0x000000004ad00200 - 0x000000004ad03d84 is .hash in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/libstd-8039b0c22926ef50.so
        0x000000004ad03d88 - 0x000000004ad14378 is .dynsym in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/libstd-8039b0c22926ef50.so
        0x000000004ad14378 - 0x000000004ad4d8b3 is .dynstr in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/libstd-8039b0c22926ef50.so
        0x000000004ad4d8b4 - 0x000000004ad4ee88 is .gnu.version in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/libstd-8039b0c22926ef50.so
        0x000000004ad4ee88 - 0x000000004ad4eec8 is .gnu.version_r in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/libstd-8039b0c22926ef50.so
        0x000000004ad4eec8 - 0x000000004ad7ee80 is .rela.dyn in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/libstd-8039b0c22926ef50.so
        0x000000004ad7ee80 - 0x000000004ad819d0 is .rela.plt in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/libstd-8039b0c22926ef50.so
        0x000000004ad819d0 - 0x000000004ad819e4 is .init in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/libstd-8039b0c22926ef50.so
        0x000000004ad81a00 - 0x000000004ae95ea0 is .text in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/libstd-8039b0c22926ef50.so
        0x000000004ae95ea0 - 0x000000004ae95eb4 is .fini in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/libstd-8039b0c22926ef50.so
        0x000000004ae95ec0 - 0x000000004aeb2bb0 is .rodata in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/libstd-8039b0c22926ef50.so
        0x000000004aeb2bb0 - 0x000000004aebc5ec is .eh_frame_hdr in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/libstd-8039b0c22926ef50.so
        0x000000004aebc5f0 - 0x000000004aed8514 is .eh_frame in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/libstd-8039b0c22926ef50.so
        0x000000004aed8514 - 0x000000004aedba5c is .gcc_except_table in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/libstd-8039b0c22926ef50.so
        0x000000004aedba5c - 0x000000004aedba74 is .note.netbsd.ident in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/libstd-8039b0c22926ef50.so
        0x000000004aedba74 - 0x000000004aedba88 is .note.netbsd.pax in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/libstd-8039b0c22926ef50.so
        0x000000004afdd340 - 0x000000004afdd350 is .ctors in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/libstd-8039b0c22926ef50.so
        0x000000004afdd350 - 0x000000004afdd360 is .dtors in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/libstd-8039b0c22926ef50.so
        0x000000004afdd360 - 0x000000004afdd368 is .jcr in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/libstd-8039b0c22926ef50.so
        0x000000004afdd368 - 0x000000004afe9960 is .data.rel.ro in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/libstd-8039b0c22926ef50.so
        0x000000004afe9960 - 0x000000004afe9b50 is .dynamic in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/libstd-8039b0c22926ef50.so
        0x000000004afe9b50 - 0x000000004aff4000 is .got in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/libstd-8039b0c22926ef50.so
        0x000000004aff4000 - 0x000000004aff7a40 is .plt in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/libstd-8039b0c22926ef50.so
        0x000000004aff7a40 - 0x000000004aff7ac8 is .data in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/libstd-8039b0c22926ef50.so
        0x000000004aff7ac8 - 0x000000004aff7c98 is .bss in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/libstd-8039b0c22926ef50.so
        0x000000004b0001c8 - 0x000000004b0083ac is .hash in /usr/lib/libc.so.12
        0x000000004b0083b0 - 0x000000004b020e90 is .dynsym in /usr/lib/libc.so.12
        0x000000004b020e90 - 0x000000004b02b05f is .dynstr in /usr/lib/libc.so.12
        0x000000004b02b060 - 0x000000004b058330 is .rela.dyn in /usr/lib/libc.so.12
        0x000000004b058330 - 0x000000004b060520 is .rela.plt in /usr/lib/libc.so.12
        0x000000004b060520 - 0x000000004b060534 is .init in /usr/lib/libc.so.12
        0x000000004b060540 - 0x000000004b1d33e0 is .text in /usr/lib/libc.so.12
        0x000000004b1d33e0 - 0x000000004b1d33f4 is .fini in /usr/lib/libc.so.12
        0x000000004b1d3400 - 0x000000004b1ee0c0 is .rodata in /usr/lib/libc.so.12
        0x000000004b1ee0c0 - 0x000000004b1f5ab4 is .eh_frame_hdr in /usr/lib/libc.so.12
        0x000000004b1f5ab8 - 0x000000004b20c88c is .eh_frame in /usr/lib/libc.so.12
        0x000000004b20c88c - 0x000000004b20c8a4 is .note.netbsd.ident in /usr/lib/libc.so.12
        0x000000004b20c8a4 - 0x000000004b20c8b8 is .note.netbsd.pax in /usr/lib/libc.so.12
        0x000000004b30c8b8 - 0x000000004b30e0c0 is .tdata in /usr/lib/libc.so.12
        0x000000004b30e0c0 - 0x000000004b30e0d0 is .tbss in /usr/lib/libc.so.12
        0x000000004b30e0c0 - 0x000000004b30e0d0 is .init_array in /usr/lib/libc.so.12
        0x000000004b30e0d0 - 0x000000004b30e0e0 is .ctors in /usr/lib/libc.so.12
        0x000000004b30e0e0 - 0x000000004b30e0f0 is .dtors in /usr/lib/libc.so.12
        0x000000004b30e0f0 - 0x000000004b30e0f8 is .jcr in /usr/lib/libc.so.12
        0x000000004b30e0f8 - 0x000000004b316420 is .data.rel.ro in /usr/lib/libc.so.12
        0x000000004b316420 - 0x000000004b3165e0 is .dynamic in /usr/lib/libc.so.12
        0x000000004b3165e0 - 0x000000004b320dc0 is .got in /usr/lib/libc.so.12
        0x000000004b320e00 - 0x000000004b32bbc0 is .plt in /usr/lib/libc.so.12
        0x000000004b32bbc0 - 0x000000004b32ef70 is .data in /usr/lib/libc.so.12
        0x000000004b32ef80 - 0x000000004b450b80 is .bss in /usr/lib/libc.so.12
--Type <RET> for more, q to quit, c to continue without paging--
        0x000000004b500190 - 0x000000004b5002e4 is .hash in /usr/lib/libexecinfo.so.0
        0x000000004b5002e8 - 0x000000004b500738 is .dynsym in /usr/lib/libexecinfo.so.0
        0x000000004b500738 - 0x000000004b50094f is .dynstr in /usr/lib/libexecinfo.so.0
        0x000000004b500950 - 0x000000004b5009ac is .gnu.version in /usr/lib/libexecinfo.so.0
        0x000000004b5009b0 - 0x000000004b5009e0 is .gnu.version_r in /usr/lib/libexecinfo.so.0
        0x000000004b5009e0 - 0x000000004b500d28 is .rela.dyn in /usr/lib/libexecinfo.so.0
        0x000000004b500d28 - 0x000000004b501070 is .rela.plt in /usr/lib/libexecinfo.so.0
        0x000000004b501070 - 0x000000004b501084 is .init in /usr/lib/libexecinfo.so.0
        0x000000004b5010a0 - 0x000000004b501da0 is .text in /usr/lib/libexecinfo.so.0
        0x000000004b501da0 - 0x000000004b501db4 is .fini in /usr/lib/libexecinfo.so.0
        0x000000004b501db8 - 0x000000004b501f31 is .rodata in /usr/lib/libexecinfo.so.0
        0x000000004b501f34 - 0x000000004b501fb8 is .eh_frame_hdr in /usr/lib/libexecinfo.so.0
        0x000000004b501fb8 - 0x000000004b50213c is .eh_frame in /usr/lib/libexecinfo.so.0
        0x000000004b50213c - 0x000000004b502154 is .note.netbsd.ident in /usr/lib/libexecinfo.so.0
        0x000000004b502154 - 0x000000004b502168 is .note.netbsd.pax in /usr/lib/libexecinfo.so.0
        0x000000004b602168 - 0x000000004b602178 is .ctors in /usr/lib/libexecinfo.so.0
        0x000000004b602178 - 0x000000004b602188 is .dtors in /usr/lib/libexecinfo.so.0
        0x000000004b602188 - 0x000000004b602190 is .jcr in /usr/lib/libexecinfo.so.0
        0x000000004b602190 - 0x000000004b602360 is .dynamic in /usr/lib/libexecinfo.so.0
        0x000000004b602360 - 0x000000004b602478 is .got in /usr/lib/libexecinfo.so.0
        0x000000004b602500 - 0x000000004b6029e0 is .plt in /usr/lib/libexecinfo.so.0
        0x000000004b6029e0 - 0x000000004b6029e8 is .data in /usr/lib/libexecinfo.so.0
        0x000000004b6029e8 - 0x000000004b602a30 is .bss in /usr/lib/libexecinfo.so.0
        0x000000004b700190 - 0x000000004b700cc0 is .hash in /usr/lib/libpthread.so.1
        0x000000004b700cc0 - 0x000000004b703708 is .dynsym in /usr/lib/libpthread.so.1
        0x000000004b703708 - 0x000000004b705018 is .dynstr in /usr/lib/libpthread.so.1
        0x000000004b705018 - 0x000000004b7066c8 is .rela.dyn in /usr/lib/libpthread.so.1
        0x000000004b7066c8 - 0x000000004b707940 is .rela.plt in /usr/lib/libpthread.so.1
        0x000000004b707940 - 0x000000004b707954 is .init in /usr/lib/libpthread.so.1
        0x000000004b707960 - 0x000000004b711a20 is .text in /usr/lib/libpthread.so.1
        0x000000004b711a20 - 0x000000004b711a34 is .fini in /usr/lib/libpthread.so.1
        0x000000004b711a38 - 0x000000004b712b8b is .rodata in /usr/lib/libpthread.so.1
        0x000000004b712b8c - 0x000000004b713310 is .eh_frame_hdr in /usr/lib/libpthread.so.1
        0x000000004b713310 - 0x000000004b714994 is .eh_frame in /usr/lib/libpthread.so.1
        0x000000004b714994 - 0x000000004b7149ac is .note.netbsd.ident in /usr/lib/libpthread.so.1
        0x000000004b7149ac - 0x000000004b7149c0 is .note.netbsd.pax in /usr/lib/libpthread.so.1
        0x000000004b8149c0 - 0x000000004b8149d0 is .ctors in /usr/lib/libpthread.so.1
        0x000000004b8149d0 - 0x000000004b8149e0 is .dtors in /usr/lib/libpthread.so.1
        0x000000004b8149e0 - 0x000000004b8149e8 is .jcr in /usr/lib/libpthread.so.1
        0x000000004b8149e8 - 0x000000004b814a48 is .data.rel.ro in /usr/lib/libpthread.so.1
        0x000000004b814a48 - 0x000000004b814bd8 is .dynamic in /usr/lib/libpthread.so.1
        0x000000004b814bd8 - 0x000000004b8152d8 is .got in /usr/lib/libpthread.so.1
        0x000000004b815300 - 0x000000004b816c20 is .plt in /usr/lib/libpthread.so.1
        0x000000004b816c20 - 0x000000004b816d80 is .data in /usr/lib/libpthread.so.1
        0x000000004b816d80 - 0x000000004b817f10 is .bss in /usr/lib/libpthread.so.1
        0x000000004b900190 - 0x000000004b900d48 is .hash in /usr/lib/libm.so.0
        0x000000004b900d48 - 0x000000004b903ac0 is .dynsym in /usr/lib/libm.so.0
        0x000000004b903ac0 - 0x000000004b9046bd is .dynstr in /usr/lib/libm.so.0
        0x000000004b9046c0 - 0x000000004b911278 is .rela.dyn in /usr/lib/libm.so.0
        0x000000004b911278 - 0x000000004b912868 is .rela.plt in /usr/lib/libm.so.0
        0x000000004b912868 - 0x000000004b91287c is .init in /usr/lib/libm.so.0
        0x000000004b912880 - 0x000000004b947160 is .text in /usr/lib/libm.so.0
        0x000000004b947160 - 0x000000004b947174 is .fini in /usr/lib/libm.so.0
        0x000000004b947180 - 0x000000004b94be00 is .rodata in /usr/lib/libm.so.0
        0x000000004b94be00 - 0x000000004b94c98c is .eh_frame_hdr in /usr/lib/libm.so.0
        0x000000004b94c990 - 0x000000004b94ec2c is .eh_frame in /usr/lib/libm.so.0
        0x000000004b94ec2c - 0x000000004b94ec44 is .note.netbsd.ident in /usr/lib/libm.so.0
        0x000000004b94ec44 - 0x000000004b94ec58 is .note.netbsd.pax in /usr/lib/libm.so.0
        0x000000004ba4ec58 - 0x000000004ba4ec68 is .ctors in /usr/lib/libm.so.0
        0x000000004ba4ec68 - 0x000000004ba4ec78 is .dtors in /usr/lib/libm.so.0
        0x000000004ba4ec78 - 0x000000004ba4ec80 is .jcr in /usr/lib/libm.so.0
        0x000000004ba4ec80 - 0x000000004ba4ee10 is .dynamic in /usr/lib/libm.so.0
        0x000000004ba4ee10 - 0x000000004ba531f8 is .got in /usr/lib/libm.so.0
        0x000000004ba53200 - 0x000000004ba54fc0 is .plt in /usr/lib/libm.so.0
        0x000000004ba54fc0 - 0x000000004ba55000 is .data in /usr/lib/libm.so.0
        0x000000004ba55000 - 0x000000004ba55050 is .bss in /usr/lib/libm.so.0
        0x000000004bb00190 - 0x000000004bb00518 is .hash in /usr/pkg/lib/libz.so.1
        0x000000004bb00518 - 0x000000004bb01100 is .dynsym in /usr/pkg/lib/libz.so.1
        0x000000004bb01100 - 0x000000004bb01646 is .dynstr in /usr/pkg/lib/libz.so.1
        0x000000004bb01648 - 0x000000004bb02170 is .rela.dyn in /usr/pkg/lib/libz.so.1
        0x000000004bb02170 - 0x000000004bb02680 is .rela.plt in /usr/pkg/lib/libz.so.1
        0x000000004bb02680 - 0x000000004bb02694 is .init in /usr/pkg/lib/libz.so.1
        0x000000004bb026a0 - 0x000000004bb108c0 is .text in /usr/pkg/lib/libz.so.1
        0x000000004bb108c0 - 0x000000004bb108d4 is .fini in /usr/pkg/lib/libz.so.1
        0x000000004bb108d8 - 0x000000004bb149c0 is .rodata in /usr/pkg/lib/libz.so.1
        0x000000004bb149c0 - 0x000000004bb14de4 is .eh_frame_hdr in /usr/pkg/lib/libz.so.1
        0x000000004bb14de8 - 0x000000004bb159ec is .eh_frame in /usr/pkg/lib/libz.so.1
        0x000000004bb159ec - 0x000000004bb15a04 is .note.netbsd.ident in /usr/pkg/lib/libz.so.1
        0x000000004bb15a04 - 0x000000004bb15a18 is .note.netbsd.pax in /usr/pkg/lib/libz.so.1
        0x000000004bc16000 - 0x000000004bc16010 is .ctors in /usr/pkg/lib/libz.so.1
        0x000000004bc16010 - 0x000000004bc16020 is .dtors in /usr/pkg/lib/libz.so.1
        0x000000004bc16020 - 0x000000004bc16028 is .jcr in /usr/pkg/lib/libz.so.1
        0x000000004bc16028 - 0x000000004bc16178 is .data.rel.ro in /usr/pkg/lib/libz.so.1
        0x000000004bc16178 - 0x000000004bc16308 is .dynamic in /usr/pkg/lib/libz.so.1
        0x000000004bc16308 - 0x000000004bc165f8 is .got in /usr/pkg/lib/libz.so.1
        0x000000004bc16600 - 0x000000004bc16d40 is .plt in /usr/pkg/lib/libz.so.1
        0x000000004bc16d40 - 0x000000004bc16d48 is .data in /usr/pkg/lib/libz.so.1
        0x000000004bc16d48 - 0x000000004bc16d90 is .bss in /usr/pkg/lib/libz.so.1
        0x000000004bd001c8 - 0x000000004bd08010 is .hash in /usr/lib/libstdc++.so.9
        0x000000004bd08010 - 0x000000004bd2b608 is .dynsym in /usr/lib/libstdc++.so.9
        0x000000004bd2b608 - 0x000000004bd72c2f is .dynstr in /usr/lib/libstdc++.so.9
        0x000000004bd72c30 - 0x000000004bd75b5a is .gnu.version in /usr/lib/libstdc++.so.9
        0x000000004bd75b60 - 0x000000004bd76170 is .gnu.version_d in /usr/lib/libstdc++.so.9
        0x000000004bd76170 - 0x000000004bd761c0 is .gnu.version_r in /usr/lib/libstdc++.so.9
        0x000000004bd761c0 - 0x000000004bd94aa8 is .rela.dyn in /usr/lib/libstdc++.so.9
        0x000000004bd94aa8 - 0x000000004bd9add8 is .rela.plt in /usr/lib/libstdc++.so.9
        0x000000004bd9add8 - 0x000000004bd9adec is .init in /usr/lib/libstdc++.so.9
        0x000000004bd9ae00 - 0x000000004beaeb60 is .text in /usr/lib/libstdc++.so.9
        0x000000004beaeb60 - 0x000000004beaeb74 is .fini in /usr/lib/libstdc++.so.9
        0x000000004beaeb80 - 0x000000004beb6d1a is .rodata in /usr/lib/libstdc++.so.9
        0x000000004beb6d1c - 0x000000004bebf668 is .eh_frame_hdr in /usr/lib/libstdc++.so.9
        0x000000004bebf668 - 0x000000004beda83c is .eh_frame in /usr/lib/libstdc++.so.9
        0x000000004beda83c - 0x000000004bee38e1 is .gcc_except_table in /usr/lib/libstdc++.so.9
        0x000000004bee38e4 - 0x000000004bee38fc is .note.netbsd.ident in /usr/lib/libstdc++.so.9
        0x000000004bee38fc - 0x000000004bee3910 is .note.netbsd.pax in /usr/lib/libstdc++.so.9
--Type <RET> for more, q to quit, c to continue without paging--
        0x000000004bfe4000 - 0x000000004bfe4020 is .tbss in /usr/lib/libstdc++.so.9
        0x000000004bfe4000 - 0x000000004bfe4058 is .init_array in /usr/lib/libstdc++.so.9
        0x000000004bfe4058 - 0x000000004bfe4068 is .ctors in /usr/lib/libstdc++.so.9
        0x000000004bfe4068 - 0x000000004bfe4078 is .dtors in /usr/lib/libstdc++.so.9
        0x000000004bfe4078 - 0x000000004bfe4080 is .jcr in /usr/lib/libstdc++.so.9
        0x000000004bfe4080 - 0x000000004bfed248 is .data.rel.ro in /usr/lib/libstdc++.so.9
        0x000000004bfed248 - 0x000000004bfed458 is .dynamic in /usr/lib/libstdc++.so.9
        0x000000004bfed458 - 0x000000004bff0788 is .got in /usr/lib/libstdc++.so.9
        0x000000004bff0800 - 0x000000004bff8cc0 is .plt in /usr/lib/libstdc++.so.9
        0x000000004bff8cc0 - 0x000000004bff9ec4 is .data in /usr/lib/libstdc++.so.9
        0x000000004bff9f00 - 0x000000004bffdaf0 is .bss in /usr/lib/libstdc++.so.9
        0x000000004c000190 - 0x000000004c0005d8 is .hash in /usr/lib/libgcc_s.so.1
        0x000000004c0005d8 - 0x000000004c001310 is .dynsym in /usr/lib/libgcc_s.so.1
        0x000000004c001310 - 0x000000004c001a21 is .dynstr in /usr/lib/libgcc_s.so.1
        0x000000004c001a22 - 0x000000004c001b3c is .gnu.version in /usr/lib/libgcc_s.so.1
        0x000000004c001b40 - 0x000000004c001ce0 is .gnu.version_d in /usr/lib/libgcc_s.so.1
        0x000000004c001ce0 - 0x000000004c0025b0 is .rela.dyn in /usr/lib/libgcc_s.so.1
        0x000000004c0025b0 - 0x000000004c002a48 is .rela.plt in /usr/lib/libgcc_s.so.1
        0x000000004c002a48 - 0x000000004c002a5c is .init in /usr/lib/libgcc_s.so.1
        0x000000004c002a60 - 0x000000004c00faa0 is .text in /usr/lib/libgcc_s.so.1
        0x000000004c00faa0 - 0x000000004c00fab4 is .fini in /usr/lib/libgcc_s.so.1
        0x000000004c00fac0 - 0x000000004c00fde0 is .rodata in /usr/lib/libgcc_s.so.1
        0x000000004c00fde0 - 0x000000004c010204 is .eh_frame_hdr in /usr/lib/libgcc_s.so.1
        0x000000004c010208 - 0x000000004c010e6c is .eh_frame in /usr/lib/libgcc_s.so.1
        0x000000004c010e6c - 0x000000004c010e84 is .note.netbsd.ident in /usr/lib/libgcc_s.so.1
        0x000000004c010e84 - 0x000000004c010e98 is .note.netbsd.pax in /usr/lib/libgcc_s.so.1
        0x000000004c110e98 - 0x000000004c110ea8 is .ctors in /usr/lib/libgcc_s.so.1
        0x000000004c110ea8 - 0x000000004c110eb8 is .dtors in /usr/lib/libgcc_s.so.1
        0x000000004c110eb8 - 0x000000004c110ec0 is .jcr in /usr/lib/libgcc_s.so.1
        0x000000004c110ec0 - 0x000000004c111080 is .dynamic in /usr/lib/libgcc_s.so.1
        0x000000004c111080 - 0x000000004c111370 is .got in /usr/lib/libgcc_s.so.1
        0x000000004c111400 - 0x000000004c111aa0 is .plt in /usr/lib/libgcc_s.so.1
        0x000000004c111aa0 - 0x000000004c111cc4 is .data in /usr/lib/libgcc_s.so.1
        0x000000004c111cc8 - 0x000000004c111db8 is .bss in /usr/lib/libgcc_s.so.1
        0x000000004c200190 - 0x000000004c20060c is .hash in /usr/lib/libelf.so.2
        0x000000004c200610 - 0x000000004c201480 is .dynsym in /usr/lib/libelf.so.2
        0x000000004c201480 - 0x000000004c201c9e is .dynstr in /usr/lib/libelf.so.2
        0x000000004c201ca0 - 0x000000004c203a10 is .rela.dyn in /usr/lib/libelf.so.2
        0x000000004c203a10 - 0x000000004c204100 is .rela.plt in /usr/lib/libelf.so.2
        0x000000004c204100 - 0x000000004c204114 is .init in /usr/lib/libelf.so.2
        0x000000004c204120 - 0x000000004c2160a0 is .text in /usr/lib/libelf.so.2
        0x000000004c2160a0 - 0x000000004c2160b4 is .fini in /usr/lib/libelf.so.2
        0x000000004c2160b8 - 0x000000004c217c50 is .rodata in /usr/lib/libelf.so.2
        0x000000004c217c50 - 0x000000004c2182b4 is .eh_frame_hdr in /usr/lib/libelf.so.2
        0x000000004c2182b8 - 0x000000004c2195dc is .eh_frame in /usr/lib/libelf.so.2
        0x000000004c2195dc - 0x000000004c2195f4 is .note.netbsd.ident in /usr/lib/libelf.so.2
        0x000000004c2195f4 - 0x000000004c219608 is .note.netbsd.pax in /usr/lib/libelf.so.2
        0x000000004c31a000 - 0x000000004c31a010 is .ctors in /usr/lib/libelf.so.2
        0x000000004c31a010 - 0x000000004c31a020 is .dtors in /usr/lib/libelf.so.2
        0x000000004c31a020 - 0x000000004c31a028 is .jcr in /usr/lib/libelf.so.2
        0x000000004c31a028 - 0x000000004c31a3a8 is .data.rel.ro in /usr/lib/libelf.so.2
        0x000000004c31a3a8 - 0x000000004c31a528 is .dynamic in /usr/lib/libelf.so.2
        0x000000004c31a528 - 0x000000004c31abb8 is .got in /usr/lib/libelf.so.2
        0x000000004c31ac00 - 0x000000004c31b5c0 is .plt in /usr/lib/libelf.so.2
        0x000000004c31b5c0 - 0x000000004c31b5c8 is .data in /usr/lib/libelf.so.2
        0x000000004c31b5c8 - 0x000000004c31b720 is .bss in /usr/lib/libelf.so.2
        0x0000000040300190 - 0x0000000040300244 is .hash in /usr/libexec/ld.elf_so
        0x0000000040300248 - 0x00000000403004b8 is .dynsym in /usr/libexec/ld.elf_so
        0x00000000403004b8 - 0x0000000040300565 is .dynstr in /usr/libexec/ld.elf_so
        0x0000000040300568 - 0x0000000040301858 is .rela.dyn in /usr/libexec/ld.elf_so
        0x0000000040301860 - 0x000000004030edc0 is .text in /usr/libexec/ld.elf_so
        0x000000004030edc0 - 0x0000000040311111 is .rodata in /usr/libexec/ld.elf_so
        0x0000000040311114 - 0x0000000040311528 is .eh_frame_hdr in /usr/libexec/ld.elf_so
        0x0000000040311528 - 0x0000000040312158 is .eh_frame in /usr/libexec/ld.elf_so
        0x0000000040312158 - 0x0000000040312170 is .note.netbsd.ident in /usr/libexec/ld.elf_so
        0x0000000040312170 - 0x0000000040312184 is .note.netbsd.pax in /usr/libexec/ld.elf_so
        0x0000000040412188 - 0x0000000040412968 is .data.rel.ro in /usr/libexec/ld.elf_so
        0x0000000040412968 - 0x0000000040412a78 is .dynamic in /usr/libexec/ld.elf_so
        0x0000000040412a78 - 0x0000000040413000 is .got in /usr/libexec/ld.elf_so
        0x0000000040413000 - 0x0000000040413070 is .data in /usr/libexec/ld.elf_so
        0x0000000040413070 - 0x00000000404137b0 is .bss in /usr/libexec/ld.elf_so
(gdb) 

pc / npc is within

        0x00000000410acb80 - 0x0000000047fef430 is .text in /usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so

and specifically, this appears in this offset in this shared library:

% dc
16o 16i 4298A27C 410ACB60-p
18DD71C

which points towards (from nm -op output on the shared library, and... sorry, don't know how to de-mangle the name, it doesn't use the same method as c++filt, apparently):

/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so:00000000018dd680 t _ZN4llvm22PrintIRInstrumentation14printAfterPassENS_9StringRefENS_3AnyE.localalias
/usr/pkgsrc/wip/rust174/work/rustc-1.74.0-src/build/sparc64-unknown-netbsd/stage2/lib/librustc_driver-bf9ebb4414e0fa41.so:00000000018ddbc0 t _ZN4llvm6detail18UniqueFunctionBaseIvJNS_9StringRefENS_3AnyERKNS_17PreservedAnalysesEEE8CallImplIZNS_22PrintIRInstrumentation17registerCallbacksERNS_28PassInstrumentationCallbacksEEUlS2_S3_S6_E0_EEvPvS2_RS3_S6_

@he32
Copy link
Contributor Author

he32 commented Feb 21, 2024

News on this matter: I re-built rust 1.75 on NetBSD/sparc64 10.0_BETA with the internal LLVM but switched to using gcc 12.2.0, and that made the build succeed. So ... this issue may be attributed to a yet-un-identified bug in gcc 10.4.0. I'll next upgrade from 10.0_BETA (which is old by now) to 10.0_RC4 which will bring gcc 10.5.0, and see if that fares any better.

@he32
Copy link
Contributor Author

he32 commented Feb 29, 2024

Another tidbit of news on this issue: I re-built rust 1.75 on NetBSD/sparc64 10.0_RC4 with gcc 10.5.0, and that also failed with an illegal instruction.

netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this issue Mar 3, 2024
Pkgsrc changes:
 * Adjust patches and cargo checksums to new versions.
 * For an external LLVM, set dependency of llvm >= 16, in accordance
   with the upstream changes.
 * Mark that on NetBSD we now need >= 9.0, so 8.x is no longer supported.
 * On NetBSD/sparc64 10.x, we now need GCC 12 to build the embedded
   LLVM, which is version 17; apparently GCC 10.4 or 10.5 mis-compiles it,
   resulting in an illegal instruction fault during the build.
   Ref. rust-lang/rust#117231

Upstream changes:

Version 1.75.0 (2023-12-28)
==========================

- [Stabilize `async fn` and return-position `impl Trait` in traits.]
  (rust-lang/rust#115822)
- [Allow function pointer signatures containing `&mut T` in `const` contexts.]
  (rust-lang/rust#116015)
- [Match `usize`/`isize` exhaustively with half-open ranges.]
  (rust-lang/rust#116692)
- [Guarantee that `char` has the same size and alignment as `u32`.]
  (rust-lang/rust#116894)
- [Document that the null pointer has the 0 address.]
  (rust-lang/rust#116988)
- [Allow partially moved values in `match`.]
  (rust-lang/rust#103208)
- [Add notes about non-compliant FP behavior on 32bit x86 targets.]
  (rust-lang/rust#113053)
- [Stabilize ratified RISC-V target features.]
  (rust-lang/rust#116485)

Compiler
--------

- [Rework negative coherence to properly consider impls that only
  partly overlap.] (rust-lang/rust#112875)
- [Bump `COINDUCTIVE_OVERLAP_IN_COHERENCE` to deny, and warn in dependencies.]
  (rust-lang/rust#116493)
- [Consider alias bounds when computing liveness in NLL.]
  (rust-lang/rust#116733)
- [Add the V (vector) extension to the `riscv64-linux-android` target spec.]
  (rust-lang/rust#116618)
- [Automatically enable cross-crate inlining for small functions]
  (rust-lang/rust#116505)
- Add several new tier 3 targets:
    - [`csky-unknown-linux-gnuabiv2hf`]
      (rust-lang/rust#117049)
    - [`i586-unknown-netbsd`]
      (rust-lang/rust#117170)
    - [`mipsel-unknown-netbsd`]
      (rust-lang/rust#117356)

Refer to Rust's [platform support page][platform-support-doc]
for more information on Rust's tiered platform support.

Libraries
---------

- [Override `Waker::clone_from` to avoid cloning `Waker`s unnecessarily.]
  (rust-lang/rust#96979)
- [Implement `BufRead` for `VecDeque<u8>`.]
  (rust-lang/rust#110604)
- [Implement `FusedIterator` for `DecodeUtf16` when the inner iterator does.]
  (rust-lang/rust#110729)
- [Implement `Not, Bit{And,Or}{,Assign}` for IP addresses.]
  (rust-lang/rust#113747)
- [Implement `Default` for `ExitCode`.]
  (rust-lang/rust#114589)
- [Guarantee representation of None in NPO]
  (rust-lang/rust#115333)
- [Document when atomic loads are guaranteed read-only.]
  (rust-lang/rust#115577)
- [Broaden the consequences of recursive TLS initialization.]
  (rust-lang/rust#116172)
- [Windows: Support sub-millisecond sleep.]
  (rust-lang/rust#116461)
- [Fix generic bound of `str::SplitInclusive`'s `DoubleEndedIterator` impl]
  (rust-lang/rust#100806)
- [Fix exit status / wait status on non-Unix `cfg(unix)` platforms.]
  (rust-lang/rust#115108)

Stabilized APIs
---------------

- [`Atomic*::from_ptr`]
  (https://doc.rust-lang.org/stable/core/sync/atomic/struct.AtomicUsize.html#method.from_ptr)
- [`FileTimes`]
  (https://doc.rust-lang.org/stable/std/fs/struct.FileTimes.html)
- [`FileTimesExt`]
  (https://doc.rust-lang.org/stable/std/os/windows/fs/trait.FileTimesExt.html)
- [`File::set_modified`]
  (https://doc.rust-lang.org/stable/std/fs/struct.File.html#method.set_modified)
- [`File::set_times`]
  (https://doc.rust-lang.org/stable/std/fs/struct.File.html#method.set_times)
- [`IpAddr::to_canonical`]
  (https://doc.rust-lang.org/stable/core/net/enum.IpAddr.html#method.to_canonical)
- [`Ipv6Addr::to_canonical`]
  (https://doc.rust-lang.org/stable/core/net/struct.Ipv6Addr.html#method.to_canonical)
- [`Option::as_slice`]
  (https://doc.rust-lang.org/stable/core/option/enum.Option.html#method.as_slice)
- [`Option::as_mut_slice`]
  (https://doc.rust-lang.org/stable/core/option/enum.Option.html#method.as_mut_slice)
- [`pointer::byte_add`]
  (https://doc.rust-lang.org/stable/core/primitive.pointer.html#method.byte_add)
- [`pointer::byte_offset`]
  (https://doc.rust-lang.org/stable/core/primitive.pointer.html#method.byte_offset)
- [`pointer::byte_offset_from`]
  (https://doc.rust-lang.org/stable/core/primitive.pointer.html#method.byte_offset_from)
- [`pointer::byte_sub`]
  (https://doc.rust-lang.org/stable/core/primitive.pointer.html#method.byte_sub)
- [`pointer::wrapping_byte_add`]
  (https://doc.rust-lang.org/stable/core/primitive.pointer.html#method.wrapping_byte_add)
- [`pointer::wrapping_byte_offset`]
  (https://doc.rust-lang.org/stable/core/primitive.pointer.html#method.wrapping_byte_offset)
- [`pointer::wrapping_byte_sub`]
  (https://doc.rust-lang.org/stable/core/primitive.pointer.html#method.wrapping_byte_sub)

These APIs are now stable in const contexts:

- [`Ipv6Addr::to_ipv4_mapped`]
  (https://doc.rust-lang.org/stable/core/net/struct.Ipv6Addr.html#method.to_ipv4_mapped)
- [`MaybeUninit::assume_init_read`]
  (https://doc.rust-lang.org/stable/core/mem/union.MaybeUninit.html#method.assume_init_read)
- [`MaybeUninit::zeroed`]
  (https://doc.rust-lang.org/stable/core/mem/union.MaybeUninit.html#method.zeroed)
- [`mem::discriminant`]
  (https://doc.rust-lang.org/stable/core/mem/fn.discriminant.html)
- [`mem::zeroed`]
  (https://doc.rust-lang.org/stable/core/mem/fn.zeroed.html)

Cargo
-----

- [Add new packages to `[workspace.members]` automatically.]
  (rust-lang/cargo#12779)
- [Allow version-less `Cargo.toml` manifests.]
  (rust-lang/cargo#12786)
- [Make browser links out of HTML file paths.]
  (rust-lang/cargo#12889)

Rustdoc
-------

- [Accept less invalid Rust in rustdoc.]
  (rust-lang/rust#117450)
- [Document lack of object safety on affected traits.]
  (rust-lang/rust#113241)
- [Hide `#[repr(transparent)]` if it isn't part of the public ABI.]
  (rust-lang/rust#115439)
- [Show enum discriminant if it is a C-like variant.]
  (rust-lang/rust#116142)

Compatibility Notes
-------------------

- [FreeBSD targets now require at least version 12.]
  (rust-lang/rust#114521)
- [Formally demote tier 2 MIPS targets to tier 3.]
  (rust-lang/rust#115238)
- [Make misalignment a hard error in `const` contexts.]
  (rust-lang/rust#115524)
- [Fix detecting references to packed unsized fields.]
  (rust-lang/rust#115583)
- [Remove support for compiler plugins.]
  (rust-lang/rust#116412)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. O-netbsd Operating system: NetBSD O-SPARC Target: SPARC processors
Projects
None yet
Development

No branches or pull requests

4 participants