Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 639494 - >=dev-qt/qtcore-5.9 does not respect CXX and *FLAGS when doing configure tests
Summary: >=dev-qt/qtcore-5.9 does not respect CXX and *FLAGS when doing configure tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords: REGRESSION
: 637410 644596 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-12-02 11:49 UTC by Michał Górny
Modified: 2018-01-22 18:36 UTC (History)
2 users (show)

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


Attachments
dev-qt:qtcore-5.9.3:20171202-114206.log (dev-qt:qtcore-5.9.3:20171202-114206.log,189.98 KB, text/plain)
2017-12-02 11:49 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-12-02 11:49:01 UTC
Created attachment 507676 [details]
dev-qt:qtcore-5.9.3:20171202-114206.log

Checking for GLib... 
Trying source 0 (type pkgConfig) of library glib ...
+ /usr/bin/pkg-config --exists --silence-errors glib-2.0 gthread-2.0
+ /usr/bin/pkg-config --modversion glib-2.0 gthread-2.0
> 2.52.3
> 2.52.3
+ /usr/bin/pkg-config --libs-only-L glib-2.0 gthread-2.0
+ /usr/bin/pkg-config --libs-only-l glib-2.0 gthread-2.0
> -lgthread-2.0 -lglib-2.0
+ /usr/bin/pkg-config --cflags glib-2.0 gthread-2.0
> -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
+ cd /var/tmp/portage/dev-qt/qtcore-5.9.3/work/qtbase-opensource-src-5.9.3/config.tests/glib && /var/tmp/portage/dev-qt/qtcore-5.9.3/work/qtbase-opensource-src-5.9.3/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared use_gold_linker warn_off console single_arch" 'LIBS += -lgthread-2.0 -lglib-2.0' 'QMAKE_CFLAGS += -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include' 'QMAKE_CXXFLAGS += -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include' /var/tmp/portage/dev-qt/qtcore-5.9.3/work/qtbase-opensource-src-5.9.3/config.tests/glib
+ cd /var/tmp/portage/dev-qt/qtcore-5.9.3/work/qtbase-opensource-src-5.9.3/config.tests/glib && MAKEFLAGS= /usr/bin/gmake
> g++ -c -pipe -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -O2 -w -fPIC  -I. -I/var/tmp/portage/dev-qt/qtcore-5.9.3/work/qtbase-opensource-src-5.9.3/mkspecs/linux-g++ -o main.o main.cpp


Note it's calling 'g++' instead of 'x86_64-whatever'. As a result, it uses the wrong compiler and fails horribly.


---
Portage 2.3.14 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop, gcc-6.4.0, glibc-2.26-r3, 4.13.0-pf10-pomiocik+ x86_64)
=================================================================
System uname: Linux-4.13.0-pf10-pomiocik+-x86_64-Intel-R-_Core-TM-_i3-3217U_CPU_@_1.80GHz-with-gentoo-2.4.1
Timestamp of repository gentoo: Sat, 02 Dec 2017 07:42:48 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
distcc 3.2rc1 x86_64-pc-linux-gnu [enabled]
ccache version 3.3.4 [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.6-r1::gentoo, 3.5.4-r1::gentoo, 3.6.3-r1::gentoo
dev-util/ccache:          3.3.4-r1::gentoo
dev-util/cmake:           3.10.0::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0::gentoo
sys-devel/gcc-config:     1.9.0-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-umask: 027
    sync-uri: https://github.com/swegener/gentoo-portage
    priority: -1000

mgorny
    location: /home/mgorny/mgorny-repo
    sync-umask: 027
    masters: gentoo
    priority: 10000

Installed sets: @mg_cb_agent, @mg_qanalytics
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CC="x86_64-pc-linux-gnu-gcc-6.4.0"
CFLAGS="-O2 -pipe -march=core-avx-i --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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="x86_64-pc-linux-gnu-g++-6.4.0"
CXXFLAGS="-O2 -pipe -march=core-avx-i --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --keep-going --ask --dynamic-deps=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs binpkg-multi-instance buildpkg cgroup collision-protect config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox lmirror merge-sync multilib-strict news preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://pomiot.local/ http://mirror.netcologne.de/gentoo/ http://gentoo.mirror.web4u.cz/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://gentoo.mirror.pw.edu.pl/ http://ftp.vectranet.pl/gentoo/ http://ftp.fi.muni.cz/pub/linux/gentoo/"
LANG="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
MAKEOPTS="-j12"
PKGDIR="/var/cache/portage/packages"
PORTAGE_COMPRESS="lzip"
PORTAGE_COMPRESS_FLAGS="-9"
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 adns alsa amd64 amr avx bash-completion berkdb bluetooth branding bzip2 cairo caps cdda cdr cli cracklib crypt cups cxx dbus djvu dri dts dvd dvdr emboss encode exif fam fftw firefox flac fortran gd gdbm gif glamor gmp gnome-keyring gnutls gphoto2 gtk hdri iconv icu id3tag idn imagemagick ipv6 jbig jit jpeg jpeg2k lapack lcms libedit liblockfile libnotify libsecret lzma lzo mad mmx mng modules mp3 mp4 mpeg mpfr mtp multilib ncurses nls nptl ogg openexr opengl openmp opus pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 qt5 readline schroedinger sctp sdl seccomp session smp sndfile speex spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd tcpd theora threads tiff truetype udev udisks unicode upnp upower usb v4l vaapi vdpau vim-syntax vorbis vpx webp wmf wxwidgets x264 xattr xcb xcomposite xml xpm xv xvid zeroconf zlib" ABI_X86="64 32" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="pl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl" LLVM_TARGETS="*" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6 pypy pypy3" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="nouveau intel" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Davide Pesavento gentoo-dev 2017-12-03 05:54:12 UTC
Yes, we're aware. Not only CXX but also CXXFLAGS and friends aren't respected.
Comment 2 Davide Pesavento gentoo-dev 2017-12-03 05:56:30 UTC
*** Bug 637410 has been marked as a duplicate of this bug. ***
Comment 3 Larry the Git Cow gentoo-dev 2017-12-22 12:00:07 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/qt.git/commit/?id=c6ec22f69391bcb6d8632a6888c3a8f3b2a415ad

commit c6ec22f69391bcb6d8632a6888c3a8f3b2a415ad
Author:     Michael Palimaka <kensington@gentoo.org>
AuthorDate: 2017-12-10 10:34:27 +0000
Commit:     Michael Palimaka <kensington@gentoo.org>
CommitDate: 2017-12-22 11:59:57 +0000

    qt5-build.eclass: fix respecting toolchain
    
    Bug: https://bugs.gentoo.org/639494

 eclass/qt5-build.eclass | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)}
Comment 4 Larry the Git Cow gentoo-dev 2018-01-14 05:50:44 UTC
The bug has been closed via the following commit(s):

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

commit f1db39369d686277aa4f6b087069b76955fa1946
Author:     Michael Palimaka <kensington@gentoo.org>
AuthorDate: 2017-12-10 10:34:27 +0000
Commit:     Michael Palimaka <kensington@gentoo.org>
CommitDate: 2018-01-14 05:50:33 +0000

    qt5-build.eclass: fix respecting toolchain in 5.9 and later
    
    Closes: https://bugs.gentoo.org/639494

 eclass/qt5-build.eclass | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
Comment 5 Davide Pesavento gentoo-dev 2018-01-22 18:36:21 UTC
*** Bug 644596 has been marked as a duplicate of this bug. ***