Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268657 - sys-apps/sandbox-1.6-r2: emerge Linking failure, segmentation fault
Summary: sys-apps/sandbox-1.6-r2: emerge Linking failure, segmentation fault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC Linux
: High normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-04 19:48 UTC by Marcus Sen
Modified: 2009-05-06 00:12 UTC (History)
0 users

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 Marcus Sen 2009-05-04 19:48:17 UTC
emerge sandbox (updating from current 1.2.18.1-r2 to 1.6-r2) fails with segmentation fault

Reproducible: Always

Steps to Reproduce:
1. emerge  -auDv --reinstall changed-use world


Actual Results:  
Part of log below:

libtool: compile:  powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../sandbox-1.6/libsandbox -I.. -I../../sandbox-1.6 -I../../sandbox-1.6/libsbutil -I../../sandbox-1.6/libsbutil/include -DETCDIR=\"/etc\" -DLIBSANDBOX_PATH=\"/usr/lib\" -DSANDBOX_BASHRC_PATH=\"/usr/share/sandbox\" -DPIC -fPIC -D_REENTRANT -fexceptions -Wall -fdata-sections -ffunction-sections -MT libsandbox_la-canonicalize.lo -MD -MP -MF .deps/libsandbox_la-canonicalize.Tpo -c ../../sandbox-1.6/libsandbox/canonicalize.c  -fPIC -DPIC -o .libs/libsandbox_la-canonicalize.o
mv -f .deps/libsandbox_la-canonicalize.Tpo .deps/libsandbox_la-canonicalize.Plo
/bin/sh ../libtool --tag=CC   --mode=link powerpc-unknown-linux-gnu-gcc -fexceptions -Wall -fdata-sections -ffunction-sections -no-undefined -nodefaultlibs -avoid-version -Wl,--version-script,libsandbox.map -Wl,-O1 -Wl,--as-needed -Wl,--gc-sections -o libsandbox.la -rpath /usr/lib libsandbox_la-libsandbox.lo libsandbox_la-memory.lo libsandbox_la-wrappers.lo libsandbox_la-canonicalize.lo -lc -ldl ../libsbutil/.libs/libsbutil.a

*** Warning: Linking the shared library libsandbox.la against the
*** static library ../libsbutil/.libs/libsbutil.a is not portable!
libtool: link: powerpc-unknown-linux-gnu-gcc -shared  .libs/libsandbox_la-libsandbox.o .libs/libsandbox_la-memory.o .libs/libsandbox_la-wrappers.o .libs/libsandbox_la-canonicalize.o   -lc -ldl ../libsbutil/.libs/libsbutil.a  -Wl,--version-script -Wl,libsandbox.map -Wl,-O1 -Wl,--as-needed -Wl,--gc-sections   -Wl,-soname -Wl,libsandbox.so -o .libs/libsandbox.so
collect2: ld terminated with signal 11 [Segmentation fault]
make[2]: *** [libsandbox.la] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-apps/sandbox-1.6-r2/work/build-default/libsandbox'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-apps/sandbox-1.6-r2/work/build-default'
make: *** [all] Error 2
 *
 * ERROR: sys-apps/sandbox-1.6-r2 failed.
 * Call stack:
 *               ebuild.sh, line   48:  Called src_compile
 *             environment, line 2465:  Called die
 * The specific snippet of code:
 *           emake || die;
 *  The die message:
 *   (no error message)
 

Expected Results:  
Successful compile

emerge --info
Portage 2.1.6.11 (default/linux/powerpc/ppc32/2008.0/desktop, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.22-gentoo-r5 ppc)
=================================================================
System uname: Linux-2.6.22-gentoo-r5-ppc-740-750-with-glibc2.0
Timestamp of tree: Mon, 04 May 2009 16:20:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="ppc"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS=""
CHOST="powerpc-unknown-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/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://gentoo.virginmedia.com/sites/gentoo http://gentoo.virginmedia.com/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ "
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB en ja"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac aalib accessibility acl alsa apache2 avahi bash-completion berkdb bidi bluetooth branding bzip2 cairo cdr cjk cli cracklib crypt cscope cups cupsc dbus doc dri dvdr dvdread eds emboss encode esd evo exif fam fbcon firefox flac foomaticdb fortran fpx gcj gdbm gif gnome gnutls gphoto2 gpm graphviz gs gstreamer gtk gtk2 hal iconv ieee1394 ipv6 isdnlog java jbig jpeg jpeg2k kerberos lcms ldap libnotify mad mailwrapper midi mikmod mng mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pda pdf perl png ppc ppds pppd python qt3support quicktime readline reflection samba sdl session sndfile spell spl ssl startup-notification svg sysfs tcpd theora tiff truetype unicode usb vim-syntax vorbis wmf xml xorg xulrunner xv zlib" ALSA_CARDS="powermac" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so 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_GB en ja" USERLAND="GNU" VIDEO_CARDS="fbdev ati r128"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Zac Medico gentoo-dev 2009-05-04 20:28:43 UTC
The 'ld' program comes from sys-devel/binutils, so you may want to try rebuilding that. Also, it seems odd that your CFLAGS and CXXFLAGS variables are unset. You can find some examples for those in /usr/share/portage/config/make.conf.example.
Comment 2 Mark Loeser (RETIRED) gentoo-dev 2009-05-04 20:37:25 UTC
Is this reproducible at the same spot every time?  Also, there is a new version of GCC stable.  Could you please upgrade to that and rebuild binutils with that version of gcc?
Comment 3 Marcus Sen 2009-05-05 23:45:59 UTC
(In reply to comment #1)
> The 'ld' program comes from sys-devel/binutils, so you may want to try
> rebuilding that.
I rebuilt binutils but it didn't change anything when re-emerging sandbox.

> Also, it seems odd that your CFLAGS and CXXFLAGS variables are
> unset. You can find some examples for those in
> /usr/share/portage/config/make.conf.example.
I'll have a look at that and try again; didn't know I should set them.


Comment 4 Marcus Sen 2009-05-05 23:49:46 UTC
(In reply to comment #2)
> Is this reproducible at the same spot every time?
Yes.

>  Also, there is a new version
> of GCC stable.  Could you please upgrade to that and rebuild binutils with that
> version of gcc?
I was putting that off as it takes a long time to do on my old Mac B&W G3 but I'll try this. I hope I don't have to rebuild anything apart from binutils after the gcc upgrade...
> 

Comment 5 Marcus Sen 2009-05-06 00:12:11 UTC
Fixed by removing my CFLAGS="" in /etc/make.conf (so it got a default value of "-O2 -pipe") rather than the empty value I had. I can't remember why I had that!? (Maybe a misguided attempt to remove optimization settings for some past problem?)

Anyway, thanks for the help.