Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 229937 - dev-libs/boost-1.35.0-r1 compilation problem
Summary: dev-libs/boost-1.35.0-r1 compilation problem
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-28 20:06 UTC by Vladimir Kokarev
Modified: 2008-10-11 01:53 UTC (History)
2 users (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 Vladimir Kokarev 2008-06-28 20:06:23 UTC
I can't emerge boost-1.35.0-r1
compilation process hangs after this part:
------
gcc.archive bin.v2/libs/date_time/build/gcc-4.3/gentoorelease/link-static/threading-multi/libboost_date_time-mt.a
MkDir1 bin.v2/libs/graph/build/gcc-4.3/gentoorelease/link-static/runtime-link-static/threading-multi
gcc.compile.c++ bin.v2/libs/date_time/build/gcc-4.3/gentoorelease/threading-multi/greg_month.o
gcc.link.dll bin.v2/libs/date_time/build/gcc-4.3/gentoorelease/threading-multi/libboost_date_time-mt.so
gcc.compile.c++ bin.v2/libs/serialization/build/gcc-4.3/gentoorelease/threading-multi/xml_wgrammar.o
MkDir1 bin.v2/libs/graph/build/gcc-4.3/gentoorelease/link-static/threading-multi
gcc.link.dll bin.v2/libs/wave/build/gcc-4.3/gentoorelease/threading-multi/libboost_wave-mt.so
gcc.link.dll bin.v2/libs/serialization/build/gcc-4.3/gentoorelease/threading-multi/libboost_wserialization-mt.so
MkDir1 bin.v2/libs/graph/build/gcc-4.3/gentoorelease/threading-multi
-------
at this point emerge processes become idle and memory consumption grows about 20 mb per minute, so I just have to Ctrl+C. (Tried to wait till ~4 gb memory usage).

Reproducible: Always

Steps to Reproduce:
1.emerge =dev-libs/boost-1.35.0-r1

Actual Results:  
compilation process hangs


emerge --info
Portage 2.2_rc1 (default-linux/amd64/2007.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.25-gentoo-r5-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3600+-with-glibc2.2.5
Timestamp of tree: Sat, 28 Jun 2008 18:45:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
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
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r2
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64 -fomit-frame-pointer -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
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"
CXXFLAGS="-O2 -pipe -march=athlon64 -fomit-frame-pointer -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.hackers/pub/gentoo http://gentoo.tiscali.nl/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirror.qubenet.net/mirror/gentoo/ http://gentoo.inode.at/"
LANG="en_US.UTF-8"
LC_ALL=""
LDFLAGS=""
LINGUAS="en"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
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/overlays/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 apache2 audiofile bash-completion berkdb bluetooth cairo cdda cdr cli cracklib crypt cups dbus device-mapper djvu dri dts dvd dvdr dvdread encode ffmpeg flac fortran ftp gdbm gif gnome gphoto2 gpm gtk hal hddtemp iconv ipv6 isdnlog java jpeg libnotify lirc lm_sensors mad matroska midi mmx mmxext mp2 mp3 mpeg mplayer mudflap musepack musicbrainz mysql ncurses nls nptl nptlonly nsplugin ntfs ogg opengl openmp pam pcre pdf perl php png pppd python quicktime raw readline reflection samba sdl session slang smp spl srt sse sse2 ssl ssse3 svg tcpd threads tiff truetype unicode usb userlocales vorbis wxwindows x264 xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="emu10k1" 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 mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" LIRC_DEVICES="devinput" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Vladimir Kokarev 2008-06-28 20:29:34 UTC
changing MAKEOPTS to "-j1" solved the problem
Comment 2 Richard Konrad 2008-07-02 00:38:56 UTC
I have the same problem as described below and the print-out would be verbatim.

emerge --info

System uname: Linux-2.6.25-gentoo-r4-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-glibc2.2.5
Timestamp of tree: Tue, 01 Jul 2008 23:45:01 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r13, 2.5.2-r4
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-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ ftp://gentoo.arcticnetwork.ca/pub/gentoo/ http://gentoo.arcticnetwork.ca/source/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ "
LDFLAGS=""
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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=""
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 berkdb bzip2 cdr cli cracklib crypt cups dri dvd dvdr fortran gdbm gpm gtk iconv ipv6 isdnlog midi mmx mplayer mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl tcpd truetype type1 unicode xorg 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 mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Richard Konrad 2008-07-02 00:41:07 UTC
(In reply to comment #2)
> I have the same problem as described below and the print-out would be verbatim.
> 
> emerge --info
> 
> System uname:
> Linux-2.6.25-gentoo-r4-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-glibc2.2.5
> Timestamp of tree: Tue, 01 Jul 2008 23:45:01 +0000
> app-shells/bash:     3.2_p17-r1
> dev-lang/python:     2.4.4-r13, 2.5.2-r4
> 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-r2
> sys-devel/autoconf:  2.13, 2.62
> sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
> sys-devel/binutils:  2.18-r1
> sys-devel/gcc-config: 1.4.0-r4
> sys-devel/libtool:   2.2.4
> virtual/os-headers:  2.6.23-r3
> ACCEPT_KEYWORDS="amd64 ~amd64"
> CBUILD="x86_64-pc-linux-gnu"
> CFLAGS="-march=athlon64 -O2 -pipe"
> CHOST="x86_64-pc-linux-gnu"
> CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
> /usr/kde/3.5/shutdown /usr/share/config"
> CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf
> /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
> CXXFLAGS="-march=athlon64 -O2 -pipe"
> DISTDIR="/usr/portage/distfiles"
> FEATURES="distlocks parallel-fetch preserve-libs sandbox sfperms strict
> unmerge-orphans userfetch"
> GENTOO_MIRRORS="http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/
> ftp://gentoo.arcticnetwork.ca/pub/gentoo/
> http://gentoo.arcticnetwork.ca/source/
> http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/
> ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/
> ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/
> http://distro.ibiblio.org/pub/linux/distributions/gentoo/ "
> LDFLAGS=""
> MAKEOPTS="-j3"
> PKGDIR="/usr/portage/packages"
> 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=""
> SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
> USE="X acl alsa amd64 berkdb bzip2 cdr cli cracklib crypt cups dri dvd dvdr
> fortran gdbm gpm gtk iconv ipv6 isdnlog midi mmx mplayer mudflap multilib
> ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection
> session spl sse sse2 ssl tcpd truetype type1 unicode xorg 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 mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz
> cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU"
> VIDEO_CARDS="nvidia"
> Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL,
> LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
> 

I have a dual core processor.  Should I change MAKEOPTS TO -j1 for boost only then change it back to -j3?
Comment 4 Duncan 2008-10-11 01:53:19 UTC
This needs reopened, please.  MAKEOPTS=-j1 isn't a fix, only a workaround.

@ Richard:  Yes, but there's a better way, at least with newer portage (I run ~arch and don't remember when this feature was added).  Create this file: /etc/portage/env/dev-libs/boost .  Put in it a single line, 

MAKEOPTS=-j1

With a new enough portage, that should be all you need to do.  Portage will use only a single job when merging that package, but will automatically go back to your normal number of jobs for others.

This idea can be used for some but not all other settings as well.  In general, it works for anything controlled at the ebuild/bash level in portage, but not those values (such as some features) controlled at the python level.  The easiest way is to check it and see.  If it works, you won't have to worry about remembering how you got it to work the next time you remerge or update the package.  Just remember to check the stale env/*/* files once in awhile (comment the entries and test), and see if the problem has been fixed yet.

Duncan (using the above env file solution here)