Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60615 - compiling/installing kernel from sys-kernel/gentoo-dev-sources-2.6.8 on ppc screws up /dev/null
Summary: compiling/installing kernel from sys-kernel/gentoo-dev-sources-2.6.8 on ppc s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: David Holm (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-16 17:04 UTC by cmil
Modified: 2004-10-04 14:35 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cmil 2004-08-16 17:04:40 UTC
Since I just noticed that gentoo-dev-sources-2.6.8 is marked stable for ppc I thought it would be reasonable to report an issue with arch/ppc/Makefile in the 2.6.8 (as well as 2.6.8.1) sources from kernel.org. I already informed the PPC kernel maintainers about this issue and they are looking into it. Here is is the relevant passage from an email I sent to Ben Herrenschmidt yesterday:

> Compiling the kernel 2.6.8 as root deletes /dev/null and subsequently
> recreates it as a regular file. I figured this is caused by the
> assembler check in line 116 added to arch/ppc/Makefile in 2.6.8. (the
> same may be true for line 109 which doesn't apply on my system).

I afterwards noticed that, even if I compile the kernel as an unprivileged user (which was the advice I received from the kernel guys), make modules_install (now being root for obvious reasons) still has the same effect, i.e. /dev/null is gone.

This issue also affects >=sys-kernel/development-sources-2.6.8 which are still marked ~ppc though.

BTW, am I right that compiling the kernel as root in /usr/src/<kernelversion> is considered the standard way to do it on Gentoo? Since yesterday I know that I could either chown /usr/src/<kv> or do something like 

mkdir ~/kernel
cd /usr/src/<kv>
make O=~/kernel

However, I'm not sure how well this would work with portage or packages like mol that rely on the kernel sources. Any ideas?
Comment 1 Pieter Van den Abeele (RETIRED) gentoo-dev 2004-08-19 14:16:17 UTC
I have temporarily masked 2.6.8 -ppc
Comment 2 Sebastian Dröge 2004-09-21 10:57:01 UTC
Any progress here?
Comment 3 Pieter Van den Abeele (RETIRED) gentoo-dev 2004-09-22 16:17:32 UTC
Dholm, I need a solution before sunday for the 2004.3 livecds. Can you have a look asap?
Comment 4 Luca Barbato gentoo-dev 2004-09-22 19:03:04 UTC
the latest seems working as should here.
Comment 5 Pieter Van den Abeele (RETIRED) gentoo-dev 2004-10-04 14:35:32 UTC
Ok, I masking >= 2.6.8-r4 stable -r6 looks particularily interesting because it has ppc speakup support.