Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 440688 - dev-libs/boost-1.49.0-r2 fails to build
Summary: dev-libs/boost-1.49.0-r2 fails to build
Status: RESOLVED DUPLICATE of bug 424906
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-01 03:31 UTC by Patrick Lauer
Modified: 2012-11-01 12:56 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2012-11-01 03:31:50 UTC
"x86_64-pc-linux-gnu-g++"  -ftemplate-depth-128 -march=native -O2 -pipe -ggdb -finline-functions -Wno-inline -Wall -pthread -fPIC  -DBOOST_ALL_DYN_LINK=1 -DBOOST_ALL_NO_LIB=1 -DNDEBUG  -I"." -c -o "bin.v2/libs/wave/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi/instantiate_cpp_exprgrammar.o" "libs/wave/src/instantiate_cpp_exprgrammar.cpp"

In file included from ./boost/thread/pthread/mutex.hpp:14:0,
                 from ./boost/thread/mutex.hpp:16,
                 from ./boost/pool/detail/mutex.hpp:14,
                 from ./boost/pool/poolfwd.hpp:24,
                 from ./boost/pool/singleton_pool.hpp:22,
                 from ./boost/wave/cpplexer/cpp_lex_token.hpp:25,
                 from libs/wave/src/instantiate_cpp_exprgrammar.cpp:21:
./boost/thread/xtime.hpp:23:5: error: expected identifier before numeric constant
./boost/thread/xtime.hpp:23:5: error: expected '}' before numeric constant
./boost/thread/xtime.hpp:23:5: error: expected unqualified-id before numeric constant
./boost/thread/xtime.hpp:46:14: error: expected type-specifier before 'system_time'
In file included from ./boost/thread/pthread/mutex.hpp:14:0,
                 from ./boost/thread/mutex.hpp:16,
                 from ./boost/pool/detail/mutex.hpp:14,
                 from ./boost/pool/poolfwd.hpp:24,
                 from ./boost/pool/singleton_pool.hpp:22,
                 from ./boost/wave/cpplexer/cpp_lex_token.hpp:25,
                 from libs/wave/src/instantiate_cpp_exprgrammar.cpp:21:
./boost/thread/xtime.hpp: In function 'int xtime_get(xtime*, int)':
./boost/thread/xtime.hpp:73:40: error: 'get_system_time' was not declared in this scope
./boost/thread/xtime.hpp:73:40: note: suggested alternative:
In file included from ./boost/thread/locks.hpp:12:0,
                 from ./boost/thread/pthread/mutex.hpp:12,
                 from ./boost/thread/mutex.hpp:16,
                 from ./boost/pool/detail/mutex.hpp:14,
                 from ./boost/pool/poolfwd.hpp:24,
                 from ./boost/pool/singleton_pool.hpp:22,
                 from ./boost/wave/cpplexer/cpp_lex_token.hpp:25,
                 from libs/wave/src/instantiate_cpp_exprgrammar.cpp:21:
./boost/thread/thread_time.hpp:19:24: note:   'boost::get_system_time'
In file included from ./boost/thread/pthread/mutex.hpp:14:0,
                 from ./boost/thread/mutex.hpp:16,
                 from ./boost/pool/detail/mutex.hpp:14,
                 from ./boost/pool/poolfwd.hpp:24,
                 from ./boost/pool/singleton_pool.hpp:22,
                 from ./boost/wave/cpplexer/cpp_lex_token.hpp:25,
                 from libs/wave/src/instantiate_cpp_exprgrammar.cpp:21:
./boost/thread/xtime.hpp: At global scope:
./boost/thread/xtime.hpp:88:1: error: expected declaration before '}' token
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi/instantiate_cpp_grammar.o


[snip]

    "x86_64-pc-linux-gnu-g++"    -o "bin.v2/libs/test/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi/libboost_unit_test_framework-mt-1_49.so.1.49.0" -Wl,-h -Wl,libboost_unit_test_framework-mt-1_49.so.1.49.0 -shared -Wl,--start-group "bin.v2/libs/test/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi/compiler_log_formatter.o" "bin.v2/libs/test/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi/debug.o" "bin.v2/libs/test/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi/exception_safety.o" "bin.v2/libs/test/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi/execution_monitor.o" "bin.v2/libs/test/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi/framework.o" "bin.v2/libs/test/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi/interaction_based.o" "bin.v2/libs/test/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi/logged_expectations.o" "bin.v2/libs/test/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi/plain_report_formatter.o" "bin.v2/libs/test/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi/progress_monitor.o" "bin.v2/libs/test/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi/results_collector.o" "bin.v2/libs/test/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi/results_reporter.o" "bin.v2/libs/test/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi/test_tools.o" "bin.v2/libs/test/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi/unit_test_log.o" "bin.v2/libs/test/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi/unit_test_main.o" "bin.v2/libs/test/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi/unit_test_monitor.o" "bin.v2/libs/test/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi/unit_test_parameters.o" "bin.v2/libs/test/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi/unit_test_suite.o" "bin.v2/libs/test/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi/xml_log_formatter.o" "bin.v2/libs/test/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi/xml_report_formatter.o"  -Wl,-Bstatic  -Wl,-Bdynamic -lrt -Wl,--end-group -Wl,-O1 -Wl,--as-needed -pthread 

common.copy stage/lib/libboost_unit_test_framework-mt-1_49.so.1.49.0

    cp "bin.v2/libs/test/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi/libboost_unit_test_framework-mt-1_49.so.1.49.0"  "stage/lib/libboost_unit_test_framework-mt-1_49.so.1.49.0"

ln-UNIX stage/lib/libboost_unit_test_framework-mt-1_49.so

    ln -f -s 'libboost_unit_test_framework-mt-1_49.so.1.49.0' 'stage/lib/libboost_unit_test_framework-mt-1_49.so'

gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi/cpplexer/re2clex/cpp_re.o

    "x86_64-pc-linux-gnu-g++"  -ftemplate-depth-128 -march=native -O2 -pipe -ggdb -finline-functions -Wno-inline -w -pthread -fPIC  -DBOOST_ALL_DYN_LINK=1 -DBOOST_ALL_NO_LIB=1 -DNDEBUG  -I"." -c -o "bin.v2/libs/wave/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi/cpplexer/re2clex/cpp_re.o" "libs/wave/src/cpplexer/re2clex/cpp_re.cpp"

...skipped <pbin.v2/libs/wave/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi>libboost_wave-mt-1_49.so.1.49.0 for lack of <pbin.v2/libs/wave/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi>instantiate_cpp_exprgrammar.o...
...skipped <pstage/lib>libboost_wave-mt-1_49.so.1.49.0 for lack of <pbin.v2/libs/wave/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi>libboost_wave-mt-1_49.so.1.49.0...
...skipped <pstage/lib>libboost_wave-mt-1_49.so for lack of <pstage/lib>libboost_wave-mt-1_49.so.1.49.0...
...failed updating 18 targets...
 * ERROR: dev-libs/boost-1.49.0-r2 failed (compile phase):
 *   Building of Boost libraries failed


Portage 2.2.0_alpha142 (default/linux/amd64/10.0/desktop/kde, gcc-4.7.2, glibc-2.16.0, 3.5.4-vs2.3.4.3 x86_64)
=================================================================
System uname: Linux-3.5.4-vs2.3.4.3-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.2
Timestamp of tree: Unknown
ld GNU ld (GNU Binutils) 2.23
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.6.8, 2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.9-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.2
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.4
sys-devel/binutils:       2.23
sys-devel/gcc:            4.6.3, 4.7.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo x11 qt Testing kde
Installed sets: @kde-live
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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"
CXXFLAGS="-march=native -O2 -pipe -ggdb"
DISTDIR="/chroot/distfiles"
EMERGE_DEFAULT_OPTS="--load-average=5 --quiet-build=n"
FCFLAGS="-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 splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="POSIX"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB de de_DE"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/chroot/build"
PORTDIR="/home/pl/code/gentoo-x86"
PORTDIR_OVERLAY="/var/lib/layman/x11 /var/lib/layman/qt /home/pl/overlay /home/pl/code/kde"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cjk cli compat consolekit crypt cups curl cxx dbus declarative dri dts dvd dvdr dvdread emboss encode exif expat fam ffmpeg firefox flac foomaticdb fortran ftp gcj gd gdbm gif gnutls gpm gtk iconv icq idn imagemagick imap imlib innodb ipod ipv6 jabber java javascript jingle jpeg jpeg2k kde kdehiddenvisibility kipi lame lcms ldap libnotify lzo mad matroska md5sum midi mmap mmx mng modules mp3 mp4 mpeg mplayer msn mudflap multilib musepack musicbrainz mysql ncurses nls nptl nsplugin offensive ogg openal openexr opengl openmp oscar pam pango pcre pdf perl php plasma png policykit ppds python qt3support qt4 quicktime r600-llvm-compiler raw rdesktop readline rss samba sdl semantic-desktop session speex spell sqlite sqlite3 sse sse2 sse3 ssl ssse3 startup-notification subversion svg syslog taglib tcpd threads tidy tiff tk truetype udev udisks unicode upower usb vlc vorbis wifi wmf wxwidgets wxwindows x264 xattr xcb xcomposite xine xinerama xml xmlrpc xpm xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" 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="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" 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 ubx" INPUT_DEVICES="evdev" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB de de_DE" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon r600" 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"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Gregg Casillo 2012-11-01 04:15:24 UTC
Same problem for me with essentially the same setup.
Comment 2 Rafał Mużyło 2012-11-01 04:54:00 UTC
If I follow a few bugs here + a few threads on gentoo-dev correctly, anything below boost 1.50 will fail with glibc 2.16.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-11-01 07:00:36 UTC

*** This bug has been marked as a duplicate of bug 424906 ***
Comment 4 Cynede (RETIRED) gentoo-dev 2012-11-01 07:05:10 UTC
ame here.
Comment 5 Iván Atienza 2012-11-01 12:56:09 UTC
the patch on bug 424906 comment 1, solves this for me, but may need to touch some packages as well, after recompile all packages depends on boost i only need to change some files in povray sources.

Salud.