Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 587764 - app-crypt/pinentry[qt5] fails to compile against Qt-5.7.0: error: Qt requires C++11 support
Summary: app-crypt/pinentry[qt5] fails to compile against Qt-5.7.0: error: Qt requires...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Crypto team [DISABLED]
URL: https://lists.gnupg.org/pipermail/gnu...
Whiteboard:
Keywords:
Depends on:
Blocks: qt5-c++11
  Show dependency tree
 
Reported: 2016-07-02 07:31 UTC by Franz Trischberger
Modified: 2016-08-12 07:42 UTC (History)
3 users (show)

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


Attachments
build.log (pinentry-0.9.7.build.log,221.02 KB, text/x-log)
2016-07-02 07:31 UTC, Franz Trischberger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Franz Trischberger 2016-07-02 07:31:27 UTC
Created attachment 439370 [details]
build.log

In file included from /usr/include/qt5/QtCore/qatomic.h:46:0,
                 from /usr/include/qt5/QtCore/qglobal.h:1145,
                 from /usr/include/qt5/QtGui/qwindowdefs.h:43,
                 from /usr/include/qt5/QtWidgets/qwidget.h:43,
                 from /usr/include/qt5/QtWidgets/qdialog.h:43,
                 from /usr/include/qt5/QtWidgets/qmessagebox.h:43,
                 from /usr/include/qt5/QtWidgets/QMessageBox:1,
                 from pinentryconfirm.h:23,
                 from main.cpp:31:
/usr/include/qt5/QtCore/qbasicatomic.h:61:4: error: #error "Qt requires C++11 support"
 #  error "Qt requires C++11 support"

I can't say if it fails with Qt <5.7 as qt5-USE-Flag got activated after my upgrade to 5.7.0 (due to profile switch). This is latest pinentry from ~arch (0.9.7) but most likely it will fail with earlier versions that have USE="qt5".

==============================

emerge --info
Portage 2.3.0 (python 3.4.4-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-4.9.3, glibc-2.23-r2, 4.6.3-gentoo x86_64)
=================================================================
System uname: Linux-4.6.3-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.2
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Sat, 02 Jul 2016 06:02:27 +0000
sh bash 4.3_p42-r1
ld GNU gold (Gentoo 2.25.1 p1.1 2.25.1) 1.11
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p42-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0-r1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.4::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.21.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /var/repositories/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000

dlang
    location: /var/repositories/dlang
    sync-type: git
    sync-uri: https://github.com/gentoo/dlang.git
    masters: gentoo

ff2000
    location: /var/repositories/ff2000
    sync-type: git
    sync-uri: git://github.com/ff2000/gentoo-overlay.git
    masters: gentoo

gnome
    location: /var/repositories/gnome
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/proj/gnome.git
    masters: gentoo

kde
    location: /var/repositories/kde
    sync-type: git
    sync-uri: git://github.com/gentoo/kde.git
    masters: gentoo

local
    location: /var/repositories/local
    masters: gentoo

qt
    location: /var/repositories/qt
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/proj/qt.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=sandybridge -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0"
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"
CXXFLAGS="-march=sandybridge -O2 -pipe -ggdb"
DISTDIR="/var/distfiles"
EMERGE_DEFAULT_OPTS="--quiet"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug 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.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j10"
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 alsa amd64 apm berkdb bluray branding bzip2 cairo cdda cdr cli cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm iconv introspection ipv6 jpeg jpeg2k kde lcms mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl nvidia ogg opengl openmp pam pango pcre pdf phonon png policykit ppds pulseaudio qml qt3support qt4 qt5 readline sdl seccomp semantic-desktop session spell sse sse2 sse3 sse4 sse4_1 ssl ssse3 startup-notification svg systemd tcpd theora threads tiff truetype udev udisks unicode upower usb vaapi vorbis vpx wayland widgets wxwidgets x264 xattr xcb xcomposite xml xscreensaver xv xvid zlib zsh-completion" ABI_X86="64" 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="auth_digest authn_file dav dav_fs authz_groupfile" CALLIGRA_FEATURES="krita" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev wacom" KERNEL="linux" L10N="de de-DE" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de de_DE" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="i915 i965 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Franz Trischberger 2016-07-02 07:36:42 UTC
Yay, I just saw that makemkv also fails with the same error. Probably we need a tracker bug for packages failing to build against Qt-5.7 due to missing C++11 support?
Comment 2 Kristian Fiskerstrand (RETIRED) gentoo-dev 2016-07-11 07:24:15 UTC
(In reply to Franz Fellner from comment #1)
> Yay, I just saw that makemkv also fails with the same error. Probably we
> need a tracker bug for packages failing to build against Qt-5.7 due to
> missing C++11 support?

If it affects multiple packages caused by that, a tracker sounds exactly right. Adding qt team to CC
Comment 3 Jan-Matthias Braun 2016-07-14 12:10:36 UTC
Hi! In my experience, additional packages with the same problem are

media-libs/mlt and
app-emulation/virtualbox

malt can be worked around by adding --std=c++11 to CFLAGS, and virtualbox can be worked around by adding the c++11 standard to the pkg-config file.

Cheers,

Jan
Comment 4 Davide Pesavento (RETIRED) gentoo-dev 2016-07-16 13:49:05 UTC
(In reply to Jan-Matthias Braun from comment #3)
> Hi! In my experience, additional packages with the same problem are
> 
> media-libs/mlt and
> app-emulation/virtualbox

File separate bug reports please.
Comment 5 Michael Palimaka (kensington) gentoo-dev 2016-08-11 08:37:02 UTC
Please report this upstream as the Gentoo maintainer refuses to apply a trivial downstream fix.
Comment 6 Kristian Fiskerstrand (RETIRED) gentoo-dev 2016-08-11 15:53:27 UTC
(In reply to Michael Palimaka (kensington) from comment #5)
> Please report this upstream as the Gentoo maintainer refuses to apply a
> trivial downstream fix.

if it was a proper fix that can be upstreamed and not a silly hack it wouldn't be an issue.

Can you try the pinentry-0.9.7-r1 found in layman -a k_f ? That adds the following patch: http://git.sumptuouscapital.com/?p=portage-overlay.git;a=blob;f=app-crypt/pinentry/files/pinentry-0.9.7-require-CPP11-for-qt-5-7.patches;h=eb2fda33a6443454578891331d6d480684bd573f;hb=166ad862060bfe62e38e81b784bed12508d5982a
Comment 7 Michael Palimaka (kensington) gentoo-dev 2016-08-11 16:33:32 UTC
(In reply to Kristian Fiskerstrand from comment #6)
> (In reply to Michael Palimaka (kensington) from comment #5)
> > Please report this upstream as the Gentoo maintainer refuses to apply a
> > trivial downstream fix.
> 
> if it was a proper fix that can be upstreamed and not a silly hack it
> wouldn't be an issue.

It's not a silly hack, it's commonly used in the tree as required. In fact, pinentry already conditionally calls append-cxxflags -std=gnu++11.

> Can you try the pinentry-0.9.7-r1 found in layman -a k_f ? That adds the
> following patch:
> http://git.sumptuouscapital.com/?p=portage-overlay.git;a=blob;f=app-crypt/
> pinentry/files/pinentry-0.9.7-require-CPP11-for-qt-5-7.patches;
> h=eb2fda33a6443454578891331d6d480684bd573f;
> hb=166ad862060bfe62e38e81b784bed12508d5982a

Thanks, it builds and runs successfully.