Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 290346 - app-office/openoffice-3.1.1 compile error using sys-devel/gcc-4.4.2 in dev-libs/boost-1.35.0-r2 include /usr/include/boost/mpl/apply_wrap.hpp
Summary: app-office/openoffice-3.1.1 compile error using sys-devel/gcc-4.4.2 in dev-li...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
: 290504 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-10-24 09:59 UTC by Michael Weber (RETIRED)
Modified: 2009-11-24 16:20 UTC (History)
3 users (show)

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


Attachments
build.log part 1 of 2 (build.log-aa,1.76 MB, text/plain)
2009-10-24 10:06 UTC, Michael Weber (RETIRED)
Details
build.log part 2 of 2 (build.log-ab,1.44 MB, text/plain)
2009-10-24 10:07 UTC, Michael Weber (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Weber (RETIRED) gentoo-dev 2009-10-24 09:59:11 UTC
I'm recompiling two machines to -doc, gstreamer and mpi and I'm experiencing an error. The compile step reports an error about the folling line from 
/usr/include/boost/mpl/apply_wrap.hpp:
#elif BOOST_PP_ITERATION_DEPTH() == 1
I've not jet seen empty brackets in macros.

Reproducible: Always

Steps to Reproduce:
1. emerge FEATURES="-distcc -ccache" MAKEOPTS="-j1" emerge -v1 -j1 openoffice

Actual Results:  
In file included from /usr/include/boost/mpl/aux_/numeric_op.hpp:22,
                 from /usr/include/boost/mpl/aux_/comparison_op.hpp:27,
                 from /usr/include/boost/mpl/equal_to.hpp:19,
                 from /usr/include/boost/numeric/conversion/detail/meta.hpp:17,
                 from /usr/include/boost/numeric/conversion/detail/conversion_traits.hpp:17,
                 from /usr/include/boost/numeric/conversion/conversion_traits.hpp:13,
                 from /usr/include/boost/numeric/conversion/converter.hpp:13,
                 from /usr/include/boost/numeric/conversion/cast.hpp:32,
                 from /usr/include/boost/cast.hpp:105,
                 from /var/tmp/portage/app-office/openoffice-3.1.1/work/ooo/build/ooo310-m19/canvas/source/vcl/spritecanvashelper.cxx:47:
/usr/include/boost/mpl/apply_wrap.hpp:81:31: error: missing binary operator before token "("
/usr/include/boost/mpl/apply_wrap.hpp:173:31: error: missing binary operator before token "("


Expected Results:  
successful compile

GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.15"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER=""

Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.4.2, glibc-2.10.1-r0, 2.6.31-gentoo-r2-pandora.2 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r2-pandora.2-x86_64-AMD_Phenom-tm-_II_X4_920_Processor-with-gentoo-2.0.1
Timestamp of tree: Fri, 23 Oct 2009 16:00:18 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r4
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -mfpmath=sse -mieee-fp -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /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 /etc/udev/rules.d"
CXXFLAGS="-march=amdfam10 -mfpmath=sse -mieee-fp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 4"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://nash.fs.lmu.de/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de en"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--ipv6"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/layman/gnome /usr/local/portage/layman/sunrise /usr/local/portage/layman/xmw /usr/local/portage/layman/x11"
SYNC="rsync://nash.fs.lmu.de/gentoo-portage/"
USE="3dnow X a52 aac aalib acl acpi alsa amd64 ao apache2 bash-completion berkdb bluetooth bzip2 cairo cdda cddb cdparanoia cdr cgi cli consolekit cracklib crypt ctype cups dbus dga directfb djvu dri dts dv dvb dvd dvdr dvdread encode exif faac faad fbcon ffmpeg fftw flac fontconfig fortran gdbm gif gimp glut gnome gnome-keyring gnutls gphoto2 gpm gs gstreamer gtk hal iconv id3tag ieee1394 imagemagick introspection ipod ipv6 isdnlog java java6 jbig joystick jpeg jpeg2k kde lame latex lcms libnotify libsamplerate lm_sensors lzma lzo mad mikmod mmap mmx mng modules mp3 mpeg mpi mplayer mudflap multilib mysql nas nautilus ncurses nls nptl nptlonly nsplugin ogg openal openexr opengl openmp pam pch pcre pdf perl png policykit postgres pppd python qt3 qt4 quicktime raw readline reflection rle samba sdl session smp speex spell spl sqlite sse sse2 ssl subversion svg symlink sysfs syslog taglib tcl tcpd theora threads tiff tk truetype unicode usb vhosts vim-syntax vorbis wavpack webkit x264 xcb xine xinerama xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="intel-hda" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Comment 1 Michael Weber (RETIRED) gentoo-dev 2009-10-24 10:06:10 UTC
Created attachment 208129 [details]
build.log part 1 of 2
Comment 2 Michael Weber (RETIRED) gentoo-dev 2009-10-24 10:07:56 UTC
Created attachment 208130 [details]
build.log part 2 of 2
Comment 3 Michael Weber (RETIRED) gentoo-dev 2009-10-24 11:33:49 UTC
ok, this seems to be an incompartibility of <boost-1.37 with gcc:4.4.

I've switched to gcc:4.3 to reemerge boost-1.35.0 and then to gcc:4.4 to reemerge openoffice.

The failing point in ... is  changed from 

///// iteration, depth == 1

#elif BOOST_PP_ITERATION_DEPTH() == 1

#   define i_ BOOST_PP_FRAME_ITERATION(1)

to 

///// iteration, depth == 1

// For gcc 4.4 compatability, we must include the
// BOOST_PP_ITERATION_DEPTH test inside an #else clause.
#else // BOOST_PP_IS_ITERATING
#if BOOST_PP_ITERATION_DEPTH() == 1

#   define i_ BOOST_PP_FRAME_ITERATION(1)

. I'm running two slots of gcc due to many gcc:4.4 incompartibilities.
I can't figure out how to represent this bug inside the ebuilds, one would have to detect the compiling gcc dynamically during build and request the correct boost version. 
Or, maybe just stabilie boost:1.39,

Related http://bugs.gentoo.org/show_bug.cgi?id=289799
Comment 4 Alon Bar-Lev 2009-10-30 15:41:38 UTC
I get something else...

boost/shared_ptr.hpp cannot be found.

Workaround:
CPPFLAGS="-I/usr/include/boost-1_35" emerge --oneshot openoffice
Comment 5 Alon Bar-Lev 2009-10-30 16:06:07 UTC
(In reply to comment #4)
> I get something else...
> 
> boost/shared_ptr.hpp cannot be found.
> 
> Workaround:
> CPPFLAGS="-I/usr/include/boost-1_35" emerge --oneshot openoffice
> 

Solution:
eselect boost set 1
Comment 6 Sebastian Luther (few) 2009-10-30 19:38:07 UTC
*** Bug 290504 has been marked as a duplicate of this bug. ***
Comment 7 Sebastian Luther (few) 2009-11-20 14:56:05 UTC
Is here something left to fix?
Comment 8 Federico Ferri (RETIRED) gentoo-dev 2009-11-21 13:57:32 UTC
(In reply to comment #7)
> Is here something left to fix?

 upgrading boost + eselect boost set 1  worked for me
Comment 9 Federico Ferri (RETIRED) gentoo-dev 2009-11-21 13:58:46 UTC
ooops, I was speaking for bug 290504
Comment 10 Sebastian Luther (few) 2009-11-24 16:20:05 UTC
Closing this. This is fixed in >=boost-1.35.0-r5.