Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130933 - [linux-headers-2.6.16] x11-base/xorg-server-1.0.2-r4 and x11-drivers/xf86-video-ati-6.5.8.0 won't compile
Summary: [linux-headers-2.6.16] x11-base/xorg-server-1.0.2-r4 and x11-drivers/xf86-vid...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: High enhancement (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-23 00:28 UTC by Markus Rothe (RETIRED)
Modified: 2006-08-07 15:31 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
a few lines before and after the error (xorg-server.output.txt,2.79 KB, text/plain)
2006-04-23 00:28 UTC, Markus Rothe (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Rothe (RETIRED) gentoo-dev 2006-04-23 00:28:19 UTC
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 ;-)
Comment 1 Markus Rothe (RETIRED) gentoo-dev 2006-04-23 00:28:58 UTC
Created attachment 85244 [details]
a few lines before and after the error
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2006-04-29 13:55:53 UTC
Hmm, fun, if you touch /usr/include/asm/memory.h does that fix it?
Comment 3 Markus Rothe (RETIRED) gentoo-dev 2006-05-07 02:39:20 UTC
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
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2006-05-09 13:56:47 UTC
(In reply to comment #2)
> Hmm, fun, if you touch /usr/include/asm/memory.h does that fix it?

Try that please :)
Comment 5 Markus Rothe (RETIRED) gentoo-dev 2006-05-09 15:09:54 UTC
(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?
Comment 6 Markus Rothe (RETIRED) gentoo-dev 2006-05-10 12:30:17 UTC
hrm.. I suppose the better solution is to remove the include line on ppc64?
Comment 7 Tim Yamin (RETIRED) gentoo-dev 2006-05-26 06:41:43 UTC
(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.
Comment 8 Tim Yamin (RETIRED) gentoo-dev 2006-05-26 08:04:09 UTC
Fixed in 2.6.16-3.
Comment 9 Markus Rothe (RETIRED) gentoo-dev 2006-08-06 23:16:11 UTC
plasmaroo: that dummy file got removed? a recent install of linux-headers-2.6.16 did not include it.
Comment 10 Tim Yamin (RETIRED) gentoo-dev 2006-08-07 15:31:48 UTC
(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.