[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: blender FTBFS problems on mips{,el}: please help



On Sat, Oct 07, 2006 at 12:03:15PM +0200, Jens Seidel wrote:
> I was able to compile it with gcc-4.1 4.1.1-13 from etch. I hope this is
> used on the autobuilder as well or do they ran unstable?

Yes, those buildd I'm interested in run unstable.

> > [0] ICE when using g++-4.1:
> > | source/blender/src/interface.c: In function 'uiBlockPickerButtons':
> > | source/blender/src/interface.c:3207: error: unable to find a register to spill in class 'FP_REGS'
> > | source/blender/src/interface.c:3207: error: this is the insn:
> [...]
> There are many solutions:
>  * Avoid the -O2 compiler flag, -O0, -O1, -O3, -Os all work.
>    Maybe you want to test the effect of changing the optimisation level
>    on a i386 box? You could also try to change -O2 for interface.c only.

Hrm, hum. Now I feel stupid. But it's a good kind of stupid.

Actually lowering the optimization was the first thing I tried[0], but
unfortunately it didn't work back then[1]. Thanks for testing this,
I tried building the package on casals and vaughan and it seemed to
work out, so this is the way I choose to go.

> [...]
> Please note that the build needs many hours (approximately 7 on my fast
> 300MHz box). Using -Os seems to increase this time even more.

Yeah, the time needed on the Debian porter machines is of the same
order of magnitude. Even on my home box it takes 1.5 hours, which
makes testing a build quite slow...

> > [1] Linking fails when using g++-3.x:
> > | Linking program ==> 'blender'
> > | `.gnu.linkonce.t._ZNK8BoxShape16GetPlaneEquationER11SimdVector4i' referenced in section `.rodata' of build/linux2/lib/libextern_bullet.a(CylinderShape.o): defined in discarded section `.gnu.linkonce.t._ZNK8BoxShape16GetPlaneEquationER11SimdVector4i' of build/linux2/lib/libextern_bullet.a(CylinderShape.o)
> > | `.gnu.linkonce.t._ZNK8BoxShape7GetEdgeEiR11SimdVector3S1_' referenced in section `.rodata' of build/linux2/lib/libextern_bullet.a(CylinderShape.o): defined in discarded section `.gnu.linkonce.t._ZNK8BoxShape7GetEdgeEiR11SimdVector3S1_' of build/linux2/lib/libextern_bullet.a(CylinderShape.o)
> > | collect2: ld returned 1 exit status
> > | scons: *** [build/linux2/bin/blender] Error 1
> > | scons: building terminated because of errors.
> 
> According to google it is often sufficient to remove "inline" statements.
> Nevertheless this isn't the case here. I also moved the affected inline
> functions to the code where they are used - without effect.
> There is also a warning about a possible conflict of libstdc++.so.6 with
> libstdc++.so.5 so you should prefer gcc-4.1.

This warning only appears when using g++-3.3. 3.4 and upwards are
binary-compatible. But of course, when possible, I should prefer the
standard compiler.


Anyway, thanks a lot for your tests and hints! The unstable buildds
have picked up and successfully built blender, so this problem is
resolved.


Cheers,
Flo


[0]
http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/blender/debian/patches/Attic/01_SConstruct_debian_mips_el.dpatch?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot=pkg-blender
[1]
http://buildd.debian.org/build.php?pkg=blender&ver=2.40-2&arch=mips
http://buildd.debian.org/build.php?pkg=blender&ver=2.40-2&arch=mipsel

Attachment: signature.asc
Description: Digital signature


Reply to: