Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 255085 - genkernel fails on sparc when copying the kernel since >=2.6.29_rc1
Summary: genkernel fails on sparc when copying the kernel since >=2.6.29_rc1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: Sparc64 Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 264722 271774
  Show dependency tree
 
Reported: 2009-01-15 19:18 UTC by Raúl Porcel (RETIRED)
Modified: 2009-05-31 20:36 UTC (History)
1 user (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 Raúl Porcel (RETIRED) gentoo-dev 2009-01-15 19:18:08 UTC
Since the arch/sparc64 dir has been merged to arch/sparc, genkernel looks for the arch/sparc64/boot/image file, which doesn't find.

COMMAND: make -j2 CC="sparc64-linux-gcc" ARCH="sparc64" image 
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-sparc
  CALL    scripts/checksyscalls.sh
  CHK     include/linux/compile.h
  STRIP   arch/sparc/boot/image
  kernel: arch/sparc/boot/image is ready
* Copying new kernel image, symlinks not being handled by genkernel.
*   Same base version.  May have to delete old image to make room.
*   Copying kernel: arch/sparc64/boot/image
*     to /boot/kernel-genkernel-sparc64-2.6.29-rc1
cp: cannot stat `arch/sparc64/boot/image': No such file or directory
* ERROR: Could not copy the kernel image to /boot!
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2009-01-15 19:21:32 UTC
What I may have to do is add support for specifying multiple possible binary locations and loop through them until we find a good one.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-01-16 08:30:27 UTC
agaffney: +1 on that solution, it's going to be needed for mips too I think (along with a config option for the actual kernel filename to pick when multiple output forms are used).
Comment 3 Andrew Gaffney (RETIRED) gentoo-dev 2009-02-20 03:42:34 UTC
I just committed a fix for this to git. For sparc64, genkernel should now look for arch/sparc64/boot/image and then arch/sparc/boot/image. This is completely untested, so please be kind and do so for me ;)
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2009-05-16 15:13:52 UTC
Just a FYI: planning to request stabling of 2.6.29 in 1 week. Might be a good idea to do a hotfix release for the stable tree, but also I'm not sure when sparc will mark 2.6.29 stable.
Comment 5 Dustin Polke 2009-05-31 15:56:59 UTC
(In reply to comment #4)
> Just a FYI: planning to request stabling of 2.6.29 in 1 week. Might be a good
> idea to do a hotfix release for the stable tree, but also I'm not sure when
> sparc will mark 2.6.29 stable.

2.6.29 is stable now on sparc and genkernel is now broken for stable users.
Workaround for me was to stop compilation with CTRL-z, create a symlink in arch from sparc to sparc64 and resume compilation.

Would be nice if a fix would go into stable genkernel.

BR,
Dustin

Comment 6 Raúl Porcel (RETIRED) gentoo-dev 2009-05-31 17:02:10 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > Just a FYI: planning to request stabling of 2.6.29 in 1 week. Might be a good
> > idea to do a hotfix release for the stable tree, but also I'm not sure when
> > sparc will mark 2.6.29 stable.
> 
> 2.6.29 is stable now on sparc and genkernel is now broken for stable users.
> Workaround for me was to stop compilation with CTRL-z, create a symlink in arch
> from sparc to sparc64 and resume compilation.
> 
> Would be nice if a fix would go into stable genkernel.
> 
> BR,
> Dustin
> 

Indeed, sorry i forgot about that. I've reverted the stabilization meanwhile.
Comment 7 Andrew Gaffney (RETIRED) gentoo-dev 2009-05-31 20:36:11 UTC
I have stabilized genkernel-3.4.10.904 for all arches.