Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot emerge sandbox with emerge without using tricks
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
sumerman
n00b
n00b


Joined: 26 Jun 2005
Posts: 51
Location: New York, NY

PostPosted: Tue Jun 19, 2007 3:36 am    Post subject: Cannot emerge sandbox with emerge without using tricks Reply with quote

I have generally updated my computer quite regularly (emerge -u world) --- 2 or 3 times a month on average. However, last week I could not emerge sandbox. I got the following info from the start of the build:

>>> Unpacking source...
>>> Unpacking sandbox-1.2.18.1.tar.bz2 to /var/tmp/portage/sys-apps/sandbox-1.2.18.1/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/sys-apps/sandbox-1.2.18.1/work/sandbox-1.2.18.1 ...
* If configure fails with a 'cannot run C compiled programs' error, try this:
* FEATURES=-sandbox emerge sandbox
* Configuring sandbox for ABI=x86...
* econf: updating sandbox-1.2.18.1/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating sandbox-1.2.18.1/config.sub with /usr/share/gnuconfig/config.sub
../sandbox-1.2.18.1//configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib32 --enable-multilib --build=i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/sys-apps/sandbox-1.2.18.1/work/build-x86-x86_64-pc-linux-gnu/config.log

!!! ERROR: sys-apps/sandbox-1.2.18.1 failed.
Call stack:
ebuild.sh, line 1629: Called dyn_compile
ebuild.sh, line 975: Called qa_call 'src_compile'
ebuild.sh, line 44: Called src_compile
sandbox-1.2.18.1.ebuild, line 83: Called econf '--libdir=/usr/lib32' '--enable-multilib'
ebuild.sh, line 578: Called die

!!! econf 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/sys-apps/sandbox-1.2.18.1/temp/build.log'.

I thought the reference to i686-pc-linux-gnu-gcc was peculiar, and so I did an "export CC=x86_64-pc-gnu-linux-gcc" before building sandbox, and lo and behold, it then built to completion, including installation. However, when this problem arose, other problems arose simultaneously. For instance, I now have no sound, although /proc/asound has the usual entries. An example from using mplayer to play a .wav file:

MPlayer dev-SVN-rUNKNOWN-4.1.2 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3000+ (Family: 15, Model: 47, Stepping: 0)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing igotrhythm-old1.wav.
Audio file file format detected.
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
[AO_ALSA] alsa-lib: pcm_direct.c:1590:(snd_pcm_direct_parse_open_conf) The field ipc_gid must be a valid group (create group audio)
[AO_ALSA] Playback open error: Invalid argument
mcop warning: user defined signal handler found for SIG_PIPE, overriding
[AO ARTS] can't connect to aRts soundserver
[AO ESD] esd_open_sound failed: No such file or directory
[JACK] cannot open server
[AO SDL] Samplerate: 44100Hz Channels: Stereo Format s16le
[AO_ALSA] alsa-lib: pcm_direct.c:1590:(snd_pcm_direct_parse_open_conf) The field ipc_gid must be a valid group (create group audio)
mcop warning: user defined signal handler found for SIG_PIPE, overriding
[AO SDL] Unable to open audio: No available audio device
AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 1.3 (01.3) of 174.0 (02:54.0) 0.1%

Despite the verbiage about no valid group, there is a group audio, to which I am a member (gid 18). I am guessing that these problems are related.

Interestingly, I can build everything without any problem except sandbox (which I build with my little export trick). I've tried emerge -e alsa-lib as one maneuver, but no luck. Does anyone have any ideas? I have a feeling that solving the sandbox problem might solve the rest.

Thanks!
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Tue Jun 19, 2007 5:20 am    Post subject: Reply with quote

Could you please post your full `emerge --verbose --info`?
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
cciechad
n00b
n00b


Joined: 28 Jun 2005
Posts: 31

PostPosted: Tue Jun 19, 2007 2:43 pm    Post subject: Reply with quote

I had the same issue. In my case i686-pc-linux-gnu-gcc was an old wrapper that used to invoke GCC but for some reason it was depreciated and portage did not remove.

Try which i686-pc-linux-gnu-gcc
and then run i686-pc-linux-gnu-gcc -v and see if you get any errors.

The solution in my case was to delete all of the old wrapper scripts as soon as this was done I was able to do an emerge -e world.

Chad
Back to top
View user's profile Send private message
sumerman
n00b
n00b


Joined: 26 Jun 2005
Posts: 51
Location: New York, NY

PostPosted: Tue Jun 19, 2007 11:02 pm    Post subject: Here's the emerge --verbose --info Reply with quote

Needless to say, any and all help is appreciated.

Portage 2.1.3_rc3 (default-linux/amd64/2006.1/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.21-gentoo-r2 x86_64)
=================================================================
System Settings
=================================================================
System uname: 2.6.21-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System release 1.12.10
Timestamp of tree: Sat, 16 Jun 2007 20:20:01 +0000
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python: 2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox: 1.2.18.1
sys-devel/autoconf: 2.13, 2.61
sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool: 1.5.23b
virtual/os-headers: 2.6.21
ABI="amd64"
ACCEPT_KEYWORDS="amd64 ~amd64"
ALSA_CARDS="ice1712"
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"
ANT_HOME="/usr/share/ant-core"
ARCH="amd64"
ASFLAGS_x86="--32"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CDEFINE_amd64="__x86_64__"
CDEFINE_x86="__i386__"
CFLAGS="-march=athlon64 -O2 -pipe"
CFLAGS_x86="-m32 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib"
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 /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /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/texmf/web2c"
CVS_RSH="ssh"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DEFAULT_ABI="amd64"
DISTDIR="/usr/portage/distfiles"
ELIBC="glibc"
EMERGE_WARNING_DELAY="10"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O ${DISTDIR}/${FILE} ${URI}"
FLTK_DOCDIR="/usr/share/doc/fltk-1.1.7/html"
GCC_PATH="/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2"
GCC_SPECS=""
GDK_USE_XFT="1"
GENERATION="2"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/ http://mirror.datapipe.net/gentoo http://mirrors.acm.cs.rpi.edu/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo http://gentoo.chem.wisc.edu/gentoo/ "
G_BROKEN_FILENAMES="1"
G_FILENAME_ENCODING="UTF-8"
HOME="/home/palsor"
INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.17/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/info:/usr/share/info/emacs-22"
INPUT_DEVICES="keyboard mouse"
JAVA_HOME="/opt/blackdown-jre-1.4.2.03"
JRE_HOME="/opt/blackdown-jre-1.4.2.03"
KDEDIRS="/usr:/usr/local:/usr/kde/3.5"
KERNEL="linux"
LADSPA_PATH="/usr/lib64/ladspa"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LC_ALL="en_US"
LDFLAGS_x86="-m elf_i386 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBDIR_amd64="lib64"
LIBDIR_x86="lib32"
LOGNAME="root"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.17/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/man:/opt/blackdown-jre-1.4.2.03/man:/etc/java-config/system-vm/man/:/usr/lib64/php5/man/:/usr/kde/3.5/share/man:/usr/qt/3/doc/man"
MULTILIB_ABIS="amd64 x86"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib /usr/lib /usr/kde/*/lib /usr/qt/*/lib /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage)"
NOCOLOR="true"
OPENGL_PROFILE="xorg-x11"
PAGER="/usr/bin/less"
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:/opt/blackdown-jre-1.4.2.03/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin"
PKGDIR="/usr/portage/packages"
PKG_CONFIG_PATH="/usr/qt/3/lib64/pkgconfig:/usr/qt/3/lib32/pkgconfig"
PORTAGE_ARCHLIST="ppc s390 amd64 x86 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha ppc-macos hppa sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib/portage/bin"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="warn error log"
PORTAGE_ELOG_MAILFROM="portage"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_PYM_PATH="/usr/lib/portage/pym"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PRELINK_PATH_MASK="/usr/lib/gstreamer-0.10:/usr/lib/gstreamer-0.8:/usr/lib64/klibc"
PYTHONPATH="/usr/lib64/portage/pym"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
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.1.2:/opt/blackdown-jre-1.4.2.03/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin"
RPMDIR="/usr/portage/rpm"
SHELL="/bin/bash"
STAGE1_USE="nptl nptlonly unicode"
SUDO_COMMAND="/usr/bin/emerge --verbose --info sandbox"
SUDO_GID="100"
SUDO_UID="1000"
SUDO_USER="palsor"
SYMLINK_LIB="yes"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
TERM="Eterm"
USE="X Xaw3d aac acpi alsa amd64 arts avi berkdb bitmap-fonts cairo cdparanoia cdr cli cracklib crypt cups dbus divx dri dvd dvdr dvdread eds emboss encode esd fam fftw firefox flac fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal iconv ipv6 isdnlog jack java jpeg kde ldap lesstif libg++ libsamplerate mad midi mikmod mozilla mp3 mpeg mudflap ncurses nls nptl nptlonly ogg oggvorbis opengl openmp oss pam pcre perl png portaudio ppds pppd python qt3 qt4 quicktime radeon readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1 type1-fonts unicode vorbis wmp wxgtk1 xanim xml xorg xv xvid zlib" ALSA_CARDS="ice1712" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon"
USER="root"
USERLAND="GNU"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS 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"
VIDEO_CARDS="radeon"
VMHANDLE="blackdown-jre-1.4.2"
XARGS="xargs -r"
XDG_DATA_DIRS="/usr/share:/usr/kde/3.5/share:/usr/local/share"
Back to top
View user's profile Send private message
sumerman
n00b
n00b


Joined: 26 Jun 2005
Posts: 51
Location: New York, NY

PostPosted: Tue Jun 19, 2007 11:08 pm    Post subject: Reply with quote

Chad, I think you've found it!

For 'which i686-pc-linux-gnu-gcc' I get /usr/bin/i686-pc-linux-gnu-gcc

For 'i686-pc-linux-gnu-gcc -v" I get:

gcc-config error: i686-pc-linux-gnu-gcc wrapper: Could not determine which compiler to use. Invalid CTARGET or CTARGET has no selected profile.

And now the clincher: where are the wrappers that I should delete? Are they symlinks? Are they files?

Thanks,

Paul
Back to top
View user's profile Send private message
sumerman
n00b
n00b


Joined: 26 Jun 2005
Posts: 51
Location: New York, NY

PostPosted: Wed Jun 20, 2007 1:08 pm    Post subject: Deleting i686* wrappers did the trick Reply with quote

Wasn't sure what the wrappers were, but saw 11 files in /usr/bin dated Apr 25, 2006, including i686-pc-linux-gnu-gcc and removed them all. Was then able to emerge sandbox without any problem. Now I'm happily (if wearily) doing an emerge -e world. Hopefully the ALSA sound will return when I'm through.

By the way, an error in emerging glib-1.2.10-r5 was resolved by 'export SED=sed'. There is a thread on this elsewhere here. An easy fix and it meant I didn't have to do an emerge -e world from the beginning!

Paul
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2048
Location: Germany

PostPosted: Sun Jul 01, 2007 1:07 am    Post subject: Reply with quote

Have you guys ever heart of 'bugs.gentoo.org'?

Your problem is mentioned there A LOT.

Complete with explanation what went from (eselect-compiler was/is broken) and how to fix it.

https://bugs.gentoo.org/show_bug.cgi?id=133209

Comment #25 From Kevin F. Quinn 2006-09-10 02:30:51 0000 [reply] -------
Your config.log shows the compiler wrappers are broken. You must have had
eselect-compiler installed for a while, then reverted to gcc-config
Unfortunately when eselect-compiler was masked recently, a clean migration path
back to gcc-config was not provided. The "Unable to determine executable" is
something the eselect-compiler wrapper says, but not the gcc-config one, and
you don't have eselect-compiler itself installed, according to your emerge
--info.

By moving those files you have effectively removed some of the eselect-compiler
wrappers. However there may be more. To find them all try:

find /usr/bin | xargs strings -f 2> /dev/null | grep "Unable to determine
executable" | cut -d : -f 1

then just remove any files listed, and use gcc-config to re-select your
preferred compiler to be sure all the gcc-config wrappers are installed
correctly.
_________________
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 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