Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99243 - scons-0.96.90 fails to build media-gfx/blender
Summary: scons-0.96.90 fails to build media-gfx/blender
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Tom Payne (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-16 09:57 UTC by Kitson P. Kelly
Modified: 2006-07-17 03:08 UTC (History)
1 user (show)

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 Kitson P. Kelly 2005-07-16 09:57:23 UTC
Blender fails to build with the following error:

gcc -pipe -funsigned-char -march=pentium4 -O3 -pipe -mfpmath=sse -ffast-math
-fomit-frame-pointer -Wall -W -DGAMEBLENDER=1 -DUSE_SUMO_SOLID -DNDEBUG
-I/var/tmp/portage/blender-2.37a/work/build/linux2/source/blender/readblenfile
-Isource/blender -Isource/blender
-I/var/tmp/portage/blender-2.37a/work/build/linux2/source/blender/readstreamglue
-Isource/blender/readstreamglue -Isource/blender/readstreamglue
-I/var/tmp/portage/blender-2.37a/work/build/linux2/source/blender/blenloader
-Isource/blender/blenloader -Isource/blender/blenloader
-I/var/tmp/portage/blender-2.37a/work/build/linux2/source/blender/blenloader/intern
-Isource/blender/blenloader/intern -Isource/blender/blenloader/intern
-I/var/tmp/portage/blender-2.37a/work/build/linux2/source/blender/blenkernel
-Isource/blender/blenkernel -Isource/blender/blenkernel
-I/var/tmp/portage/blender-2.37a/work/build/linux2/source/blender/blenlib
-Isource/blender/blenlib -Isource/blender/blenlib
-I/var/tmp/portage/blender-2.37a/work/build/linux2/source/blender/makesdna
-Isource/blender/makesdna -Isource/blender/makesdna
-I/var/tmp/portage/blender-2.37a/work/build/linux2/source/kernel/gen_messaging
-Isource/kernel/gen_messaging -Isource/kernel/gen_messaging -c -o
/var/tmp/portage/blender-2.37a/work/build/linux2/source/blender/readblenfile/intern/BLO_readblenfile.o
source/blender/readblenfile/intern/BLO_readblenfile.c
source/blender/readblenfile/intern/BLO_readblenfile.c:54:30: BLO_readblenfile.h:
No such file or directory
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp: In member function `
   int GPC_RenderTools::applyLights(int)':
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:350: warning: comparison
   between signed and unsigned integer expressions
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:357: warning: comparison
   between signed and unsigned integer expressions
scons: ***
[/var/tmp/portage/blender-2.37a/work/build/linux2/source/blender/readblenfile/intern/BLO_readblenfile.o]
Error 1
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp: In member function `
   virtual void GPC_RenderTools::EndFrame(RAS_IRasterizer*)':
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:118: warning: unused
   parameter `RAS_IRasterizer*rasty'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp: In member function `
   virtual void GPC_RenderTools::BeginFrame(RAS_IRasterizer*)':
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:123: warning: unused
   parameter `RAS_IRasterizer*rasty'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp: In member function `
   virtual RAS_IPolyMaterial* GPC_RenderTools::CreateBlenderPolyMaterial(const
   STR_String&, bool, const STR_String&, int, int, int, int, bool, bool, int,
   bool, void*, void*)':
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:332: warning: unused
   parameter `const STR_String&texname'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:332: warning: unused
   parameter `bool ba'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:332: warning: unused
   parameter `const STR_String&matname'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:332: warning: unused
   parameter `int tile'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:332: warning: unused
   parameter `int tilexrep'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:332: warning: unused
   parameter `int tileyrep'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:332: warning: unused
   parameter `int mode'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:332: warning: unused
   parameter `bool transparant'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:332: warning: unused
   parameter `bool zsort'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:332: warning: unused
   parameter `int lightlayer'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:332: warning: unused
   parameter `bool bIsTriangle'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:332: warning: unused
   parameter `void*clientobject'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:332: warning: unused
   parameter `void*tface'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp: In member function `
   bool GPC_RenderTools::RayHit(KX_ClientObjectInfo*, MT_Point3&, MT_Vector3&,
   void*)':
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:440: warning: unused
   parameter `KX_ClientObjectInfo*client'
scons: building terminated because of errors.
Exception in thread Thread-1 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
  File "/usr/lib/scons/SCons/Job.py", line 148, in run
  File "/usr/lib/python2.4/Queue.py", line 119, in get
  File "/usr/lib/python2.4/threading.py", line 196, in wait
exceptions.TypeError: exceptions must be classes, instances, or strings
(deprecated), not NoneType
Unhandled exception in thread started by
Error in sys.excepthook:

Original exception was:

!!! ERROR: media-gfx/blender-2.37a failed.
!!! Function src_compile, Line 99, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
1. emerge blender
2. wait for failure
Actual Results:  
The emerge failed...

Expected Results:  
The emerge succeed...

Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r0,
2.6.12-gentoo i686)
=================================================================
System uname: 2.6.12-gentoo i686 Intel(R) Pentium(R) 4 CPU 2.00GHz
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.4-r1, 2.4.1-r1
sys-apps/sandbox:    1.2.9
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe -mfpmath=sse -ffast-math -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -mfpmath=sse -ffast-math -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/
ftp://gentoo.ccccom.com http://pandemonium.tiscali.de/pub/gentoo/"
LC_ALL="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac acpi aim alsa apache2 apm arts avi berkdb bitmap-fonts bmp bzlib
cddb cdparanoia cdr crypt cups curl curlwrappers dba dbm dga directfb divx4linux
dts dv dvd dvdr dvdread emboss encode esd fam firefox flac flash flatfile
foomaticdb footmaticdb fortran gd gdbm geoip gif gpm gtk2 hal howl iconv icq
ieee1394 imagemagick imlib inifile ithreads jabber java javascript jikes
joystick jpeg junit kde kdeenablefinal latex libg++ libwww lm_sensors mad math
mikmod mime mmx mmx2 mng mozsvg mp3 mpeg msn mysql nas ncurses net nls nomotif
nvidia oci8 offensive ogg oggvorbis opengl oracle oss pam pcre pdflib perl php
png pnp ppds python qt quicktime rdesktop readline real ruby samba sane scanner
sdl session slang sndfile soap sockets sox speex spell sse sse2 ssl svg svga
tcpd tetex tidy tiff tokenizer truetype truetype-fonts type1-fonts unicode usb
userlocales v4l v4l2 vhosts vorbis wmf xml xml2 xmms xscreensaver xv yahoo
zaptel zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 John C. Kha 2005-07-27 20:34:07 UTC
(In reply to comment #0)

I am having the same problem.

2.6.12-gentoo-r6 kernel

Make.conf:

CFLAGS="-O2 -mcpu=i686 -msse -mmmx -mfpmath=sse -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
USE="X a52 aac aalib acpi aim alsa apache2 avi bash-completion bluetooth bzip2
cdr crypt cups divx4linux dvd dvdr dvdread gif ieee1394 imlib jpeg -kde mime mmx
mp3 mpeg msn ncurses offensive ogg png -qt spell sse ssl vcd wifi win32codecs
wmf xine xmms xosd xv yahoo"

Error:

source/gameengine/GamePlayer/common/GPC_RenderTools.cpp: In member function `
   virtual void GPC_RenderTools::EndFrame(RAS_IRasterizer*)':
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:118: warning: unused 
   parameter `RAS_IRasterizer*rasty'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp: In member function `
   virtual void GPC_RenderTools::BeginFrame(RAS_IRasterizer*)':
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:123: warning: unused 
   parameter `RAS_IRasterizer*rasty'
source/blender/readblenfile/intern/BLO_readblenfile.c:54:30: BLO_readblenfile.h:
No such file or directory
scons: ***
[/var/tmp/portage/blender-2.37a/work/build/linux2/source/blender/readblenfile/intern/BLO_readblenfile.o]
Error 1
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp: In member function `
   virtual RAS_IPolyMaterial* GPC_RenderTools::CreateBlenderPolyMaterial(const 
   STR_String&, bool, const STR_String&, int, int, int, int, bool, bool, int, 
   bool, void*, void*)':
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:332: warning: unused 
   parameter `const STR_String&texname'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:332: warning: unused 
   parameter `bool ba'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:332: warning: unused 
   parameter `const STR_String&matname'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:332: warning: unused 
   parameter `int tile'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:332: warning: unused 
   parameter `int tilexrep'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:332: warning: unused 
   parameter `int tileyrep'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:332: warning: unused 
   parameter `int mode'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:332: warning: unused 
   parameter `bool transparant'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:332: warning: unused 
   parameter `bool zsort'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:332: warning: unused 
   parameter `int lightlayer'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:332: warning: unused 
   parameter `bool bIsTriangle'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:332: warning: unused 
   parameter `void*clientobject'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:332: warning: unused 
   parameter `void*tface'
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp: In member function `
   int GPC_RenderTools::applyLights(int)':
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:350: warning: comparison
   between signed and unsigned integer expressions
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:357: warning: comparison
   between signed and unsigned integer expressions
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp: In member function `
   bool GPC_RenderTools::RayHit(KX_ClientObjectInfo*, MT_Point3&, MT_Vector3&, 
   void*)':
source/gameengine/GamePlayer/common/GPC_RenderTools.cpp:440: warning: unused 
   parameter `KX_ClientObjectInfo*client'
scons: building terminated because of errors.
Comment 2 Luca Barbato gentoo-dev 2005-08-01 10:06:52 UTC
looks like a scons issue, try to downgrade to the previous version

please tell me your scons version.
Comment 3 Captain Sifff 2005-08-02 10:24:58 UTC
I had the same issue with emerging blender.(Couldn't find header) 
Reverting Scons to the last stable - marked version(0.96.1) solved the problem 
and blender compiled fine 
 
 
Comment 4 Luca Barbato gentoo-dev 2005-08-02 11:12:39 UTC
not a blender fault, I'll pin the right scons version, but that isn't a fix to
the scons issue.
Comment 5 fish ghoti 2005-08-05 05:58:01 UTC
Maybe related :
There is a conflict between the scons versions wanted by blender and yafray :
blender wants >=media-gfx/yafray-0.0.7 in RDEPEND but =dev-util/scons-0.96.1 in
DEPEND.
yafray implicitly wants the newer version of scons in DEPEND, thus scons-0.96.90
if you are in "~ARCH"
Comment 6 Geoff Leach 2005-08-09 20:27:01 UTC
(In reply to comment #5)
> Maybe related :
> There is a conflict between the scons versions wanted by blender and yafray :
> blender wants >=media-gfx/yafray-0.0.7 in RDEPEND but =dev-util/scons-0.96.1 in
> DEPEND.
> yafray implicitly wants the newer version of scons in DEPEND, thus scons-0.96.90
> if you are in "~ARCH"

I'm using ~x86. yafray-0.0.7 only has dev-util/scons so should be happy with
scons-0.96.1 along with blender. I've masked scons-0.96.90 to stop the scons
emerge up/down cycling.
Comment 7 fish ghoti 2005-08-16 11:31:15 UTC
@Geoff Leach :
Yes, I know that and I did the same as you but the point is to be able to remain
in full ~ARCH and to avoid the perpetual switch in the ebuilds self ...
I guess the suppression of scons-DEPEND in blender could help since it is
already satisfied by yafray. Or is this exact version of scons needed by blender ?? 
Comment 8 Geoff Leach 2005-08-17 16:23:11 UTC
According to the blender Changelog

18:08:08 lu_zero Exp $

  02 Aug 2005; Luca Barbato <lu_zero@gentoo.org> blender-2.37a.ebuild:
  Make sure blender can build, the newer scons are problematic

So looks as though the specific scons-0.96.1 DEPEND for Blender was put in quite
deliberately to solve a problem created by new versions ... 
Comment 9 Tom Payne (RETIRED) gentoo-dev 2005-09-18 02:33:12 UTC
scons-0.96.90 has been package.mask'ed as it is clearly problematic.
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-07-17 03:08:14 UTC
The broken scons is p.masked, closing.