Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 904996 - ERROR: sys-libs/glibc-2.36-r7::gentoo failed (compile phase):
Summary: ERROR: sys-libs/glibc-2.36-r7::gentoo failed (compile phase):
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-25 06:41 UTC by Dennis Clarke
Modified: 2023-04-26 01:48 UTC (History)
0 users

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


Attachments
various things emerge says (gentoo_stuff.txt.xz,17.71 KB, text/plain)
2023-04-25 08:21 UTC, Dennis Clarke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Clarke 2023-04-25 06:41:34 UTC
emerge --ask --verbose --update --deep --newuse --with-bdeps=y @world 

fails 

/usr/bin/gcc  -g -mhard-float -mno-app-regs -mflat -mno-faster-structs -mcpu=ultrasparc -mtune=ultrasparc -mcmodel=medany -fPIC -Wl,-rpath=/usr/lib64 -Wl,-rpath=/usr/lib64 -Wl,-pie -O2 -fcall-used-g6 -Wl,-O1 -Wl,--as-needed -Wl,--no-keep-memory static-reloc.c -c -std=gnu11 -fgnu89-inline  -g -mhard-float -mno-app-regs -mflat -mno-faster-structs -mcpu=ultrasparc -mtune=ultrasparc -mcmodel=medany -fPIC -Wl,-rpath=/usr/lib64 -Wl,-rpath=/usr/lib64 -Wl,-pie -O2 -fcall-used-g6 -Wall -Wwrite-strings -Wundef -fmerge-all-constants -frounding-math -fstack-protector-strong -fno-common -Wstrict-prototypes -Wold-style-definition -fmath-errno  -fcall-used-g6 -Wa,-Av9a -mvis  -fPIE    -ftls-model=initial-exec   -U_FORTIFY_SOURCE -D_XOPEN_SOURCE=600  -I../include -I/var/tmp/portage/sys-libs/glibc-2.36-r7/work/build-sparc64-sparc64-unknown-linux-gnu-nptl/csu  -I/var/tmp/portage/sys-libs/glibc-2.36-r7/work/build-sparc64-sparc64-unknown-linux-gnu-nptl  -I../sysdeps/unix/sysv/linux/sparc/sparc64  -I../sysdeps/unix/sysv/linux/wordsize-64  -I../sysdeps/unix/sysv/linux/sparc  -I../sysdeps/sparc/nptl  -I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux  -I../sysdeps/nptl  -I../sysdeps/pthread  -I../sysdeps/gnu  -I../sysdeps/unix/inet  -I../sysdeps/unix/sysv  -I../sysdeps/unix  -I../sysdeps/posix  -I../sysdeps/sparc/sparc64/fpu/multiarch  -I../sysdeps/sparc/sparc64/fpu  -I../sysdeps/sparc/sparc64/multiarch  -I../sysdeps/sparc/sparc64  -I../sysdeps/wordsize-64  -I../sysdeps/ieee754/ldbl-128  -I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754/flt-32  -I../sysdeps/sparc/fpu  -I../sysdeps/sparc  -I../sysdeps/ieee754  -I../sysdeps/generic  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/sparc64-unknown-linux-gnu/12/include -isystem /usr/lib/gcc/sparc64-unknown-linux-gnu/12/include-fixed -isystem /usr/include -D_LIBC_REENTRANT -include /var/tmp/portage/sys-libs/glibc-2.36-r7/work/build-sparc64-sparc64-unknown-linux-gnu-nptl/libc-modules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h  -DPIC     -DTOP_NAMESPACE=glibc -o /var/tmp/portage/sys-libs/glibc-2.36-r7/work/build-sparc64-sparc64-unknown-linux-gnu-nptl/csu/static-reloc.o -MD -MP -MF /var/tmp/portage/sys-libs/glibc-2.36-r7/work/build-sparc64-sparc64-unknown-linux-gnu-nptl/csu/static-reloc.o.dt -MT /var/tmp/portage/sys-libs/glibc-2.36-r7/work/build-sparc64-sparc64-unknown-linux-gnu-nptl/csu/static-reloc.o
/usr/bin/nice -n +18 /usr/bin/gcc  -g -mhard-float -mno-app-regs -mflat -mno-faster-structs -mcpu=ultrasparc -mtune=ultrasparc -mcmodel=medany -fPIC -Wl,-rpath=/usr/lib64 -Wl,-rpath=/usr/lib64 -Wl,-pie -O2 -fcall-used-g6 -Wl,-O1 -Wl,--as-needed -Wl,--no-keep-memory -nostdlib -nostartfiles -r -o /var/tmp/portage/sys-libs/glibc-2.36-r7/work/build-sparc64-sparc64-unknown-linux-gnu-nptl/csu/crt1.o /var/tmp/portage/sys-libs/glibc-2.36-r7/work/build-sparc64-sparc64-unknown-linux-gnu-nptl/csu/start.o /var/tmp/portage/sys-libs/glibc-2.36-r7/work/build-sparc64-sparc64-unknown-linux-gnu-nptl/csu/abi-note.o /var/tmp/portage/sys-libs/glibc-2.36-r7/work/build-sparc64-sparc64-unknown-linux-gnu-nptl/csu/init.o /var/tmp/portage/sys-libs/glibc-2.36-r7/work/build-sparc64-sparc64-unknown-linux-gnu-nptl/csu/static-reloc.o
/usr/lib/gcc/sparc64-unknown-linux-gnu/12/../../../../sparc64-unknown-linux-gnu/bin/ld: -r and -pie may not be used together
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:134: /var/tmp/portage/sys-libs/glibc-2.36-r7/work/build-sparc64-sparc64-unknown-linux-gnu-nptl/csu/crt1.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/sys-libs/glibc-2.36-r7/work/glibc-2.36/csu'
make[1]: *** [Makefile:485: csu/subdir_lib] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-libs/glibc-2.36-r7/work/glibc-2.36'
make: *** [Makefile:9: all] Error 2
make: Leaving directory '/var/tmp/portage/sys-libs/glibc-2.36-r7/work/build-sparc64-sparc64-unknown-linux-gnu-nptl'
 * ERROR: sys-libs/glibc-2.36-r7::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sys-libs/glibc-2.36-r7::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/glibc-2.36-r7::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.36-r7/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.36-r7/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-libs/glibc-2.36-r7/work/glibc-2.36'
 * S: '/var/tmp/portage/sys-libs/glibc-2.36-r7/work/glibc-2.36'
sphinx# 
sphinx# 

So that looks like a fail to me.



Reproducible: Always




sphinx# 
sphinx# uname -a 
Linux sphinx 5.15.88-gentoo-sparc64 #1 Sun Mar 12 18:36:19 GMT 2023 sparc64 sun4u TI UltraSparc IIi (Sabre) GNU/Linux
sphinx# emerge --info 
Portage 3.0.44 (python 3.10.9-final-0, default/linux/sparc/17.0/64ul, gcc-12, glibc-2.36-r5, 5.15.88-gentoo-sparc64 sparc64)
=================================================================
System uname: Linux-5.15.88-gentoo-sparc64-sparc64-sun4u-with-glibc2.36
KiB Mem:     1029504 total,    220408 free
KiB Swap:    7812424 total,   7808280 free
Timestamp of repository gentoo: Sun, 23 Apr 2023 00:45:01 +0000
Head commit of repository gentoo: e927f0da62c3ff9592733a07952604dfce972641
sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.39 p5) 2.39.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-lang/perl:             5.36.0-r1::gentoo
dev-lang/python:           3.10.9-r1::gentoo, 3.11.2_p1::gentoo
dev-util/meson:            1.0.0::gentoo
sys-apps/baselayout:       2.9::gentoo
sys-apps/openrc:           0.45.2-r2::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r4::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/gcc:             12.2.1_p20230121-r1::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r5::gentoo
Repositories:

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

ACCEPT_KEYWORDS="sparc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="sparc64-unknown-linux-gnu"
CC="/usr/bin/nice -n +18 /usr/bin/gcc"
CFLAGS="-std=iso9899:1999 -m64 -g -O0 -pedantic -pedantic-errors -fno-builtin -fno-fast-math -mhard-float -mno-app-regs -mflat -msoft-quad-float -mno-unaligned-doubles -mno-faster-structs -mcpu=ultrasparc -mtune=ultrasparc -mno-vis -mno-cbcond -mno-fmaf -mno-fsmuld -mno-popc -mno-subxc -mcmodel=medany -mmemory-model=tso -fPIC -Wl,-rpath=/usr/lib64 -Wl,-rpath=/usr/lib64 -Wl,-pie"
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 /etc/terminfo"
CPPFLAGS="-D_LARGEFILE64_SOURCE -D_XOPEN_SOURCE=600"
CXXFLAGS="-m64 -g -O0 -mno-app-regs -mcpu=ultrasparc -mtune=ultrasparc -mno-vis"
DISTDIR="/var/cache/distfiles"
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="-m64 -g -O0 -mno-app-regs -mcpu=ultrasparc -mtune=ultrasparc -mno-vis"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news nostrip parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-m64 -g -O0 -mno-app-regs -mcpu=ultrasparc -mtune=ultrasparc -mno-vis"
GENTOO_MIRRORS="https://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--no-keep-memory"
LEX="flex"
PKGDIR="/var/cache/binpkgs"
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 libglvnd libtirpc llvm-libunwind ncurses nls nptl openmp pam pcre readline sparc split-usr ssl test-rust 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" GRUB_PLATFORMS="ieee1275" 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="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby30" USERLAND="GNU" 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, CCLD, CONFIG_SHELL, CPP, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, 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, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

sphinx# 

sphinx# 
sphinx# emerge -pqv '=sys-libs/glibc-2.36-r7::gentoo'
[ebuild     U ] sys-libs/glibc-2.36-r7 [2.36-r5] USE="multiarch ssp (static-libs) -audit -caps (-cet) -compile-locales (-crypt) (-custom-cflags) -doc -gd -hash-sysv-compat -headers-only (-multilib) -multilib-bootstrap -nscd -perl% -profile (-selinux) (-stack-realign) -suid -systemd -systemtap -test (-vanilla)" 

!!! The following installed packages are masked:
- media-fonts/font-bitstream-speedo-1.0.2-r2::gentoo (masked by: package.mask)
/var/db/repos/gentoo/profiles/package.mask:
# Matt Turner <mattst88@gentoo.org> (2023-04-10)
# speedo support was dropped from libXfont ~14 years ago. See
# https://www.x.org/wiki/DeprecatedInX11R7/
# https://gitlab.freedesktop.org/xorg/lib/libxfont/-/commit/85b66b8a7f3095f10437c8ecb3dcbfe68c9cfced
# Removal on 2023-05-10

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.


 * IMPORTANT: 15 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

sphinx#
Comment 1 Dennis Clarke 2023-04-25 06:51:30 UTC
sphinx# 
sphinx# emerge --info
Portage 3.0.44 (python 3.10.9-final-0, default/linux/sparc/17.0/64ul, gcc-12, glibc-2.36-r5, 5.15.88-gentoo-sparc64 sparc64)
=================================================================
System uname: Linux-5.15.88-gentoo-sparc64-sparc64-sun4u-with-glibc2.36
KiB Mem:     1029504 total,    209048 free
KiB Swap:    7812424 total,   7808280 free
Timestamp of repository gentoo: Sun, 23 Apr 2023 00:45:01 +0000
Head commit of repository gentoo: e927f0da62c3ff9592733a07952604dfce972641
sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.39 p5) 2.39.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-lang/perl:             5.36.0-r1::gentoo
dev-lang/python:           3.10.9-r1::gentoo, 3.11.2_p1::gentoo
dev-util/meson:            1.0.0::gentoo
sys-apps/baselayout:       2.9::gentoo
sys-apps/openrc:           0.45.2-r2::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r4::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/gcc:             12.2.1_p20230121-r1::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r5::gentoo
Repositories:

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

ACCEPT_KEYWORDS="sparc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="sparc64-unknown-linux-gnu"
CC="/usr/bin/nice -n +18 /usr/bin/gcc"
CFLAGS="-std=iso9899:1999 -m64 -g -O0 -pedantic -pedantic-errors -fno-builtin -fno-fast-math -mhard-float -mno-app-regs -mflat -msoft-quad-float -mno-unaligned-doubles -mno-faster-structs -mcpu=ultrasparc -mtune=ultrasparc -mno-vis -mno-cbcond -mno-fmaf -mno-fsmuld -mno-popc -mno-subxc -mcmodel=medany -mmemory-model=tso -fPIC -Wl,-rpath=/usr/lib64 -Wl,-rpath=/usr/lib64 -Wl,-pie"
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 /etc/terminfo"
CPPFLAGS="-D_LARGEFILE64_SOURCE -D_XOPEN_SOURCE=600"
CXXFLAGS="-m64 -g -O0 -mno-app-regs -mcpu=ultrasparc -mtune=ultrasparc -mno-vis"
DISTDIR="/var/cache/distfiles"
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="-m64 -g -O0 -mno-app-regs -mcpu=ultrasparc -mtune=ultrasparc -mno-vis"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news nostrip parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-m64 -g -O0 -mno-app-regs -mcpu=ultrasparc -mtune=ultrasparc -mno-vis"
GENTOO_MIRRORS="https://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--no-keep-memory"
LEX="flex"
PKGDIR="/var/cache/binpkgs"
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 libglvnd libtirpc llvm-libunwind ncurses nls nptl openmp pam pcre readline sparc split-usr ssl test-rust 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" GRUB_PLATFORMS="ieee1275" 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="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby30" USERLAND="GNU" 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, CCLD, CONFIG_SHELL, CPP, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, 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, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

sphinx#
Comment 2 Dennis Clarke 2023-04-25 08:21:32 UTC
Created attachment 860758 [details]
various things emerge says
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-25 21:00:18 UTC
Please in future attach the build.log in full:
"""
 * The complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.36-r7/temp/build.log'..
"""

But in this case..
>/usr/lib/gcc/sparc64-unknown-linux-gnu/12/../../../../sparc64-unknown-linux-gnu/bin/ld: -r and -pie may not be used together

This is PEBKAC.

You have:
>CFLAGS="-std=iso9899:1999 -m64 -g -O0 -pedantic -pedantic-errors -fno-builtin -fno-fast-math -mhard-float -mno-app-regs -mflat -msoft-quad-float -mno-unaligned-doubles -mno-faster-structs -mcpu=ultrasparc -mtune=ultrasparc -mno-vis -mno-cbcond -mno-fmaf -mno-fsmuld -mno-popc -mno-subxc -mcmodel=medany -mmemory-model=tso -fPIC -Wl,-rpath=/usr/lib64 -Wl,-rpath=/usr/lib64 -Wl,-pie"

You should NOT be setting -Wl,-rpath there (it's already going to be default where appropriate), and -fPIC and PIE are already set by our toolchain by default too.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-25 21:01:53 UTC
Also..
>CC="/usr/bin/nice -n +18 /usr/bin/gcc"

You can just set PORTAGE_NICENESS for this.
Comment 5 Dennis Clarke 2023-04-26 01:46:42 UTC
(In reply to Sam James from comment #4)
> Also..
> >CC="/usr/bin/nice -n +18 /usr/bin/gcc"
> 
> You can just set PORTAGE_NICENESS for this.

This does not explain a solution.

The glibc code fails to build on this system.
Comment 6 Dennis Clarke 2023-04-26 01:47:14 UTC
This is not a solution.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-26 01:48:22 UTC
(In reply to Dennis Clarke from comment #5)
> (In reply to Sam James from comment #4)
> > Also..
> > >CC="/usr/bin/nice -n +18 /usr/bin/gcc"
> > 
> > You can just set PORTAGE_NICENESS for this.
> 
> This does not explain a solution.
> 
> The glibc code fails to build on this system.

See https://bugs.gentoo.org/904996#c3 which has a solution. Your *FLAGS are invalid.