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