Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45049 - boost-1.31 failes to compile
Summary: boost-1.31 failes to compile
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: George Shapovalov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-18 11:26 UTC by Peter Poulsen
Modified: 2004-03-28 06:45 UTC (History)
0 users

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 Peter Poulsen 2004-03-18 11:26:19 UTC
Trying to emerge dev-libs/boost-1.31.0 fails with:

    set -e 
    g++   -c -Wall -ftemplate-depth-100  -DNDEBUG -DNDEBUG -DBOOST_TEST_NO_AUTO_LINK=1  -O3 -finline-functions -Wno-inline -pthread   -I"bin/boost/libs/test/build"  -I "/var/tmp/portage/boost-1.31.0/work/boost_1_31_0"  -o "bin/boost/libs/test/build/libboost_unit_test_framework.a/gcc/release/threading-multi/test_tools.o"  "/var/tmp/portage/boost-1.31.0/work/boost_1_31_0/libs/test/build/../src/test_tools.cpp" 
    

...failed gcc-C++-action bin/boost/libs/test/build/libboost_unit_test_framework.a/gcc/release/threading-multi/test_tools.o...
...skipped <@boost!libs!test!build/libboost_unit_test_framework.a/gcc/release/threading-multi>libboost_unit_test_framework-gcc-mt-1_31.a for lack of <@boost!libs!test!build/libboost_unit_test_framework.a/gcc/release/threading-multi>libboost_unit_test_framework-gcc-mt-1_31.a(test_tools.o)...
...failed updating 16 targets...
...skipped 16 targets...

!!! ERROR: dev-libs/boost-1.31.0 failed.
!!! Function src_compile, Line 70, Exitcode 1
!!! Failed to build boost libraries.


Reproducible: Always
Steps to Reproduce:
1. Just emerge dev-libs/boost-1.31.0

Actual Results:  
The emerging fails.

Expected Results:  
Emerged successfully

Portage 2.0.50-r1 (default-1.0, gcc-2.95.3, glibc-2.2.5-r2,2.2.5-r9, 2.4.22)
=================================================================
System uname: 2.4.22 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache fixpackages sandbox"
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d aalib acpi avi berkdb bonobo cdr crypt cups dga doc dvd emacs
encode esd gd gdbm ggi gif gnome gnome-libs gnomedb gtk gtk2 gtkhtml guile imlib
java jikes jpeg kde libg++ libwww mikmod mmx motif mozilla mpeg mysql ncurses
nls nptl oggvorbis opengl oss pdflib perl pic png postgres python qt quicktime
readline sdl snmp spell sse ssl svga tcltk tcpd tetex tiff truetype usb wmf x86
xinerama xml xml2 xmms xv zlib"
Comment 1 Steve Romanow 2004-03-18 12:37:58 UTC
will try to build also see if repeatable.  brb.
Comment 2 Steve Romanow 2004-03-18 13:10:09 UTC
built ok for me.  did see dozens of errors about redefinition of _POSIX_C_SOURCE from /usr/include/limits.h and numerous mentions of wrap_python.hpp.  We have similar arch, and pretty tame compiler flags.  Wonder if its gcc 2.95 vs gcc 3.3.2?

lol2 root # emerge info
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.4-mm1)
=================================================================
System uname: 2.6.4-mm1 i686 AMD Athlon(TM) XP1800+
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1
/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/confi
g /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/distfiles"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="3dnow X aalib alsa apache2 apm artswrappersuid avi berkdb bonobo crypt cups
 dvd encode esd foomaticdb freetype gdbm gif gnome gpm gtk gtk2 gtkhtml guile im
lib java jpeg kde libg++ libwww mad mikmod mozilla moznocompose moznoirc moznoma
il mpeg mysql ncurses nls oggvorbis opengl oss pam pda pdflib perl png ppds pyth
on qt quicktime readline sdl slang spell sse ssl svga tcltk tcpd truetype x86 xm
l2 xmms xv zlib"
Comment 3 George Shapovalov (RETIRED) gentoo-dev 2004-03-28 06:45:47 UTC
Hm, I cannot reproduce this either, even with "-O3 -finline-functions -pthread -ftemplate-depth-100" in C[XX]FLAGS (like I see it in the failure report, though you do not have it in your CFLAGS).

It definitely looks like gcc-2.95 related bug. Unfortunately I don't have gcc-2.95 based system around any more :( (and boost does not really belong to any of my herds :), but nobody else has take over it so far..), but I'll see what can be done. 

Meanwhile you can emerge gcc-3.3 (or 3.2) - it can coexist with 2.95.x, and you can use gcc-config to switch between proiles as necessary...

In view of this workaround I'll close this bug with LATER for now.

George