Hi, I just tried to compile app-editors/xemacs-21.4.15-r3, but it failed: [...] gcc -c -mcpu=G5 -O3 -pipe -fsigned-char -mabi=altivec -g -Demacs -I. -DHAVE_CONFIG_H -I/usr/X11R6/include gpmevent.c In file included from /usr/include/asm/spinlock.h:18, from /usr/include/linux/spinlock.h:39, from /usr/include/linux/wait.h:15, from /usr/include/linux/keyboard.h:4, from gpmevent.c:48: /usr/include/asm/paca.h:25: error: register name given for non-register variable 'local_paca' make[1]: *** [gpmevent.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/xemacs-21.4.15-r3/work/xemacs-21.4.15/src' make: *** [src] Error 2 !!! ERROR: app-editors/xemacs-21.4.15-r3 failed. !!! Function src_compile, Line 171, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. This seems to be linux-headers-2.6.* related. plasmaroo: If you are the wrong person, please reassign the bug to ppc64@gentoo.org. Greets, Markus
Created attachment 56736 [details] /usr/include/asm/paca.h
Created attachment 56754 [details, diff] patch for sys-kernel/linux-headers/files/linux-headers-2.6.8.1-appCompat.patch My environment also reproduced this problem. I attach the patch for succeeding in compile of xemacs.
Created attachment 56756 [details] result of `emerge --info`
I got this from plasmaroo on irc: 14:51 <@plasmaroo> corsair: Look at 82690 for that Xemacs thing, do the same workaround for paca.h 14:51 <@plasmaroo> corsair: Basically, upstream decides to screw all ANSI C standards and do #define register which is bad. 14:53 <@plasmaroo> corsair: So actually try putting the workaround in the bottom of types.h instead, that might be better. I'll try that ASAP.
yes, adding this to the end of types.h solves the problem: #ifdef register #undef register #endif
Works here.
Fixed in CVS; please sync and remerge linux-headers. Thanks!