Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 734098 - x11-base/xorg-proto-2020.1 - meson.build:21:0: ERROR: Unknown compiler(s): [['x86_64-pc-linux-gnu-gcc']]
Summary: x11-base/xorg-proto-2020.1 - meson.build:21:0: ERROR: Unknown compiler(s): [[...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-27 13:57 UTC by Janpieter Sollie
Modified: 2020-08-09 09:40 UTC (History)
2 users (show)

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


Attachments
build.log of failing PC (file_734098.txt,2.48 KB, text/plain)
2020-07-27 14:02 UTC, Janpieter Sollie
Details
meson log of failing PC (file_734098.txt,986 bytes, text/plain)
2020-07-27 14:04 UTC, Janpieter Sollie
Details
meson.ini of failing PC (file_734098.txt,1.46 KB, text/plain)
2020-07-27 14:09 UTC, Janpieter Sollie
Details
make.conf of failing PC (file_734098.txt,1.23 KB, text/plain)
2020-07-27 14:20 UTC, Janpieter Sollie
Details
make.conf of working PC (file_734098.txt,1.95 KB, text/plain)
2020-07-27 14:22 UTC, Janpieter Sollie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Janpieter Sollie 2020-07-27 13:57:16 UTC
on some PCs, xorg-proto installation fails with the error described above.
on others, it does not.  Cause is currently unknown.  re-emerged both on different PCs, but no luck: failing one keeps failing, working one keeps working
I attach the build log of the failed one + emerge info + make.conf of both PCs

Reproducible: Sometimes

Steps to Reproduce:
1.emerge xorg-proto 2020.1
2.
3.
Actual Results:  
meson crashes: Unknown compiler(s): [['x86_64-pc-linux-gnu-gcc']]

Expected Results:  
xorg-proto installs

Failing target:
Portage 2.3.99 (python 3.7.8-final-0, default/linux/amd64/17.1/no-multilib, gcc-9.3.0, glibc-2.31-r5, 5.8.0-rc6 x86_64)
=================================================================
System uname: Linux-5.8.0-rc6-x86_64-AMD_Ryzen_Embedded_V1605B_with_Radeon_Vega_Gfx-with-gentoo-2.6
KiB Mem:     7140720 total,   5879656 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 26 Jul 2020 09:30:01 +0000
Head commit of repository gentoo: 6847287af89502cc4bce9824f5ffaba1e766fbc7
sh bash 5.0_p17
ld GNU ld (Gentoo 2.32 p2) 2.32.0
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          5.0_p17::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          2.7.18::gentoo, 3.6.11-r1::gentoo, 3.7.8-r1::gentoo, 3.8.3-r1::gentoo
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.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r6::gentoo, 2.32-r1::gentoo, 2.34-r1::gentoo
sys-devel/gcc:            8.4.0::gentoo, 9.3.0::gentoo
sys-devel/gcc-config:     2.3::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.7::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r5::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: no
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24

FireBurn
    location: /var/lib/layman/FireBurn
    sync-type: laymansync
    sync-uri: git://github.com/FireBurn/Overlay.git
    masters: gentoo
    priority: 50

rocm
    location: /var/lib/layman/rocm
    sync-type: laymansync
    sync-uri: https://github.com/justxi/rocm.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver1 -O3 -pipe -pthread -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /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"
CXXFLAGS="-march=znver1 -O3 -pipe -pthread -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="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="-march=znver1 -O3 -pipe -pthread -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 qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=znver1 -O3 -pipe -pthread -O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://mirrors.soeasyto.com/distfiles.gentoo.org/ ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="en_US.utf8"
LDFLAGS="-march=znver1 -O3 -pipe -pthread -Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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 alsa amd64 berkdb bzip2 cli crypt dbus dri dvd elogind evdev fortran gdbm iconv ipv6 jpeg libtirpc mpv ncurses nls nptl openmp pam pcre png readline seccomp split-usr sqlite ssl tcpd tiff unicode xattr xfce xfce4 zlib" 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-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="mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2 avx avx2 aes fma3" 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="keyboard mouse libinput evdev" KERNEL="linux" L10N="en nl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU X86" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python3_7" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Working target:
Portage 2.3.103 (python 3.7.8-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-9.3.0, glibc-2.31-r5, 5.6.14 x86_64)
=================================================================
System uname: Linux-5.6.14-x86_64-Intel-R-_Core-TM-_i5-7600_CPU_@_3.50GHz-with-gentoo-2.6
KiB Mem:    16421060 total,   2776732 free
KiB Swap:   15624188 total,  15624188 free
Timestamp of repository gentoo: Mon, 27 Jul 2020 13:00:01 +0000
Head commit of repository gentoo: 3a003a1124459f26d6b955b3e7d12401a1d2b73d
Timestamp of repository poly-c: Mon, 27 Jul 2020 09:25:07 +0000
sh bash 5.0_p17
ld GNU ld (Gentoo 2.34 p4) 2.34.0
distcc 3.3.3 x86_64-pc-linux-gnu [enabled]
app-shells/bash:          5.0_p17::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18::gentoo, 3.6.11-r1::gentoo, 3.7.8-r1::gentoo, 3.8.3-r1::gentoo
dev-util/cmake:           3.16.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.16.2::gentoo
sys-devel/binutils:       2.34-r1::gentoo
sys-devel/gcc:            8.4.0-r1::gentoo, 9.3.0::gentoo, 10.1.0-r2::gentoo
sys-devel/gcc-config:     2.3.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.7::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r5::gentoo
Repositories:

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

poly-c
    location: /var/lib/layman/poly-c
    sync-type: laymansync
    sync-uri: rsync://rsync.gentoofan.org/poly-c
    masters: gentoo
    priority: 50

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

tlp
    location: /var/lib/layman/tlp
    sync-type: laymansync
    sync-uri: git://github.com/dywisor/tlp-portage.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=skylake -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=skylake -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="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 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 splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.leaseweb.com/gentoo/ "
LANG="nl_BE.ISO-8859-15"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB en_US nl fr"
MAKEOPTS="-j15 -l4"
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 a52 aac acl acpi activities alsa amd64 avahi berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli crypt cups curl dbus declarative directfb dri dts dvd dvdr elogind emboss encode exif ffmpeg flac fortran gdbm gif gles2 gpm gtk iconv icu ipv6 jpeg kde kipi kwallet lcms ldap libinput libnotify libtirpc mad mng mp3 mp4 mpeg mpv multilib ncurses networkmanager nls nptl nsplugin ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio python3 qml qt5 readline sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg tcpd threads tiff truetype udev udisks unicode upower usb vdpau vorbis vulkan webstart widgets wifi wxwidgets x264 xattr xcb xml xv xvid xvmc zlib" 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-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="mmx mmxext sse sse2 sse3 avx avx2 sse4_1 sse4_2 ssse3 fma3 aes" 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 efi-64" INPUT_DEVICES="libinput keyboard mouse synaptics" KERNEL="linux" L10N="en-GB en nl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="NVPTX X86" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python3_7 python3_8" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Janpieter Sollie 2020-07-27 14:02:45 UTC
Created attachment 650990 [details]
build.log of failing PC
Comment 2 Janpieter Sollie 2020-07-27 14:04:18 UTC
Created attachment 650992 [details]
meson log of failing PC
Comment 3 Janpieter Sollie 2020-07-27 14:09:03 UTC
Created attachment 650994 [details]
meson.ini of failing PC
Comment 4 Janpieter Sollie 2020-07-27 14:20:43 UTC
Created attachment 650996 [details]
make.conf of failing PC
Comment 5 Janpieter Sollie 2020-07-27 14:22:12 UTC
Created attachment 650998 [details]
make.conf of working PC
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2020-07-30 11:37:40 UTC
Please post your output for `emerge -vp dev-util/meson' in a comment.
Comment 7 Janpieter Sollie 2020-07-30 11:54:53 UTC
# emerge -pv dev-util/meson

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

Calculating dependencies... done!
[ebuild   R   ~] dev-util/meson-0.54.3::gentoo  USE="(-test)" PYTHON_TARGETS="python3_7 python3_8* -python3_6" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
Comment 8 Matt Turner gentoo-dev 2020-07-30 20:07:20 UTC
What does 'gcc-config -l' say? What does `x86_64-pc-linux-gnu-gcc -v` say?

Also, you have some strange looking lines in your make.conf mentioning "x86_64-pc-linux-gnu" that look like attempts to workaround this problem or something...? Have you done something funky with the toolchain that could have caused this?
Comment 9 Janpieter Sollie 2020-07-31 06:06:43 UTC
(In reply to Matt Turner from comment #8)
> What does 'gcc-config -l' say? What does `x86_64-pc-linux-gnu-gcc -v` say?
> 
> Also, you have some strange looking lines in your make.conf mentioning
> "x86_64-pc-linux-gnu" that look like attempts to workaround this problem or
> something...? Have you done something funky with the toolchain that could
> have caused this?

What do you mean with "Something funny"?  Did I try to woraround this problem? yes ... I tried everything I knew, but rolled back every change that did not work (such as enabling distcc or disabling it - no change).  gcc-config -l says I have 9.3.0 (active) and 10.2.0 installed.  I always keep a 2nd compiler in case the 1st one would get damaged.
Comment 10 Janpieter Sollie 2020-07-31 06:09:16 UTC
sorry, I saw I forgot the gcc -v output:
Using built-in specs.
COLLECT_GCC=x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/9.3.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-9.3.0-r1/work/gcc-9.3.0/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/9.3.0 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.3.0 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.3.0/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.3.0/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/9.3.0/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 9.3.0-r1 p3' --disable-esp --enable-libstdcxx-time --with-build-config=bootstrap-lto --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libmudflap --disable-libssp --disable-libada --disable-systemtap --enable-vtable-verify --enable-lto --with-isl --disable-isl-version-check --enable-default-pie --enable-default-ssp
Thread model: posix
gcc version 9.3.0 (Gentoo 9.3.0-r1 p3)
Comment 11 Matt Turner gentoo-dev 2020-07-31 17:34:57 UTC
floppym: any ideas?
Comment 12 Mike Gilbert gentoo-dev 2020-07-31 19:40:00 UTC
Reading through the relevant code in meson:

https://github.com/mesonbuild/meson/blob/master/mesonbuild/environment.py#L947

Basically, it runs $CC --version, and greps the output. If it finds "Free Software Foundation", it then invokes "$CC -E -dM -", and looks __GNUC__ and other macros in the output.

https://github.com/mesonbuild/meson/blob/master/mesonbuild/environment.py#L1005

https://github.com/mesonbuild/meson/blob/master/mesonbuild/environment.py#L1014

https://github.com/mesonbuild/meson/blob/master/mesonbuild/environment.py#L1023

https://github.com/mesonbuild/meson/blob/46a45570212fbbe559cb42f1732021ee037b660c/mesonbuild/environment.py#L733

If I were to debug this, I would probably add some debug output statements to the environment.py module to see exactly what commands are being run, and look at the output produced.

Given that nobody else has reported this issue, I tend to believe this is some issue with the reporter's system, and he will need to do some debugging.
Comment 13 Janpieter Sollie 2020-08-02 06:48:58 UTC
(In reply to Mike Gilbert from comment #12)
> Reading through the relevant code in meson:
> 
> https://github.com/mesonbuild/meson/blob/master/mesonbuild/environment.
> py#L947
> 
> Basically, it runs $CC --version, and greps the output. If it finds "Free
> Software Foundation", it then invokes "$CC -E -dM -", and looks __GNUC__ and
> other macros in the output.
> 
> https://github.com/mesonbuild/meson/blob/master/mesonbuild/environment.
> py#L1005
> 
> https://github.com/mesonbuild/meson/blob/master/mesonbuild/environment.
> py#L1014
> 
> https://github.com/mesonbuild/meson/blob/master/mesonbuild/environment.
> py#L1023
> 
> https://github.com/mesonbuild/meson/blob/
> 46a45570212fbbe559cb42f1732021ee037b660c/mesonbuild/environment.py#L733
> 
> If I were to debug this, I would probably add some debug output statements
> to the environment.py module to see exactly what commands are being run, and
> look at the output produced.
> 
> Given that nobody else has reported this issue, I tend to believe this is
> some issue with the reporter's system, and he will need to do some debugging.

Hi Mike,

Any suggestion about which debug code I should actually add? my experience with Meson is limited, so a quick suggestion would be useful here
Comment 14 Janpieter Sollie 2020-08-09 09:40:13 UTC
emerge -eav solved the info