Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 534140 - dev-util/kdevplatform-1.7.0 with dev-libs/boost-1.57 - moc: usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"
Summary: dev-util/kdevplatform-1.7.0 with dev-libs/boost-1.57 - moc: usr/include/boost...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 559320 (view as bug list)
Depends on:
Blocks: boost-1.57
  Show dependency tree
 
Reported: 2014-12-31 19:07 UTC by safety0ff.bugz
Modified: 2015-09-14 15:10 UTC (History)
4 users (show)

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


Attachments
Patch with workaround (kdevplatform-1.7.0-moc_boost.patch,526 bytes, patch)
2014-12-31 19:10 UTC, safety0ff.bugz
Details | Diff
build.log (build.log,912.75 KB, text/plain)
2015-01-06 17:41 UTC, safety0ff.bugz
Details
info (info,6.50 KB, text/plain)
2015-08-19 12:26 UTC, Toralf Förster
Details
dev-util:kdevplatform-1.7.1:20150819-031101.log.bz2 (dev-util:kdevplatform-1.7.1:20150819-031101.log.bz2,41.22 KB, application/x-bzip2)
2015-08-19 12:26 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,419.04 KB, text/plain)
2015-08-19 12:26 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description safety0ff.bugz 2014-12-31 19:07:22 UTC
Qt's moc system fails with: Parse error at "BOOST_JOIN"
Which correspond to the Qt bug: https://bugreports.qt-project.org/browse/QTBUG-22829

I will attach a patch with the workaround to this ticket.

Reproducible: Always
Comment 1 safety0ff.bugz 2014-12-31 19:10:40 UTC
Created attachment 392814 [details, diff]
Patch with workaround

Adding using the patch and adding:

PATCHES=( "${FILESDIR}/${P}-moc_boost.patch" )

To the ebuild allowed me to successfully compile kdevplatform 1.7.0 with boost 1.57 and Qt 4.8.6
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-02 18:48:02 UTC
1) Please attach the entire build log to this bug report.
2) Please post your `emerge --info' output in a comment.
Comment 3 safety0ff.bugz 2015-01-06 17:41:41 UTC
Created attachment 393356 [details]
build.log

Portage 2.2.14 (python 2.7.9-final-0, default/linux/amd64/13.0, gcc-4.7.4, glibc-2.19-r1, 3.18.1-gentoo x86_64)
=================================================================
System uname: Linux-3.18.1-gentoo-x86_64-Intel-R-_Core-TM-_i7-2630QM_CPU_@_2.00GHz-with-gentoo-2.2
KiB Mem:    12206664 total,   9087016 free
KiB Swap:   12946428 total,  12946428 free
Timestamp of tree: Tue, 06 Jan 2015 16:45:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p30-r1
dev-java/java-config:     2.2.0
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.9-r1, 3.2.5-r6, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6-r1, 1.12.6, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.4.7, 4.5.4, 4.7.4, 4.8.3::dlang, 4.9.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo gamerlay seden sunrise java science dlang OSSDL x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=generic -mfpmath=sse -ftree-vectorize -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/themes/oxygen-gtk/gtk-3.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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=native -mtune=generic -mfpmath=sse -ftree-vectorize -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-march=native -mtune=generic -mfpmath=sse -ftree-vectorize -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 strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_CA.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5 -s"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/gamerlay /var/lib/layman/seden /var/lib/layman/sunrise /var/lib/layman/java /var/lib/layman/science /var/lib/layman/dlang /var/lib/layman/OSSDL /usr/local/portage"
SYNC="rsync://rsync2.ca.gentoo.org/gentoo-portage/"
USE="X a52 aac aacplus acl acpi alsa amd64 amd64-linux apng aspell avahi avx bash-completion berkdb blas bluetooth bzip2 c++0x c++11 cairo cdda chm cimg cleartype cli clucene consolekit corefonts cracklib crypt cups curl custom-cflags cxx dbus declarative device-mapper dhcpcd dia djvu dri dts dvd dvdr ebook encodex exit expat ffmpeg fftw flac fontconfig fortran freetype gcrypt gdbm git gmp gnome go gstreamer gtk gudev hdf5 hwdb i965 iconv icu imagemagick inkjar int64 ipv6 jack java jit jpeg jpeg2k kde kpathsea ladspa lame lapack laptop ldap libnotify libsamplerate llvm-gcc lm_sensors lua lzma mad matroska mikmod minizip mmx mng modules mp3 mpeg mpi mplayer msn mtp multilib mysql ncurses ndiff networkmanager nls nptl nsplugin nss ogg oggvorbis openal opengl openmp opus oss pam pcre perl physfs png policykit portaudio postscript ps pulseaudio python qt4 qtscript readline resolvconf ruby19 samba semantic-desktop session smp sna sql sqlite sqlite3 sse sse2 sse3 sse4 sse4_1 ssl ssse3 subversion suid svg tbb tcpd 
texture-float theora threads tiff tk truetype type1 udev unicode usb v4l2 vaapi valgrind vorbis webkit wifi wxwidgets x264 xml 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_CA en_US en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2 python3_3 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel i965 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"
USE_PYTHON="2.7 3.2 3.3 3.4"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Johannes Huber (RETIRED) gentoo-dev 2015-02-10 21:27:55 UTC
There is no =dev-libs/boost-1.57 in tree...
Comment 5 Mark Wright gentoo-dev 2015-02-28 01:03:29 UTC
(In reply to Johannes Huber from comment #4)
> There is no =dev-libs/boost-1.57 in tree...
There is now.
Comment 6 David Kredba 2015-05-29 15:18:41 UTC
BLFS authors are fixing boost itself
http://www.linuxfromscratch.org/blfs/view/svn/general/boost.html

sed -e '1 i#ifndef Q_MOC_RUN' \
    -e '$ a#endif'            \
    -i boost/type_traits/detail/has_binary_operator.hpp
Comment 7 Ulenrich 2015-06-17 11:24:48 UTC
isn't this bug a wont fix?

dev-util/kdevplatform-1.7.0
not in portage tree, but
dev-util/kdevplatform-1.7.1

(In reply to safety0ff.bugz from comment #0)
> Qt's moc system fails with: Parse error at "BOOST_JOIN"
> Which correspond to the Qt bug:
> https://bugreports.qt-project.org/browse/QTBUG-22829

because words closing the bug there:
--- quote
Jan Niklas Hasse added a comment - 03/Mar/15 9:41 AM

As this seems to be fixed in 5.0.0, can the fix be backported to Qt 4.8.x?
Olivier Goffart (Woboq GmbH) added a comment - 03/Mar/15 9:51 AM

This is a major change and will never be backported to Qt4

Until you port your code to Qt5, you can use this work around of wrapping any problematic include within #ifndef Q_MOC_RUN:

#ifndef Q_MOC_RUN
#include <boost/python.hpp>
#endif

Jan Niklas Hasse added a comment - 03/Mar/15 2:29 PM

I see, thanks for the info. The workaround does the trick
--- /quote
Comment 8 Andreas Proteus 2015-08-12 23:32:54 UTC
I was hit by this with kdevplatform-1.7.1 and the patch fixed it.
Thank you.
Comment 9 Kobboi 2015-08-16 22:01:13 UTC
Hitting this with 1.7.1 as well
Comment 10 Toralf Förster gentoo-dev 2015-08-19 12:26:46 UTC
Created attachment 409446 [details]
info

confirmed here\n  -----------------------------------------------------------------

  This is an unstable amd64 chroot image (named amd64-plasma-unstable_20150811-144142) at a hardened host acting as a tinderbox.

  Portage 2.2.20.1 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-4.9.3, glibc-2.21-r1, 4.1.4-hardened x86_64)
=================================================================
System uname: Linux-4.1.4-hardened-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
Comment 11 Toralf Förster gentoo-dev 2015-08-19 12:26:49 UTC
Created attachment 409448 [details]
dev-util:kdevplatform-1.7.1:20150819-031101.log.bz2
Comment 12 Toralf Förster gentoo-dev 2015-08-19 12:26:51 UTC
Created attachment 409450 [details]
emerge-history.txt
Comment 13 Thomas Capricelli 2015-09-03 14:06:47 UTC
Hitting this with 1.7.1 as well

The patch looks good to me, could it be added to portage please ? It's been there and tested/validated by several people, for months.
Comment 14 Jiří Moravec 2015-09-14 13:31:07 UTC
This bug hit me too. (kdevplatform-1.7.1, boost-1.57)
Comment 15 Michael Palimaka (kensington) gentoo-dev 2015-09-14 14:02:33 UTC
Thanks, fixed in git.

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad6352d9f0c3e97b7c8c72d1267ded6dbde06a03
Comment 16 Michael Palimaka (kensington) gentoo-dev 2015-09-14 15:10:59 UTC
*** Bug 559320 has been marked as a duplicate of this bug. ***