Skip Menu |

Date: Fri, 29 Nov 2019 22:36:24 +0100
From: "Kai Osen" <>
Subject: mit-krb5 fails to build on X32 host.
Hi, I have an old Atom cpu based PC with 2GB of ram that I'm trying to install Gentoo X32 variant on. It stopped on mit-krb5 library and I made the attached patch to fix it (at least compile it).

Some info from this PC:

CFLAGS="-O2 -pipe -march=bonnell -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -mmovbe -mfxsr --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=bonnell -fomit-frame-pointer -mfpmath=sse"

Debug output from start of gentoo emerge that includes the configure arguments:

emerge -v mit-krb5

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

Calculating dependencies... done!
[ebuild   R    ] app-crypt/mit-krb5-1.17-r1::gentoo  USE="keyutils nls pkinit threads -doc -libressl -lmdb -openldap (-selinux) -test* -xinetd" ABI_X86="(x32) -32 -64" CPU_FLAGS_X86="-aes" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-crypt/mit-krb5-1.17-r1::gentoo
 * krb5-1.17.tar.gz BLAKE2B SHA512 size ;-) ...                                  [ ok ]
>>> Unpacking source...
>>> Unpacking krb5-1.17.tar.gz to /var/tmp/portage/app-crypt/mit-krb5-1.17-r1/work
>>> Source unpacked in /var/tmp/portage/app-crypt/mit-krb5-1.17-r1/work
>>> Preparing source in /var/tmp/portage/app-crypt/mit-krb5-1.17-r1/work/krb5-1.17/src ...
 * Applying mit-krb5-1.12_warn_cflags.patch ...                                  [ ok ]
 * Applying mit-krb5-config_LDFLAGS-r1.patch ...                                 [ ok ]
 * Applying mit-krb5-1.16.3-libressl-r1.patch ...                                [ ok ]
 * Applying mit-krb5-1.17-fix-x32.patch ...                                      [ ok ]
 * User patches applied.
 * Running eautoreconf in '/var/tmp/portage/app-crypt/mit-krb5-1.17-r1/work/krb5-1.17/src' ...
 * This package has a file which has long been deprecated.  Please
 * update it to use instead as newer versions of autotools will die
 * when it finds this file.  See for details.
 * Running autoconf --force ...                                                  [ ok ]
 * Running autoheader ...                                                        [ ok ]
 * Running elibtoolize in: krb5-1.17/src/
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-crypt/mit-krb5-1.17-r1/work/krb5-1.17/src ...
 * abi_x86_x32.x32: running multilib-minimal_abi_src_configure
 * econf: updating krb5-1.17/src/config/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating krb5-1.17/src/config/config.sub with /usr/share/gnuconfig/config.sub
/var/tmp/portage/app-crypt/mit-krb5-1.17-r1/work/krb5-1.17/src/configure --prefix=/usr --build=x86_64-pc-linux-gnux32 --host=x86_64-pc-linux-gnux32 --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --docdir=/usr/share/doc/mit-krb5-1.17-r1 --htmldir=/usr/share/doc/mit-krb5-1.17-r1/html --libdir=/usr/libx32 --without-ldap --without-tcl --enable-nls --enable-pkinit --enable-thread-support --without-lmdb --without-hesiod --enable-shared --with-system-et --with-system-ss --enable-dns-for-realm --enable-kdc-lookaside-cache --with-system-verto --disable-rpath
configure: loading site script /usr/share/

<. rest is cut for brevity .>

--- Kai William Osen

Message body is not shown because sender requested not to inline it.