I've tried emerging 1.9.17_p2 as well, and get the same error.
The end of the build output is:
Code: Select all
make[1]: Entering directory '/var/tmp/portage/app-admin/sudo-1.9.17_p1/work/sudo-1.9.17p1/src'
x86_64-pc-linux-gnu-gcc -c -I../include -I.. -I. -I. -D_PATH_SUDO_CONF=\"/etc/sudo.conf\" -DLOCALEDIR=\"/usr/share/locale\" -DZLIB_CONST -march=skylake -mabm --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=6144 -O2 -pipe -fvisibility=hidden -fPIE ./get_pty.c
./get_pty.c: In function ‘get_pty’:
./get_pty.c:66:9: error: implicit declaration of function ‘openpty’; did you mean ‘openat’? [-Wimplicit-function-declaration]
66 | if (openpty(leader, follower, name, NULL, NULL) == 0) {
| ^~~~~~~
| openat
make[1]: *** [Makefile:708: get_pty.o] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-admin/sudo-1.9.17_p1/work/sudo-1.9.17p1/src'
make[1]: *** Waiting for unfinished jobs....
make[1]: Entering directory '/var/tmp/portage/app-admin/sudo-1.9.17_p1/work/sudo-1.9.17p1/src'
x86_64-pc-linux-gnu-gcc -c -I../include -I.. -I. -I. -D_PATH_SUDO_CONF=\"/etc/sudo.conf\" -DLOCALEDIR=\"/usr/share/locale\" -DZLIB_CONST -march=skylake -mabm --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=6144 -O2 -pipe -fvisibility=hidden -fPIE ./exec_preload.c
make[1]: Leaving directory '/var/tmp/portage/app-admin/sudo-1.9.17_p1/work/sudo-1.9.17p1/src'
make[1]: Entering directory '/var/tmp/portage/app-admin/sudo-1.9.17_p1/work/sudo-1.9.17p1/src'
x86_64-pc-linux-gnu-gcc -c -I../include -I.. -I. -I. -D_PATH_SUDO_CONF=\"/etc/sudo.conf\" -DLOCALEDIR=\"/usr/share/locale\" -DZLIB_CONST -march=skylake -mabm --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=6144 -O2 -pipe -fvisibility=hidden -fPIE ./exec_pty.c
make[1]: Leaving directory '/var/tmp/portage/app-admin/sudo-1.9.17_p1/work/sudo-1.9.17p1/src'
make[1]: Entering directory '/var/tmp/portage/app-admin/sudo-1.9.17_p1/work/sudo-1.9.17p1/src'
x86_64-pc-linux-gnu-gcc -c -I../include -I.. -I. -I. -D_PATH_SUDO_CONF=\"/etc/sudo.conf\" -DLOCALEDIR=\"/usr/share/locale\" -DZLIB_CONST -march=skylake -mabm --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=6144 -O2 -pipe -fvisibility=hidden -fPIE ./exec_ptrace.c
make[1]: Leaving directory '/var/tmp/portage/app-admin/sudo-1.9.17_p1/work/sudo-1.9.17p1/src'
make: *** [Makefile:110: all] Error 2
https://gist.github.com/araemo/bb06fdf6 ... 4ef6519fe1
Emerge --info:
Code: Select all
Portage 3.0.77 (python 3.13.11-final-0, default/linux/amd64/23.0/hardened, gcc-15, glibc-2.42-r5, 6.12.63-gentoo-dist-hardened x86_64)
=================================================================
System uname: Linux-6.12.63-gentoo-dist-hardened-x86_64-Intel-R-_Core-TM-_i5-6600_CPU_@_3.30GHz-with-glibc2.42
KiB Mem: 32714652 total, 20929052 free
KiB Swap: 31250428 total, 31250428 free
Timestamp of repository gentoo: Thu, 02 Apr 2026 23:45:00 +0000
Head commit of repository gentoo: 085528bc0d5fb4ae674e2ce0f805e0283821941a
sh bash 5.3_p9
ld GNU ld (Gentoo 2.45.1 p1) 2.45.1
app-misc/pax-utils: 1.3.10::gentoo
app-shells/bash: 5.3_p9::gentoo
dev-build/autoconf: 2.72-r6::gentoo
dev-build/automake: 1.17-r2::gentoo, 1.18.1::gentoo
dev-build/cmake: 4.2.4::gentoo
dev-build/libtool: 2.5.4::gentoo
dev-build/make: 4.4.1-r102::gentoo
dev-build/meson: 1.9.2::gentoo
dev-lang/perl: 5.42.0-r1::gentoo
dev-lang/python: 3.12.12::gentoo, 3.13.11::gentoo, 3.14.2::gentoo
dev-lang/rust-bin: 1.81.0-r103::gentoo, 1.92.0::gentoo
llvm-core/clang: 21.1.8::gentoo
llvm-core/llvm: 21.1.8::gentoo
sys-apps/baselayout: 2.18::gentoo
sys-apps/openrc: 0.63-r1::gentoo
sys-apps/sandbox: 2.46::gentoo
sys-devel/binutils: 2.45.1::gentoo, 2.46.0::gentoo
sys-devel/binutils-config: 5.6::gentoo
sys-devel/gcc: 15.2.1_p20260214::gentoo
sys-devel/gcc-config: 2.12.2::gentoo
sys-kernel/linux-headers: 6.18::gentoo (virtual/os-headers)
sys-libs/glibc: 2.42-r5::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-metamanifest: yes
sync-rsync-verify-jobs: 1
sync-rsync-verify-max-age: 3
sync-rsync-extra-opts:
local
location: /var/db/repos/local
masters: gentoo
volatile: False
Binary Repositories:
gentoobinhost
location: /var/cache/binhost/gentoobinhost
priority: 1
sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64_hardened
verify-signature: None
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=skylake -mabm --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=6144 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
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="-march=skylake -mabm --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=6144 -O2 -pipe"
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="-march=skylake -mabm --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=6144 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live compress-index 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="-march=skylake -mabm --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=6144 -O2 -pipe"
GENTOO_MIRRORS="http://mirrors.mit.edu/gentoo-distfiles/ rsync://mirrors.mit.edu/gentoo-distfiles/ http://gentoo.osuosl.org/ http://mirrors.rit.edu/gentoo/ rsync://mirrors.rit.edu/gentoo/ http://mirror.servaxnet.com/gentoo/ http://gentoo-mirror.flux.utah.edu/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="bzip2"
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 amd64 bzip2 cet crypt elogind gdbm hardened iconv ipv6 libtirpc multilib ncurses nls offensive openmp pam pcre pic pie readline seccomp ssl ssp test-rust unicode xattr xtpax zlib" ABI_X86="64" ADA_TARGET="gcc_15" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 bmi1 bmi2 f16c fma3 pclmul popcnt rdrand sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oncore skytraq superstar2 tsip tripmate tnt" GRUB_PLATFORMS="efi-64" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-3" POSTGRES_TARGETS="postgres17" PYTHON_SINGLE_TARGET="python3_13" PYTHON_TARGETS="python3_13 python3_12" QEMU_SOFTMMU_TARGETS="x86_64" RUBY_TARGETS="ruby32 ruby33" VIDEO_CARDS="fbdev intel 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, 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_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

