Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909531 - dev-lang/rust-1.69.0-r1: segfault during bootstrap
Summary: dev-lang/rust-1.69.0-r1: segfault during bootstrap
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc64 Linux
: Normal normal (vote)
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-02 16:21 UTC by Sam James
Modified: 2023-07-02 19:24 UTC (History)
2 users (show)

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


Attachments
build.log.xz (build.log.xz,39.02 KB, application/x-xz)
2023-07-02 16:21 UTC, Sam James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-02 16:21:18 UTC
Created attachment 865022 [details]
build.log.xz

I'm trying to build the various sparc rust-bin binaries again for bug 909455 but I can't build dev-lang/rust-1.69.0-r1.

(A fallback option is to use gyakovlev's rust-bin to build my own, if it works, but filing this for completeness anyway.)

---

[compiler_builtins 0.1.87] cargo:rustc-link-search=native=/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src/build/sparc64-unknown-linux-gnu/stage0-std/sparc64-unknown-linux-gnu/release/build/comp
iler_builtins-d76e197fc4a68236/out
     Running `/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src/build/sparc64-unknown-linux-gnu/stage0-std/release/build/unwind-0a5d3a469e4a9a7e/build-script-build`
     Running `/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src/build/sparc64-unknown-linux-gnu/stage0-std/release/build/memchr-691f7b228dfa2142/build-script-build`
     Running `/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src/build/sparc64-unknown-linux-gnu/stage0-std/release/build/std-8db3771c8e8304f6/build-script-build`
[unwind 0.0.0] cargo:rerun-if-changed=build.rs
[unwind 0.0.0] cargo:rerun-if-env-changed=CARGO_CFG_MIRI
[std 0.0.0] cargo:rerun-if-changed=build.rs
[std 0.0.0] cargo:rustc-env=STD_ENV_ARCH=sparc64
[std 0.0.0] cargo:rustc-cfg=backtrace_in_libstd
rustc exited with signal: 11 (SIGSEGV) (core dumped)

Did not run successfully: signal: 11 (SIGSEGV) (core dumped)
LD_LIBRARY_PATH="/usr/lib/rust/1.68.2/lib:/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src/build/sparc64-unknown-linux-gnu/stage0-std/release/deps:/usr/lib/rust/1.68.2/lib" "/usr/lib/rust/1.68.2
/bin/rustc" "--crate-name" "core" "--edition=2021" "library/core/src/lib.rs" "--error-format=json" "--json=diagnostic-rendered-ansi,artifacts,future-incompat" "--crate-type" "lib" "--emit=dep-info,metadata,li
nk" "-C" "opt-level=3" "-C" "embed-bitcode=no" "-C" "codegen-units=1" "-C" "debuginfo=0" "-Zunstable-options" "--check-cfg" "names()" "--check-cfg" "values()" "-C" "metadata=9f139b0f0f24cca6" "-C" "extra-file
name=-9f139b0f0f24cca6" "--out-dir" "/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src/build/sparc64-unknown-linux-gnu/stage0-std/sparc64-unknown-linux-gnu/release/deps" "--target" "sparc64-unkno
wn-linux-gnu" "-C" "linker=sparc64-unknown-linux-gnu-gcc" "-L" "dependency=/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src/build/sparc64-unknown-linux-gnu/stage0-std/sparc64-unknown-linux-gnu/r
elease/deps" "-L" "dependency=/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src/build/sparc64-unknown-linux-gnu/stage0-std/release/deps" "--cfg=bootstrap" "-Csymbol-mangling-version=legacy" "-Zun
stable-options" "-Zunstable-options" "--check-cfg=values(bootstrap)" "--check-cfg=values(stdarch_intel_sde)" "--check-cfg=values(no_fp_fmt_parse)" "--check-cfg=values(no_global_oom_handling)" "--check-cfg=val
ues(no_rc)" "--check-cfg=values(no_sync)" "--check-cfg=values(freebsd12)" "--check-cfg=values(backtrace_in_libstd)" "--check-cfg=values(target_env,\"libnx\")" "--check-cfg=values(target_arch,\"asmjs\",\"spirv
\",\"nvptx\",\"xtensa\")" "-Zmacro-backtrace" "-Csplit-debuginfo=off" "-Cprefer-dynamic" "-Zcrate-attr=doc(html_root_url=\"https://doc.rust-lang.org/1.69.0/\")" "-Z" "binary-dep-depinfo" "-Wrust_2018_idioms"
"-Wunused_lifetimes" "-Wsemicolon_in_expressions_from_macros" "-Dwarnings" "--sysroot" "/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src/build/sparc64-unknown-linux-gnu/stage0-sysroot" "--remap-
path-prefix" "/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src=/rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc" "-Z" "force-unstable-if-unmarked"
-------------
error: could not compile `core`

----

# emerge --info
Portage 3.0.46 (python 3.11.4-final-0, default/linux/sparc/17.0/64ul/systemd/merged-usr, gcc-12, glibc-2.36-r8, 5.15.110-gentoo-r1 sparc64)
=================================================================
System uname: Linux-5.15.110-gentoo-r1-sparc64-sun4v-with-glibc2.36
KiB Mem:   531346480 total, 406201400 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 02 Jul 2023 15:46:58 +0000
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.39 p6) 2.39.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-lang/perl:             5.36.1-r2::gentoo
dev-lang/python:           3.11.4::gentoo
dev-lang/rust:             1.68.2::gentoo
dev-lang/rust-bin:         1.68.2-r1::gentoo
dev-util/cmake:            3.26.4-r1::gentoo
dev-util/meson:            1.1.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/sandbox:          2.32::gentoo
sys-apps/systemd:          253.3-r1::gentoo
sys-devel/autoconf:        2.71-r6::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             10.4.1_p20230426-r1::gentoo, 11.3.1_p20230427::gentoo, 12.2.1_p20230428-r1::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes

ACCEPT_KEYWORDS="sparc"
ACCEPT_LICENSE="@FREE"
CBUILD="sparc64-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=ultrasparc -pipe"
CHOST="sparc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-O2 -mcpu=ultrasparc -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--complete-graph --keep-going=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -mcpu=ultrasparc -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -mcpu=ultrasparc -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="xz"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="acl big-endian bzip2 cli crypt dri fortran gdbm iconv ipv6 libtirpc llvm-libunwind ncurses nls nptl openmp pam pcre readline sparc ssl systemd test-rust udev unicode xattr zlib" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31 ruby30" VIDEO_CARDS="fbdev mga r128 radeon dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-02 19:24:09 UTC
Works now..?