Same emerge error every time I compile a package [Solved]

Anything that pertains to Portage

Moderator: Moderators

Same emerge error every time I compile a package [Solved]

Postby AshPhoenix » Tue May 17, 2011 2:37

Recently, after running emerge --sync, I got a notification saying that there's an update to portage available and to run "emerge portage", so I did. Afterwards, I get this error every time I try to compile a package (I'll use "emerge leafpad" as an example):

After the "Calculating dependencies, checking blah blah blah" dialogue:
Code: Select all
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating data/Makefile
config.status: creating data/icons/Makefile
config.status: creating data/icons/16x16/Makefile
config.status: creating data/icons/22x22/Makefile
config.status: creating data/icons/24x24/Makefile
config.status: creating data/icons/32x32/Makefile
config.status: creating data/icons/scalable/Makefile
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-editors/leafpad-0.8.18.1/work/leafpad-0.8.18.1 ...
make -jl
make: the `-j' option requires a positive integral argument
Usage: make [options] [target] ...
Options:
  -b, -m                      Ignored for compatibility.
  -B, --always-make           Unconditionally make all targets.
  -C DIRECTORY, --directory=DIRECTORY
                              Change to DIRECTORY before doing anything.
  -d                          Print lots of debugging information.
  --debug[=FLAGS]             Print various types of debugging information.
  -e, --environment-overrides
                              Environment variables override makefiles.
  -f FILE, --file=FILE, --makefile=FILE
                              Read FILE as a makefile.
  -h, --help                  Print this message and exit.
  -i, --ignore-errors         Ignore errors from commands.
  -I DIRECTORY, --include-dir=DIRECTORY
                              Search DIRECTORY for included makefiles.
  -j [N], --jobs[=N]          Allow N jobs at once; infinite jobs with no arg.
  -k, --keep-going            Keep going when some targets can't be made.
  -l [N], --load-average[=N], --max-load[=N]
                              Don't start multiple jobs unless load is below N.
  -L, --check-symlink-times   Use the latest mtime between symlinks and target.
  -n, --just-print, --dry-run, --recon
                              Don't actually run any commands; just print them.
  -o FILE, --old-file=FILE, --assume-old=FILE
                              Consider FILE to be very old and don't remake it.
  -p, --print-data-base       Print make's internal database.
  -q, --question              Run no commands; exit status says if up to date.
  -r, --no-builtin-rules      Disable the built-in implicit rules.
  -R, --no-builtin-variables  Disable the built-in variable settings.
  -s, --silent, --quiet       Don't echo commands.
  -S, --no-keep-going, --stop
                              Turns off -k.
  -t, --touch                 Touch targets instead of remaking them.
  -v, --version               Print the version number of make and exit.
  -w, --print-directory       Print the current directory.
  --no-print-directory        Turn off -w, even if it was turned on implicitly.
  -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
                              Consider FILE to be infinitely new.
  --warn-undefined-variables  Warn when an undefined variable is referenced.

This program built for i686-pc-linux-gnu
Report bugs to <bug-make@gnu.org>
emake failed
 * ERROR: app-editors/leafpad-0.8.18.1 failed (compile phase):
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 373:  Called _eapi2_src_compile
 *     ebuild.sh, line 665:  Called die
 * The specific snippet of code:
 *         emake || die "emake failed"
 *
 * If you need support, post the output of 'emerge --info =app-editors/leafpad-0.8.18.1',
 * the complete build log and the output of 'emerge -pqv =app-editors/leafpad-0.8.18.1'.
 * The complete build log is located at '/var/tmp/portage/app-editors/leafpad-0.8.18.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-editors/leafpad-0.8.18.1/temp/environment'.
 * S: '/var/tmp/portage/app-editors/leafpad-0.8.18.1/work/leafpad-0.8.18.1'

>>> Failed to emerge app-editors/leafpad-0.8.18.1, Log file:

>>>  '/var/tmp/portage/app-editors/leafpad-0.8.18.1/temp/build.log'

 * Messages for package app-editors/leafpad-0.8.18.1:

 * ERROR: app-editors/leafpad-0.8.18.1 failed (compile phase):
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 373:  Called _eapi2_src_compile
 *     ebuild.sh, line 665:  Called die
 * The specific snippet of code:
 *         emake || die "emake failed"
 *
 * If you need support, post the output of 'emerge --info =app-editors/leafpad-0.8.18.1',
 * the complete build log and the output of 'emerge -pqv =app-editors/leafpad-0.8.18.1'.
 * The complete build log is located at '/var/tmp/portage/app-editors/leafpad-0.8.18.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-editors/leafpad-0.8.18.1/temp/environment'.
 * S: '/var/tmp/portage/app-editors/leafpad-0.8.18.1/work/leafpad-0.8.18.1'

Am I just not entering the command properly? I see the options available...
The annoying part is, I'm still getting the "there is an update for portage available" dialogue if I run "emerge --sync"!
I'll post the other files if requested. Thank you very much to those who reply.
Last edited by AshPhoenix on Wed Aug 03, 2011 21:41, edited 1 time in total.
User avatar
AshPhoenix
Baby Hen
 
Posts: 5
Joined: Mon Jan 24, 2011 19:36

Re: Same emerge error every time I compile a package

Postby Ephemer0l » Tue May 17, 2011 4:44

Hello, can you have a look in "/etc/make.conf" and post your "MAKEOPTS=" option. It looks like you have a letter instead of a number. It should be set as number of cores plus one.
Ephemer0l
Baby Hen
 
Posts: 6
Joined: Mon May 16, 2011 4:43

Re: Same emerge error every time I compile a package

Postby sabayonino » Tue May 17, 2011 11:39

Code: Select all
...This program built for i686-pc-linux-gnu...


post your /etc/make.conf

Is Your Architecture 32bits ?

I think your'using a 64bit cpu
User avatar
sabayonino
Sagely Hen
 
Posts: 1566
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: Same emerge error every time I compile a package

Postby Sisko43 » Tue May 17, 2011 12:18

When you post in this forum I would assume your OS is sabayon not gentoo. So the emerged portage-version is for gentoo NOT sabayon. So it's no wonder that every compile attempt fails! Uninstall your current portage-version and reinstall the default one from sabayon. With the gentoo-portage version there's a high chance to break your entire system, so:

Code: Select all
equo install portage
Sisko43
Growing Hen
 
Posts: 195
Joined: Sun Mar 29, 2009 12:59

Re: Same emerge error every time I compile a package

Postby joost » Tue May 17, 2011 13:06

make -jl <-- is wrong. the integer that should follow after the j should match the number of cores in your system.

Do as what is stated above, change it correctly in your MAKE_OPTS or post your /etc/make.conf
User avatar
joost
Sagely Hen
 
Posts: 2313
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands

Re: Same emerge error every time I compile a package

Postby AshPhoenix » Tue May 17, 2011 21:15

All right. I have an Intel Pentium 4 CPU, so one core (I'm pretty sure it's not amd64). I changed the MAKE_OPTS to 1, as requested, so my /etc/make.conf looks like this now:

Code: Select all
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example

CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1,--as-needed"
ACCEPT_KEYWORDS="~x86"
MAKEOPTS="-j1"
FEATURES="-userfetch parallel-fetch protect-owned"
#PORTAGE_NICENESS="8"
LINGUAS="en en_US af ar az bg bn br bs ca cs cy da de el en_GB eo es et eu fa fi fr fy ga gl he hi hr hu is it ja kk km ko lt lv mk mn ms nb nds nl nn pa pl pt pt_BR ro ru$
#ACCEPT_LICENSE="*"

## USE ARRAYS ##
SAB_BAD="-kdeprefix -arts -qt3 -beagle -gnome -evo -mono -eds -apm -oss -branding -esd"
SAB_MEDIA="musicbrainz sdl pulseaudio wmf fame cdr mp3rtp xine cddb alsa dvb dvd network dvdread ipod audiofile artswrappersuid dvdr jack dri cdda mjpeg mmx joystick xvmc $
#dvi
SAB_CODECS="x264 gsm lame dv mp3 stream live openal theora ogg a52 win32codecs matroska xvid flac ffmpeg aac speex real dts musepack"
SAB_SYSTEM="cjk unicode gnutls nptl gcj hal udev kerberos acl dbus bash-completion lzo rar policykit xcb bzip2 bidi wifi lm_sensors acpi usb pcmcia bluetooth irda ieee1394"
SAB_FILESYS="fat hfs jfs xfs ntfs reiserfs sysfs inotify"
SAB_PRINT="cups ppds foomatic-db gimpprint freetype xprint scanner"
SAB_XSYS="cairo X opengl gif gtk qt4 qt3support xpm tiff xinerama aiglx svg gphoto2 dga lcd openexr"
##NOTE## png is set in amd64 but not in i686
SAB_DESKTOP="kdehiddenvisibility gmp libnotify rdesktop pda zeroconf kdeenablefinal visualization avahi startup-notification accessibility"
SAB_BROWSER="nsplugin firefox mozdevelop xulrunner"
SAB_COMMS="jabber msn yahoo icq irc aim rss slp mail imap"

USE="snmp xcb svg emerald python kerberos winbind tk pam hpcups truetype png tiff ppds nano-syntax ffmpeg mad a52 flac theora oggvorbis bidi xv svga gnutls stream vlm http$

## DEVICES ##
INPUT_DEVICES="evdev keyboard mouse void"
VIDEO_CARDS="fbdev vesa radeonhd"
LIRC_DEVICES="audio audio_alsa serial"
ALSA_CARDS="emu10k1x darla20 darla24 emu10k1 gina20 gina24 hdsp hdspm ice1712 indigo indigoio layla20 layla24 mia mixart mona pcxhr rme32 rme96 sb16 sbawe sscape usbusx2y $
CAMERAS="agfa_cl20 casio_qv dimagev dimera3500 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica_qm150 panasonic_coolshot panasonic_dc1000 panasonic_dc15$
#VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb$
APACHE2_MPMS="prefork"

## PORTAGE CONFIG ##
source /var/lib/layman/make.conf
CONFIG_PROTECT="/usr/share/config/kdm /etc"
CONFIG_PROTECT_MASK="/etc/skel"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
GENTOO_MIRRORS="ftp://ftp.halifax.rwth-aachen.de/gentoo/ ftp://mirror.cambrium.nl/pub/os/linux/gentoo/ ftp://mirror.opteamax.de/gentoo/ http://ftp.heanet.ie/pub/gentoo/ ht$

XFCE_PLUGINS="brightness menu trash"



Now I'm able to emerge! Unfortunately, I now get errors similar to this when I try to run programs that I installed after I changed /etc/make.conf:

Code: Select all
# portato
* Switching from 'UTF-8' to 'UTF-8'. (basic.py:40)
* Starting Portato v. 0.14.1 (__init__.py:91)
* Listener has not been started. (listener.py:85)
* Setting Portage System (__init__.py:64)
* Using portage-2.2 (__init__.py:21)
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/portato/gui/exception_handling.py", line 132, in handler
    error("Exception:\n%s", get_trace(type, val, tb))
  File "/usr/lib/python2.7/site-packages/portato/gui/exception_handling.py", line 121, in get_trace
    return traceStr + "\n" + get_version_infos()
  File "/usr/lib/python2.7/site-packages/portato/gui/exception_handling.py", line 112, in get_version_infos
    "Used database type: %s" % Database.DB_TYPE,
AttributeError: type object 'Database' has no attribute 'DB_TYPE'

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/portato", line 20, in <module>
    start()
  File "/usr/lib/python2.7/site-packages/portato/__init__.py", line 96, in start
    run()
  File "/usr/lib/python2.7/site-packages/portato/gui/__init__.py", line 27, in run
    from .windows.main import MainWindow
  File "/usr/lib/python2.7/site-packages/portato/gui/windows/main.py", line 45, in <module>
    from ..views import LogView, LazyStoreView
  File "/usr/lib/python2.7/site-packages/portato/gui/views.py", line 17, in <module>
    import gtksourceview2
ImportError: No module named gtksourceview2

and the program stops running. Is this related to the previous error?

It's not the same module every time, but there's always some module that python isn't able to import. I recently updated to python 2.7, and I ran python-updater immediately afterwards, but is portage not installing the necessary modules when I compile programs or something? Thanks in advance.
User avatar
AshPhoenix
Baby Hen
 
Posts: 5
Joined: Mon Jan 24, 2011 19:36

Re: Same emerge error every time I compile a package

Postby sabayonino » Tue May 17, 2011 22:38

Don't run any programs as root

use sudo or gksu/ kdesu as user to run them

example
Code: Select all
$ sudo portato


[edit] if your PC has 4 cpus set your makeopts to J5 (N°CPU+1)
User avatar
sabayonino
Sagely Hen
 
Posts: 1566
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: Same emerge error every time I compile a package

Postby AshPhoenix » Wed May 18, 2011 1:44

Okay, now I'm getting the same error, but with a little more added on:

Code: Select all
$ sudo portato
Password:
* Switching from 'UTF-8' to 'UTF-8'. (basic.py:40)
* Starting Portato v. 0.14.1 (__init__.py:91)
* Listener has not been started. (listener.py:85)
* Setting Portage System (__init__.py:64)
* Using portage-2.2 (__init__.py:21)
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/portato/gui/exception_handling.py", line 132, in handler
    error("Exception:\n%s", get_trace(type, val, tb))
  File "/usr/lib/python2.7/site-packages/portato/gui/exception_handling.py", line 121, in get_trace
    return traceStr + "\n" + get_version_infos()
  File "/usr/lib/python2.7/site-packages/portato/gui/exception_handling.py", line 112, in get_version_infos
    "Used database type: %s" % Database.DB_TYPE,
AttributeError: type object 'Database' has no attribute 'DB_TYPE'

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/portato", line 20, in <module>
    start()
  File "/usr/lib/python2.7/site-packages/portato/__init__.py", line 96, in start
    run()
  File "/usr/lib/python2.7/site-packages/portato/gui/__init__.py", line 27, in run
    from .windows.main import MainWindow
  File "/usr/lib/python2.7/site-packages/portato/gui/windows/main.py", line 45, in <module>
    from ..views import LogView, LazyStoreView
  File "/usr/lib/python2.7/site-packages/portato/gui/views.py", line 17, in <module>
    import gtksourceview2
ImportError: No module named gtksourceview2


And my CPU only has 1 core, so I change "MAKE_OPTS" to "-j2", right?
User avatar
AshPhoenix
Baby Hen
 
Posts: 5
Joined: Mon Jan 24, 2011 19:36

Re: Same emerge error every time I compile a package

Postby Sisko43 » Thu May 19, 2011 22:56

Yes, you can change to the parameter "-j2". But the big question is what portage-version you use?! In your first post you said you did "emerge portage". So you should have the gentoo-version. That's something you shouldn't do like the "python-updater"-command. Both are gentoo-relevant things, not sabayon! Revert to the sabayon-version. Let's hope you don't have messed up your complete system!!
Sisko43
Growing Hen
 
Posts: 195
Joined: Sun Mar 29, 2009 12:59

Re: Same emerge error every time I compile a package

Postby AshPhoenix » Fri May 20, 2011 2:15

I changed portage back to the sabayon version with "sudo equo install portage", and I can emerge, so I don't think there's an ultra-critical system issue with that, but what was that about the "python-updater" command? Am I supposed to undo that somehow to make it so that the modules are correctly installed when I compile packages?
User avatar
AshPhoenix
Baby Hen
 
Posts: 5
Joined: Mon Jan 24, 2011 19:36

Next

Return to Portage|Emerge Package Managers

Who is online

Users browsing this forum: No registered users and 2 guests