Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 704152 - multilib.eclass - build systems automagically find i686-pc-linux-gnu-* cross-compiler
Summary: multilib.eclass - build systems automagically find i686-pc-linux-gnu-* cross-...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-29 09:48 UTC by Alexander Weber
Modified: 2019-12-29 13:42 UTC (History)
1 user (show)

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


Attachments
libnotify-0.7.8-build.log (file_704152.txt,4.02 KB, text/plain)
2019-12-29 09:51 UTC, Alexander Weber
Details
net-print/cups-2.2.13 build.log (file_704152.txt,11.74 KB, text/plain)
2019-12-29 09:51 UTC, Alexander Weber
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Weber 2019-12-29 09:48:29 UTC
I installed cross-i686-pc-linux environment to speed up my old computer compiling. Since them I cannot update x11-libs/libnotify-0.7.8 and net-print/cups-2.2.13.
In the build.log's some lines does refer to i686 that looks wrong


x11-libs/libnotify-0.7.8:

C compiler for the build machine: x86_64-pc-linux-gnu-gcc -m32 (gcc 9.2.0 "x86_64-pc-linux-gnu-gcc (Gentoo 9.2.0-r2 p3) 9.2.0")
C compiler for the host machine: x86_64-pc-linux-gnu-gcc -m32 (gcc 9.2.0 "x86_64-pc-linux-gnu-gcc (Gentoo 9.2.0-r2 p3) 9.2.0")
WARNING: Env var AR seems to point to the cross compiler.
This is probably wrong, it should always point to the native compiler.
Build machine cpu family: x86
Build machine cpu: i686
WARNING: Env var PKG_CONFIG seems to point to the cross compiler.
This is probably wrong, it should always point to the native compiler.
Found pkg-config: /usr/bin/i686-pc-linux-gnu-pkg-config (0.29.2)
Found CMake: /usr/bin/cmake (3.14.6)
Run-time dependency gdk-pixbuf-2.0 found: NO (tried pkgconfig and cmake)

meson.build:38:0: ERROR: Dependency "gdk-pixbuf-2.0" not found, tried pkgconfig and cmake


net-print/cups-2.2.13:
./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --docdir=/usr/share/doc/cups-2.2.13 --htmldir=/usr/share/doc/cups-2.2.13/html CC=x86_64-pc-linux-gnu-gcc -m32 CXX=x86_64-pc-linux-gnu-g++ -m32 KRB5CONFIG=/usr/bin/i686-pc-linux-gnu-krb5-config --libdir=/usr/lib --localstatedir=/var --with-exe-file-perm=755 --with-rundir=/run/cups --with-cups-user=lp --with-cups-group=lp --with-docdir=/usr/share/cups/html --with-languages=en de --with-system-groups=lpadmin --with-xinetd=/etc/xinetd.d --disable-acl --enable-dbus --disable-debug --disable-debug-guards --disable-debug-printfs --without-java --disable-gssapi --disable-pam --without-python --disable-static --enable-threads --enable-gnutls --disable-systemd --disable-libusb --disable-avahi --disable-dnssd --without-perl --without-php --disable-libpaper
configure: loading site script /usr/share/config.site
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
..
checking for i686-pc-linux-gnu-libgnutls-config... no
checking for libgnutls-config... no
configure: error: Unable to enable SSL support.

Full build logs attached

# emerge --info
Portage 2.3.79 (python 2.7.17-final-0, default/linux/amd64/17.1/desktop, gcc-9.2.0, glibc-2.29-r7, 4.19.86-gentoo x86_64)
=================================================================
System uname: Linux-4.19.86-gentoo-x86_64-AMD_A8-7600_Radeon_R7,_10_Compute_Cores_4C+6G-with-gentoo-2.6
KiB Mem:    15402964 total,   6748628 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Sun, 29 Dec 2019 09:30:01 +0000
Head commit of repository gentoo: b3b664fe7287af7b6fd74acd72f872814c8c1a42
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.17::gentoo, 3.6.9::gentoo
dev-util/cmake:           3.14.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.2.0-r2::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r7::gentoo
Repositories:

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

crossdev
    location: /usr/local/crossdev-overlay
    masters: gentoo
    priority: 10

lua
    location: /var/lib/layman/lua
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
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 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask-write n"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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 config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de"
MAKEOPTS="-j6"
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"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam flac fortran fuse gdbm gif gimp git gtk heif iconv icu ipv6 java jpeg lcms ldap libnotify libtirpc lirc logrotate lua luajit mad mng mp3 mp4 mpeg multilib ncurses nls nptl ntfs ogg opengl openmp opus pam pango pcre pdf png policykit ppds printsupport pulseaudio python qt5 readline samba scanner sdl seccomp snmp spell split-usr sqlite ssl startup-notification svg tcpd tiff tk truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xinerama xml xv xvid zlib" ABI_X86="32 64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" CPU_FLAGS_X86="aes avx f16c fma3 fma4 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" 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" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="en de ru" LCD_DEVICES="imon" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LIRC_DEVICES="devinput" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="x86_64 aarch64 i386" QEMU_USER_TARGETS="aarch64 i386" RUBY_TARGETS="ruby24 ruby25" SANE_BACKENDS="hp net" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi vesa amdgpu" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



Reproducible: Always
Comment 1 Alexander Weber 2019-12-29 09:51:01 UTC
Created attachment 601630 [details]
libnotify-0.7.8-build.log
Comment 2 Alexander Weber 2019-12-29 09:51:55 UTC
Created attachment 601632 [details]
net-print/cups-2.2.13 build.log
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2019-12-29 12:02:21 UTC
Some probing points to eclass/multilib.eclass:324:

        x86_64*)
            export CFLAGS_x86=${CFLAGS_x86--m32}
            export CHOST_x86=${CTARGET/x86_64/i686}
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2019-12-29 13:39:36 UTC
> I installed cross-i686-pc-linux environment to speed up my old computer compiling.

This is an invalid tuple on multilib amd64 system. It will break your host system as 32-bit ABI of multilib system uses the same CHOST.

Fresh crossdev will refuse to insall on such systems:

    https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=1ebd639ccc8605f3e69b5973788101264902559e

To repair a system you need to uninstall i686-pc-linux-gnu target:
    # crossdev -C i686-pc-linux-gnu
Then probably rebuild a few packages that were broken by the install.

You have a few workarounds to get the tools back:
1. Install sys-devel/multilib-gcc-wrapper
2. Use an x86 chroot (or container) and have it disentangled from amd64 host system.
3. Use a magic tuple that does not collide with profiles, like i686-foo-linux-gnu. The 'foo' can be changed for anything.

I suggest [2.] or [1.].
Comment 5 Larry the Git Cow gentoo-dev 2019-12-29 13:42:07 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7667472068efcda8a475ed8f39bc436f3feb44f

commit b7667472068efcda8a475ed8f39bc436f3feb44f
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2019-12-29 13:41:27 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2019-12-29 13:42:00 +0000

    sys-devel/crossdev: ALLARCHES stable, bug #704152
    
    To prevent people from keeping breaking their multilib setups
    stabilize newer crossdev with a multilib check.
    
    Bug: https://bugs.gentoo.org/704152
    Package-Manager: Portage-2.3.84, Repoman-2.3.20
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 sys-devel/crossdev/crossdev-20191222.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)