Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
removed systemd, problems with libc - unable to boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
upengan78
l33t
l33t


Joined: 27 Jun 2007
Posts: 719
Location: IL

PostPosted: Wed Jun 04, 2025 2:23 pm    Post subject: removed systemd, problems with libc - unable to boot Reply with quote

Hello,
I tried to do too many changes on the system and as expected broke the system. At this point I only want to be able to boot it and fix rest of the stuff after rebooting.

Since I am unable to boot (system shows error about systemd). By mistake I had removed systemd package while resolving emerge issues. Also ran into glibc upgrade issue which stopped halfway through and broke system to some extent.

I booted using a rescue disk (not gentoo live) and chrooted to OS parition (along with other stuff proc, dev, sys, run partitions mounted)

I am trying to emerge systemd and run into issue which might be related to libc/gcc - I am not sure myself what this is so I need some help from experts!




emerge systemd


Code:
root@partedmagic ~ # emerge systemd
/usr/lib/python3.13/site-packages/portage/package/ebuild/_config/KeywordsManager.py:86: UserWarning: /etc/portage/package.keywords is deprecated, use /etc/portage/package.accept_keywords instead
  warnings.warn(
Calculating dependencies... done!
Dependency resolution took 4.27 s (backtrack: 0/20).


!!! The following installed packages are masked:
- app-arch/xz-utils-5.4.3::gentoo (masked by: package.mask)
/usr/portage/profiles/package.mask:
# Sam James <[email protected]> (2024-03-28)
# Newer 5.4.x releases were signed by a potentially compromised upstream maintainer.
# There is no evidence that these releases contain malicious code, but masked
# out of an abundance of caution. See bug #928134.

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


>>> Verifying ebuild manifests

>>> Running pre-merge checks for sys-libs/libxcrypt-4.4.38

>>> Running pre-merge checks for sys-apps/systemd-256.10
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     5.4.60-gentoo
 * It's recommended to set an empty value to the following kernel config option:
 * CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 * Checking for suitable kernel configuration options ...                                                                                                                                                                             [ ok ]

>>> Emerging (1 of 3) sys-libs/libxcrypt-4.4.38::gentoo
 * libxcrypt-4.4.38-autotools.tar.xz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                      [ ok ]
>>> Unpacking source...
>>> Unpacking libxcrypt-4.4.38-autotools.tar.xz to /nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work
>>> Source unpacked in /nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work
>>> Preparing source in /nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38 ...
>>> Source prepared.
>>> Configuring source in /nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38 ...
 * xcrypt_compat: running multilib-minimal_src_configure
 * abi_x86_32.x86: running multilib-minimal_abi_src_configure
 * econf: updating libxcrypt-4.4.38/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating libxcrypt-4.4.38/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating libxcrypt-4.4.38/build-aux/m4-autogen/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating libxcrypt-4.4.38/build-aux/m4-autogen/config.sub with /usr/share/gnuconfig/config.sub
/nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38/configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --datarootdir=/usr/share --disable-dependency-tracking --disable-silent-rules --disable-static --docdir=/usr/share/doc/libxcrypt-4.4.38 --htmldir=/usr/share/doc/libxcrypt-4.4.38/html --with-sysroot=/ --disable-werror --prefix=/usr --libdir=/usr/lib --includedir=/usr/include --with-pkgconfigdir=/usr/lib/pkgconfig --with-sysroot= --disable-static --disable-xcrypt-compat-files --enable-obsolete-api=yes
configure: loading site script /usr/share/config.site
configure: loading site script /usr/share/config.site.d/80crossdev.conf
checking for a BSD-compatible install... /usr/lib/portage/python3.13/ebuild-helpers/xattr/install -c
checking whether sleep supports fractional seconds... yes
checking filesystem timestamp resolution... 0.01
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking xargs -n works... yes
checking pkg-config is at least version 0.27... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for i686-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc -m32 -mfpmath=sse
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in '/nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38-xcrypt_compat-abi_x86_32.x86':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use '--host'.
See 'config.log' for more details

!!! Please attach the following file when seeking support:
!!! /nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38-xcrypt_compat-abi_x86_32.x86/config.log
 * ERROR: sys-libs/libxcrypt-4.4.38::gentoo failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *               ebuild.sh, line  136:  Called src_configure
 *             environment, line 2684:  Called multibuild_foreach_variant 'multilib-minimal_src_configure'
 *             environment, line 1529:  Called _multibuild_run 'multilib-minimal_src_configure'
 *             environment, line 1527:  Called multilib-minimal_src_configure
 *             environment, line 1574:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *             environment, line 1824:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *             environment, line 1529:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *             environment, line 1527:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *             environment, line  365:  Called multilib-minimal_abi_src_configure
 *             environment, line 1568:  Called multilib_src_configure
 *             environment, line 2057:  Called econf '--disable-werror' '--prefix=/usr' '--libdir=/usr/lib' '--includedir=/usr/include' '--with-pkgconfigdir=/usr/lib/pkgconfig' '--with-sysroot=' '--disable-static' '--disable-xcrypt-compat-files' '--enable-obsolete-api=yes'
 *        phase-helpers.sh, line  647:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *              die "$@"
 *
 * If you need support, post the output of `emerge --info '=sys-libs/libxcrypt-4.4.38::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/libxcrypt-4.4.38::gentoo'`.
 * The complete build log is located at '/nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/temp/build.log'.
 * The ebuild environment file is located at '/nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/temp/environment'.
 * Working directory: '/nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38-xcrypt_compat-abi_x86_32.x86'
 * S: '/nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38'

>>> Failed to emerge sys-libs/libxcrypt-4.4.38, Log file:

>>>  '/nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/temp/build.log'

 * Messages for package sys-apps/systemd-256.10:

 * It's recommended to set an empty value to the following kernel config option:
 * CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"

 * Messages for package sys-libs/libxcrypt-4.4.38:

 * ERROR: sys-libs/libxcrypt-4.4.38::gentoo failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *               ebuild.sh, line  136:  Called src_configure
 *             environment, line 2684:  Called multibuild_foreach_variant 'multilib-minimal_src_configure'
 *             environment, line 1529:  Called _multibuild_run 'multilib-minimal_src_configure'
 *             environment, line 1527:  Called multilib-minimal_src_configure
 *             environment, line 1574:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *             environment, line 1824:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *             environment, line 1529:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *             environment, line 1527:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *             environment, line  365:  Called multilib-minimal_abi_src_configure
 *             environment, line 1568:  Called multilib_src_configure
 *             environment, line 2057:  Called econf '--disable-werror' '--prefix=/usr' '--libdir=/usr/lib' '--includedir=/usr/include' '--with-pkgconfigdir=/usr/lib/pkgconfig' '--with-sysroot=' '--disable-static' '--disable-xcrypt-compat-files' '--enable-obsolete-api=yes'
 *        phase-helpers.sh, line  647:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *              die "$@"
 *
 * If you need support, post the output of `emerge --info '=sys-libs/libxcrypt-4.4.38::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/libxcrypt-4.4.38::gentoo'`.
 * The complete build log is located at '/nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/temp/build.log'.
 * The ebuild environment file is located at '/nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/temp/environment'.
 * Working directory: '/nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38-xcrypt_compat-abi_x86_32.x86'
 * S: '/nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38'


emerge --info
Code:
root@partedmagic ~ # emerge --info
/usr/lib/python3.13/site-packages/portage/package/ebuild/_config/KeywordsManager.py:86: UserWarning: /etc/portage/package.keywords is deprecated, use /etc/portage/package.accept_keywords instead
  warnings.warn(
Portage 3.0.67 (python 3.13.3-final-0, default/linux/amd64/23.0/systemd, gcc-11.2.0, glibc-2.40-r8, 3.10.4-pmagic64 x86_64)
=================================================================
System uname: Linux-3.10.4-pmagic64-x86_64-Intel-R-_Xeon-R-_CPU_E5-1620_v3_@_3.50GHz-with-glibc2.37
KiB Mem:    16336236 total,  11747668 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 21 May 2025 11:45:00 +0000
Head commit of repository gentoo: bb0a1cf41251df440b94a1019b67d9cb28c192e9
Head commit of repository java: ea7cc3c817f4a63d8a4da931eb4aebee6362cb34

sh bash 5.2_p37
ld GNU ld (Gentoo 2.40 p5) 2.40.0
ccache version 4.8.2 [enabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r1::gentoo, 2.69-r5::gentoo, 2.71-r6::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.11.6-r3::gentoo, 1.14.1-r2::gentoo, 1.15.1-r2::gentoo, 1.16.5-r1::gentoo
dev-build/cmake:           3.26.5-r2::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.7.0::gentoo
dev-lang/perl:             5.40.2::gentoo
dev-lang/python:           2.7.18_p13::gentoo, 3.5.7::gentoo, 3.6.11-r2::gentoo, 3.9.18::gentoo, 3.11.5::gentoo, 3.12.10::gentoo, 3.13.3::gentoo
dev-lang/rust:             1.47.0-r2::gentoo
dev-lang/rust-bin:         1.74.1-r102::gentoo
dev-util/ccache:           4.8.2::gentoo
llvm-core/clang:           5.0.2::gentoo, 6.0.1::gentoo, 7.1.0::gentoo, 8.0.1::gentoo, 9.0.1::gentoo, 10.0.0::gentoo, 11.1.0::gentoo, 13.0.0::gentoo, 19.1.7::gentoo
llvm-core/lld:             13.0.0::gentoo
llvm-core/llvm:            5.0.2::gentoo, 6.0.1::gentoo, 7.1.0::gentoo, 8.0.1::gentoo, 9.0.1::gentoo, 10.0.0::gentoo, 11.1.0::gentoo, 13.0.0::gentoo, 16.0.6::gentoo, 19.1.7::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.48::gentoo
sys-apps/sandbox:          2.37::gentoo
sys-devel/binutils:        2.30-r4::gentoo, 2.31.1-r6::gentoo, 2.32-r1::gentoo, 2.33.1-r1::gentoo, 2.34-r2::gentoo, 2.35.1-r1::gentoo, 2.37_p1::gentoo, 2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             9.2.0-r2::gentoo, 9.3.0-r2::gentoo, 10.3.0-r2::gentoo, 11.2.0::gentoo, 12.3.1_p20230526::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-kernel/linux-headers:  6.12::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r8::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: --timeout=50
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 3

cj-overlay
    location: /var/lib/layman/cj-overlay
    masters: gentoo
    priority: 0
    volatile: True

local
    location: /usr/local/portage
    masters: gentoo
    priority: 1
    volatile: True

haskell
    location: /var/lib/layman/haskell
    masters: gentoo
    priority: 50
    volatile: True

java
    location: /var/lib/layman/java
    sync-type: git
    sync-uri: https://github.com/gentoo/java-overlay
    masters: gentoo
    priority: 50
    volatile: True

mozilla
    location: /var/lib/layman/mozilla
    masters: gentoo
    priority: 50
    volatile: True

python
    location: /var/lib/layman/python
    masters: gentoo
    priority: 50
    volatile: True

vmware
    location: /var/lib/layman/vmware
    masters: gentoo
    priority: 50
    volatile: True

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf /usr/share/maven-bin-3.6/conf /usr/share/maven-bin-3.8/conf /usr/share/maven-bin-3.9/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
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 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://gentoo.osuosl.org/ http://104.19.136.75/gentoo/ rsync://gentoo.gossamerhost.com/gentoo-distfiles/ http://gentoo.mirrors.tds.net/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="en_US en"
MAKEOPTS="-j4 -l50"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=50"
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="/nfs1/portage"
SHELL="/bin/bash"
USE="X acl alsa amd64 aspell bzip2 cet crypt dbus gdbm gstreamer gtk hal iconv ipv6 jpeg ldap libtirpc multilib ncurses nls nptl nptlonly opengl openmp pam pcre policykit readline seccomp ssl svg systemd test-rust udev unicode xattr zlib" ABI_X86="64 32" ADA_TARGET="gcc_14" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias cgi cgid slotmem_shm unixd cache_socache" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres17" PYTHON_SINGLE_TARGET="python3_13" PYTHON_TARGETS="python3_13 pypy3" RUBY_TARGETS="ruby32" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto 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, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS



cat /nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38-xcrypt_compat-abi_x86_32.x86/config.log

Code:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by xcrypt configure 4.4.38, which was
generated by GNU Autoconf 2.72.  Invocation command line was

  $ /nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38/configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --datarootdir=/usr/share --disable-dependency-tracking --disable-silent-rules --disable-static --docdir=/usr/share/doc/libxcrypt-4.4.38 --htmldir=/usr/share/doc/libxcrypt-4.4.38/html --with-sysroot=/ --disable-werror --prefix=/usr --libdir=/usr/lib --includedir=/usr/include --with-pkgconfigdir=/usr/lib/pkgconfig --with-sysroot= --disable-static --disable-xcrypt-compat-files --enable-obsolete-api=yes

## --------- ##
## Platform. ##
## --------- ##

hostname = localhost
uname -m = x86_64
uname -r = 3.10.4-pmagic64
uname -s = Linux
uname -v = #1 SMP Tue Jul 30 13:14:22 CDT 2013

/usr/bin/uname -p = Intel(R) Xeon(R) CPU E5-1620 v3 @ 3.50GHz
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/lib/ccache/bin/
PATH: /usr/lib/portage/python3.13/ebuild-helpers/xattr/
PATH: /usr/lib/portage/python3.13/ebuild-helpers/
PATH: /usr/lib/llvm/8/bin/
PATH: /usr/lib/llvm/7/bin/
PATH: /usr/lib/llvm/6/bin/
PATH: /usr/lib/llvm/5/bin/
PATH: /opt/blackdown-jdk-1.4.2.03/bin/
PATH: /opt/blackdown-jdk-1.4.2.03/jre/bin/
PATH: /usr/local/sbin/
PATH: /usr/local/bin/
PATH: /usr/bin/
PATH: /opt/bin/
PATH: /usr/lib/llvm/19/bin/
PATH: /usr/lib/llvm/16/bin/
PATH: /usr/lib/llvm/13/bin/
PATH: /usr/lib/llvm/11/bin/
PATH: /usr/lib/llvm/10/bin/
PATH: /usr/lib/llvm/9/bin/
PATH: /usr/games/bin/


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2227: loading site script /usr/share/config.site
| # Copyright 2023 Gentoo Authors
| # Distributed under the terms of the GNU General Public License v2
|
| for script in "/usr/share/config.site.d"/*.conf; do
|       test -f "${script}" || continue
|       test -r "${script}" || continue
|       echo "${0##*/}: loading site script ${script}"
|       . "${script}" || break
| done
| unset script
configure:2623: looking for aux files: ltmain.sh compile config.guess config.sub missing install-sh
configure:2636:  trying /nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38/build-aux/m4-autogen/
configure:2665:   /nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38/build-aux/m4-autogen/ltmain.sh found
configure:2665:   /nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38/build-aux/m4-autogen/compile found
configure:2665:   /nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38/build-aux/m4-autogen/config.guess found
configure:2665:   /nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38/build-aux/m4-autogen/config.sub found
configure:2665:   /nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38/build-aux/m4-autogen/missing found
configure:2647:   /nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38/build-aux/m4-autogen/install-sh found
configure:2802: checking for a BSD-compatible install
configure:2876: result: /usr/lib/portage/python3.13/ebuild-helpers/xattr/install -c
configure:2887: checking whether sleep supports fractional seconds
configure:2903: result: yes
configure:2906: checking filesystem timestamp resolution
configure:3041: result: 0.01
configure:3046: checking whether build environment is sane
configure:3087: result: yes
configure:3258: checking for a race-free mkdir -p
configure:3301: result: /usr/bin/mkdir -p
configure:3308: checking for gawk
configure:3329: found /usr/bin/gawk
configure:3341: result: gawk
configure:3352: checking whether make sets $(MAKE)
configure:3376: result: yes
configure:3402: checking whether make supports nested variables
configure:3421: result: yes
configure:3435: checking xargs -n works
configure:3451: result: yes
configure:3677: checking pkg-config is at least version 0.27
configure:3680: result: yes
configure:3739: checking build system type
configure:3755: result: i686-pc-linux-gnu
configure:3775: checking host system type
configure:3790: result: i686-pc-linux-gnu
configure:3827: checking for i686-pc-linux-gnu-gcc
configure:3860: result: x86_64-pc-linux-gnu-gcc -m32 -mfpmath=sse
configure:4265: checking for C compiler version
configure:4274: x86_64-pc-linux-gnu-gcc -m32 -mfpmath=sse --version >&5
x86_64-pc-linux-gnu-gcc (Gentoo 11.2.0 p1) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:4285: $? = 0
configure:4274: x86_64-pc-linux-gnu-gcc -m32 -mfpmath=sse -v >&5
Using built-in specs.
COLLECT_GCC=/usr/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/11.2.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /dev/shm/portag1/portage/sys-devel/gcc-11.2.0/work/gcc-11.2.0/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/11.2.0 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/11.2.0 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/11.2.0/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/11.2.0/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/11.2.0/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 11.2.0 p1' --disable-esp --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libssp --disable-libada --disable-systemtap --disable-valgrind-annotations --disable-vtable-verify --disable-libvtv --without-zstd --enable-lto --without-isl --enable-default-pie --enable-default-ssp
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.2.0 (Gentoo 11.2.0 p1)
configure:4285: $? = 0
configure:4274: x86_64-pc-linux-gnu-gcc -m32 -mfpmath=sse -V >&5
x86_64-pc-linux-gnu-gcc: error: unrecognized command-line option '-V'
x86_64-pc-linux-gnu-gcc: fatal error: no input files
compilation terminated.
configure:4285: $? = 1
configure:4274: x86_64-pc-linux-gnu-gcc -m32 -mfpmath=sse -qversion >&5
x86_64-pc-linux-gnu-gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'?
x86_64-pc-linux-gnu-gcc: fatal error: no input files
compilation terminated.
configure:4285: $? = 1
configure:4274: x86_64-pc-linux-gnu-gcc -m32 -mfpmath=sse -version >&5
x86_64-pc-linux-gnu-gcc: error: unrecognized command-line option '-version'
x86_64-pc-linux-gnu-gcc: fatal error: no input files
compilation terminated.
configure:4285: $? = 1
configure:4305: checking whether the C compiler works
configure:4327: x86_64-pc-linux-gnu-gcc -m32 -mfpmath=sse -O2 -march=native -pipe  -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--undefined-version conftest.c  >&5
configure:4331: $? = 0
configure:4382: result: yes
configure:4386: checking for C compiler default output file name
configure:4388: result: a.out
configure:4394: checking for suffix of executables
configure:4401: x86_64-pc-linux-gnu-gcc -m32 -mfpmath=sse -o conftest -O2 -march=native -pipe  -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--undefined-version conftest.c  >&5
configure:4405: $? = 0
configure:4429: result:
configure:4453: checking whether we are cross compiling
configure:4461: x86_64-pc-linux-gnu-gcc -m32 -mfpmath=sse -o conftest -O2 -march=native -pipe  -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--undefined-version conftest.c  >&5
configure:4465: $? = 0
configure:4472: ./conftest
/nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38/configure: line 4474:   466 Segmentation fault      ./conftest$ac_cv_exeext
configure:4476: $? = 139
configure:4483: error: in '/nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38-xcrypt_compat-abi_x86_32.x86':
configure:4485: error: cannot run C compiled programs.
If you meant to cross compile, use '--host'.
See 'config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_c_undeclared_builtin_options='none needed'
ac_cv_env_CC_set=set
ac_cv_env_CC_value='x86_64-pc-linux-gnu-gcc -m32 -mfpmath=sse'
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O2 -march=native -pipe'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--undefined-version'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=set
ac_cv_env_PKG_CONFIG_LIBDIR_value=/usr/lib/pkgconfig
ac_cv_env_PKG_CONFIG_PATH_set=set
ac_cv_env_PKG_CONFIG_PATH_value=/usr/share/pkgconfig
ac_cv_env_PKG_CONFIG_set=set
ac_cv_env_PKG_CONFIG_value=x86_64-pc-linux-gnu-pkg-config
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i686-pc-linux-gnu
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=x86_64-pc-linux-gnu
ac_cv_host=i686-pc-linux-gnu
ac_cv_path_install='/usr/lib/portage/python3.13/ebuild-helpers/xattr/install -c'
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CC='x86_64-pc-linux-gnu-gcc -m32 -mfpmath=sse'
ac_cv_prog_make_make_set=yes
am_cv_filesystem_timestamp_resolution=0.01
am_cv_make_support_nested_variables=yes
am_cv_sleep_fractional_seconds=yes
am_cv_xargs_n_works=yes
gl_cv_compiler_check_decl_option=-Werror=implicit-function-declaration
gl_cv_func_getcwd_path_max=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} '\''/nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38/build-aux/m4-autogen/missing'\'' aclocal-1.17'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V=''
AM_DEFAULT_VERBOSITY='1'
AM_V=''
AR='x86_64-pc-linux-gnu-ar'
AUTOCONF='${SHELL} '\''/nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38/build-aux/m4-autogen/missing'\'' autoconf'
AUTOHEADER='${SHELL} '\''/nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38/build-aux/m4-autogen/missing'\'' autoheader'
AUTOMAKE='${SHELL} '\''/nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38/build-aux/m4-autogen/missing'\'' automake-1.17'
AWK='gawk'
BINDNOW_FLAG=''
CC='x86_64-pc-linux-gnu-gcc -m32 -mfpmath=sse'
CCDEPMODE=''
CFLAGS='-O2 -march=native -pipe'
COMPAT_ABI=''
CPP=''
CPPFLAGS=''
CROSS_COMPILING_FALSE=''
CROSS_COMPILING_TRUE=''
CSCOPE='cscope'
CTAGS='ctags'
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_COMPAT_SUSE_FALSE=''
ENABLE_COMPAT_SUSE_TRUE=''
ENABLE_KA_TABLE_GEN_FALSE=''
ENABLE_KA_TABLE_GEN_TRUE=''
ENABLE_OBSOLETE_API_FALSE=''
ENABLE_OBSOLETE_API_TRUE=''
ENABLE_SHARED_FALSE=''
ENABLE_SHARED_TRUE=''
ENABLE_STATIC_FALSE=''
ENABLE_STATIC_TRUE=''
ENABLE_VALGRIND_drd=''
ENABLE_VALGRIND_helgrind=''
ENABLE_VALGRIND_memcheck=''
ENABLE_VALGRIND_sgcheck=''
ENABLE_XCRYPT_COMPAT_FILES_FALSE=''
ENABLE_XCRYPT_COMPAT_FILES_TRUE=''
ETAGS='etags'
EXEEXT=''
FGREP=''
FILECMD=''
GPG2=''
GREP=''
HAVE_CPP_dD=''
HAVE_LD_WRAP_FALSE=''
HAVE_LD_WRAP_TRUE=''
HAVE_VSCRIPT_COMPLEX_FALSE=''
HAVE_VSCRIPT_COMPLEX_TRUE=''
HAVE_VSCRIPT_FALSE=''
HAVE_VSCRIPT_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD='x86_64-pc-linux-gnu-ld -m elf_i386'
LDFLAGS='-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--undefined-version'
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
MAKEINFO='${SHELL} '\''/nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38/build-aux/m4-autogen/missing'\'' makeinfo'
MANIFEST_TOOL=''
MKDIR_P='/usr/bin/mkdir -p'
NM='x86_64-pc-linux-gnu-nm'
NMEDIT=''
OBJDUMP='x86_64-pc-linux-gnu-objdump'
OBJEXT=''
OPTI_FLAGS=''
OTOOL64=''
OTOOL=''
PACKAGE='libxcrypt'
PACKAGE_BUGREPORT='https://github.com/besser82/libxcrypt/issues'
PACKAGE_NAME='xcrypt'
PACKAGE_STRING='xcrypt 4.4.38'
PACKAGE_TARNAME='libxcrypt'
PACKAGE_URL='https://github.com/besser82/libxcrypt'
PACKAGE_VERSION='4.4.38'
PATH_SEPARATOR=':'
PERL=''
PKG_CONFIG='x86_64-pc-linux-gnu-pkg-config'
PKG_CONFIG_LIBDIR='/usr/lib/pkgconfig'
PKG_CONFIG_PATH='/usr/share/pkgconfig'
PYTHON=''
RANLIB='x86_64-pc-linux-gnu-ranlib'
RELRO_FLAG=''
SED=''
SET_MAKE=''
SHA256SUM=''
SHELL='/bin/sh'
STRIP='x86_64-pc-linux-gnu-strip'
SYMBOL_PREFIX=''
SYMVER_FLOOR=''
SYMVER_MIN=''
TEXT_RELOC_FLAG=''
UNDEF_FLAG=''
VALGRIND=''
VALGRIND_CHECK_RULES=''
VALGRIND_ENABLED=''
VALGRIND_ENABLED_FALSE=''
VALGRIND_ENABLED_TRUE=''
VERSION='4.4.38'
VSCRIPT_LDFLAGS=''
WARN_CFLAGS=''
WARN_CFLAGS_FOR_BUILD=''
XCRYPT_VERSION_MAJOR=''
XCRYPT_VERSION_MINOR=''
ac_ct_AR=''
ac_ct_CC=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=' -I$(srcdir)'
am__leading_dot='.'
am__nodep=''
am__quote=''
am__rm_f_notfound=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
am__xargs_n='xargs -n'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='/usr/share'
datarootdir='/usr/share'
docdir='/usr/share/doc/libxcrypt-4.4.38'
dvidir='${docdir}'
exec_prefix='NONE'
hashes_enabled=''
host='i686-pc-linux-gnu'
host_alias='i686-pc-linux-gnu'
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
htmldir='/usr/share/doc/libxcrypt-4.4.38/html'
includedir='/usr/include'
infodir='/usr/share/info'
install_sh='${SHELL} /nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38/build-aux/m4-autogen/install-sh'
libdir='/usr/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='/var/lib'
mandir='/usr/share/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
pkgconfigdir='/usr/lib/pkgconfig'
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sys_symbol_underscore=''
sysconfdir='/etc'
target_alias='x86_64-pc-linux-gnu'
valgrind_enabled_tools=''
valgrind_tools=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "xcrypt"
#define PACKAGE_TARNAME "libxcrypt"
#define PACKAGE_VERSION "4.4.38"
#define PACKAGE_STRING "xcrypt 4.4.38"
#define PACKAGE_BUGREPORT "https://github.com/besser82/libxcrypt/issues"
#define PACKAGE_URL "https://github.com/besser82/libxcrypt"
#define PACKAGE "libxcrypt"
#define VERSION "4.4.38"

configure: exit 77




If there is any way to get out of the mess, then I will consider myself fortunate. Thank you for any help in advance.

EDIT: Added config.log


Last edited by upengan78 on Wed Jun 04, 2025 2:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 2208

PostPosted: Wed Jun 04, 2025 2:27 pm    Post subject: Reply with quote

upengan78 wrote:
Code:
!!! Please attach the following file when seeking support:
!!! /nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38-xcrypt_compat-abi_x86_32.x86/config.log

This is needed to give advice.
Back to top
View user's profile Send private message
upengan78
l33t
l33t


Joined: 27 Jun 2007
Posts: 719
Location: IL

PostPosted: Wed Jun 04, 2025 2:33 pm    Post subject: Reply with quote

grknight wrote:
upengan78 wrote:
Code:
!!! Please attach the following file when seeking support:
!!! /nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38-xcrypt_compat-abi_x86_32.x86/config.log

This is needed to give advice.

Sorry about that. Just added to original post. Thank you!
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 2208

PostPosted: Wed Jun 04, 2025 3:54 pm    Post subject: Reply with quote

upengan78 wrote:
Code:
configure:4472: ./conftest
/nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38/configure: line 4474:   466 Segmentation fault      ./conftest$ac_cv_exeext

This indicates other issues that are not easily seen in logs. Is there something in dmesg related to this?
This can indicate hardware issues but may just be software.
Back to top
View user's profile Send private message
upengan78
l33t
l33t


Joined: 27 Jun 2007
Posts: 719
Location: IL

PostPosted: Wed Jun 04, 2025 4:16 pm    Post subject: Reply with quote

grknight wrote:
upengan78 wrote:
Code:
configure:4472: ./conftest
/nfs1/portage/portage/sys-libs/libxcrypt-4.4.38/work/libxcrypt-4.4.38/configure: line 4474:   466 Segmentation fault      ./conftest$ac_cv_exeext

This indicates other issues that are not easily seen in logs. Is there something in dmesg related to this?
This can indicate hardware issues but may just be software.


Code:
[Jun 3 17:32] conftest[1178]: segfault at 8d342474 ip 000000008d342474 sp 00000000ff8a1a7c error 14
[Jun 4 09:21] conftest[10732]: segfault at 8d342474 ip 000000008d342474 sp 00000000ffd48a4c error 14


I am wondering if this is due to any broken toolchain.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23529

PostPosted: Wed Jun 04, 2025 4:35 pm    Post subject: Reply with quote

It might be a toolchain problem, but I also note that you're using an amazingly old kernel (3.10.4-pmagic4). I would not be surprised to learn that modern user programs do not work quite right on such an old kernel.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 2208

PostPosted: Wed Jun 04, 2025 4:37 pm    Post subject: Reply with quote

When was the last time this machine was depcleaned? There are multiple old versions of the toolchain installed and may be getting confused.
At least ensure that eselect gcc and eselect binutils are set to the latest versions available
Back to top
View user's profile Send private message
upengan78
l33t
l33t


Joined: 27 Jun 2007
Posts: 719
Location: IL

PostPosted: Wed Jun 04, 2025 4:48 pm    Post subject: Reply with quote

Hu wrote:
It might be a toolchain problem, but I also note that you're using an amazingly old kernel (3.10.4-pmagic4). I would not be surprised to learn that modern user programs do not work quite right on such an old kernel.


Yeah, this is an old kernel from the live CD that I had in my LILO to boot from. I booted into this and chrooted to my gentoo partition. It indeed is old kernel!
Back to top
View user's profile Send private message
upengan78
l33t
l33t


Joined: 27 Jun 2007
Posts: 719
Location: IL

PostPosted: Wed Jun 04, 2025 4:53 pm    Post subject: Reply with quote

grknight wrote:
When was the last time this machine was depcleaned? There are multiple old versions of the toolchain installed and may be getting confused.
At least ensure that eselect gcc and eselect binutils are set to the latest versions available


Yeah, that was mistake due to my laziness that I wasn't able to keepup and did too many moves without giving it a thought just recently that caused issues.

Here is what I did now:

Code:
partedmagic ~ # eselect gcc list
 [1] x86_64-pc-linux-gnu-9.2.0
 [2] x86_64-pc-linux-gnu-9.3.0
 [3] x86_64-pc-linux-gnu-10.3.0
 [4] x86_64-pc-linux-gnu-11.2.0 *
 [5] x86_64-pc-linux-gnu-12
partedmagic ~ # eselect gcc set 5
 * Switching native-compiler to x86_64-pc-linux-gnu-12 ...
>>> Regenerating /etc/ld.so.cache...

/sbin/ldconfig: /usr/lib64/libc.so.6 is not a symbolic link

/sbin/ldconfig: /usr/lib/libc.so.6 is not a symbolic link

/sbin/ldconfig: /lib/libc.so.6 is not a symbolic link

/sbin/ldconfig: /lib/ld-linux.so.2 is not a symbolic link

/sbin/ldconfig: /lib64/libc.so.6 is not a symbolic link
                                                                                                                                                                                                                       [ ok ]

 * If you intend to use the gcc from the new profile in an already
 * running shell, please remember to do:

 *   . /etc/profile

partedmagic ~ #
partedmagic ~ # . /etc/profile
partedmagic ~ # eselect binutils list
 [1] x86_64-pc-linux-gnu-2.30
 [2] x86_64-pc-linux-gnu-2.31.1
 [3] x86_64-pc-linux-gnu-2.32
 [4] x86_64-pc-linux-gnu-2.33.1
 [5] x86_64-pc-linux-gnu-2.34
 [6] x86_64-pc-linux-gnu-2.35.1
 [7] x86_64-pc-linux-gnu-2.37_p1
 [8] x86_64-pc-linux-gnu-2.40 *
Back to top
View user's profile Send private message
upengan78
l33t
l33t


Joined: 27 Jun 2007
Posts: 719
Location: IL

PostPosted: Wed Jun 04, 2025 4:58 pm    Post subject: Reply with quote

Is there a way to fix toolchain or do some manual package/portage install to get to some point of stability as I am chrooted using a third-party live CD.
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2257

PostPosted: Thu Jun 05, 2025 10:34 am    Post subject: Reply with quote

An aside - have you changed your "eselect profile" to a non-systemd one? If not, you may be trying to build your system with the wrong components. I guess the trial would be to change profile and see what "emerge -pv --changed-use @world" comes up with.
_________________
Greybeard
Back to top
View user's profile Send private message
upengan78
l33t
l33t


Joined: 27 Jun 2007
Posts: 719
Location: IL

PostPosted: Mon Jun 09, 2025 4:16 pm    Post subject: Reply with quote

Thanks everyone for the assistance in this matter. I truly appreciate it.

There is some progress. I used https://wiki.gentoo.org/wiki/Fix_my_Gentoo to fix my broken toolchain.

I was originally on Glibc-2.37-r3 on my original machine using 17.1 stable profile. While doing upgrades (with silly mistakes) on this old machine I broke it to a non-bootable state wih systemd removed.

I used "Fix my Gentoo" KB article to fix the toolchain and now current status is:

eselect profile show
Code:
Current /etc/portage/make.profile symlink:
  default/linux/amd64/23.0/split-usr


emerge --info
Code:
Portage 3.0.67 (python 3.13.3-final-0, default/linux/amd64/23.0/split-usr, gcc-14, glibc-2.40-r8, 3.10.4-pmagic64 x86_64)
=================================================================
System uname: Linux-3.10.4-pmagic64-x86_64-Intel-R-_Xeon-R-_CPU_E5-1620_v3_@_3.50GHz-with-glibc2.40
KiB Mem:    16336236 total,   5025824 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 09 Jun 2025 14:15:00 +0000
Head commit of repository gentoo: 4ca9b48e1f4462ce299601d5c887598f5b53cdcd
Head commit of repository java: ea7cc3c817f4a63d8a4da931eb4aebee6362cb34

sh bash 5.2_p37
ld GNU ld (Gentoo 2.44 p1) 2.44.0
ccache version 4.8.2 [enabled]
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r1::gentoo, 2.69-r5::gentoo, 2.71-r6::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.11.6-r3::gentoo, 1.14.1-r2::gentoo, 1.15.1-r2::gentoo, 1.16.5-r1::gentoo, 1.17-r2::gentoo
dev-build/cmake:           3.26.5-r2::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.7.2::gentoo
dev-lang/perl:             5.40.2::gentoo
dev-lang/python:           2.7.18_p13::gentoo, 3.5.7::gentoo, 3.6.11-r2::gentoo, 3.9.18::gentoo, 3.12.10::gentoo, 3.13.3::gentoo
dev-lang/rust-bin:         1.74.1-r102::gentoo
dev-util/ccache:           4.8.2::gentoo
llvm-core/clang:           5.0.2::gentoo, 6.0.1::gentoo, 7.1.0::gentoo, 8.0.1::gentoo, 9.0.1::gentoo, 10.0.0::gentoo, 11.1.0::gentoo, 13.0.0::gentoo, 19.1.7::gentoo
llvm-core/lld:             13.0.0::gentoo
llvm-core/llvm:            5.0.2::gentoo, 6.0.1::gentoo, 7.1.0::gentoo, 8.0.1::gentoo, 9.0.1::gentoo, 10.0.0::gentoo, 11.1.0::gentoo, 13.0.0::gentoo, 16.0.6::gentoo, 19.1.7::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.56::gentoo
sys-apps/sandbox:          2.46::gentoo
sys-devel/binutils:        2.30-r4::gentoo, 2.31.1-r6::gentoo, 2.32-r1::gentoo, 2.33.1-r1::gentoo, 2.34-r2::gentoo, 2.35.1-r1::gentoo, 2.37_p1-r2::gentoo, 2.40-r5::gentoo, 2.44-r1::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             9.2.0-r2::gentoo, 9.3.0-r2::gentoo, 10.3.0-r2::gentoo, 11.2.0::gentoo, 12.3.1_p20230526::gentoo, 14.3.0::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.12::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-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-jobs: 1
    sync-rsync-extra-opts: --timeout=50
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 3

cj-overlay
    location: /var/lib/layman/cj-overlay
    masters: gentoo
    priority: 0
    volatile: True

local
    location: /usr/local/portage
    masters: gentoo
    priority: 1
    volatile: True

haskell
    location: /var/lib/layman/haskell
    masters: gentoo
    priority: 50
    volatile: True

java
    location: /var/lib/layman/java
    sync-type: git
    sync-uri: https://github.com/gentoo/java-overlay
    masters: gentoo
    priority: 50
    volatile: True

mozilla
    location: /var/lib/layman/mozilla
    masters: gentoo
    priority: 50
    volatile: True

python
    location: /var/lib/layman/python
    masters: gentoo
    priority: 50
    volatile: True

vmware
    location: /var/lib/layman/vmware
    masters: gentoo
    priority: 50
    volatile: True

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fno-stack-protector"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf /usr/share/maven-bin-3.6/conf /usr/share/maven-bin-3.8/conf /usr/share/maven-bin-3.9/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe -fno-stack-protector"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
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 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://gentoo.osuosl.org/ http://104.19.136.75/gentoo/ rsync://gentoo.gossamerhost.com/gentoo-distfiles/ http://gentoo.mirrors.tds.net/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="en_US en"
MAKEOPTS="-j4 -l50"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=50"
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="/nfs1/portage"
SHELL="/bin/bash"
USE="X acl alsa amd64 aspell bzip2 cet crypt dbus gdbm gstreamer gtk hal iconv ipv6 jpeg ldap libtirpc multilib ncurses nls nptl nptlonly opengl openmp pam pcre policykit readline seccomp split-usr ssl svg test-rust udev unicode xattr zlib" ABI_X86="64 32" ADA_TARGET="gcc_14" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias cgi cgid slotmem_shm unixd cache_socache" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres17" PYTHON_SINGLE_TARGET="python3_13" PYTHON_TARGETS="python3_13 pypy3" RUBY_TARGETS="ruby32 ruby33" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto 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, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS




It seems that now the toolchain is fixed but OS still on the choorted /mnt/gentoo and the remaining goal is to install systemd.

The problem I now run into is: all systemd packages are showing masked. Likely this is due to the profile?


eix sys-apps/systemd
Code:
* sys-apps/systemd
     Available versions:  [M]256.10(0/2)^t [M]~256.12(0/2)^t [M]256.13(0/2)^t [M]~256.16(0/2)^t [M]~257.3(0/2)^t [M]257.5(0/2)^t [M]~257.6(0/2)^t [M]**9999(0/2)*l^t {acl apparmor audit boot bpf cgroup-hybrid cryptsetup curl +dns-over-tls elfutils fido2 +gcrypt gnutls homed http idn importd iptables +kernel-install +kmod +lz4 lzma +openssl pam pcre pkcs11 policykit pwquality qrcode +resolvconf +seccomp secureboot selinux split-usr +sysv-utils test tpm ukify vanilla xkb +zstd ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32" PYTHON_SINGLE_TARGET="python3_11 python3_12 python3_13"}
     Homepage:            https://systemd.io/
     Description:         System and service manager for Linux

* sys-apps/systemd-readahead
     Available versions:  [M]216
     Homepage:            https://dev.gentoo.org/~pacho/systemd-readahead.html
     Description:         Split of readahead systemd implementation

* sys-apps/systemd-utils
     Available versions:  254.22^t ~254.24^t ~254.26^t 255.15-r1^t ~255.18^t ~255.21^t ~256.12^t ~256.13^t ~256.16^t {+acl boot kernel-install +kmod secureboot selinux split-usr sysusers test +tmpfiles +udev ukify ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32" PYTHON_SINGLE_TARGET="python3_11 python3_12 python3_13"}
     Homepage:            https://systemd.io/
     Description:         Utilitie




emerge -av systemd
Code:

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 2.98 s (backtrack: 0/20).


!!! All ebuilds that could satisfy "systemd" have been masked.
!!! One of the following masked packages is required to complete your request:
- sys-apps/systemd-9999::gentoo (masked by: package.mask, missing keyword)
/var/db/repos/gentoo/profiles/features/split-usr/package.mask:
# Andreas K. Hüttel <[email protected]> (2023-12-07)
# Does not support split-usr filesystem geometry. Please migrate to
# a merged-usr profile.

- sys-apps/systemd-257.6::gentoo (masked by: package.mask, ~amd64 keyword)
- sys-apps/systemd-257.5::gentoo (masked by: package.mask)
- sys-apps/systemd-257.3::gentoo (masked by: package.mask, ~amd64 keyword)
- sys-apps/systemd-256.16::gentoo (masked by: package.mask, ~amd64 keyword)
- sys-apps/systemd-256.13::gentoo (masked by: package.mask)
- sys-apps/systemd-256.12::gentoo (masked by: package.mask, ~amd64 keyword)
- sys-apps/systemd-256.10::gentoo (masked by: package.mask)

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



What would be appropriate next steps to install a stable version of systemd? By the way I moved from

[1] default/linux/amd64/17.1 (stable)

to

[45] default/linux/amd64/23.0/split-usr (stable) *


as this is what I thought was recommended by newsletter section 6.

Code:
6. Select the 23.0 profile corresponding to your current profile, either using
   "eselect profile" or by manually setting the profile symlink.
   Note that old profiles are by default split-usr and the 23.0 profiles by
   default merged-usr. Do NOT change directory scheme now, since this will
   mess up your system!
   Instead, make sure that the new profile has the same property: for example,
[b]   OLD default/linux/amd64/17.1
        ==>  NEW default/linux/amd64/23.0/split-usr
             (added "split-usr")[/b]
   OLD default/linux/amd64/17.1/systemd/merged-usr
        ==>  NEW default/linux/amd64/23.0/systemd
             (removed "merged-usr")
   A detailed table of the upgrade paths can be found at [5]. Please consult it.
   In some cases (hppa, x86) the table will tell you to pick between two choices.
   What you need should be obvious from your *old* CHOST value (from step 4).



Thanks.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 2208

PostPosted: Mon Jun 09, 2025 4:43 pm    Post subject: Reply with quote

upengan78 wrote:
What would be appropriate next steps to install a stable version of systemd? By the way I moved from

[1] default/linux/amd64/17.1 (stable)

to

[45] default/linux/amd64/23.0/split-usr (stable) *

Because stable systemd requires merge-usr, you need to first convert the split-usr to merge-usr without choosing a systemd profile initially.
Once the migration to merge-usr is complete and a full world update is successful, then choose a systemd profile and do a full world update again.
Back to top
View user's profile Send private message
upengan78
l33t
l33t


Joined: 27 Jun 2007
Posts: 719
Location: IL

PostPosted: Mon Jun 09, 2025 5:21 pm    Post subject: Reply with quote

grknight wrote:
upengan78 wrote:
What would be appropriate next steps to install a stable version of systemd? By the way I moved from

[1] default/linux/amd64/17.1 (stable)

to

[45] default/linux/amd64/23.0/split-usr (stable) *

Because stable systemd requires merge-usr, you need to first convert the split-usr to merge-usr without choosing a systemd profile initially.
Once the migration to merge-usr is complete and a full world update is successful, then choose a systemd profile and do a full world update again.


Understood. Thanks very much for the pointer. I will give this a try.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



OSZAR »