Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 719382 - dev-libs/glib-2.62.6[abi_x86_32] with dev-util/meson-0.54.0 ERROR: Can not run test applications in this cross environment
Summary: dev-libs/glib-2.62.6[abi_x86_32] with dev-util/meson-0.54.0 ERROR: Can not ru...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
: 719476 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-04-25 10:29 UTC by Livid
Modified: 2020-05-27 13:52 UTC (History)
5 users (show)

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


Attachments
failed mesa multilib build (mesa-19.3.5_temp_build.log.xz,28.12 KB, application/x-xz)
2020-05-27 05:51 UTC, Markus Peloquin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Livid 2020-04-25 10:29:14 UTC
glib fails to build on a multilib system. The error message is:

../glib-2.62.6/meson.build:866:4: ERROR: Can not run test applications in this cross environment.

Reproducible: Always

Steps to Reproduce:
1. ABI_X86=32 emerge -v glib
Comment 1 Livid 2020-04-25 10:34:57 UTC
Apparently I can't attach files for some reason, attachment.cgi gives "access denied" so here's the build log https://gist.github.com/lierdakil/fb07fbfe7e6e83b3fa3f0a7da6f0ce19 which isn't that interesting anyway, at least as far as I can tell.
Comment 2 David Carlos Manuelda 2020-04-25 12:39:16 UTC
Same thing happens with 2.64.1
Comment 3 Larry the Git Cow gentoo-dev 2020-04-25 15:21:34 UTC
The bug has been referenced in the following commit(s):

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

commit db6ae48cbb32925f1e342cbfe48e4ea573b64c9a
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2020-04-25 15:19:31 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2020-04-25 15:20:40 +0000

    profiles: mask dev-util/meson-0.54.0 again
    
    Bug: https://bugs.gentoo.org/719382
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 profiles/package.mask | 5 +++++
 1 file changed, 5 insertions(+)
Comment 4 jospezial 2020-04-25 21:14:48 UTC
(In reply to Livid from comment #0)
> glib fails to build on a multilib system. The error message is:
> 
> ../glib-2.62.6/meson.build:866:4: ERROR: Can not run test applications in
> this cross environment.
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. ABI_X86=32 emerge -v glib

media-libs/mesa-9999 showed the same
"ERROR: Can not run test applications in this cross environment."
error with dev-util/meson-0.54.0
Comment 5 Mart Raudsepp gentoo-dev 2020-04-26 05:52:31 UTC
*** Bug 719476 has been marked as a duplicate of this bug. ***
Comment 6 Mike Gilbert gentoo-dev 2020-04-27 00:45:03 UTC
Reported the regression upstream.
Comment 7 Larry the Git Cow gentoo-dev 2020-05-02 21:40:02 UTC
The bug has been closed via the following commit(s):

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

commit d07b42b62e9a436d7a500764274c4f2331548976
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2020-05-02 21:38:14 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2020-05-02 21:39:16 +0000

    profiles: drop mask on dev-util/meson-0.54
    
    Closes: https://bugs.gentoo.org/719382
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 profiles/package.mask | 6 ------
 1 file changed, 6 deletions(-)

Additionally, it has been referenced in the following commit(s):

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

commit ef894cec8dee3758cfde620b87d10b2774419cdf
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2020-04-25 18:55:39 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2020-05-02 21:37:51 +0000

    meson.eclass: implement support for native machine files
    
    Using a native file avoids putting meson into cross-compiler mode for
    multilib builds.
    
    Reference: https://mesonbuild.com/Machine-files.html
    Reference: https://mesonbuild.com/Native-environments.html
    
    Bug: https://bugs.gentoo.org/719382
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 eclass/meson.eclass | 107 ++++++++++++++++++++++++++++++++++++++++++----------
 1 file changed, 87 insertions(+), 20 deletions(-)
Comment 8 Markus Peloquin 2020-05-27 05:50:43 UTC
The fix of this bug <https://github.com/gentoo-mirror/gentoo/commit/ef894cec8dee3758cfde620b87d10b2774419cdf> breaks the multilib compile of Mesa. I'll attach the failed build log. I'll try to pull out the similar build steps from a successful build, essentially using the version from ef894cec~1.


Portage 2.3.99 (python 3.8.3-final-0, default/linux/amd64/17.1, gcc-9.2.0, glibc-2.30-r8, 5.6.8-gentoo x86_64)
=================================================================
System uname: Linux-5.6.8-gentoo-x86_64-AMD_FX-tm-8150_Eight-Core_Processor-with-glibc2.2.5
KiB Mem:    16409864 total,   1822496 free
KiB Swap:   33554428 total,  33538800 free
Timestamp of repository gentoo: Tue, 26 May 2020 02:15:01 +0000
Head commit of repository gentoo: 9673cee00f62f0f86c614507129b8914cde8fde9
sh bash 5.0_p17
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          5.0_p17::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.18::gentoo, 3.6.10-r2::gentoo, 3.7.7-r2::gentoo, 3.8.3::local
dev-util/cmake:           3.16.5::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.17::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo, 2.33.1-r1::gentoo
sys-devel/gcc:            9.2.0-r2::gentoo, 9.3.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r8::gentoo
Repositories:

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

local
    location: /usr/local/portage
    masters: gentoo

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

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CC="clang"
CFLAGS="-march=native -O3 -pipe -flto=thin"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXX="clang++"
CXXFLAGS="-march=native -O3 -pipe -flto=thin"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
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="-march=native -O3 -pipe -flto=thin"
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 qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O3 -pipe -flto=thin"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O3 -fuse-ld=lld -rtlib=compiler-rt"
MAKEOPTS="-j9"
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="/var/tmp"
USE="X acl amd64 berkdb bzip2 cli crypt dri fontconfig iconv icu idn ipv6 libedit libressl libtirpc lzma maildir mmx multilib ncurses nls nptl openmp pam pcre pic seccomp split-usr sse sse2 ssl tcpd udev unicode vim-syntax wayland xattr xcb zlib zsh-completion zstd" ABI_X86="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-m
odem 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" CA
LLIGRA_FEATURES="karbon sheets words" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx fma4 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" CURL_SSL="libressl" 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" GRU
B_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard libinput mouse" KERNEL="linux" L10N="de en fr nb nn no" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python3_6 python3_7 python3_8" RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="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:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 Markus Peloquin 2020-05-27 05:51:46 UTC
Created attachment 641988 [details]
failed mesa multilib build
Comment 10 Markus Peloquin 2020-05-27 09:58:41 UTC
Primary difference between a broken & working ini (x86), produced by the eclass:

@@ -1,7 +1,7 @@
 [binaries]
 ar = ['llvm-ar']
-c = ['clang']
-cpp = ['clang++']
+c = ['clang', '-m32']
+cpp = ['clang++', '-m32']
 fortran = ['gfortran', '-m32']
 llvm-config = 'i686-pc-linux-gnu-llvm-config'
 objc = ['cc']

If I unset BUILD_CC/BUILD_CXX in my make.conf, it generated a proper config. Problem is, clang is my system compiler and some packages needed it set to this.
Comment 11 Mike Gilbert gentoo-dev 2020-05-27 13:52:21 UTC
That's bug 723224.