Trying to emerge dev-libs/boost-1.41.0-r3 fails with a message that: /var/tmp/portage/dev-libs/boost-1.41.0-r3/work/boost_1_41_0/libs/math/config/has_long_double_support.cpp:9:2: error: #error "long double support is not supported by Boost.Math on this Plaform: the long double version of the TR1 library will not be built." ...failed updating 1 target... Reproducible: Always Steps to Reproduce: 1.emerge -av1 dev-libs/boost Actual Results: Error log as below: --- gcc.compile.c++ bin.v2/libs/math/config/gcc-4.1/gentoorelease/pch-off/has_long_double_support.o "powerpc-unknown-linux-gnu-g++" -ftemplate-depth-128 -O2 -pipe -fno-strict-aliasing -finline-functions -Wno-inline -Wall -fPIC -DBOOST_ALL_NO_LIB=1 -DNDEBUG -I"." -c -o "bin.v2/libs/math/config/gcc-4.1/gentoorelease/pch-off/has_long_double_support.o" "/var/tmp/portage/dev-libs/boost-1.41.0-r3/work/boost_1_41_0/libs/math/config/has_long_double_support.cpp" /var/tmp/portage/dev-libs/boost-1.41.0-r3/work/boost_1_41_0/libs/math/config/has_long_double_support.cpp:9:2: error: #error "long double support is not supported by Boost.Math on this Plaform: the long double version of the TR1 library will not be built." ...failed updating 1 target... * ERROR: dev-libs/boost-1.41.0-r3 failed: * building boost failed * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 4760: Called die * The specific snippet of code: * ${BJAM} ${NUMJOBS} -q -d+2 gentoorelease ${OPTIONS} threading=single,multi link=shared,static runtime-link=shared || die "building boost failed"; * * If you need support, post the output of 'emerge --info =dev-libs/boost-1.41.0-r3', * the complete build log and the output of 'emerge -pqv =dev-libs/boost-1.41.0-r3'. * The complete build log is located at '/var/log/portage/dev-libs:boost-1.41.0-r3:20100502-162054.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-libs/boost-1.41.0-r3/temp/environment'. * S: '/var/tmp/portage/dev-libs/boost-1.41.0-r3/work/boost_1_41_0' Expected Results: Successful build emerge --info output: --- Portage 2.1.8.3 (default/linux/powerpc/ppc32/10.0/desktop, gcc-4.1.2, glibc-2.10.1-r1, 2.6.30-gentoo-r8 ppc) ================================================================= System uname: Linux-2.6.30-gentoo-r8-ppc-740-750-with-gentoo-1.12.13 Timestamp of tree: Fri, 30 Apr 2010 18:15:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p37 dev-java/java-config: 2.1.10 dev-lang/python: 2.6.4-r1 dev-python/pycrypto: 2.0.1-r8 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc: 4.1.2, 4.3.4 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="ppc" ACCEPT_LICENSE="* -@EULA IBM-J1.6 IBM-J1.5" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -pipe" CHOST="powerpc-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests buildpkg ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="ftp://gentoo.virginmedia.com/sites/gentoo http://gentoo.virginmedia.com/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ " LANG="en_GB.UTF-8" LC_ALL="en_GB.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="en_GB en ja" 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" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac aalib accessibility acl alsa apache2 avahi bash-completion berkdb bidi bluetooth branding bzip2 cairo cdr cjk cli consolekit cracklib crypt cscope cups cupsc cxx dbus doc dri dts dvdr emboss encode exif fam fbcon firefox flac foomaticdb fortran fpx gcj gdbm gif gnome gnutls gphoto2 gpm graphviz gs gtk gtk2 hal iconv ieee1394 ipv6 java jbig jpeg jpeg2k kerberos lcms ldap libnotify mad mailwrapper mikmod mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pda pdf perl png ppc ppds pppd pulseaudio python qt3support readline reflection samba sdl session sndfile spell spl ssl startup-notification svg sysfs tcpd theora tiff truetype unicode usb vim-syntax vorbis wmf x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="powermac" 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en ja" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev ati r128" 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, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Built successfully after switching gcc from 4.1.2 to 4.3.4. (gcc-config switch then re-emerge libtool).
Could a warning be added to boost, so it tells me when it fails that I might have to switch to gcc 4.3.x? (I found this bug through google after trying a few times to get boost to build) Currently I get this error: * ERROR: dev-libs/boost-1.41.0-r3 failed: * building boost failed * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 5195: Called die * The specific snippet of code: * ${BJAM} ${NUMJOBS} -q -d+2 gentoorelease ${OPTIONS} threading=single,multi link=shared,static runtime-link=shared || die "building boost failed"; * * If you need support, post the output of 'emerge --info =dev-libs/boost-1.41.0-r3', * the complete build log and the output of 'emerge -pqv =dev-libs/boost-1.41.0-r3'. * The complete build log is located at '/var/tmp/portage/dev-libs/boost-1.41.0-r3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-libs/boost-1.41.0-r3/temp/environment'. * S: '/var/tmp/portage/dev-libs/boost-1.41.0-r3/work/boost_1_41_0' And this sadly doesn’t state at all what I need to do to make it build. And openoffice needs it. Both are marked stable, so I think there shouldn’t be build failures — at least not without clear information what went wrong and how to fix it. Is it possible to print a conditional error message? if current_gcc < 4.3.4: print "to build this package on your machine, you need to switch to a more recent version of gcc. See gcc-config."