Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 168874

Summary: dev-games/crystalspace-1.0 runs out of mem while compiling cswigpl5.o
Product: Gentoo Linux Reporter: Albert Zeyer <albzey>
Component: [OLD] LibraryAssignee: PPC Porters <ppc>
Status: RESOLVED FIXED    
Severity: normal CC: games, res
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Albert Zeyer 2007-03-01 12:15:56 UTC
I tried to compile crystalspace-1.0 but have some problems (0.9.8 also failed here with some other error, but as I need the more current version, I don't get deeper into this).

I am on a PPC with 768MB physical RAM and 512MB swap. I tried it with GCC 4.1.1 first and then with GCC 3.4.6, same result.

Everything seems to compile fine up to the line:
C++ ./out/linuxppc/optimize/plugins/cscript/csperl5/cswigpl5.o 
In this line, it takes place very long and I can see, how my system runs out of memory (and then, my system freeze or GCC gives some very very strange message or I got other strange effects).

The output before:

...
Copy ./out/linuxppc/optimize/plugins/cscript/csjava/src/org/crystalspace3d/CS.java 
Ant ./out/linuxppc/optimize/plugins/cscript/csjava/crystalspace.jar 

BUILD SUCCESSFUL
Total time: 40 seconds
Copy crystalspace.jar 
MkDir1 ./out/linuxppc/optimize/plugins/cscript/csperl5 
RunSwig ./out/linuxppc/optimize/plugins/cscript/csperl5/cswigpl5.inc 
./include/bindings/cspace.i:1290: Warning(302): Identifier '~iBase' redefined (ignored),
./include/csutil/scf_interface.h:118: Warning(302): previous definition of '~iBase'.
C++ ./out/linuxppc/optimize/plugins/cscript/csperl5/cswigpl5.o 


If GCC gives an error, it's something like:
...
{standard input}:1501063: Error: operand out of range (0x00000000000090b4 is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:1501094: Error: operand out of range (0x00000000000090b8 is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:1501122: Error: operand out of range (0x00000000000090b0 is not between 0xffffffffffff8000 and 0x0000000000007fff)
...
{standard input}:1509101: Error: operand out of range (0x0000000000008fe8 is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:1509154: Error: operand out of range (0x0000000000009164 is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:1509164: Error: operand out of range (0x0000000000008fe0 is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:1509257: Error: operand out of range (0x0000000000009168 is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:1509263: Error: operand out of range (0x00000000000086ac is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:1509265: Error: operand out of range (0x000000000000916c is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:1509272: Error: operand out of range (0x0000000000008fe4 is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:1509278: Error: operand out of range (0x00000000000086ac is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:1509280: Error: operand out of range (0x0000000000008fe8 is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:1509348: Error: operand out of range (0x0000000000009170 is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:1509358: Error: operand out of range (0x0000000000008fe0 is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:1509451: Error: operand out of range (0x0000000000009174 is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:1509457: Error: operand out of range (0x00000000000086ac is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:1509459: Error: operand out of range (0x0000000000009178 is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:1509466: Error: operand out of range (0x0000000000008fe4 is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:1509472: Error: operand out of range (0x00000000000086ac is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:1509474: Error: operand out of range (0x0000000000008fe8 is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:1509501: Error: operand out of range (0x0000000000009164 is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:1509529: Error: operand out of range (0x0000000000009170 is not between 0xffffffffffff8000 and 0x0000000000007fff)

    powerpc-unknown-linux-gnu-g++ -c -o ./out/linuxppc/optimize/plugins/cscript/csperl5/cswigpl5.o -I. -I./include -I./include -O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -pipe -O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -Wall -Wno-unknown-pragmas -fvisibility=hidden -O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -fno-exceptions -fvisibility-inlines-hidden -fPIC -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl5/5.8.8/powerpc-linux-thread-multi/CORE -I./out/linuxppc/optimize/plugins/cscript/csperl5 -Wno-unused -Wno-uninitialized -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl5/5.8.8/powerpc-linux-thread-multi/CORE -fPIC  plugins/cscript/csperl5/cswigpl5.cpp

...failed C++ ./out/linuxppc/optimize/plugins/cscript/csperl5/cswigpl5.o ...
...skipped csperl5.so for lack of <plugins!cscript!csperl5!>cswigpl5.o...
...failed updating 1 target(s)...
...skipped 1 target(s)...
...updated 438 target(s)...

!!! ERROR: dev-games/crystalspace-1.0 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 4382:   Called src_compile
  crystalspace-1.0.ebuild, line 90:   Called die

!!! compile 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/dev-games/crystalspace-1.0/temp/build.log'.

!!! When you file a bug report, please include the following information:
GENTOO_VM=ibm-jdk-bin-1.5  CLASSPATH="" JAVA_HOME="/opt/ibm-jdk-bin-1.5.0.3"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER=""
and of course, the output of emerge --info
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-03-01 13:58:46 UTC
emerge --info please.
Comment 2 Albert Zeyer 2007-03-01 16:31:15 UTC
I don't know, if this is realy helpful, but here it is:

Portage 2.1.2-r9 (default-linux/ppc/ppc32/2006.1/G4, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r1 ppc)
=================================================================
System uname: 2.6.19-gentoo-r1 ppc 7447A, altivec supported
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 08 Aug 2006 16:00:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 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.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/      ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/    ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/       ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo   ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/"
LINGUAS="de"
PKGDIR="/usr/portage/packages"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/private"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip GAPING_SECURITY_HOLE X a52 aac aalib aiglx alsa altivec amd apache2 apm applet aqua_theme asf automount backendonly bash-completion battery beagle berkdb binary-drivers bindist binfilter bitmap-fonts bittorrent bonjour bonobo branding bzip2 cairo cdr chm cli corba cracklib crosscompile crypt css cups curl cursors dbus dedicated dga dhcp djbfft dmx dnotify dri dts dv dvd dvdread dvi editor eds emboss encode esd evo evolution exif extensions fat fbcon ffmpeg firefox flac fortran ftp gaim gdbm gdm gif gimp glitz gnome gpm gps gs gstreamer gtk gtk2 gtkhtml hal haskell ibam icons iconv ieee1394 insecure-drivers ipv6 isdnlog ithreads java javacomm javascript jbig jpeg jpeg2k kerberos krb4 lame lcms ldap libcaca libg++ libwww linuxthreads-tls live lzo mad matroska midi mikmod mime mjpeg mng mod modplug mozbranding mozcalendar mozdevelop mp3 mp4 mpeg mtp multicall musepack nautilus ncurses net njb nls nntp nptl nptlonly nsplugin ocaml ode ogg openal opengl oss pam pascal pci pcre pdf perl php png ppc ppcsha1 ppds python quicktime readline reflection reiser4 reiserfs rtc rtsp ruby samba screen sdl server session sheep shout slp sockets socks5 speex spell spl ssl subversion svg syslog t1lib teamarena tetex tga themes theora threads thumbnail tiff truetype truetype-fonts type1 type1-fonts unicode usb vcd vidix visualization vorbis widescreen wifi wma wmf wmp wordperfect wxwindows x264 xanim xcomposite xext xface xine xml xorg xscreensaver xsettings xv xvid zip zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" 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="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="ati radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Albert Zeyer 2007-03-01 16:32:25 UTC
(Btw., as you see ccache enabled there: I also have tried it with disabled ccache.)

These are my activated USE-flags related to crystalspace:

[ebuild  N    ] dev-games/crystalspace-1.0  USE="alsa java javascript jpeg mng ode perl png python sdl truetype vorbis wxwindows -3ds -cal3d -cegui (-cg) -doc" 0 kB 

I have tried now with disables perl-USE-flag and I got the very same error on the next build target, that is something with python:

...
LinkPlugin libcsjava.so 
Copy ./out/linuxppc/optimize/plugins/cscript/csjava/build.xml 
Copy ./out/linuxppc/optimize/plugins/cscript/csjava/src/org/crystalspace3d/csJEventHandler.java 
Copy ./out/linuxppc/optimize/plugins/cscript/csjava/src/org/crystalspace3d/CS.java 
Ant ./out/linuxppc/optimize/plugins/cscript/csjava/crystalspace.jar 

BUILD SUCCESSFUL
Total time: 41 seconds
Copy crystalspace.jar 
MkDir1 ./out/linuxppc/optimize/plugins/cscript/cspython 
C++ ./out/linuxppc/optimize/plugins/cscript/cspython/cspython.o 
C++ ./out/linuxppc/optimize/plugins/cscript/cspython/pytocs.o 
RunSwig ./out/linuxppc/optimize/plugins/cscript/cspython/cs_pyth.cpp 
./include/bindings/cspace.i:1290: Warning(302): Identifier '~iBase' redefined (ignored),
./include/csutil/scf_interface.h:118: Warning(302): previous definition of '~iBase'.
C++ ./out/linuxppc/optimize/plugins/cscript/cspython/cs_pyth.o 
{standard input}: Assembler messages:
{standard input}:708672: Error: operand out of range (0x0000000000008000 is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:708714: Error: operand out of range (0x0000000000008004 is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:708761: Error: operand out of range (0x0000000000008008 is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:708871: Error: operand out of range (0x000000000000800c is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:708880: Error: operand out of range (0x0000000000008010 is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:708934: Error: operand out of range (0x0000000000008014 is not between 0xffffffffffff8000 and 0x0000000000007fff)
...
...
{standard input}:715641: Error: operand out of range (0x0000000000008280 is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:715699: Error: operand out of range (0x0000000000008284 is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:715741: Error: operand out of range (0x0000000000008288 is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:715780: Error: operand out of range (0x000000000000828c is not between 0xffffffffffff8000 and 0x0000000000007fff)
...
{standard input}:718231: Error: operand out of range (0x0000000000008364 is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:718288: Error: operand out of range (0x0000000000008368 is not between 0xffffffffffff8000 and 0x0000000000007fff)
{standard input}:718297: Error: operand out of range (0x000000000000836c is not between 0xffffffffffff8000 and 0x0000000000007fff)

    powerpc-unknown-linux-gnu-g++ -c -o ./out/linuxppc/optimize/plugins/cscript/cspython/cs_pyth.o -I. -I./include -I./include -O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -pipe -O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -Wall -Wno-unknown-pragmas -fvisibility=hidden -O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -fno-exceptions -fvisibility-inlines-hidden -fPIC -I/usr/include/python2.4 -DSWIG_GLOBAL -Wno-unused -Wno-uninitialized -fno-strict-aliasing  ./out/linuxppc/optimize/plugins/cscript/cspython/cs_pyth.cpp

...failed C++ ./out/linuxppc/optimize/plugins/cscript/cspython/cs_pyth.o ...
...skipped libcrystalspace_python.a for lack of libcrystalspace_python.a(cs_pyth.o)...
...skipped cspython.so for lack of libcrystalspace_python.a...
...failed updating 1 target(s)...
...skipped 2 target(s)...
...updated 436 target(s)...

!!! ERROR: dev-games/crystalspace-1.0 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 4382:   Called src_compile
  crystalspace-1.0.ebuild, line 90:   Called die

!!! compile 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/dev-games/crystalspace-1.0/temp/build.log'.

!!! When you file a bug report, please include the following information:
GENTOO_VM=ibm-jdk-bin-1.5  CLASSPATH="" JAVA_HOME="/opt/ibm-jdk-bin-1.5.0.3"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER=""
and of course, the output of emerge --info
Comment 4 Albert Zeyer 2007-03-01 17:34:08 UTC
If I also disable the python-USE-flag, it compiles fine.
(But this is not realy a solution.)
Comment 5 Frank Richter 2007-03-28 15:42:17 UTC
These are actually two bugs.

Upstream ticket for PPC compile failure: http://trac.crystalspace3d.org/trac/CS/ticket/210
Upstream ticket for excessive memory usage when compiling bindings: http://trac.crystalspace3d.org/trac/CS/ticket/258
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-06-10 11:26:35 UTC
Re-assign wrt Bug 171232
Comment 7 Mr. Bones. (RETIRED) gentoo-dev 2007-10-14 21:07:31 UTC
PPC team, please make a call on this with regard to de-keywording.  This is holding up the keywords for 1.x
Comment 8 nixnut (RETIRED) gentoo-dev 2007-10-28 13:28:02 UTC
dropped ~ppc from cel-1.0.1 and crystalspace-1.0.1
Comment 9 nixnut (RETIRED) gentoo-dev 2007-12-22 19:38:26 UTC
might as well close this bug. fixed by dropping keywords ;-p