Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 153478 - Emerge command not work
Summary: Emerge command not work
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: x86 Linux
: Normal blocker
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 153480 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-10-30 13:45 UTC by Stanislav Studený
Modified: 2006-10-30 14:39 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 Stanislav Studený 2006-10-30 13:45:22 UTC
Hello, emerge --info won't work. Here is make.conf. Portage version is 2.1.2_rc1-r1.

CFLAGS="-Os -march=prescott -msse3 -pipe -fno-ident -freorder-blocks-and-partition -fgcse-sm -fgcse-las -fgcse-after-reload -fmerge-all-constants"
CFLAGS="${CFLAGS} -fomit-frame-pointer"
CFLAGS="${CFLAGS} -frename-registers"
CFLAGS="${CFLAGS} -fweb"
CFLAGS="${CFLAGS} -fno-ident"
CFLAGS="${CFLAGS} -funit-at-a-time -combine"
CFLAGS="${CFLAGS} -freorder-blocks"
CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
 
LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
#LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,--hash-style=both"
CHOST="i686-pc-linux-gnu"
 
# Keywords to accept
ACCEPT_KEYWORDS="~x86"
 
MAKEOPTS="-j3"
 
# Setup the overlays
CONRAD_OVERLAY="/usr/local/overlays/conrad"
PORTAGE_OVERLAY="/usr/local/portage"
PORTDIR_OVERLAY="${CONRAD_OVERLAY} ${PORTAGE_OVERLAY}"
 
# Niceness and features
PORTAGE_NICENESS="10"
FEATURES="distlocks"
 
# USE Flags
USE="nptlonly unicode acpi sse sse2 sse3 mmx alsa X gtk hal evdev qt \
     win32codecs dvd dvdrw cdrw cdr ieee1394 opengl dts xvid ogg pdf \
     cairo -fortran mp3 imagemagick nls xml dri pam php apache2 oss \
     type1-fonts hal truetype-fonts ffmpeg nsplugin bzip2 rar \
     vorbis ssl oggvorbis rpm samba hashstyle wmf javascript apm \
     bluetooth dbus dvdr glut gtk2 directfb fbcon iconv libwww mmap \
     jpeg jpeg2k mime mpeg pcmcia qt3 qt4 smartcard symlink truetype \
     usb wifi xpm lm_sensors arts xv aac dvdread mad png real rtc \
     x264 mp4 threads matroska xcomposite divx gif kde -xmms"
 
VIDEO_CARDS="i810 i915 fbdev vesa"
INPUT_DEVICES="synaptics evdev keyboard mouse"
ALSA_CARDS="hda-intel"
#LUNGUAS="en_US cs"
CHECKREQS_ACTION="ignore"
source /usr/portage/local/layman/make.conf

Every emerge command ends with :

import: unable to open X server `'.
/usr/bin/emerge: line 8: try:: command not found
import: unable to open X server `'.
/usr/bin/emerge: line 11: syntax error near unexpected token '('
/usr/bin/emerge: line 11: `      def exithandler(signum,frame):'

Pls, help.
Comment 1 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-10-30 14:00:39 UTC
/usr/bin/emerge -> should have #!/usr/bin/python or equivelant at the top.

It looks like yours is missing this, or otherwise is invoking emerge as bash code instead of python.
Comment 2 Stanislav Studený 2006-10-30 14:00:53 UTC
*** Bug 153480 has been marked as a duplicate of this bug. ***
Comment 3 Stanislav Studený 2006-10-30 14:07:51 UTC
Thank you, it seems to, that there is something wrong with python.

#/usr/bin/python
-bash: /usr/bin/python: cannot execute binary file
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-10-30 14:27:17 UTC
(In reply to comment #3)
> Thank you, it seems to, that there is something wrong with python.
> 
> #/usr/bin/python
> -bash: /usr/bin/python: cannot execute binary file

I have a suggestion for you: go smack the author of this "guide" [1] with a huge cluebat and don't report any bugs before you've reinstalled from scratch using a *supported* method, *sane* flags, supported filesystem and so on and so on and so on...

[1] http://forums.gentoo.org/viewtopic-t-509252.html

Grrrrr. :X
Comment 5 Stanislav Studený 2006-10-30 14:39:08 UTC
Closed. Python re-emerged. Now it is ok. Thx for your time.