Gentoo - Emerge spring from layman fails

Gentoo - Emerge spring from layman fails

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
User avatar
Cremuss
Posts: 364
Joined: 28 Oct 2006, 21:38

Gentoo - Emerge spring from layman fails

Post by Cremuss »

Hello everybody,

I've been using gentoo for 2 years now but it's the first time I use the layman overlay to emerge something ( I had always compiled spring from sources ).

So I'm trying to emerge spring from the layman overlay as showed here, http://spring.clan-sy.com/wiki/Gentoo_install, but the compile fails...
There are errors that i've never seen before :shock: like access denied :o

Here is some interesting parts of the emerge log :

the begining

Code: Select all

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] games-strategy/spring-0.76_p1-r2  USE="-debug" 0 kB [1]
[ebuild  N    ] games-util/springlobby-0.0.1.10292  USE="-debug -disable-sound -disable-torrent" 1,336 kB [1]

Total: 2 packages (2 new), Size of downloads: 1,336 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/local/portage/layman/Spring

Would you like to merge these packages? [Yes/No] yes
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 2) games-strategy/spring-0.76_p1-r2 to /
 * spring_0.76b1_src.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                               [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                                                       [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                      [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                     [ ok ]
 * checking spring_0.76b1_src.tar.bz2 ;-) ...                                                                                                                                                              [ ok ]
>>> Unpacking source...
>>> Unpacking spring_0.76b1_src.tar.bz2 to /var/tmp/portage/games-strategy/spring-0.76_p1-r2/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/games-strategy/spring-0.76_p1-r2/work/spring_0.76b1 ...
ACCESS DENIED  unlink:    /usr/lib/scons-0.98.4/SCons/__init__.pyc
ACCESS DENIED  open_wr:   /usr/lib/scons-0.98.4/SCons/__init__.pyc
ACCESS DENIED  unlink:    /usr/lib/scons-0.98.4/SCons/Script/__init__.pyc
ACCESS DENIED  open_wr:   /usr/lib/scons-0.98.4/SCons/Script/__init__.pyc
ACCESS DENIED  unlink:    /usr/lib/scons-0.98.4/SCons/Action.pyc
ACCESS DENIED  open_wr:   /usr/lib/scons-0.98.4/SCons/Action.pyc
ACCESS DENIED  unlink:    /usr/lib/scons-0.98.4/SCons/Debug.pyc
ACCESS DENIED  open_wr:   /usr/lib/scons-0.98.4/SCons/Debug.pyc
ACCESS DENIED  unlink:    /usr/lib/scons-0.98.4/SCons/Errors.pyc
ACCESS DENIED  open_wr:   /usr/lib/scons-0.98.4/SCons/Errors.pyc
ACCESS DENIED  unlink:    /usr/lib/scons-0.98.4/SCons/Executor.pyc
ACCESS DENIED  open_wr:   /usr/lib/scons-0.98.4/SCons/Executor.pyc
ACCESS DENIED  unlink:    /usr/lib/scons-0.98.4/SCons/Memoize.pyc
ACCESS DENIED  open_wr:   /usr/lib/scons-0.98.4/SCons/Memoize.pyc
ACCESS DENIED  unlink:    /usr/lib/scons-0.98.4/SCons/Util.pyc
ACCESS DENIED  open_wr:   /usr/lib/scons-0.98.4/SCons/Util.pyc
ACCESS DENIED  unlink:    /usr/lib/scons-0.98.4/SCons/compat/__init__.pyc
ACCESS DENIED  open_wr:   /usr/lib/scons-0.98.4/SCons/compat/__init__.pyc
[........]
ACCESS DENIED  open_wr:   /usr/lib/scons-0.98.4/SCons/Tool/wix.pyc

Now configuring.  If something fails, consult `config.log' for details.

Detected platform : linux
Checking gcc version... 4.1.2
profiling NOT enabled, debugging NOT enabled, level 2 optimizing enabled
WARNING: attempt to use environment CFLAGS has been ignored.
WARNING: attempt to use environment CXXFLAGS has been ignored.

Configuring spring
Checking for zip... Zip 2.32 found
Checking for Freetype2...
  Checking for freetype-config... /usr/bin/freetype-config
  Checking for Freetype >= 2.0.0... 2.3.7
Checking for SDL...
  Checking for sdl-config... /usr/bin/sdl-config
  Checking for LibSDL >= 1.2.0... 1.2.11
Checking for OpenAL...
  Checking for openal-config... /usr/bin/openal-config
Checking for Ogg headers...
  Guessing ogg include path... /usr/include/ogg 
Checking for Vorbis(-file) headers...
  Guessing vorbisfile include path... /usr/include/vorbis 
Checking for Python 2.5... 
  Guessing Python include path... /usr/include/python2.5 
Checking for Python 2.4... 
  Guessing Python include path... /usr/include/python2.4 
Checking for Java... /usr/lib64/jvm/sun-jdk-1.6/include

Checking headers and libraries
..............
There is a message at the middle

Code: Select all

..............
 * 
 * ERROR: games-strategy/spring-0.76_p1-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2349:  Called die
 * The specific snippet of code:
 *       scons || die "build failed"
 *  The die message:
 *   build 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/games-strategy/spring-0.76_p1-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-strategy/spring-0.76_p1-r2/temp/environment'.
 * This ebuild is from an overlay: '/usr/local/portage/layman/Spring/'
 * 
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-7426.log"
................
The last message

Code: Select all

................
 * Messages for package games-strategy/spring-0.76_p1-r2:
 * 
 * ERROR: games-strategy/spring-0.76_p1-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2349:  Called die
 * The specific snippet of code:
 *       scons || die "build failed"
 *  The die message:
 *   build 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/games-strategy/spring-0.76_p1-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-strategy/spring-0.76_p1-r2/temp/environment'.
 * This ebuild is from an overlay: '/usr/local/portage/layman/Spring/'
 * 
I've never seen that before, and i've no idea what it could be :shock:
No answer on google, or #taspring ^^

Somebody can help me ?
Any ideas ?
(sry for bad english ;) )

Bye ! :)
malric
Posts: 521
Joined: 30 Dec 2005, 22:22

Re: Gentoo - Emerge spring from layman fails

Post by malric »

For me it worked last time (but with paludis). I will try again when I get home.

What package manager are you using and which version ? (I guess is portage, but it good to know the version)
User avatar
Cremuss
Posts: 364
Joined: 28 Oct 2006, 21:38

Re: Gentoo - Emerge spring from layman fails

Post by Cremuss »

yes it's portage :wink:

Calculating dependencies... done!
[ebuild R ] sys-apps/portage-2.1.4.4 USE="-build -doc -epydoc (-selinux)" LINGUAS="-pl" 0 kB

edit :
portage --info

Code: Select all

Portage 2.1.4.4 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-
gentoo-r6 x86_64)
=================================================================
System uname: 2.6.25-gentoo-r6 x86_64 Intel(R) Core(TM)2 CPU 6420 @ 2.13GHz
Timestamp of tree: Thu, 24 Jul 2008 19:00:02 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r2
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
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.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT=""
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gco
nf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans us
erfetch"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
 --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exc
lude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/Spring /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl amd64 aotuv berkdb bzip2 cdr cli cracklib crypt cups d
ri dts dvd encode ffmpeg flac fortran gdbm gif gpm iconv ipv6 isdnlog jpeg kde 
midi mmx mp3 mp4 mudflap multilib ncurses nls nptl nptlonly nvidia ogg openal o
pengl openmp oss pam pcre pdf perl png pppd python qt qt3 qt4 quicktime readlin
e reflection samba session spl sse sse2 ssl svg tcpd tga theora tiff truetype u
nicode vorbis x264 xinerama xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atii
xp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm80
1 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem
 ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplu
g file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rat
e route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alia
s authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_g
roupfile 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 s
peling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVI
CES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd
44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US fr" USERLAND="GNU" V
IDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, POR
TAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
edit 2:
Ok, i've find something :
FEATURES="-sandbox" emerge -av spring springlobby
Now the compiling is better, no more access denied, but the emerge still fails xD

Code: Select all

scons: *** [build/rts/lib/luabind/src/implicit_cast.o] Error 1
scons: building terminated because of errors.
 * 
 * ERROR: games-strategy/spring-0.76_p1-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2348:  Called die
 * The specific snippet of code:
 *       scons || die "build failed"
 *  The die message:
 *   build failed
 * 
 * If you need support, post the topmost build error, and the call stack if rele
vant.
 * A complete build log is located at '/var/tmp/portage/games-strategy/spring-0.
76_p1-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-strategy/sp
ring-0.76_p1-r2/temp/environment'.
 * This ebuild is from an overlay: '/usr/local/portage/layman/Spring/'
 * 

:/
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Gentoo - Emerge spring from layman fails

Post by Auswaschbar »

Cremuss wrote:

Code: Select all

..............
 * 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/games-strategy/spring-0.76_p1-r2/temp/build.log'.
It would help if you could post the build error here, or if you are unsure upload the compelte build log somewhere (e.g. pastebin.ca).
User avatar
Cremuss
Posts: 364
Joined: 28 Oct 2006, 21:38

Re: Gentoo - Emerge spring from layman fails

Post by Cremuss »

In fact i've already posted all important parts of the log =p
But here it is

http://cremuss.free.fr/.aw/build.log

edit : I'm gonna try to emerge spring on the laptop with the same way (layman)
I'll tell you if it works in 1hour
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Gentoo - Emerge spring from layman fails

Post by Auswaschbar »

Code: Select all

rts/lib/luabind/luabind/class.hpp: In member function 'luabind::class_<T, X1, X2, X3>& luabind::class_<T, X1, X2, X3>::def(luabind::detail::operator_<Derived>, const Policies&)':
rts/lib/luabind/luabind/class.hpp:1027: error: no matching function for call to 'raw(boost::arg<1>&)'
rts/lib/luabind/luabind/class.hpp: In member function 'luabind::class_<T, X1, X2, X3>& luabind::class_<T, X1, X2, X3>::def(luabind::detail::operator_<Derived>)':
rts/lib/luabind/luabind/class.hpp:1037: error: no matching function for call to 'raw(boost::arg<1>&)'
Looks familiar, iirc updating gcc to 4.3* should fix this.
User avatar
Cremuss
Posts: 364
Joined: 28 Oct 2006, 21:38

Re: Gentoo - Emerge spring from layman fails

Post by Cremuss »

Spring has emerge successfully on my laptop : o (same gcc version)
hummm, i'll first try to unmask gcc as you said on my desktop and i'll tell you if that worked :wink:
It should take a while, 'cause it's gcc :p

edit :
Gcc upgraded

Calculating dependencies... done!
[ebuild R ] sys-devel/gcc-4.3.1-r1 USE="fortran mudflap (multilib) nls openmp (-altivec) -bootstrap -build -doc -gcj -gtk (-hardened) -ip28 -ip32r10k -libffi -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" 0 kB

No way, it still fails..

*
* ERROR: games-strategy/spring-0.76_p1-r2 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 2349: Called die
* The specific snippet of code:
* scons || die "build failed"
* The die message:
* build 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/games-strategy/spring-0.76_p1-r2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/games-strategy/spring-0.76_p1-r2/temp/environment'.
* This ebuild is from an overlay: '/usr/local/portage/layman/Spring/'
*



As I said, Spring emerged successfully on my laptop with the following main package version wich are the same on my desktop before the gcc upgrading :

app-shells/bash: 3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python: 2.4.4-r13, 2.5.2-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.61-r2
sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
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.23-r3

So maybe it's USE flag that cause the compile fails. I'll check as many difference as I can between my laptop and my desktop and i'll tell you...
(or if you have any idea ... ;) )

edit 2:

Ok so the difference of USE flags between my laptop and my desktop are (including make.conf and package.use )

-nptl acpi wifi ieee1394 aotuv sse3

acpi wifi ieee1394 are not important.
sse3 is a specific cpu instruction that I can set on my laptop
I've to set -nptl due to a bug on mesa with X3100 graphic card on my laptop : enabling/disabling it only affects mesa and xorg-server
"aotuv : Allow users to enable aoTuV encoder enhancements"

So I don't think it's due to USE flags..
It must be other thing.. but what ^^
confusio
Posts: 1
Joined: 01 Dec 2008, 09:12

Re: Gentoo - Emerge spring from layman fails

Post by confusio »

Try "eselect wxwidgets set 1", then re-emerge
User avatar
Cremuss
Posts: 364
Joined: 28 Oct 2006, 21:38

Re: Gentoo - Emerge spring from layman fails

Post by Cremuss »

it has been solved :p
gcc upgrade was badly done.

thx ;)

And welcome btw ! :mrgreen:
Post Reply

Return to “Linux”