Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Boost libraries fail
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
deathcon1
Apprentice
Apprentice


Joined: 30 Aug 2007
Posts: 182
Location: Canada

PostPosted: Wed Jul 16, 2008 1:27 pm    Post subject: Boost libraries fail Reply with quote

I'm trying to get the boost libraries to compile, but they keep failing on a segfault. There is a line that's complaining about something to do with the GraphML libraries. Anyone else had this?
Back to top
View user's profile Send private message
Arfrever
Bodhisattva
Bodhisattva


Joined: 29 Apr 2006
Posts: 2463
Location: 異世界

PostPosted: Wed Jul 16, 2008 2:25 pm    Post subject: Reply with quote

Post the exact error and the output of:
Code:
emerge --info
emerge -ptv boost
Back to top
View user's profile Send private message
deathcon1
Apprentice
Apprentice


Joined: 30 Aug 2007
Posts: 182
Location: Canada

PostPosted: Thu Jul 17, 2008 8:15 pm    Post subject: Reply with quote

emerge --info:
Code:
Reaper linux # emerge --info
Portage 2.2_rc1 (default/linux/amd64/2008.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.25-gentoo-r6-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9300_@_2.50GHz-with-glibc2.2.5
Timestamp of tree: Wed, 16 Jul 2008 16:45:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.4.4-r13, 2.5.2-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ABI="amd64"
ACCEPT_KEYWORDS="amd64 ~amd64"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 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"
ARCH="amd64"
ASFLAGS_x86="--32"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CDEFINE_amd64="__x86_64__"
CDEFINE_x86="__i386__"
CFLAGS="-O2 -pipe -march=core2 -fomit-frame-pointer"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
CLASSPATH="."
CLEAN_DELAY="5"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CVS_RSH="ssh"
CXXFLAGS="-O2 -pipe -march=core2 -fomit-frame-pointer"
DEFAULT_ABI="amd64"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--ask --verbose"
EMERGE_WARNING_DELAY="10"
FEATURES="distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
GCC_SPECS=""
GDK_USE_XFT="1"
GENTOO_MIRRORS="http://cdot.senecac.on.ca/software/gentoo/"
GUILE_LOAD_PATH="/usr/share/guile/1.8"
HOME="/root"
INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.18/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.1/info"
INPUT_DEVICES="keyboard synaptics"
JAVAC="/etc/java-config-2/current-system-vm/bin/javac"
JAVA_HOME="/etc/java-config-2/current-system-vm"
JDK_HOME="/etc/java-config-2/current-system-vm"
KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LDFLAGS="-Wl,-O1"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBDIR_amd64="lib64"
LIBDIR_ppc="lib32"
LIBDIR_ppc64="lib64"
LIBDIR_x86="lib32"
LOGNAME="root"
LS_COLORS="rs=0:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:"
MAIL="/var/mail/root"
MAKEOPTS="-j55555"
MANPATH="/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.18/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.1/man:/etc/java-config/system-vm/man/:/usr/lib64/php5/man/"
MULTILIB_ABIS="amd64 x86"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage)"
OLDPWD="/root"
OPENGL_PROFILE="xorg-x11"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.1"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc s390 amd64 x86 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha hppa sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib64/portage/bin"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save_summary echo"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_PYM_PATH="/usr/lib64/portage/pym"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PRELINK_PATH_MASK="/usr/lib64/klibc"
PWD="/usr/src/linux"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.1"
RPMDIR="/usr/portage/rpm"
SHELL="/bin/bash"
SHLVL="1"
SSH_CLIENT="192.168.1.128 49517 22"
SSH_CONNECTION="192.168.1.128 49517 192.168.1.106 22"
SSH_TTY="/dev/pts/1"
STAGE1_USE="multilib nptl nptlonly unicode"
SYMLINK_LIB="yes"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
TERM="xterm"
USE="X a52 aac acl acpi aim alsa amd64 apache2 apm arts atm avahi bash-completion berkdb bluetooth branding bzip2 cairo cdda cddb cdinstall cdparanoida cdr cgi clamav cli cracklib crypt css cups cvs dbus dri dts dv dvd dvdr dvdread eds encode evo exif fam ffmpeg firefox flac fortran ftp gd gdbm gif gimp glitz glut gnome gnome-keyring gnome-print gnuplot gnutls gphoto2 gpm gsl gstreamer gtk hal hddtemp iconv ieee1394 imagemagick ipv6 isdnlog jabber java javascript jpeg jpeg2k lame laptop latex lcms libcaca libnotify lm_sensors mad midi mime mmx mp3 mpeg mplayer msn mudflap multilib musepack musicbrainz mysql mysqli nas ncurses networking networkmanager nls nntp nptl nptlonly nvidia odbc offensive ogg opengl openmp pam pcmcia pcre perl php plotutils png pppd prelude python quicktime radius raw rdesktop readline reflection rss ruby samba session shout skins sockets speex spell spl sse sse2 ssl startup-notification stream subversion svg syslog tcpd tiff tokenizer truetype unicode upnp usb vcd vhosts vim-syntax vorbis wavpack wifi wmf x264 xattr xine xinerama xml xorg xscreensaver xulrunner xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev"
USER="root"
USERLAND="GNU"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="nvidia vesa fbdev"
_="/usr/bin/emerge"


emerge -ptv boost
Code:
Reaper linux # emerge -ptv boost
>>> --pretend disables --ask... removing --ask from options.

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild  N    ] dev-libs/boost-1.35.0-r1  USE="-debug -doc -expat -icu -mpi -tools" 0 kB

Total: 1 package (1 new), Size of downloads: 0 kB


emerge boost:
Code:
Reaper linux # emerge -1 boost

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] dev-libs/boost-1.35.0-r1  USE="-debug -doc -expat -icu -mpi -tools" 0 kB

Total: 1 package (1 new), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No]
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) dev-libs/boost-1.35.0-r1 to /
 * boost_1_35_0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                   [ ok ]
 * boost-patches-1.35.0-2.tbz2 RMD160 SHA1 SHA256 size ;-) ...            [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking boost_1_35_0.tar.bz2 ;-) ...                                  [ ok ]
 * checking boost-patches-1.35.0-2.tbz2 ;-) ...                           [ ok ]
>>> cfg-update-1.8.2-r1: Checksum index is up-to-date ...
>>> Unpacking source...
>>> Unpacking boost_1_35_0.tar.bz2 to /var/tmp/portage/dev-libs/boost-1.35.0-r1/work
>>> Unpacking boost-patches-1.35.0-2.tbz2 to /var/tmp/portage/dev-libs/boost-1.35.0-r1/work
 * Applying various patches (bugfixes/updates) ...
 *   01_all_1.35.0-gcc-4.3-fixes-pulled_from_trunk.patch ...              [ ok ]
 *   02_all_1.35.0-0001-serialization-gcc-4.3-compile-fixes.bug-1616-included.patch ...                                                                   [ ok ]
 *   03_all_1.35.0-0001-spirit-gcc-4.3-fixes.bug-1617-not_included.patch  [ ok ]
 *   04_all_1.35.0-0001-mpl-g-4.3-fix.bug-1528-not-included.patch ...     [ ok ]
 *   05_all_1.35.0-0001-date_time-gcc-4.3-fix.bug-1615-not_included.patc  [ ok ]
 *   06_all_1.35.0-0002-serialisation-utility-include.bug-1822-not_included.patch ...                                                                     [ ok ]
 *   07_all_1.35.0-fix_mpi_installation.patch ...                         [ ok ]
 *   08_all_1.35.0-use_shared_expat.patch ...                             [ ok ]
 * Done with patching
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-libs/boost-1.35.0-r1/work/boost_1_35_0 ...
 * Writing new user-config.jam
 * Using the following options to build:
 *   gentoorelease --without-mpi --user-config=/var/tmp/portage/dev-libs/boost-1.35.0-r1/work/boost_1_35_0/user-config.jam --boost-build=/usr/share/boost-build
warning: Graph library does not contain optional GraphML reader.
note: to enable GraphML support, set EXPAT_INCLUDE and EXPAT_LIBPATH to the
note: directories containing the Expat headers and libraries, respectively.
Building Boost.Regex with the optional Unicode/ICU support disabled.
Please refer to the Boost.Regex documentation for more information
(don't panic: this is a strictly optional feature).
Skipping build of:  ./headers  <build>no in common properties
Skipping build of:  ./stage-unversioned  <build>no in common properties
Skipping build of:  ./install-unversioned  <build>no in common properties
Skipping build of:  ./build_all  <build>no in common properties
Skipping build of:  ./headers  <build>no in common properties
Skipping build of:  ./stage-unversioned  <build>no in common properties
Skipping build of:  ./install-unversioned  <build>no in common properties
Skipping build of:  ./build_all  <build>no in common properties
...patience...
...patience...
...found 4867 targets...
...updating 1162 targets...
/var/tmp/portage/dev-libs/boost-1.35.0-r1/temp/environment: line 3058: 19223 Segmentation fault      bjam ${NUMJOBS} -q ${OPTIONS} threading=single,multi link=shared,static runtime-link=shared,static --prefix="${D}/usr" --layout=system
 *
 * ERROR: dev-libs/boost-1.35.0-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3065:  Called die
 * The specific snippet of code:
 *       bjam ${NUMJOBS} -q ${OPTIONS} threading=single,multi link=shared,static runtime-link=shared,static --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.35.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/boost-1.35.0-r1/temp/environment'.


P.S. this is my largest single post, on a forum, anyhwere :D
Back to top
View user's profile Send private message
vuakko
Tux's lil' helper
Tux's lil' helper


Joined: 09 May 2007
Posts: 138
Location: Helsinki, Finland

PostPosted: Thu Jul 17, 2008 10:02 pm    Post subject: Reply with quote

You seem to have Portage 2.2. Can you check the log files, see which target/library/config it segfaulted in?
What is the version of boost-build?

If nothing else, I would probably try compiling Boost from the sources and see where the problem emerges.
Use something like the following in the untarred directory
Code:

bjam link=static,shared runtime-link=static,shared threading=multi,single --toolset=gcc --layout=system --build-dir=/tmp/boost-build --with-XYZ stage

where XYZ is the lib name you want to build. Just try doing it a few at a time, there's only 15 libs that need building
(see them with ./configure --show-libraries).

The GraphML warning just means that the support for read/write of GraphML in Boost.Graph doesn't get built, I don't know any programs that
actually need this (there are those definitely though). The instructions for building it are shown there in the output.
Back to top
View user's profile Send private message
deathcon1
Apprentice
Apprentice


Joined: 30 Aug 2007
Posts: 182
Location: Canada

PostPosted: Sat Jul 19, 2008 3:39 pm    Post subject: Reply with quote

Alright...so I think I got it...



:oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops:
MAKEOPTS="-j55555"
to
MAKEOPTS="-j5"

Yea...so turns out this has fixed quite a few problems, stupid sticky keys...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum