Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86315 - boost-1.32.0-r1 fails to install, internal compiler errors during build
Summary: boost-1.32.0-r1 fails to install, internal compiler errors during build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Disenchanted (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-22 15:00 UTC by antiher0
Modified: 2005-04-23 16:49 UTC (History)
3 users (show)

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


Attachments
pre-processed source cck6mlJi.out - warning: 1.2MB file (cck6mlJi.out,1.21 MB, application/octet-stream)
2005-03-22 15:03 UTC, antiher0
Details

Note You need to log in before you can comment on or make changes to this bug.
Description antiher0 2005-03-22 15:00:34 UTC
During compile of boost, 4 internal compiler errors occur.  The install then fails with:
...failed updating 4 targets...
...skipped 8 targets...
...updated 3262 targets...

!!! ERROR: dev-libs/boost-1.32.0-r1 failed.
!!! Function src_install, Line 134, Exitcode 1
!!! Install failed

Incidentally, this is a hardened system, and boost builds fine if I switch gcc to a vanilla profile.



Reproducible: Always
Steps to Reproduce:
1. Use hardened gcc profile (default for me)
2. emerge boost

Actual Results:  
...failed updating 4 targets...
...skipped 8 targets...
...updated 3262 targets...

!!! ERROR: dev-libs/boost-1.32.0-r1 failed.
!!! Function src_install, Line 134, Exitcode 1
!!! Install failed


Expected Results:  
successful merge


A capture of one of the ICE's follows:
gcc-C++-action
bin/boost/libs/serialization/build/libboost_serialization.a/gcc/debug/xml_oarchive.o
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/include/g++-v3/bits/stl_algobase.h:
In function `_OutputIterator std::copy(_InputIterator, _InputIterator,
_OutputIterator) [with _InputIterator =
boost::archive::iterators::mb_from_wchar<boost::archive::iterators::xml_escape<const
wchar_t*> >, _OutputIterator = boost::archive::iterators::ostream_iterator<char>]':
/var/tmp/portage/boost-1.32.0-r1/work/boost_1_32_0/boost/archive/impl/xml_oarchive_impl.ipp:44:
  instantiated from `void boost::archive::save_iterator(std::ostream&,
InputIterator, InputIterator) [with InputIterator = const wchar_t*]'
/var/tmp/portage/boost-1.32.0-r1/work/boost_1_32_0/boost/archive/impl/xml_oarchive_impl.ipp:63:
  instantiated from `void boost::archive::xml_oarchive_impl<Archive>::save(const
wchar_t*) [with Archive = boost::archive::xml_oarchive]'
/var/tmp/portage/boost-1.32.0-r1/work/boost_1_32_0/libs/serialization/build/../src/xml_oarchive.cpp:26:
  instantiated from here
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/include/g++-v3/bits/stl_algobase.h:358:
internal compiler error: in sweep_string_variable, at protector.c:1158
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into
/var/tmp/portage/boost-1.32.0-r1/temp/cck6mlJi.out file, please attach this to
your bugreport.

    set -e
    "g++"   -c -Wall -ftemplate-depth-255  -DBOOST_TEST_NO_AUTO_LINK=1  -g -O0
-fno-inline   -I"bin/boost/libs/serialization/build"   -I
"/var/tmp/portage/boost-1.32.0-r1/work/boost_1_32_0"  -o
"bin/boost/libs/serialization/build/libboost_serialization.a/gcc/debug/xml_oarchive.o"
 "/var/tmp/portage/boost-1.32.0-r1/work/boost_1_32_0/libs/serialization/build/../src/xml_oarchive.cpp"
    "/usr/bin/objcopy" --set-section-flags .debug_str=contents,debug
"bin/boost/libs/serialization/build/libboost_serialization.a/gcc/debug/xml_oarchive.o"

...failed gcc-C++-action
bin/boost/libs/serialization/build/libboost_serialization.a/gcc/debug/xml_oarchive.o...
...skipped
<@boost!libs!serialization!build/libboost_serialization.a/gcc/debug>libboost_serialization-d.a
for lack of
<@boost!libs!serialization!build/libboost_serialization.a/gcc/debug>libboost_serialization-d.a(xml_oarchive.o)...



emerge info:
Gentoo Base System version 1.6.10
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110,
glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r4-1 i686)
=================================================================
System uname: 2.6.11-gentoo-r4-1 i686 AMD Athlon(tm) XP 2200+
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 18 2005, 10:50:49)]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -fstack-protector"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks sandbox
sfperms userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo
http://gentoo.mirrors.pair.com/ http://open-systems.ufl.edu/mirrors/gentoo
http://gentoo.osuosl.org/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex 3dnowext 3ds X X509 Xaw3d aac aalib aavm aim alsa apache2
arts artworkextra audiofile avi bcmath berkdb bidi bitmap-fonts bmp bonobo
bootsplash bzip2 bzlib calendar canna cap caps cdb cddb cdparanoia cdr chroot
cjk codecs cpdflib crypt cscope ctype cups curl curlwrappers dba dbx devfs26 dga
dio divx4linux djbfft dv dvd dvdr dvdread edl emboss encode erandom esd ethereal
evo exif faac faad fam fbcon ffmpeg fftw flac flash flatfile font-server
foomaticdb fortran freetype freewnn fs ftp gd gdbm gif gimp gimpprint gmp gnome
gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml hal hardened hardenedphp iconv
icq imagemagick imap imlib imlib2 immqt-bc innodb jabber java javascript jbig
jce jit joystick jpeg jpeg2k kde ladcca lcms ldap libcaca libg++ libgda libwww
live lzo lzw-tiff mad maildir mailwrapper matroska mcal memlimit mhash mikmod
mime mmap mmx mmx2 mmxext mng monkey mono motif mozdevelop mozilla moznoirc
mozp3p mp3 mpeg mpeg4 mpi mplayer msn mysql mysqli nas ncurses netcdf network
nocardbus nocd nodrm nptl nvidia oci8 odbc offensive oggvorbis openal opengl
oscar oss pam pcap pcntl pcre pda pdflib perl php physfs pic pie plotutils png
pnp posix ppds prelude python qt quicktime readline real recode rtc samba
scanner sdl session sftplogging shared sharedmem simplexml slang smartcard
sndfile soap sockets socks5 spamassassin speex spell spl sqlite sse ssl svg
sysvipc szip tcpd tga theora tidy tiff tokenizer transcode truetype
truetype-fonts type1-fonts unicode usb uudeview vhosts videos vim-with-x wmf
xine xml xml2 xmlrpc xmms xosd xprint xscreensaver xsl xv xvid xvmc yahoo yv12
zlib" 
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 antiher0 2005-03-22 15:03:59 UTC
Created attachment 54186 [details]
pre-processed source cck6mlJi.out - warning: 1.2MB file
Comment 2 Disenchanted (RETIRED) gentoo-dev 2005-04-08 19:02:03 UTC
can you please retry with gcc-3.4.3.20050110-r2 ?
Comment 3 antiher0 2005-04-11 08:24:23 UTC
I am still getting errors such as the following:

gcc-C++-action bin/boost/libs/serialization/build/libboost_wserialization.a/gcc/debug/threading-multi/xml_wiarchive.o
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/include/g++-v3/bits/stl_algobase.h: In function `_OutputIterator std::copy(_InputIterator, _InputIterator, _OutputIterator) [with _InputIterator = boost::archive::iterators::mb_from_wchar<__gnu_cxx::__normal_iterator<const wchar_t*, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > > >, _OutputIterator = char*]':
/var/tmp/portage/boost-1.32.0-r1/work/boost_1_32_0/boost/archive/impl/xml_wiarchive_impl.ipp:64:   instantiated from here
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/include/g++-v3/bits/stl_algobase.h:358: internal compiler error: in sweep_string_variable, at protector.c:1158
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /var/tmp/portage/boost-1.32.0-r1/temp/cc2Hr2Wn.out file, please attach this to your bugreport.


Thanks!
Comment 4 Disenchanted (RETIRED) gentoo-dev 2005-04-13 15:40:34 UTC
i hit a dead end, i cant reproduce this with my gcc3.4 hardened profile (non-hardened box) so ill need toolchain/hardened backup
Comment 5 Disenchanted (RETIRED) gentoo-dev 2005-04-20 15:14:45 UTC
just cause it is there and builds slightly different, does boost 1.32.0-r2 suit your needs/work for you?
Comment 6 antiher0 2005-04-21 12:10:10 UTC
boost-1.32.0-r2 compiles and merges without issue for me. Thanks! :)
Comment 7 Disenchanted (RETIRED) gentoo-dev 2005-04-23 16:49:22 UTC
considering this fixed