Hello, while testing linux-headers-2.6.16 on my PPC64 machine I ran into this problem while compiling x11-base/xorg-server-1.0.2-r3: [...] In file included from ../../../hw/xfree86/os-support/xf86_OSlib.h:756, from xf86Configure.c:45: ./compiler.h:1086:25: error: asm/memory.h: No such file or directory [...] seems like the file has moved or something like that.. this comes from a system running linux-headers-2.6.11-r5: $ find /usr/include/ -name memory.h /usr/include/asm/memory.h /usr/include/memory.h /usr/include/asm-ppc64/memory.h $ and this is a system running linux-headers-2.6.16: # find /usr/include/ -name memory.h /usr/include/linux/memory.h /usr/include/memory.h # plasmaroo: I assigned this bug to you as it seems header releated. feel free to reassign if it does not 'belong' to you ;-)
Created attachment 85244 [details] a few lines before and after the error
Hmm, fun, if you touch /usr/include/asm/memory.h does that fix it?
Same issue with x11-drivers/xf86-video-ati-6.5.8.0: powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DXFree86Server -DIN_MODULE -DXFree86Module -DXFree86LOADER -I/usr/include/xorg -I/usr/include/drm -I/usr/include/X11/dri -O2 -pipe -mtune=970 -mcpu=970 -mabi=altivec -ftree-vectorize -ggdb -MT atibus.lo -MD -MP -MF .deps/atibus.Tpo -c atibus.c -fPIC -DPIC -o .libs/atibus.o In file included from atiio.h:35, from atibus.c:32: /usr/include/xorg/compiler.h:1086:25: error: asm/memory.h: No such file or directory
(In reply to comment #2) > Hmm, fun, if you touch /usr/include/asm/memory.h does that fix it? Try that please :)
(In reply to comment #4) > (In reply to comment #2) > > Hmm, fun, if you touch /usr/include/asm/memory.h does that fix it? > > Try that please :) > yes, that fixed the error. Sorry, I should have read that... So, there should be an empty memory.h included in linux-headers?
hrm.. I suppose the better solution is to remove the include line on ppc64?
(In reply to comment #6) > hrm.. I suppose the better solution is to remove the include line on ppc64? Yeah, but that might break things with 2.6.11 from what I can recall (dostrow?). So I'll just make a dummy header.
Fixed in 2.6.16-3.
plasmaroo: that dummy file got removed? a recent install of linux-headers-2.6.16 did not include it.
(In reply to comment #9) > plasmaroo: that dummy file got removed? a recent install of > linux-headers-2.6.16 did not include it. No, looks like something got changed somewhere, not quite sure what (maybe kernel-2.eclass or epatch), and the dummy file wasn't being made correctly by the patch. Fixed in 2.6.16-4, InCVS.