Ian Romanick wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Laurent Desnogues wrote:
>> On Jan 2, 2008 7:59 PM, Ian Romanick <[EMAIL PROTECTED]> wrote:
>>> [EMAIL PROTECTED] xdemos]$ GALLIUM_CELL=y
>>> LD_PRELOAD=../../lib/libGL.so.1.5.070100 ./glxinfo
>>> name of display: :0.0
>>> SPU: main() speid=0
>>> Bus error
> 
> [snip]
> 
>> Note I don't know anything about Gallium on PS3, but I have seen
>> people getting weird things due to 32 vs 64 compilers on the PS3,
>> especially when people use 32 bit gcc on the PPU while they use
>> 64 bit for the SPUs.
> 
> Mixed 32-bit / 64-bit environment for the win! :(  With the following
> patch glxinfo and progs/trivial/tri work mostly correctly.  I get a
> SEGFAULT in pthread_join from glxinfo, and tri won't exit without ctrl-c.
> 
> Part of this patch contradicts something in the comments (about the
> parameter types to SPU's main), so I think some discussion is needed
> before committing.

Is it possible the SPU code is getting compiled for 64-bits?  The ppu 
code gets compiled with -m32 but spu-gcc doesn't seem to like that flag. 
  I don't see another option for specifying 32 vs. 64-bit.

Try running 'file' on the spu .o files.  Here, I get:

pipe/cell/spu/g3d_spu-embed.o: ELF 32-bit MSB relocatable, PowerPC or 
cisco 4500, version 1 (SYSV), not stripped
pipe/cell/spu/main.o:          ELF 32-bit MSB relocatable, version 1 
(SYSV), not stripped
pipe/cell/spu/tri.o:           ELF 32-bit MSB relocatable, version 1 
(SYSV), not stripped


-Brian

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to