Problem building the Pistachio 0.4 kernel

Joshua LeVasseur jtl at
Mon Jan 10 19:05:17 CET 2005

Hi Andreas,

Switching to a different version of gcc will help.  I personally have 
used gcc 3.2.1 and 3.3.4 for powerpc-elf.


On Jan 10, 2005, at 16:31, Andreas Grosam wrote:

> 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 
> tools.
> 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!
> Regards
> Andreas_______________________________________________
> l4-hackers mailing list
> l4-hackers at

More information about the l4-hackers mailing list