View previous topic :: View next topic |
Author |
Message |
todd93 l33t
Joined: 30 Oct 2006 Posts: 620 Location: Missouri
|
Posted: Thu Dec 31, 2009 2:43 pm Post subject: dev-libs/boost fails to emerge |
|
|
Boost has been failing to emerge, and I believe it is my main problem with my system. it fails with the following error:
Code: | libs/math/build/../src/tr1/asinhf.cpp: In member function 'typename boost::io::basic_altstringbuf<Ch, Tr, Alloc>::pos_type boost::io::basic_altstringbuf<Ch, Tr, Alloc>::seekpos(typename boost::io::CompatTraits<Tr>::compatible_type::pos_type, std::_Ios_Openmode) [with Ch = char, Tr = std::char_traits<char>, Alloc = std::allocator<char>]':
libs/math/build/../src/tr1/asinhf.cpp:17: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.
...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 3997: 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' |
I know the internal compiler error is my problem, I'm just not sure how to correct that problem, I get the same error with any version, as I have tried to mask the newer version, but the same error. I'm really stuck this time, if any more info is needed I will post if it will help to resolve this issue.
Thanks
Todd
Last edited by todd93 on Thu Jan 14, 2010 1:48 pm; edited 2 times in total |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Thu Dec 31, 2009 2:55 pm Post subject: |
|
|
Could you post the output ofandplease?
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
todd93 l33t
Joined: 30 Oct 2006 Posts: 620 Location: Missouri
|
Posted: Thu Dec 31, 2009 5:02 pm Post subject: |
|
|
john_r_graham wrote: | Could you post the output ofandplease?
- John |
You bet!
Emerge --info:
Code: | # emerge --info
Portage 2.1.7.16 (default/linux/x86/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.30-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r6-i686-AMD_Athlon-tm-_XP_2700+-with-gentoo-2.0.1
Timestamp of tree: Thu, 31 Dec 2009 14:00:01 +0000
ccache version 2.4 [disabled]
app-shells/bash: 4.0_p35
dev-java/java-config: 1.3.7-r1, 2.1.10
dev-lang/python: 2.4.6, 2.5.4-r2, 2.6.4, 3.1.1-r1
dev-python/pycrypto: 2.1.0
dev-util/ccache: 2.4-r8
dev-util/cmake: 2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc: 0.6.0
sys-apps/sandbox: 2.2
sys-devel/autoconf: 2.13, 2.65
sys-devel/automake: 1.4_p6, 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.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6b
virtual/os-headers: 2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /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/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=i686 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch policy protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_GB en_US"
MAKEOPTS="-j1"
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/layman/pro-audio /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo fam firefox flac fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 jpeg kde ldap libnotify mad mikmod mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support qt4 quicktime readline reflection sdl session spell spl ssl startup-notification svg sysfs tcpd thunar tiff truetype unicode usb vorbis win32codecs x264 x86 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mmap_emul 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" LINGUAS="en en_GB en_US" RUBY_TARGETS="ruby18" SANE_BACKENDS="hp hp3500 hp3900 hp4200 hp5400 hp5590 hpljm1005 hpsj5s" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS |
gcc-config -l:
Code: | # gcc-config -l
[1] i686-pc-linux-gnu-4.1.2
[2] i686-pc-linux-gnu-4.2.4
[3] i686-pc-linux-gnu-4.3.4
[4] i686-pc-linux-gnu-4.4.2 * |
Thanks in advance for anything you can do to help!!!
Todd |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Thu Dec 31, 2009 5:17 pm Post subject: |
|
|
You may need to re-sync and re-emerge gcc to fix this problem. |
|
Back to top |
|
|
todd93 l33t
Joined: 30 Oct 2006 Posts: 620 Location: Missouri
|
Posted: Thu Dec 31, 2009 6:24 pm Post subject: |
|
|
Mike Hunt wrote: | You may need to re-sync and re-emerge gcc to fix this problem. |
Thanks for the input, when I tried your suggestion, gcc failed with the following error:
Code: | make: *** [bootstrap-lean] Error 2
* ERROR: sys-devel/gcc-4.4.2 failed:
* emake failed with bootstrap-lean
*
* Call stack:
* ebuild.sh, line 54: Called src_compile
* environment, line 4977: Called toolchain_src_compile
* environment, line 5539: Called gcc_src_compile
* environment, line 3162: Called gcc_do_make
* environment, line 2952: Called die
* The specific snippet of code:
* emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
*
* If you need support, post the output of 'emerge --info =sys-devel/gcc-4.4.2',
* the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.4.2'.
* The complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.4.2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.4.2/temp/environment'.
* S: '/var/tmp/portage/sys-devel/gcc-4.4.2/work/build' |
Bizarre
Thanks
Todd |
|
Back to top |
|
|
EzInKy Veteran
Joined: 11 Oct 2002 Posts: 1742 Location: Kentucky
|
Posted: Thu Dec 31, 2009 6:26 pm Post subject: |
|
|
Was there another segfault involved? Checking dmesg may give your more information. _________________ Time is what keeps everything from happening all at once. |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Thu Dec 31, 2009 6:54 pm Post subject: |
|
|
The reason that the latest compilers are masked is (among other things) that not everything compiles (or runs) cleanly under them. Select the latest stable compiler (which I see you already have installed) with Code: | gcc-config 3
env-update
source /etc/profile | and then retry your gcc and boost emerges.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
todd93 l33t
Joined: 30 Oct 2006 Posts: 620 Location: Missouri
|
Posted: Thu Dec 31, 2009 9:39 pm Post subject: |
|
|
john_r_graham wrote: | The reason that the latest compilers are masked is (among other things) that not everything compiles (or runs) cleanly under them. Select the latest stable compiler (which I see you already have installed) with Code: | gcc-config 3
env-update
source /etc/profile | and then retry your gcc and boost emerges.
- John |
John,
I appreciate your input with this issue, however, I regret to say that gcc is still failing with the same error. I do have the dmesg output in a .txt file if that would help.
Thanks
Todd |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Thu Dec 31, 2009 10:00 pm Post subject: |
|
|
Did you do env-update && source /etc/profile after switching the gcc?
Is your processor overclocked? |
|
Back to top |
|
|
todd93 l33t
Joined: 30 Oct 2006 Posts: 620 Location: Missouri
|
Posted: Thu Dec 31, 2009 10:26 pm Post subject: |
|
|
Mike Hunt wrote: | Did you do env-update && source /etc/profile after switching the gcc?
Is your processor overclocked? |
Yes, I did the env-update && source /etc/profile, and no, my processor is not overclocked. It is, however very old, and early in 2010, I am going to be building a new machine, just trying to get by until then |
|
Back to top |
|
|
drescherjm Advocate
Joined: 05 Jun 2004 Posts: 2790 Location: Pittsburgh, PA, USA
|
|
Back to top |
|
|
todd93 l33t
Joined: 30 Oct 2006 Posts: 620 Location: Missouri
|
Posted: Fri Jan 01, 2010 1:41 pm Post subject: |
|
|
drescherjm wrote: | Are you sure you are not running out of swap? |
That is entirely possible.
Let me do some investigating into that and post back
Thanks
Todd |
|
Back to top |
|
|
todd93 l33t
Joined: 30 Oct 2006 Posts: 620 Location: Missouri
|
Posted: Fri Jan 01, 2010 3:34 pm Post subject: |
|
|
drescherjm wrote: | Are you sure you are not running out of swap? |
Ok, thought for sure that was going to work, I added swap space, re-synced, and am getting the same error with gcc. Not sure what could be doing it, unless I added swap improperly, I used the steps on this page: http://www.go2linux.org/Swap-memory-increase-with-swap-file. It seemed to work just fine, but maybe I did something wrong. I have plenty of space, so I added a gigabyte.
Thanks
Todd |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri Jan 01, 2010 10:37 pm Post subject: |
|
|
Run "top" during the compile to show swap space usage. It'll also show you if you added it correctly.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
few Guru
Joined: 03 Mar 2008 Posts: 448
|
Posted: Fri Jan 01, 2010 11:29 pm Post subject: |
|
|
Looking at the error message, it's very unlikely that you are running out of memory. Programs usually die with "killed" in this case, but not "segmentation fault". (OT: free -m is useful to monitor memory usage; use MAEKOPTS="-j1" to minimize memory usage during compilation)
Two things would be interesting now.
a) Is the failure in boost reproducible (always the same error message at the same command)?
b) What's the error for the gcc failure. |
|
Back to top |
|
|
todd93 l33t
Joined: 30 Oct 2006 Posts: 620 Location: Missouri
|
Posted: Sat Jan 02, 2010 2:52 pm Post subject: |
|
|
few wrote: | Looking at the error message, it's very unlikely that you are running out of memory. Programs usually die with "killed" in this case, but not "segmentation fault". (OT: free -m is useful to monitor memory usage; use MAEKOPTS="-j1" to minimize memory usage during compilation)
Two things would be interesting now.
a) Is the failure in boost reproducible (always the same error message at the same command)?
b) What's the error for the gcc failure. |
Thanks for your input! to answer your questions, a) Yes, the failure in boost is reproducible, it does the same thing every time I enter the emerge -v command.
And b) the failure with gcc occurred when someone posted that I might need to rebuild gcc. The error I get with that failure is the following:
Code: | /var/tmp/portage/sys-devel/gcc-4.4.2/work/gcc-4.4.2/gcc/final.c:1373: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.
make[3]: *** [final.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.2/work/build/gcc'
make[2]: *** [all-stage3-gcc] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.2/work/build'
make[1]: *** [stage3-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.2/work/build'
make: *** [bootstrap-lean] Error 2
* ERROR: sys-devel/gcc-4.4.2 failed:
* emake failed with bootstrap-lean
*
* Call stack:
* ebuild.sh, line 54: Called src_compile
* environment, line 4977: Called toolchain_src_compile
* environment, line 5539: Called gcc_src_compile
* environment, line 3162: Called gcc_do_make
* environment, line 2952: Called die
* The specific snippet of code:
* emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
*
* If you need support, post the output of 'emerge --info =sys-devel/gcc-4.4.2',
* the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.4.2'.
* The complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.4.2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.4.2/temp/environment'.
* S: '/var/tmp/portage/sys-devel/gcc-4.4.2/work/build' |
I have found this error posted on bugzilla here: https://bugs.gentoo.org/show_bug.cgi?id=290891
Thanks
Todd |
|
Back to top |
|
|
todd93 l33t
Joined: 30 Oct 2006 Posts: 620 Location: Missouri
|
Posted: Sat Jan 02, 2010 3:21 pm Post subject: |
|
|
john_r_graham wrote: | Run "top" during the compile to show swap space usage. It'll also show you if you added it correctly.
- John |
I ran "top" during a compile, and apparently I did add the swap correctly, it now rivals my physical memory at 1.5 GB, compiling used up my physical memory, but it did not use very much swap at all.
Thanks
Todd |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Sat Jan 02, 2010 3:44 pm Post subject: |
|
|
This internal compiler error: Segmentation fault is sometimes caused by hardware problems, but not necessarily the processor.
Also it could be the gcc-version, but since you switched to 4.3.4 (have you verified that to be sure?)
Possibly a busted toolchain, can you emerge anything? Have you tried emerge -e system |
|
Back to top |
|
|
few Guru
Joined: 03 Mar 2008 Posts: 448
|
Posted: Sat Jan 02, 2010 9:25 pm Post subject: |
|
|
Did you change your C(XX)FLAGS recently? |
|
Back to top |
|
|
todd93 l33t
Joined: 30 Oct 2006 Posts: 620 Location: Missouri
|
Posted: Sat Jan 02, 2010 10:02 pm Post subject: |
|
|
few wrote: | Did you change your C(XX)FLAGS recently? |
No, I don't recall changing that. I think this is all an issue that will lead me back to python. I am having a lot of difficulties with my system, and I need boost to compile for the python updater to complete. |
|
Back to top |
|
|
todd93 l33t
Joined: 30 Oct 2006 Posts: 620 Location: Missouri
|
Posted: Sat Jan 02, 2010 10:06 pm Post subject: |
|
|
Mike Hunt wrote: | This internal compiler error: Segmentation fault is sometimes caused by hardware problems, but not necessarily the processor.
Also it could be the gcc-version, but since you switched to 4.3.4 (have you verified that to be sure?)
Possibly a busted toolchain, can you emerge anything? Have you tried emerge -e system |
Very possible this could be a hardware issue. I can emerge certain things, however, I can't emerge -uDNv world, it is giving me a unicode error. I can emerge individual packages, however. Also, emerge -e system is working fine as I post.
Thanks
Todd |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Sun Jan 03, 2010 3:25 am Post subject: |
|
|
If emerge -e system completes successfully, then this all really sounds more like basic system-administration errors, not hardware issues.
After emerge -e system finishes you should check that your eselect python show reports 2.6 and gcc-config -l reports 4.3.4
Also run 'hash -r' in your active shells.
also run perl-cleaner all
emerge -1 libtool
env-update && source /etc/profile
revdep-rebuild
Although time consuming, it may not be a bad idea to emerge -e world followed by perl-cleaner all && emerge -1 libtool - your choice.
Also, always pay attention to emerge postinst messages. Use eread if necessary. |
|
Back to top |
|
|
todd93 l33t
Joined: 30 Oct 2006 Posts: 620 Location: Missouri
|
Posted: Sun Jan 03, 2010 5:20 pm Post subject: |
|
|
Mike Hunt wrote: | If emerge -e system completes successfully, then this all really sounds more like basic system-administration errors, not hardware issues.
After emerge -e system finishes you should check that your eselect python show reports 2.6 and gcc-config -l reports 4.3.4
Also run 'hash -r' in your active shells.
also run perl-cleaner all
emerge -1 libtool
env-update && source /etc/profile
revdep-rebuild
Although time consuming, it may not be a bad idea to emerge -e world followed by perl-cleaner all && emerge -1 libtool - your choice.
Also, always pay attention to emerge postinst messages. Use eread if necessary. |
The problem here is that "emerge -e system" hasn't completed successfully. It fails on various packages for no reason, as the packages it has failed on will emerge just fine if I run the command again.
This is bizarre.
Thanks
Todd |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Sun Jan 03, 2010 5:28 pm Post subject: |
|
|
Might be time to load the install CD and run memtest.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
todd93 l33t
Joined: 30 Oct 2006 Posts: 620 Location: Missouri
|
Posted: Wed Jan 06, 2010 6:22 am Post subject: |
|
|
john_r_graham wrote: | Might be time to load the install CD and run memtest.
- John |
John,
Thank you so very much, sir, and I would like to thank everyone who helped me with all the input that they have provided. I emerged memtest, booted into it and low and behold, I have some bad memory. I am going to put this problem on hold until I can get some memory for this machine and see if that solves my problem, willing to bet that it won't hurt.
Thanks again everyone for the help you all have given me on this!
Todd |
|
Back to top |
|
|
|