Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 245243 - a few kde-4.1.x packages fail to build, cmake throws std::out_of_range (bug in sandbox?)
Summary: a few kde-4.1.x packages fail to build, cmake throws std::out_of_range (bug i...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 245430 245497 246066 246305 246325 246520 247163 247360 251207 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-11-02 08:47 UTC by SpanKY
Modified: 2009-03-02 14:41 UTC (History)
12 users (show)

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


Attachments
kde-base:kaddressbook-4.1.2:20081102-084309.log (kde-base:kaddressbook-4.1.2:20081102-084309.log,5.39 KB, text/plain)
2008-11-02 08:47 UTC, SpanKY
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2008-11-02 08:47:25 UTC
dev-util/cmake-2.6.2 is installed with gcc-4.3.2

[ebuild  NS   ] kde-base/kaddressbook-4.1.2 [3.5.9] USE="kontact -debug -gnokii -htmlhandbook -kdeprefix" 0 kB

...
-- Found assuan v1.0.5, checking for flavours...
--  Found flavour 'vanilla', checking whether it's usable...yes
--  Found flavour 'pthread', checking whether it's usable...yes
--  Found flavour 'pth', checking whether it's usable...yes
-- Usable assuan flavours found:  vanilla pthread pth
-- Performing Test HAVE_ASSUAN_FD_T
terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::erase
/var/tmp/portage/kde-base/kaddressbook-4.1.2/temp/environment: line 814: 18816 Aborted                 cmake ${cmakeargs} "${S}"
 *
 * ERROR: kde-base/kaddressbook-4.1.2 failed.
 * Call stack:
 * ebuild.sh, line   49:  Called src_configure
 * environment, line 3358:  Called kde4-meta_src_configure
 * environment, line 2633:  Called kde4-base_src_configure
 * environment, line 2368:  Called cmake-utils_src_configureout
 * environment, line  820:  Called die
 * The specific snippet of code:
 * cmake ${cmakeargs} "${S}" || die "Cmake failed";
 * The die message:
 * Cmake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/kde-base:kaddressbook-4.1.2:20081102-084309.log'.
 * The ebuild environment file is located at '/var/tmp/portage/kde-base/kaddressbook-4.1.2/temp/environment'.
 *

>>> Failed to emerge kde-base/kaddressbook-4.1.2, Log file:




Portage 2.2_rc12 (default-linux/amd64/2006.1/desktop, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.26.2 x86_64)
=================================================================
System uname: Linux-2.6.26.2-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-glibc2.2.5
Timestamp of tree: Sat, 01 Nov 2008 07:02: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-lang/python:     2.4.4-r13, 2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     9999
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.15.92.0.2-r10, 2.16-r1, 2.16.1, 2.16.1-r3, 2.16.90.0.3, 2.16.91.0.1, 2.16.91.0.2, 2.16.91.0.3, 2.16.91.0.4, 2.16.91.0.5, 2.16.91.0.6, 2.16.91.0.7, 2.16.92, 2.16.93, 2.16.94, 2.17-r1, 2.17.50.0.2, 2.17.50.0.3, 2.17.50.0.4, 2.17.50.0.5, 2.17.50.0.6, 2.17.50.0.7, 2.17.50.0.8, 2.17.50.0.9, 2.17.50.0.10, 2.17.50.0.11, 2.17.50.0.12, 2.17.50.0.13, 2.17.50.0.14, 2.17.50.0.15, 2.17.50.0.16, 2.17.50.0.17, 2.17.50.0.18, 2.18-r2, 2.18.50.0.1, 2.18.50.0.2, 2.18.50.0.3, 2.18.50.0.4, 2.18.50.0.5, 2.18.50.0.6, 2.18.50.0.7, 2.18.50.0.8, 2.18.50.0.9, 2.19, 2.19.50.0.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe -g -Wimplicit-function-declaration"
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 /var/qmail/alias /var/qmail/control /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /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/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=k8 -pipe -g"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildsyspkg ccache collision-protect cvs distlocks noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
INSTALL_MASK="/usr/share/applications /usr/kde/*/share/applications"
LANG="en_US.UTF8"
LDFLAGS="-Wl,-O1 -Wl,-z,relro"
LINGUAS="en en_GB de es cs ru"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="lzma"
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 /usr/local/src/gentoo/overlays/vapier/enlightenment"
SYNC="rsync://gentoo/gentoo-portage"
USE="X a52 aac aalib accessibility acl adns agg aio alsa amd64 apache2 asf audiofile berkdb bitmap-fonts bzip2 cairo cddb cdparanoia cdr cli console cracklib crypt cups curl cvs dba dbus divx4linux dri dts dvb dvd dvdr dvdread emboss encode exif fbcon ffmpeg firefox flac flash fortran ftp gcj gd gif glib glitz glut gmp gphoto2 gpm gtk gtk2 iconv imap imlib ipv6 isdnlog jbig joystick jpeg jpeg2k libcaca libedit lzo lzw mad maildir matroska midi mikmod mime mjpeg mng modplug mp3 mpeg mplayer mudflap multislot musepack mysql ncurses nls nptl nptlonly nsplugin nvidia objc objc-gc offensive ogg oggvorbis openal opengl openmp pcre pdf perl pic png ppds pppd pulseaudio python qt3 qt4 quicktime readline redland reflection samba sdl session sndfile snmp spell spl sqlite ssl subtitles subversion svg syslog tcl tcltk tcpd tga theora threads tiff tk truetype truetype-fonts type1-fonts unicode usb vcd vorbis wma wmf xanim xattr xcomposite xine xinerama xml xml2 xorg xpm xrandr xv xvid xvmc zip 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 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" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="mouse keyboard joystick void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB de es cs ru" USERLAND="GNU" VIDEO_CARDS="nvidia nv ati r128 radeon vga sisusb"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, LC_ALL, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2008-11-02 08:47:45 UTC
Created attachment 170520 [details]
kde-base:kaddressbook-4.1.2:20081102-084309.log
Comment 2 SpanKY gentoo-dev 2008-11-03 17:02:56 UTC
i'm seeing this on a handful of packages on my ppc64 ... seems to work with FEATURES=-sandbox ...
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2008-11-03 18:51:29 UTC
*** Bug 245430 has been marked as a duplicate of this bug. ***
Comment 4 Tomáš Chvátal (RETIRED) gentoo-dev 2008-11-04 10:58:37 UTC
*** Bug 245497 has been marked as a duplicate of this bug. ***
Comment 5 Tomáš Chvátal (RETIRED) gentoo-dev 2008-11-08 14:06:10 UTC
*** Bug 246066 has been marked as a duplicate of this bug. ***
Comment 6 Barry Salter 2008-11-08 16:49:02 UTC
(In reply to comment #2)
> i'm seeing this on a handful of packages on my ppc64 ... seems to work with
> FEATURES=-sandbox ...
> 

Works fine on amd64 with FEATURES=-sandbox as well.
Comment 7 Markos Chandras (RETIRED) gentoo-dev 2008-11-10 21:57:02 UTC
*** Bug 246305 has been marked as a duplicate of this bug. ***
Comment 8 Tomáš Chvátal (RETIRED) gentoo-dev 2008-11-11 08:54:21 UTC
*** Bug 246325 has been marked as a duplicate of this bug. ***
Comment 9 Jan Kundrát (RETIRED) gentoo-dev 2008-11-12 19:12:47 UTC
*** Bug 246520 has been marked as a duplicate of this bug. ***
Comment 10 Maciej Mrozowski gentoo-dev 2008-11-13 03:09:34 UTC
The case is often in not fully switched environment - like using 'su' instead of 'su -'.

When problem occurs even when su - is used (or root console login), invoking:
# env-update && source /etc/profile
and then emerging package in that terminal helps (helped for me anyway).

Someone on forums suggested running
# emerge -vaDuN world
as well, but I don't think it is relevant here (but who knows it worked for him but he may have done something else)
Comment 11 Philip Graham 2008-11-13 14:45:37 UTC
(In reply to comment #10)
> The case is often in not fully switched environment - like using 'su' instead
> of 'su -'.
> 
> When problem occurs even when su - is used (or root console login), invoking:
> # env-update && source /etc/profile
> and then emerging package in that terminal helps (helped for me anyway).
> 
> Someone on forums suggested running
> # emerge -vaDuN world
> as well, but I don't think it is relevant here (but who knows it worked for him
> but he may have done something else)
> 

I don't think running emerge -vaDuN world makes a difference as that's the command I ran that failed in the first place.  However running
# env-update && source /etc/profile
seemed to fix the problem.  Thanks.
Comment 12 Fabio Coatti 2008-11-14 08:07:06 UTC
(In reply to comment #11)

> 
> I don't think running emerge -vaDuN world makes a difference as that's the
> command I ran that failed in the first place.  However running
> # env-update && source /etc/profile
> seemed to fix the problem.  Thanks.
> 

This doesn't work in my case. Do you have anything peculiar in your profile?

Comment 13 Philip Graham 2008-11-14 16:00:29 UTC
(In reply to comment #12)
> (In reply to comment #11)
> 
> > 
> > I don't think running emerge -vaDuN world makes a difference as that's the
> > command I ran that failed in the first place.  However running
> > # env-update && source /etc/profile
> > seemed to fix the problem.  Thanks.
> > 
> 
> This doesn't work in my case. Do you have anything peculiar in your profile?
> 

I don't think so but I'll post it so you can compare.  The package that was failing in my case was kitchensync, not kaddressbook as reported in this bug.


etc # cat profile
# /etc/profile: login shell setup
#                                
# That this file is used by any Bourne-shell derivative to setup the
# environment for login shells.                                     
#                                                                   

# Load environment settings from profile.env, which is created by
# env-update from the files in /etc/env.d                        
if [ -e /etc/profile.env ] ; then                                
        . /etc/profile.env                                       
fi                                                               
export EDITOR=${EDITOR:-/bin/nano}                               
export PAGER=${PAGER:-/usr/bin/less}                             

# 077 would be more secure, but 022 is generally quite realistic
umask 022                                                       

# Set up PATH depending on whether we're root or a normal user.
# There's no real reason to exclude sbin paths from the normal user,
# but it can make tab-completion easier when they aren't in the     
# user's PATH to pollute the executable namespace.                  
#
# It is intentional in the following line to use || instead of -o.
# This way the evaluation can be short-circuited and calling whoami is
# avoided.
if [ "$EUID" = "0" ] || [ "$USER" = "root" ] ; then
        PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${ROOTPATH}"
else
        PATH="/usr/local/bin:/usr/bin:/bin:${PATH}"
fi
export PATH
unset ROOTPATH

if [ -n "${BASH_VERSION}" ] ; then
        # Newer bash ebuilds include /etc/bash/bashrc which will setup PS1
        # including color.  We leave out color here because not all
        # terminals support it.
        if [ -f /etc/bash/bashrc ] ; then
                # Bash login shells run only /etc/profile
                # Bash non-login shells run only /etc/bash/bashrc
                # Since we want to run /etc/bash/bashrc regardless, we source it
                # from here.  It is unfortunate that there is no way to do
                # this *after* the user's .bash_profile runs (without putting
                # it in the user's dot-files), but it shouldn't make any
                # difference.
                . /etc/bash/bashrc
        else
                PS1='\u@\h \w \$ '
        fi
else
        # Setup a bland default prompt.  Since this prompt should be useable
        # on color and non-color terminals, as well as shells that don't
        # understand sequences such as \h, don't put anything special in it.
        PS1="${USER:-$(type whoami >/dev/null && whoami)}@$(type uname >/dev/null&& uname -n) \$ "
fi

for sh in /etc/profile.d/*.sh ; do
        [ -r "$sh" ] && . "$sh"
done
unset sh
Comment 14 SpanKY gentoo-dev 2008-11-16 13:22:36 UTC
can people try sandbox-1.3.0 ?  seems to fix the problem for me ... or i'm lucky and cant reproduce anymore ;)
Comment 15 Tomáš Chvátal (RETIRED) gentoo-dev 2008-11-16 13:35:07 UTC
(In reply to comment #14)
> can people try sandbox-1.3.0 ?  seems to fix the problem for me ... or i'm
> lucky and cant reproduce anymore ;)
> 

You are probbably just lucky i cant reproduce it now with old and with new one ;]
so lets wait on pple reporting :]
Comment 16 Tomáš Chvátal (RETIRED) gentoo-dev 2008-11-17 10:20:57 UTC
*** Bug 247163 has been marked as a duplicate of this bug. ***
Comment 17 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-11-17 11:27:06 UTC
vapier: I confirm that sandbox-1.3.0 fixes the issue for me.
Comment 18 Tomáš Chvátal (RETIRED) gentoo-dev 2008-11-18 13:43:09 UTC
*** Bug 247360 has been marked as a duplicate of this bug. ***
Comment 19 Tony iVanz 2008-11-18 13:53:10 UTC
I can also confirm that on ~amd64 upgrading sandbox to 1.3.0 resolves the issue.
Comment 20 Tomáš Chvátal (RETIRED) gentoo-dev 2008-11-18 14:01:20 UTC
Ok. I can assume that it is reported as fixed by 3 pple so closing this as fixed.

Solution how solve this problem is installing '>=sys-apps/sandbox-1.3.0'.

Hope it wont have much issues and gets stabled soonish :]

Everybody be thankful to vapier for fixing this one. (i definetly am)
Comment 21 SpanKY gentoo-dev 2008-11-18 15:18:58 UTC
well, sandbox-1.3.0 is pmasked atm ... if no one reports any bugs in the next ~week or two, i'll move it to ~arch ...
Comment 22 Patrizio Bassi 2008-11-22 11:59:04 UTC
amd64, sandbox 1.3 fixed it. please unmask :)
Comment 23 Sami Näätänen 2008-12-03 16:02:17 UTC
I can also confirm that upgrading sandbox in amd64 (I went to the 1.3.1) did the trick.

So please unmask at least the 1.3.0.
Comment 24 Maciej Mrozowski gentoo-dev 2008-12-03 16:29:38 UTC
sandbox 1.3.0 introduces few regressions (one with rsync at least) an it should stay masked as 1.3.1 already fixes some it's problems - so it's necessary to wait for 1.3.1 to arrive in glory
Comment 25 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2008-12-16 18:04:23 UTC
*** Bug 251207 has been marked as a duplicate of this bug. ***
Comment 26 SpanKY gentoo-dev 2008-12-25 21:09:40 UTC
FYI sandbox-1.3.2 is unmasked
Comment 27 Brad Allen 2009-03-02 14:34:02 UTC
(In reply to comment #24)
> sandbox 1.3.0 introduces few regressions (one with rsync at least) an it should
> stay masked as 1.3.1 already fixes some it's problems - so it's necessary to
> wait for 1.3.1 to arrive in glory
> 


I got the error:

-- Performing Test HAVE_GPG_ERR_SOURCE_KLEO - Success
-- Performing Test HAVE_ASSUAN_SOCK_GET_NONCE
terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::erase
/var/tmp/paludis/kde-base-mimelib-4.2.0/temp/loadsaveenv: line 1407: 29120 Aborted                 cmake -C "${TMPDIR}/gentoo_common_config.cmake" ${cmakeargs} "${S}"

!!! ERROR in kde-base/mimelib-4.2.0:
!!! In cmake-utils_src_configureout at line 1414
!!! Cmake failed

It took a while to find this bug since it was marked closed.  Well, it's still happening.  Perhaps I ought to file a new bug report?

Building with ~amd64 for sandbox worked:

1236004175: starting install of targets sys-apps/sandbox
1236004175: starting install of package sys-apps/sandbox-1.3.8:0::gentoo (1 of 1)
1236004243: starting clean of package sys-apps/sandbox-1.2.18.1-r2:0::installed (1 of 1)
1236004244: finished clean of package sys-apps/sandbox-1.2.18.1-r2:0::installed (1 of 1)
1236004248: finished install of package sys-apps/sandbox-1.3.8:0::gentoo (1 of 1)
1236004249: finished install of targets sys-apps/sandbox
1236004306: starting install of targets kde-base/kde-meta:4.2
1236004306: starting install of package kde-base/mimelib-4.2.0:4.2::gentoo (1 of 12)
1236004348: finished install of package kde-base/mimelib-4.2.0:4.2::gentoo (1 of 12)
1236004348: starting install of package kde-base/kmailcvt-4.2.0:4.2::gentoo (2 of 12)

So, I need to submit a new bug report since it is not yet fixed.
Comment 28 Tomáš Chvátal (RETIRED) gentoo-dev 2009-03-02 14:41:31 UTC
(In reply to comment #27)
> (In reply to comment #24)
> > sandbox 1.3.0 introduces few regressions (one with rsync at least) an it should
> > stay masked as 1.3.1 already fixes some it's problems - so it's necessary to
> > wait for 1.3.1 to arrive in glory
> > 
> 
> 
> I got the error:
> 
> -- Performing Test HAVE_GPG_ERR_SOURCE_KLEO - Success
> -- Performing Test HAVE_ASSUAN_SOCK_GET_NONCE
> terminate called after throwing an instance of 'std::out_of_range'
>   what():  basic_string::erase
> /var/tmp/paludis/kde-base-mimelib-4.2.0/temp/loadsaveenv: line 1407: 29120
> Aborted                 cmake -C "${TMPDIR}/gentoo_common_config.cmake"
> ${cmakeargs} "${S}"
> 
> !!! ERROR in kde-base/mimelib-4.2.0:
> !!! In cmake-utils_src_configureout at line 1414
> !!! Cmake failed
> 
> It took a while to find this bug since it was marked closed.  Well, it's still
> happening.  Perhaps I ought to file a new bug report?
> 
> Building with ~amd64 for sandbox worked:
> 
> 1236004175: starting install of targets sys-apps/sandbox
> 1236004175: starting install of package sys-apps/sandbox-1.3.8:0::gentoo (1 of
> 1)
> 1236004243: starting clean of package sys-apps/sandbox-1.2.18.1-r2:0::installed
> (1 of 1)
> 1236004244: finished clean of package sys-apps/sandbox-1.2.18.1-r2:0::installed
> (1 of 1)
> 1236004248: finished install of package sys-apps/sandbox-1.3.8:0::gentoo (1 of
> 1)
> 1236004249: finished install of targets sys-apps/sandbox
> 1236004306: starting install of targets kde-base/kde-meta:4.2
> 1236004306: starting install of package kde-base/mimelib-4.2.0:4.2::gentoo (1
> of 12)
> 1236004348: finished install of package kde-base/mimelib-4.2.0:4.2::gentoo (1
> of 12)
> 1236004348: starting install of package kde-base/kmailcvt-4.2.0:4.2::gentoo (2
> of 12)
> 
> So, I need to submit a new bug report since it is not yet fixed.
> 

Nah dont open. Eclass since yesterday pulls sandbox-1.3 so you wont hit it after sync