Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 246282 - genkernel-3.4.10-r1 won't compile xen-sources
Summary: genkernel-3.4.10-r1 won't compile xen-sources
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-10 12:57 UTC by Richard Scott
Modified: 2009-12-26 22:57 UTC (History)
2 users (show)

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


Attachments
output from console (console.txt,1.71 KB, text/plain)
2008-11-10 18:59 UTC, Richard Scott
Details
/var/log/genkerne.log (genkernel_log.txt,9.98 KB, text/plain)
2008-11-10 18:59 UTC, Richard Scott
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Scott 2008-11-10 12:57:24 UTC
When trying to compile the xen-sources with genkernel it dies shortly after menuconfig!

Reproducible: Always

Steps to Reproduce:
1. emerge xen-sources (and tools)
2. genkernel --menuconfig all
3. save you kernel config and exit menuconfig




It would be really great if genkernel could detect that we are compiling xen-sources and to it in such a way that it works :-)
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2008-11-10 16:42:50 UTC
Can you be more specific? Perhaps attach a dump of the compile output?
Comment 2 Richard Scott 2008-11-10 18:59:24 UTC
Created attachment 171332 [details]
output from console
Comment 3 Richard Scott 2008-11-10 18:59:41 UTC
Created attachment 171334 [details]
/var/log/genkerne.log
Comment 4 Richard Scott 2008-11-10 19:00:17 UTC
and here's what xen packages I have installed:

# equery list xen
[ Searching for package 'xen' in all categories among: ]
 * installed packages
[I--] [ ~] app-emulation/xen-3.3.0 (0)
[I--] [ ~] app-emulation/xen-tools-3.3.0 (0)
[I--] [ ~] sys-kernel/xen-sources-2.6.21 (2.6.21)

Let me know if I can be of any more help :-)
Comment 5 Gary Richards 2008-11-22 09:16:23 UTC
Hrm, I'm sure i've seen and solved this before, but i've just run into the exact same problem. I believe that with xen-sources you need to 'make vmlinuz' rather than 'make bzImage', which is what genkernel does by default.

I'm sure I used to just hack the following two lines into genkernel.conf:
KERNEL_MAKE_DIRECTIVE="vmlinuz"
KERNEL_BINARY="arch/i386/boot/vmlinuz"

But I just tried it and it either never worked like that and i'm forgetting (which is definitely possible!), or it's changed somehow in more recent genkernel's.

As I need to build the kernel right now, i've just hacked the above two lines into /usr/share/genkernel/x86/config.sh

But i'm sure there must be a proper way to do this?
Comment 6 Ralf Folkerts 2008-12-03 08:40:06 UTC
(In reply to comment #5)
[...]
> I'm sure I used to just hack the following two lines into genkernel.conf:
> KERNEL_MAKE_DIRECTIVE="vmlinuz"
> KERNEL_BINARY="arch/i386/boot/vmlinuz"
> [...]
> As I need to build the kernel right now, i've just hacked the above two lines
> into /usr/share/genkernel/x86/config.sh

Gary,
thanks -- your workaround worked fine for me, too! It would, however, indeed be nice to have a proper way for doing this.
Comment 7 Maurice Volaski 2009-02-02 17:55:53 UTC
Isn't this a duplicate of http://bugs.gentoo.org/show_bug.cgi?id=120236 ?
Comment 8 Richard Scott 2009-02-02 23:52:54 UTC
(In reply to comment #7)
> Isn't this a duplicate of http://bugs.gentoo.org/show_bug.cgi?id=120236 ?

Nope ;-) ...that is a bug report where as this is a feature request :-)

From what I can tell its not that hard to incorporate the required code into Genkernel to get this to work.

Xen is now really popular and I'm sure like most we'd prefer to run a Xen server as a Gentoo system rather than a RedHat one! ;-)

It's the last reason I have for ditching alternative distributions and becoming 100% Gentoo at work :-)

C'mon Gentoo!! :-)
Comment 9 Andrew Gaffney (RETIRED) gentoo-dev 2009-12-26 22:57:05 UTC
The latest xen-sources is pretty old. We ripped the code out of genkernel long ago, because it didn't work anymore, anyway.