emerge of go 1.17.9 fails very early in configure phase with 'unknown personality'. The build stops Reproducible: Always Steps to Reproduce: 1.emerge -u go Actual Results: * /m2/portage/portage/sys-apps/sandbox-2.29/work/sandbox-2.29/libsandbox/trace/linux/x86_64.c:pers_is_32():36: failure (Success): * unknown x86_64 (CS) personality++ echo FAIL=true + eval FAIL=true ++ FAIL=true + '[' true = true ']' + exit 1 * ERROR: dev-lang/go-1.17.9::gentoo failed (compile phase): * build failed * * Call stack: * ebuild.sh, line 127: Called src_compile * environment, line 1286: Called die * The specific snippet of code: * bash -x ./make.bash || die "build failed" * * If you need support, post the output of `emerge --info '=dev-lang/go-1.17.9::gentoo'`, Expected Results: Successfull build Portage 3.0.30 (python 3.9.11-final-0, default/linux/amd64/17.1, gcc-11.2.1, glibc-2.34-r10, 5.10.76-gentoo-r1-64bit x86_64) ================================================================= System uname: Linux-5.10.76-gentoo-r1-64bit-x86_64-AMD_Ryzen_7_1700_Eight-Core_Processor-with-glibc2.34 KiB Mem: 29643560 total, 5901616 free KiB Swap: 33554424 total, 26849200 free Timestamp of repository gentoo: Fri, 22 Apr 2022 16:00:01 +0000 Head commit of repository gentoo: 284d99c6baad64ffe18e7ddf3efd818c7156995b sh bash 5.1_p16 ld GNU ld (Gentoo 2.37_p1 p2) 2.37 distcc 3.4 x86_64-pc-linux-gnu [enabled] app-misc/pax-utils: 1.3.3::gentoo app-shells/bash: 5.1_p16::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.0-r6::gentoo dev-lang/python: 3.9.11::gentoo, 3.10.3::gentoo dev-lang/rust-bin: 1.59.0::gentoo dev-util/cmake: 3.22.2::gentoo dev-util/meson: 0.60.3::gentoo sys-apps/baselayout: 2.7-r3::gentoo sys-apps/openrc: 0.44.10::gentoo sys-apps/sandbox: 2.29::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.15.1-r2::gentoo, 1.16.5::gentoo sys-devel/binutils: 2.37_p1-r2::gentoo sys-devel/binutils-config: 5.4.1::gentoo sys-devel/clang: 13.0.1::gentoo sys-devel/gcc: 11.2.1_p20220115::gentoo sys-devel/gcc-config: 2.5-r1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/lld: 13.0.1::gentoo sys-devel/llvm: 13.0.1::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.15-r3::gentoo (virtual/os-headers) sys-libs/glibc: 2.34-r10::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 pure-funtoo location: /var/lib/layman/pure-funtoo masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE dlj-1.1 sun-bcla-java-vm AdobeFlash-10 AdobeFlash-10.1 PUEL Oracle-BCLA-JavaSE AdobeFlash-10.3 AdobeFlash-11.x" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O3 -march=znver1" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.8/conf /var/bind" 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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O3 -march=znver1" DISTDIR="/usr/portage/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="https://mirror.leaseweb.com/gentoo/" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en de el" MAKEOPTS="-j6" PKGDIR="/usr/portage/packages" 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="/m2/portage" SHELL="/bin/bash" USE="3dnow 3dnowext X a52 aac acl alsa amd64 amr asf bzip2 caps chipcard cli crypt dri dts dvd faac ffmpeg gcc64 gcj gdbm gif gtk hbci iconv ipv6 java jpeg ldap libglvnd libtirpc mbox mmx mmxext mp3 mp4 mpeg multilib ncurses network nls nptl nsplugin nvidia ofx opengl openmp pam pcre pdf perl pg-intdatetime png postgres qt3support quotes readline sdl seccomp split-usr sse sse2 ssl symlink tiff unicode usb win32codecs x264 xattr xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_core 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_connect proxy_http rewrite setenvif so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias cgi cgid" 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 sse4a ssse3" 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="pc xen efi-64" INPUT_DEVICES="keyboard mouse" 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="postgresql11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="vesa nouveau" 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, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LANG, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, 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
Created attachment 773489 [details] ebuild log
Adding FEATURES=-sandbox seems to fix it
If you downgrade sandbox, does that help?
To which version?
(In reply to Konstantin Agouros from comment #4) > To which version? Try each of the previous versions in tree? But in particular 2.24 and 2.25. Trying the others would be a bonus.
2.2.4 and 2.2.5 run without complaint across the critical command. I rebuilt sandbox 2.2.9 it fails with the same error.
(In reply to Konstantin Agouros from comment #6) > 2.2.4 and 2.2.5 run without complaint across the critical command. > > I rebuilt sandbox 2.2.9 it fails with the same error. What about 2.26, 2.27, 2.28?
It seems to be the CFLAGS. I tried 2.2.9 on an intel machine with march=native and -O3 -> there is no problem. I will try it on another Ryzen-machine tomorrow with the same flags as on the problematic host.
I tried on a VM on a ryzen host. This is a ryzen 5 5600U vs a ryzen 7 1700 on the problematic host. sandbox 2.2.9 works like a charme no problem as well. Could it be that -march=znver1 on the Ryzen7 causes the problems? Only other difference is: on the problematic host the build is happening in the Dom0 of Xen.
downgrading to =sys-apps/sandbox-2.25 works for me (the latest stable amd64) with 2.29 the same error happened as in the first post with the go and containerd packages. make.conf CFLAGS: CFLAGS="-O2 -pipe -march=x86-64 -mtune=generic" cpu: Intel(R) Xeon(R) CPU E5-1650 0 @ 3.20GHz
(In reply to Sam James from comment #7) > (In reply to Konstantin Agouros from comment #6) > > 2.2.4 and 2.2.5 run without complaint across the critical command. > > > > I rebuilt sandbox 2.2.9 it fails with the same error. > > What about 2.26, 2.27, 2.28? Can someone try these?
Sure. I tried 2.25 because that was the last stable. Here are the results: =sys-apps/sandbox-2.26 building: dev-lang/go-1.18.2:0/1.18.2::gentoo Works. =sys-apps/sandbox-2.27 building: dev-lang/go-1.18.2:0/1.18.2::gentoo Works. =sys-apps/sandbox-2.28 building: dev-lang/go-1.18.2:0/1.18.2::gentoo Fail! * /var/tmp/portage/sys-apps/sandbox-2.28/work/sandbox-2.28/libsandbox/trace/linux/x86_64.c:pers_is_32():36: failure (Siker): * unknown x86_64 (CS) personality++ echo FAIL=true
(In reply to Konstantin Agouros from comment #2) > Adding FEATURES=-sandbox seems to fix it This failed for me, `FEATURES=“-sandbox -usersandbox“ emerge -u dev-lang/go` wfm