Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143649 - genkernel fails to compile "vmlinux" target on B&W G3
Summary: genkernel fails to compile "vmlinux" target on B&W G3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: InstallCD (show other bugs)
Hardware: PPC Linux
: High normal
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-12 04:07 UTC by nixnut (RETIRED)
Modified: 2006-08-30 14:33 UTC (History)
3 users (show)

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


Attachments
genkernel.log from failed genkernel --genzimage all (genkernel.log,209.53 KB, text/plain)
2006-08-12 04:08 UTC, nixnut (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nixnut (RETIRED) gentoo-dev 2006-08-12 04:07:08 UTC
genkernel-3.4.0-r1 fails to build a kernel.

  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  CC      arch/ppc/kernel/asm-offsets.s
In file included from arch/ppc/kernel/asm-offsets.c:19:
include/linux/suspend.h:5:25: error: asm/suspend.h: No such file or directory
make[1]: *** [arch/ppc/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
* Gentoo Linux Genkernel; Version 3.4.0
* Running with options: --genzimage all


* ERROR: Failed to compile the "vmlinux" target...

* -- End log... --
Comment 1 nixnut (RETIRED) gentoo-dev 2006-08-12 04:08:18 UTC
Created attachment 94039 [details]
genkernel.log from failed genkernel --genzimage all
Comment 2 Lars Weiler (RETIRED) gentoo-dev 2006-08-12 04:49:10 UTC
Try to run genkernel again.  I had that bug once and with a second call of genkernel it could be compiled...

Just want to know, if that works for you as well.
Comment 3 nixnut (RETIRED) gentoo-dev 2006-08-12 07:10:47 UTC
Another error this time:

  HOSTCC  arch/powerpc/boot/hack-coff
  CC      arch/powerpc/boot/dummy.o
make[1]: *** No rule to make target `/ramdisk.image.gz', needed by `arch/powerpc/boot/miboot.initrd.image'.  Stop.
make[1]: *** Waiting for unfinished jobs....
  OBJCOPY arch/powerpc/boot/vmlinux.bin
make: *** [zImage.initrd] Error 2
* Gentoo Linux Genkernel; Version 3.4.0
* Running with options: --genzimage all

* ERROR: Failed to compile the "zImage.initrd" target...


Anyway, it does seem users that are going to try genkernel with 2006.1 to build a kernel may be in for some nasty suprises (and may waste quite a bit of time if they have an older machine like my B&W).
Comment 4 Lars Weiler (RETIRED) gentoo-dev 2006-08-12 08:52:18 UTC
(In reply to comment #3)
> * ERROR: Failed to compile the "zImage.initrd" target...

Then, somehow, the initramfs is not created.  I had troubles with it on the Pegasos.  But I fixed genkernel.  On an Apple it always worked.

> Anyway, it does seem users that are going to try genkernel with 2006.1 to build
> a kernel may be in for some nasty suprises (and may waste quite a bit of time
> if they have an older machine like my B&W).

Sounds like we have to give a lot of support then.
Comment 5 Peter Svec 2006-08-12 08:54:58 UTC
I've also builded a kernel with genkernel, but without --genzimage, just #genkernel all
and it worked without problems on PowerBook G4
Comment 6 nixnut (RETIRED) gentoo-dev 2006-08-12 09:29:05 UTC
> Sounds like we have to give a lot of support then.

Guess so, but I was just wondering if perhaps the Handbook should be changed a bit. If 'genkernel all' works as Peter Svec indicates, but 'genkernel --genzimage all' fails perhaps it makes sense to change that instruction in the Handbook.
Just so that the instructions that are in the Handbook don't cause a known breakage.
Comment 7 Chris Gianelloni (RETIRED) gentoo-dev 2006-08-23 09:55:33 UTC
I thought --genzimage was *only* for pegasos?
Comment 8 Chris Gianelloni (RETIRED) gentoo-dev 2006-08-23 10:09:48 UTC
This really isn't an issue with the release media itself, but I'm keeping it assigned to us until someone else grabs it.
Comment 9 Łukasz Damentko (RETIRED) gentoo-dev 2006-08-29 20:17:18 UTC
JoseJX, it's only in the PPC chapters (ppc-kernel). Could you take a look on it?
Comment 10 Joe Jezak (RETIRED) gentoo-dev 2006-08-30 14:33:29 UTC
I took it out of the generic directions, so we should be okay now.  Feel free to reopen if this is in error.