Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 631110 - dev-qt/qt-creator fails to parse system include path with gcc compiler
Summary: dev-qt/qt-creator fails to parse system include path with gcc compiler
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Davide Pesavento
URL: https://codereview.qt-project.org/205751
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2017-09-16 06:30 UTC by Cyril
Modified: 2018-05-21 05:24 UTC (History)
1 user (show)

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


Attachments
main.cpp (main.cpp,108 bytes, text/x-c++src)
2017-09-16 06:31 UTC, Cyril
Details
qmake.pro (qmaketest.pro,94 bytes, text/plain)
2017-09-16 06:32 UTC, Cyril
Details
g++ -v output (output.log,4.99 KB, text/x-log)
2017-09-16 06:32 UTC, Cyril
Details
environment patch (environment.cpp.patch,756 bytes, patch)
2017-09-17 13:39 UTC, Cyril
Details | Diff
gcctoolchain patch (gcctoolchain.cpp.patch,782 bytes, patch)
2017-09-17 13:40 UTC, Cyril
Details | Diff
4.4.0 ebuild (qt-creator-4.4.0.ebuild,5.35 KB, text/plain)
2017-09-17 13:41 UTC, Cyril
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cyril 2017-09-16 06:30:17 UTC
Code model failed with gcc kit

Reproducible: Always

Steps to Reproduce:


Create simple console qmake project (helloworld).

Kit Desktop, compiler autodetected GCC (/usr/x86_64-pc-linux-gnu/gcc-bin/6.4.0/g++)

Code model : fatal error: 'iostream' file not found

but project compile and run

Kit Desktop, compiler autodetected Clang (/usr/lib/llvm/5/bin/clang)

Code Model works fine




emerge --info
Portage 2.3.8 (python 3.4.6-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-6.4.0, glibc-2.25-r5, 4.13.2-gentoo x86_64)
=================================================================
System uname: Linux-4.13.2-gentoo-x86_64-Intel-R-_Core-TM-_i5-3570K_CPU_@_3.40GHz-with-gentoo-2.4.1
KiB Mem:     8053884 total,   3698896 free
KiB Swap:   16383996 total,  16383996 free
Timestamp of repository gentoo: Fri, 15 Sep 2017 18:30:01 +0000
Head commit of repository gentoo: fdbd8bef321b0affd852dfb1cd3d25a96318872d
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29 p1.0) 2.29
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo, 3.5.3::gentoo
dev-util/cmake:           3.9.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.30::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.29::gentoo
sys-devel/gcc:            6.4.0::gentoo
sys-devel/gcc-config:     1.8-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.25-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

cyril-overlay
    location: /usr/local/portage
    masters: gentoo

kde
    location: /var/lib/layman/kde
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/kde.git
    masters: gentoo
    priority: 50

mozilla
    location: /var/lib/layman/mozilla
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/mozilla.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: laymansync
    sync-uri: git://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

Installed sets: @gstreamer, @mon-kde-plasma
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch 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="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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 amd64 berkdb bluetooth branding bzip2 cairo caps cdda cdr cli cracklib crypt cups cxx dbus declarative dri dts dvd dvdr egl emboss encode exif fftw firefox flac fontforge fortran gdbm gif glamor gmp gpm iconv icu imagemagick inotify ipv6 jemalloc jpeg jpeg2k kde kipi kwallet lcms ldap libnotify lzma mad mng modules mp3 mp4 mpeg multilib ncurses networkmanager nls nptl nvenc ogg opencl openexr opengl openmp opus pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt3support qt5 raster readline samba scanner sdl seccomp semantic-desktop session spell ssl startup-notification svg systemd tcpd threads tiff truetype udev udisks unicode upnp upower usb v4l2 vaapi vdpau vorbis vpx wayland widgets wxwidgets x264 x265 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zeroconf zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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="aes avx f16c 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby24" SANE_BACKENDS="hp" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Cyril 2017-09-16 06:31:34 UTC
Created attachment 494734 [details]
main.cpp
Comment 2 Cyril 2017-09-16 06:32:16 UTC
Created attachment 494736 [details]
qmake.pro
Comment 3 Cyril 2017-09-16 06:32:50 UTC
Created attachment 494738 [details]
g++ -v output
Comment 4 Cyril 2017-09-17 11:50:06 UTC
solved with https://codereview.qt-project.org/#/c/205751/
Comment 5 Cyril 2017-09-17 13:39:54 UTC
Created attachment 494816 [details, diff]
environment patch
Comment 6 Cyril 2017-09-17 13:40:29 UTC
Created attachment 494818 [details, diff]
gcctoolchain patch
Comment 7 Cyril 2017-09-17 13:41:23 UTC
Created attachment 494820 [details]
4.4.0 ebuild
Comment 8 Davide Pesavento (RETIRED) gentoo-dev 2017-09-19 15:53:52 UTC
Thanks.
Upstream is still discussing on the proposed patch. I'll backport once they merge it.
Comment 9 Davide Pesavento (RETIRED) gentoo-dev 2018-05-21 05:24:57 UTC
Fixed in 4.6.1