Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 219586 - dev-libs/boost-1.34.1-r2 fails to compile with gcc-4.3
Summary: dev-libs/boost-1.34.1-r2 fails to compile with gcc-4.3
Status: RESOLVED DUPLICATE of bug 210427
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tiziano Müller (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-28 12:09 UTC by J. M. Gottfried
Modified: 2008-04-28 12:48 UTC (History)
1 user (show)

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


Attachments
fix of gcc-4.3 missing includes error (boost-1.34.1-gcc43.patch,1012 bytes, patch)
2008-04-28 12:11 UTC, J. M. Gottfried
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description J. M. Gottfried 2008-04-28 12:09:27 UTC
Typical gcc-4.3 missing includes error

Reproducible: Always

Steps to Reproduce:
1. install gcc-4.3
2. emerge -av \=dev-libs/boost-1.34.1-r2

Actual Results:  
In file included from ./boost/test/impl/framework.ipp:28,
                 from libs/test/src/framework.cpp:16:
./boost/test/test_tools.hpp: In function »boost::test_tools::predicate_result boost::test_tools::tt_detail::bitwise_equal_impl(const Left&, const Right&)«:
./boost/test/test_tools.hpp:567: Fehler: »CHAR_BIT« wurde in diesem Gültigkeitsbereich nicht definiert
In file included from libs/test/src/framework.cpp:16:
./boost/test/impl/framework.ipp: In member function »bool boost::unit_test::framework_impl::priority_order::operator()(boost::unit_test::test_observer*, boost::unit_test::test_observer*) const«:
./boost/test/impl/framework.ipp:178: Warnung: Klammern um && innerhalb von || empfohlen
./boost/test/test_tools.hpp: At global scope:
./boost/test/test_tools.hpp:262: Warnung: »boost::test_tools::<unnamed>::dummy_cond« definiert, aber nicht verwendet

    "i686-pc-linux-gnu-g++"  -ftemplate-depth-128 -O2 -march=pentium-m -pipe -mmmx -msse -msse2 -finline-functions -Wno-inline -Wall  -DBOOST_ALL_NO_LIB=1 -DNDEBUG  -I"." -c -o "bin.v2/libs/test/build/gcc-4.3/release/debug-symbols-none/link-static/optimization-none/runtime-link-static/framework.o" "libs/test/src/framework.cpp"

...failed gcc.compile.c++ bin.v2/libs/test/build/gcc-4.3/release/debug-symbols-none/link-static/optimization-none/runtime-link-static/framework.o...
...failed updating 1 target...
...updated 174 targets...
 *
 * ERROR: dev-libs/boost-1.34.1-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3031:  Called die
 * The specific snippet of code:
 *           bjam ${NUMJOBS} -q ${OPTIONS} threading=single,multi runtime-link=${linkoption} link=${linkoption} --prefix="${D}/usr" --layout=system || die "building boost failed";
 *  The die message:
 *   building boost failed


i created a patch to fix this problem

emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.3.0, glibc-2.6.1-r0, 2.6.25-gentoo-r1 i686)
=================================================================
System uname: 2.6.25-gentoo-r1 i686 Intel(R) Pentium(R) M processor 1.70GHz
Timestamp of tree: Mon, 28 Apr 2008 00:45:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.5.2-r2
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -mmmx -msse -msse2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -pipe -mmmx -msse -msse2"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ "
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LINGUAS="de"
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/sunrise /usr/portage/local/layman/kde /usr/portage/local/layman/mornifle-gentoo-package /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 acl acpi alsa apache2 arts bash-completion berkdb branding bzip2 cairo caps cdparanoia cdr cli cracklib crypt css ctype cups curl dbm dbus dga doc dri dvb dvd dvdr dvdread eds emboss encode esd evo examples exif fam fbcon ffmpeg fftw firefox flac fortran fuse gdbm gif glut gphoto2 gpm graphviz gs gstreamer gtk hal htmlhandbook iconv icu imagemagick imlib isdnlog jabber java jpeg kde lame lapack latex lcms ldap mad midi mikmod mmx mng mp3 mpeg msn mudflap musicbrainz mysql ncurses nls nptl nptlonly nsplugin offensive ogg opengl openmp oscar oss pam pcmcia pcre pdf perl php plotutils png postscript pppd python qt3 qt3support qt4 quicktime rdesktop readline real reflection samba sasl sdl session spell spl sqlite sse sse2 ssl svg tcpd tetex theora tiff tk truetype tunepimp unicode usb v4l v4l2 vcd vim-syntax vnc vorbis wifi win32codecs x86 xcb xcomposite xml xorg xosd xscreensaver xv xvid yahoo zlib zvbi" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="itk" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="radeon v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 J. M. Gottfried 2008-04-28 12:11:03 UTC
Created attachment 151229 [details, diff]
fix of gcc-4.3 missing includes error

this patch resolved the problem, boost compiled fine with these includes
Comment 2 Tiziano Müller (RETIRED) gentoo-dev 2008-04-28 12:48:44 UTC

*** This bug has been marked as a duplicate of bug 210427 ***