Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278512 - dev-libs/boost-1.34.1-r2 fails to compile
Summary: dev-libs/boost-1.34.1-r2 fails to compile
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Tiziano Müller (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-20 21:45 UTC by Julian Stecklina
Modified: 2009-12-21 10:16 UTC (History)
1 user (show)

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


Attachments
Patch to compile with gcc-4.3 (boost-1.34.1-gcc-4.3.patch,1.48 KB, patch)
2009-09-25 16:44 UTC, Etienne Lorriaux
Details | Diff
Revision to use the provided patch (boost-1.34.1-r2.ebuild,6.81 KB, text/plain)
2009-09-25 16:46 UTC, Etienne Lorriaux
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Julian Stecklina 2009-07-20 21:45:31 UTC
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.3/release/debug-symbols-none/link-static/optimization-none/runtime-link-static/instantiate_cpp_grammar.o
In file included from ./boost/spirit/attribute/closure.hpp:24,
                 from ./boost/wave/grammars/cpp_expression_grammar.hpp:16,
                 from libs/wave/src/instantiate_cpp_exprgrammar.cpp:21:
./boost/spirit/phoenix/operators.hpp:355: error: 'INT_MAX' was not declared in this scope
In file included from ./boost/wave/grammars/cpp_expression_grammar.hpp:35,
                 from libs/wave/src/instantiate_cpp_exprgrammar.cpp:21:
./boost/wave/grammars/cpp_expression_value.hpp: In member function 'boost::wave::grammars::closures::closure_value& boost::wave::grammars::closures::closure_value::operator+=(const boost::wave::grammars::closures::closure_value&)':
./boost/wave/grammars/cpp_expression_value.hpp:189: warning: suggest parentheses around && within ||
./boost/wave/grammars/cpp_expression_value.hpp:203: warning: suggest parentheses around && within ||
./boost/wave/grammars/cpp_expression_value.hpp: In member function 'boost::wave::grammars::closures::closure_value& boost::wave::grammars::closures::closure_value::operator-=(const boost::wave::grammars::closures::closure_value&)':
./boost/wave/grammars/cpp_expression_value.hpp:256: warning: suggest parentheses around && within ||
./boost/wave/grammars/cpp_expression_value.hpp:270: warning: suggest parentheses around && within ||
./boost/wave/grammars/cpp_expression_value.hpp:314: warning: suggest parentheses around && within ||
./boost/wave/util/flex_string.hpp: In function 'Pod* boost::wave::util::flex_string_details::pod_copy(const Pod*, const Pod*, Pod*) [with Pod = char]':
./boost/wave/util/flex_string.hpp:576:   instantiated from 'boost::wave::util::AllocatorStringStorage<E, A>::AllocatorStringStorage(const boost::wave::util::AllocatorStringStorage<E, A>&) [with E = char, A = std::allocator<char>]'
./boost/wave/util/flex_string.hpp:1233:   instantiated from 'boost::wave::util::CowString<Storage, Align>::CowString(const boost::wave::util::CowString<Storage, Align>&) [with Storage = boost::wave::util::AllocatorStringStorage<char, std::allocator<char> >, Align = char*]'
./boost/wave/util/flex_string.hpp:1470:   instantiated from 'boost::wave::util::flex_string<E, T, A, Storage>::flex_string(const boost::wave::util::flex_string<E, T, A, Storage>&) [with E = char, T = std::char_traits<char>, A = std::allocator<char>, Storage = boost::wave::util::CowString<boost::wave::util::AllocatorStringStorage<char, std::allocator<char> >, char*>]'
./boost/wave/grammars/cpp_expression_grammar.hpp:772:   instantiated from 'static bool boost::wave::grammars::expression_grammar_gen<TokenT>::evaluate(const typename std::list<TokenT, boost::fast_pool_allocator<TokenT, boost::default_user_allocator_new_delete, boost::details::pool::null_mutex, 32u> >::const_iterator&, const typename std::list<TokenT, boost::fast_pool_allocator<TokenT, boost::default_user_allocator_new_delete, boost::details::pool::null_mutex, 32u> >::const_iterator&, const typename TokenT::position_type&, bool, boost::wave::grammars::value_error&) [with TokenT = boost::wave::cpplexer::lex_token<boost::wave::util::file_position<boost::wave::util::flex_string<char, std::char_traits<char>, std::allocator<char>, boost::wave::util::CowString<boost::wave::util::AllocatorStringStorage<char, std::allocator<char> >, char*> > > >]'
libs/wave/src/instantiate_cpp_exprgrammar.cpp:39:   instantiated from here
./boost/wave/util/flex_string.hpp:142: error: 'memcpy' was not declared in this scope
./boost/wave/util/flex_string.hpp: In function 'void boost::wave::util::flex_string_details::pod_move(const Pod*, const Pod*, Pod*) [with Pod = char]':
./boost/wave/util/flex_string.hpp:1681:   instantiated from 'boost::wave::util::flex_string<E, T, A, Storage>& boost::wave::util::flex_string<E, T, A, Storage>::assign(const typename T::char_type*, typename A::size_type) [with E = char, T = std::char_traits<char>, A = std::allocator<char>, Storage = boost::wave::util::CowString<boost::wave::util::AllocatorStringStorage<char, std::allocator<char> >, char*>]'
./boost/wave/util/flex_string.hpp:1693:   instantiated from 'boost::wave::util::flex_string<E, T, A, Storage>& boost::wave::util::flex_string<E, T, A, Storage>::assign(const typename T::char_type*) [with E = char, T = std::char_traits<char>, A = std::allocator<char>, Storage = boost::wave::util::CowString<boost::wave::util::AllocatorStringStorage<char, std::allocator<char> >, char*>]'
./boost/wave/util/flex_string.hpp:1515:   instantiated from 'boost::wave::util::flex_string<E, T, A, Storage>& boost::wave::util::flex_string<E, T, A, Storage>::operator=(const typename T::char_type*) [with E = char, T = std::char_traits<char>, A = std::allocator<char>, Storage = boost::wave::util::CowString<boost::wave::util::AllocatorStringStorage<char, std::allocator<char> >, char*>]'
./boost/wave/grammars/cpp_expression_grammar.hpp:774:   instantiated from 'static bool boost::wave::grammars::expression_grammar_gen<TokenT>::evaluate(const typename std::list<TokenT, boost::fast_pool_allocator<TokenT, boost::default_user_allocator_new_delete, boost::details::pool::null_mutex, 32u> >::const_iterator&, const typename std::list<TokenT, boost::fast_pool_allocator<TokenT, boost::default_user_allocator_new_delete, boost::details::pool::null_mutex, 32u> >::const_iterator&, const typename TokenT::position_type&, bool, boost::wave::grammars::value_error&) [with TokenT = boost::wave::cpplexer::lex_token<boost::wave::util::file_position<boost::wave::util::flex_string<char, std::char_traits<char>, std::allocator<char>, boost::wave::util::CowString<boost::wave::util::AllocatorStringStorage<char, std::allocator<char> >, char*> > > >]'
libs/wave/src/instantiate_cpp_exprgrammar.cpp:39:   instantiated from here
./boost/wave/util/flex_string.hpp:134: error: 'memmove' was not declared in this scope

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

...failed gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.3/release/debug-symbols-none/link-static/optimization-none/runtime-link-static/instantiate_cpp_exprgrammar.o...
...failed updating 1 target...
...updated 261 targets...
 * 
 * ERROR: dev-libs/boost-1.34.1-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3237:  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
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-libs/boost-1.34.1-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/boost-1.34.1-r2/temp/environment'.
 * 


Reproducible: Always

Steps to Reproduce:
emerge '=dev-libs/boost-1.34.1-r2'
Actual Results:  
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.3/release/debug-symbols-none/link-static/optimization-none/runtime-link-static/instantiate_cpp_grammar.o
In file included from ./boost/spirit/attribute/closure.hpp:24,
                 from ./boost/wave/grammars/cpp_expression_grammar.hpp:16,
                 from libs/wave/src/instantiate_cpp_exprgrammar.cpp:21:
./boost/spirit/phoenix/operators.hpp:355: error: 'INT_MAX' was not declared in this scope
[...]

Expected Results:  
Should build fine.

Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r2 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r2-i686-Intel-R-_Core-TM-_Duo_CPU_L2400_@_1.66GHz-with-glibc2.0
Timestamp of tree: Mon, 20 Jul 2009 18:30:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.4-r3
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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/layman/lisp"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa berkdb branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg ldap libnotify mad midi mikmod mp3 mpeg mudflap ncurses nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support quicktime readline reflection sdl session spell spl ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis win32codecs x86 xml xorg xulrunner xv 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 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Etienne Lorriaux 2009-09-25 16:44:46 UTC
Created attachment 205217 [details, diff]
Patch to compile with gcc-4.3

Just a small patch to fix headers problems with gcc-4.3
Comment 2 Etienne Lorriaux 2009-09-25 16:46:15 UTC
Created attachment 205219 [details]
Revision to use the provided patch
Comment 3 Dirkjan Ochtman (RETIRED) gentoo-dev 2009-12-21 10:16:40 UTC
Since this has long been masked, I recently removed it from the tree. If there is some reason you cannot use any of the newer versions (preferably 1.41.0, since it's actually being maintained), please open a separate bug for that.