Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 210427 - boost-1.34.1-r2 fails to compile with gcc-4.3
Summary: boost-1.34.1-r2 fails to compile with gcc-4.3
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords:
: 217577 219586 246259 252371 253362 258638 (view as bug list)
Depends on:
Blocks: gcc-4.3
  Show dependency tree
 
Reported: 2008-02-17 01:47 UTC by Keith R.
Modified: 2009-11-17 21:48 UTC (History)
13 users (show)

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


Attachments
fixes date-time (0001-date_time-gcc-4.3-fix.patch,1010 bytes, patch)
2008-02-17 01:48 UTC, Keith R.
Details | Diff
fixes mpl (0001-mpl-g-4.3-fix.patch,1.08 KB, patch)
2008-02-17 01:48 UTC, Keith R.
Details | Diff
fixes spirit/phoenix (0001-spirit-gcc-4.3-fixes.patch,8.99 KB, patch)
2008-02-17 01:49 UTC, Keith R.
Details | Diff
fixes bit range (boost-gil-gcc43-change-meaning-of-bit_range.patch,827 bytes, patch)
2008-02-17 01:50 UTC, Keith R.
Details | Diff
fixes ptree-utils (ptree_utils.hpp.diff,393 bytes, patch)
2008-02-17 01:50 UTC, Keith R.
Details | Diff
fixes spirit/phoenix (0001-spirit-gcc-4.3-fixes.patch,1.99 KB, text/plain)
2008-02-17 02:25 UTC, Keith R.
Details
boost-1.34.1-gcc-4.3.patch (boost-1.34.1-gcc-4.3.patch,3.88 KB, patch)
2008-02-17 06:11 UTC, Ryan Hill (RETIRED)
Details | Diff
boost-gcc43.patch (boost-gcc43.patch,7.52 KB, patch)
2008-02-28 14:28 UTC, Pacho Ramos
Details | Diff
Patch for boost-1.34.1 to compile with gcc-4.3 (boost-1.34.1-gcc-4.3.patch,11.16 KB, patch)
2008-03-03 10:58 UTC, Neil Cathey
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Keith R. 2008-02-17 01:47:54 UTC
boost fails to compile with different errors. When upgrading to gcc-4.3.0-20080208

Reproducible: Always

Steps to Reproduce:
1. emerge boost
2.
3.




Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.3.0-alpha20080208, glibc-2.6.1-r0, 2.6.22-14-generic i686)
=================================================================
System uname: 2.6.22-14-generic i686 unknown
Timestamp of tree: Sun, 17 Feb 2008 00:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LINGUAS="en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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/portage/local/layman/custom-kernels /usr/portage/local/layman/toolchain /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X X509 a52 aac aalib acl acpi aim alsa animgif antlr archive asm aspell audiofile bash-completion berkdb bitmap-fonts bjam bonjour boo boost branding bzip2 c++ cairo canna ccache cdaudio cdda cddb cdio cdparanoia cdr cdrom cgi chasen chm chroot cjk clamav clamd cli cpio cpudetection cracklib crypt css curl cvs cxx d dbcp dbus depth32 dga dhcp dict disk-partition dosformat double-precision dri dropmsg dvd dvdarchive dvdchapjump dvdnav dvdr dvdread elf elisp encode enscript extensions extra extras fam fastcgi fat fbcon fbcondecor fbsplash ffmpeg file firefox flash fontconfig fortran gd gdb gdbm gdl gdm gedit gif gimp glade glep glib glitz glsa glut gmail gmp gnome gnomecanvas gpg gpm graphviz grub gstreamer gtk gtkhtml gtkspell gzip hal hddtemp html httpd icons iconv icq id3 id3tag imagemagick imlib imlib2 inifile int64 ipv6 irc isdnlog jpeg jpeg2k lame libedit libgcrypt libnotify libssh2 lua lyrics lzo lzw mad md5sum midi mjpeg mmx mng mono monolithic mp2 mp3 mp4 mp4live mpeg mpeg2 mudflap nautilus ncurses nls nptl nptlonly ntfs odbc offensive ogg opengl openmp openssh openssl pam pcre perl pidgin png portage pppd python raw rc5 readline reflection regex reiser4 reiserfs sdl sdl-image sdl-sound session simplexml slang sms soap sockets socks5 sound spell spl sqlite3 sse ssl subversion swig symlink syslog szip tcpd threads threadsafe threadsonly tools tracker truetype truetype-fonts type1-fonts ui unicode unzip usb valgrind vcd vcdx vim vim-pager vim-syntax vim-with-x vorbis wav wavpack win32codecs wma x86 xforms xhtml xml xmlrpc xorg xpm xrandr xsettings xskatcards xsl xslt xvid yahoo zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Keith R. 2008-02-17 01:48:27 UTC
Created attachment 143702 [details, diff]
fixes date-time
Comment 2 Keith R. 2008-02-17 01:48:56 UTC
Created attachment 143703 [details, diff]
fixes mpl
Comment 3 Keith R. 2008-02-17 01:49:22 UTC
Created attachment 143705 [details, diff]
fixes spirit/phoenix
Comment 4 Keith R. 2008-02-17 01:50:07 UTC
Created attachment 143707 [details, diff]
fixes bit range
Comment 5 Keith R. 2008-02-17 01:50:31 UTC
Created attachment 143708 [details, diff]
fixes ptree-utils
Comment 6 Keith R. 2008-02-17 01:51:00 UTC
theres are the patches I found on the boost website submitted by others.
Comment 7 Keith R. 2008-02-17 02:25:25 UTC
Created attachment 143709 [details]
fixes spirit/phoenix

posted the wrong one which was an html formatted one, now is corrected.
Comment 8 Ryan Hill (RETIRED) gentoo-dev 2008-02-17 03:36:09 UTC
thanks.  there are still some errors but i'm working on them now.
Comment 9 Ryan Hill (RETIRED) gentoo-dev 2008-02-17 06:11:45 UTC
Created attachment 143739 [details, diff]
boost-1.34.1-gcc-4.3.patch

this is a preliminary patch that successfully builds

dev-libs/boost-1.34.1-r2  USE="icu -debug -doc -pyste -tools"

i will need to patch gccxml before i can test USE=pyste and i get a failure with USE=tools that i need to look into.  the testsuite probably needs work too.  debian and fedora have some build fixes that i didn't seem to need, some of which Keith posted above.  i'll have to look into that too.
Comment 10 Keith R. 2008-02-17 15:14:00 UTC
Sorry I didn't know how to combine the all above patches into a single solid one.
Comment 11 Ryan Hill (RETIRED) gentoo-dev 2008-02-28 02:07:29 UTC
boost is still broken with this patch.

"dirtyepic, with your patch from here boost compile with gcc-4.3, but it doesn't resolve problems with packages that depend on it, eg. tagpy still fails with the same error message as it used to with boost compiled with gcc-4.2.3."

i need to work on this some more soon.  it's worth noting that boost svn builds without any problems.
Comment 12 Pacho Ramos gentoo-dev 2008-02-28 14:28:09 UTC
Created attachment 144862 [details, diff]
boost-gcc43.patch

This is the patch applied by fedora
Comment 13 Neil Cathey 2008-03-03 10:56:03 UTC
Ryan's patch from comment #9 fixes the compilation of boost, but at least one other package that depends on boost (glob2-0.9.2) still fails.  glob2 needs a patch for boost/date_time/date_facet.hpp in order to compile correctly, or else you'll get some redeclaration errors.  (I noticed that patch is included in the Fedora patch from comment #12).

USE="tools" still failed.  It took me a while (hours!), but I think I may have found the problem.  boost/serialization/collection_traits.hpp is missing a #include <climits>.  It uses ULONG_MAX in an #ifdef.  Since ULONG_MAX is being used in an #ifdef, gcc did not throw any errors about it being undeclared, but instead other things were being erroneously #defined because of the miscalculation.

I'm going to attach a patch that combines all of the previous patches, including the patch for collection_traits.hpp.  Aside from missing includes, the other patches on this bug modified some references (boost::mpl::next, instead of just next).  I do not know if they are required or not, but I included them.  As a test, I just finished recompiling all packaged depending on boost on my system, and they all compiled just fine.
Comment 14 Neil Cathey 2008-03-03 10:58:07 UTC
Created attachment 145187 [details, diff]
Patch for boost-1.34.1 to compile with gcc-4.3

This patch allows me to compile boost-1.34.1 with USE="tools".
Comment 15 Ryan Hill (RETIRED) gentoo-dev 2008-03-10 02:12:14 UTC
Thanks Neil.  I think those are pieces that were missing.  A couple things were fixed a little differently upstream but the end result is the same.  I've added your patch to the gcc-porting overlay.

Comment 16 David Carlos Manuelda 2008-04-03 01:14:09 UTC
boost-1.34.1-r1 also fails at compile time.
Comment 17 Benjamin Lannoy 2008-04-19 02:23:04 UTC
(In reply to comment #14)
> Created an attachment (id=145187) [edit]
> Patch for boost-1.34.1 to compile with gcc-4.3
> 
> This patch allows me to compile boost-1.34.1 with USE="tools".
> 
It seems to works for me on ~amd64
Comment 18 Tiziano Müller (RETIRED) gentoo-dev 2008-04-25 06:48:25 UTC
sorry people, but I'm not going to fix boost-1.34.1, but you should use boost-1.35.0 with gcc-4.3.x (which compiles with a couple of patches).
Comment 19 Tiziano Müller (RETIRED) gentoo-dev 2008-04-28 12:48:44 UTC
*** Bug 219586 has been marked as a duplicate of this bug. ***
Comment 20 Christian Faulhammer (RETIRED) gentoo-dev 2008-11-01 20:35:31 UTC
*** Bug 217577 has been marked as a duplicate of this bug. ***
Comment 21 Rafał Mużyło 2008-12-24 13:56:39 UTC
*** Bug 246259 has been marked as a duplicate of this bug. ***
Comment 22 Rafał Mużyło 2008-12-24 13:57:02 UTC
*** Bug 252371 has been marked as a duplicate of this bug. ***
Comment 23 Rafał Mużyło 2009-01-01 16:34:03 UTC
*** Bug 253362 has been marked as a duplicate of this bug. ***
Comment 24 Rafał Mużyło 2009-02-15 19:37:57 UTC
*** Bug 258638 has been marked as a duplicate of this bug. ***
Comment 25 Alexey 2009-11-17 21:48:39 UTC
Thanks to Ryan Hill, patch boost-1.34.1-gcc-4.3.patch really help me to compile boost-1.34.1-r2