Problem building the Pistachio 0.4 kernel

Andreas Grosam agrosam at
Mon Jan 10 16:31:11 CET 2005

Hi All,

this is my first attempt to compile the kernel.

After installing L4/Pistachio and the tool chain for building a PowerPC 
kernel (on a PowerBook G4), i got this error message while compiling 
the kernel sources:

pistachio-0.4/kernel/include/glue/v4-powerpc/tcb.h:330: error: can't 
find a register in class `GENERAL_REGS' while reloading `asm'

I'm using gcc-3.4.3 as the cross compiler - compiled with the Apple 
It doesn't seem that this error has something to do with the sources - 
more likely it is compiler related. I'm not a compiler guru, thus 
googling for that error message revealed some more information. 
Unfortunately no suggested solution for that specific problem seems 
appropriate. Furthermore, it turned out that this might be an 
optimization bug in the compiler.

When using -O1 optimization when building the kernel (default is -Os), 
this error disappears. With stronger optimization it comes back.

Do you have an idea how to workaround this error (gcc patches or prior 
versions, etc.)?

Thanks in advance for any help!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1126 bytes
Desc: not available
URL: <>

More information about the l4-hackers mailing list