[oss-devel] A small patch for OSS userland

Clive Wright clive_wright at ntlworld.com
Tue Sep 18 14:09:36 EEST 2007


Yair K wrote:
> On Tue, 18 Sep 2007 10:48:55 +0200, François <Revol" <revol at free.fr>>  
> wrote:
> 
>>>    a) When compiling with gcc and "-O -fschedule-insns", gcc (v4.1.3
>>> and
>>> v4.2.1 on x86_64) will abort with a quirky "unable to find a register
>>> to
>>> spill in class ‘DREG’" message (optimization levels above that simply
>>> segfault upon being run). I wonder if anyone else is getting those
>>> too.
> 
> I forgot to mention that this error happens at gtkvu.c line 293.
> 
>> That's a classic recurrent gcc bug it uses too many regs for
>> optimisation then an't find any more. The low number of x86 registers
>> doesn't help.
>> Try forcing -On with different n. Try with -fno-expensive-
>> optimisations.
>> Try forcing -fno-pic.
>>
> 
> I'm compiling for x86_64 which has more registers than ia32. Oddly enough,  
> gcc compiles ossxmix just fine with -m32 added to these switches.  In any  
> event I can compile with every -f switch used at level -O3 except for  
> -fschedule-insns, and ossxmix will work. -fno-pic or  
> -fno-expensive-optimization have no effect - either -fschedule-insns is  
> used, and ossxmix will crash, or it isn't used, and ossxmix will work.
> 
<snip>
I do not know whether this is relevant but I have had problems with 
compiling ossxmix. It compiles cleanly on i386 using gcc version 4.1.2 
except for one warning:
ossxmix.c:566: warning: assignment discards qualifiers from pointer 
target type

but attempts to run executable result in a segmentation fault.

As a workaround I have modified gtkvu.c see attached patch.

I wondered if you could check whether patching gtkvu.c has any effect on 
the errors you are experiencing.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gtkvu.pat
Type: image/x-coreldrawpattern
Size: 721 bytes
Desc: not available
Url : http://mailman.opensound.com/pipermail/oss-devel/attachments/20070918/083ee6a9/attachment.bin 


More information about the oss-devel mailing list