Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

genkernel won't build initrd

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
12 posts • Page 1 of 1
Author
Message
Rion
Guru
Guru
User avatar
Posts: 383
Joined: Thu Oct 12, 2006 4:09 am
Location: Minsk, Belarus
Contact:
Contact Rion
Website

genkernel won't build initrd

  • Quote

Post by Rion » Sun Mar 04, 2007 8:24 am

i tried various versions of kernel but with genkernel i constantly get next error
* busybox: >> Configuring...
* busybox: >> Compiling...
* ERROR: Failed to compile the "all" target...

* -- Grepping log... --

CC coreutils/head.o
CC coreutils/id.o
CC coreutils/ln.o
CC coreutils/ls.o
/var/tmp/genkernel/6528.19024.3323.4812/busybox-1.1.3+gentoo/coreutils/ls.c: In function 'ls_main':
/var/tmp/genkernel/6528.19024.3323.4812/busybox-1.1.3+gentoo/coreutils/ls.c:1178: warning: implicit declaration of function 'dfree'
--
CC util-linux/dmesg.o
CC util-linux/freeramdisk.o
CC util-linux/losetup.o
CC util-linux/mdStart.o
/var/tmp/genkernel/6528.19024.3323.4812/busybox-1.1.3+gentoo/util-linux/mdStart.c: In function 'mdstart_main':
/var/tmp/genkernel/6528.19024.3323.4812/busybox-1.1.3+gentoo/util-linux/mdStart.c:36: warning: implicit declaration of function 'bb_show_usage'
/var/tmp/genkernel/6528.19024.3323.4812/busybox-1.1.3+gentoo/util-linux/mdStart.c:41: warning: implicit declaration of function 'sscanf'
/var/tmp/genkernel/6528.19024.3323.4812/busybox-1.1.3+gentoo/util-linux/mdStart.c:41: warning: incompatible implicit declaration of built-in function 'ssc
anf'
/var/tmp/genkernel/6528.19024.3323.4812/busybox-1.1.3+gentoo/util-linux/mdStart.c:48: warning: implicit declaration of function 'close'
/var/tmp/genkernel/6528.19024.3323.4812/busybox-1.1.3+gentoo/util-linux/mdStart.c:51: warning: implicit declaration of function 'printf'
/var/tmp/genkernel/6528.19024.3323.4812/busybox-1.1.3+gentoo/util-linux/mdStart.c:51: warning: incompatible implicit declaration of built-in function 'pri
ntf'
CC util-linux/mdev.o
CC util-linux/more.o
CC util-linux/mount.o
CC util-linux/nfsmount.o
/var/tmp/genkernel/6528.19024.3323.4812/busybox-1.1.3+gentoo/util-linux/nfsmount.c: In function 'xdr_mountres3_ok':
/var/tmp/genkernel/6528.19024.3323.4812/busybox-1.1.3+gentoo/util-linux/nfsmount.c:1003: warning: dereferencing type-punned pointer will break strict-alia
sing rules
--
CC libbb/perror_nomsg_and_die.o
CC libbb/print_file.o
CC libbb/printf.o
CC libbb/process_escape_sequence.o
CC libbb/procps.o
/var/tmp/genkernel/6528.19024.3323.4812/busybox-1.1.3+gentoo/libbb/procps.c:15:22: error: asm/page.h: No such file or directory
make[1]: *** [/var/tmp/genkernel/6528.19024.3323.4812/busybox-1.1.3+gentoo/libbb/procps.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [all] ïÛÉÂËÁ 2
* Gentoo Linux Genkernel; Version 3.4.7_pre3
* Running with options: --gensplash=livecd-2006.1 initrd

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

* -- End log... --
genkernel-3.4.7_pre3
emerge --info
Portage 2.1.2-r12 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.5.90.20070214-r0, 2.6.20-viper3 x86_64)
=================================================================
System uname: 2.6.20-viper3 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 02 Mar 2007 01:47:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python: 2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: 2.4-r6
sys-apps/sandbox: 1.2.18.1
sys-devel/autoconf: 2.13, 2.61
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.17.50.0.12
sys-devel/gcc-config: 1.3.14
sys-devel/libtool: 1.5.23b
virtual/os-headers: 2.6.20-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O3 -pipe -msse3 -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -O3 -pipe -msse3 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer parallel-fetch prelink sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/dis ... ons/gentoo"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,--hash-style=both -Wl,--as-needed"
LINGUAS="en ru"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=120"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-* --prune-empty-dirs"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/php-testing /usr/local/portage/layman/java-migration-packages /usr/local/portage/layman/gnome-experimental /usr/local/portage/layman/custom-kernels /usr/local/portage/layman/xeffects /usr/local/portage/layman/xeffects-experimental /usr/local/portage/layman/toolchain-new /usr/local/portage/layman/toolchain /usr/local/portage/layman/berkano /usr/local/portage/generic"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnowex a52 aac acpi aiglx aim alsa amd64 amr apache2 ares ati audacious audiofile automount bash-completion berkdb bitmap-fonts bluetooth bonobo branding bzip2 cairo cdparanoia cdr cli cracklib crypt cups curl curlwrappers dba dbus device-mapper dga dri dv dvd dvdr dvdread encode exif ffmpeg firefox flac flash fortran ftp fuse galago gcc gd gdbm gif gimp glitz gnome gnutls gpm gstreamer gtk gtk2 gtkhtml hal hashstyle howl iconv icq imagemagick imap imlib innodb isdnlog jabber java javascript jpeg jpeg2k lcms libg++ libwww lirc mad maildir mailwrapper midi mime ming mmx2 mng mono mozdevelop mozilla mpeg msn mysql mysqli ncurses newspr nls nntp nptl nptlonly nsplugin ntfs ogg oggvorbis openal opengl oscar pam pcre pdf perl php png posix pppd python qt qt3 quicktime rcc readline reflection samba session snmp spell spl sql sqlite sqlite3 sse3 ssl svg symlink tcltk tcp tcpd theora threads tidy tiff truetype truetype-fonts type1-fonts unicode usb userlocales v4l v4l2 vhosts vorbis wmf xcb xine xinerama xml xmlrpc xorg xprint xsl xvid yahoo zlib zvbi" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INITNG_PLUGINS="also bash_launcher chdir chroot conflict cpout critical ctrlaltdel daemon_clean debug_commands envparser find fmon fstat history idleprobe initctl interactive iparser last limit lockfile logfile netdev netprobe ngc4 ngcs nge pause provide reload renice rlparser simple_launcher stcmd stdout suid syncron syslog sysreq unneeded usplash" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru" LIRC_DEVICES="devinput" USERLAND="GNU" VIDEO_CARDS="vesa radeon"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK
week or more ago everything was fine. i've updated gcc and maybe something else
rion-overlay
Top
lmmsci
Apprentice
Apprentice
Posts: 190
Joined: Sat May 20, 2006 3:01 pm

  • Quote

Post by lmmsci » Sun Mar 04, 2007 8:46 am

I had the same problem.
Check which version of linux-headers you have. I suppose that it is version 2.6.20-r1. If try to look for /usr/include/asm/page.h file you'll find nothing and this file is necessary for kernel compilation as you can see in your logs:
/var/tmp/genkernel/6528.19024.3323.4812/busybox-1.1.3+gentoo/libbb/procps.c:15:22: error: asm/page.h: No such file or directory
Just downgrade linux-headers to version 2.6.20:

Code: Select all

emerge -va =sys-kernel/linux-headers-2.6.20
or more drastically (e.g.):

Code: Select all

emerge -va /usr/portage/sys-kernel/linux-headers/linux-headers-2.6.20.ebuild
- if path to your portage tree is /usr/portage of course.
I think that after that procedure, removing of kernel sources (e.g. gentoo-sources) and installing them again is good idea (and surely save for your purpose).
It should work.
Best regards.
Top
--raptor--
n00b
n00b
User avatar
Posts: 9
Joined: Sun Feb 25, 2007 11:42 am
Location: RT - Germany

  • Quote

Post by --raptor-- » Sun Mar 04, 2007 10:53 am

try

Code: Select all

ln -s /usr/src/linux/include/asm/page.h /usr/include/asm/
Top
kernelOfTruth
Watchman
Watchman
User avatar
Posts: 6111
Joined: Tue Dec 20, 2005 10:34 pm
Location: Vienna, Austria; Germany; hello world :)
Contact:
Contact kernelOfTruth
Website

  • Quote

Post by kernelOfTruth » Sun Mar 04, 2007 10:55 am

lmmsci wrote:I had the same problem.
Check which version of linux-headers you have. I suppose that it is version 2.6.20-r1. If try to look for /usr/include/asm/page.h file you'll find nothing and this file is necessary for kernel compilation as you can see in your logs:
/var/tmp/genkernel/6528.19024.3323.4812/busybox-1.1.3+gentoo/libbb/procps.c:15:22: error: asm/page.h: No such file or directory
Just downgrade linux-headers to version 2.6.20:

Code: Select all

emerge -va =sys-kernel/linux-headers-2.6.20
or more drastically (e.g.):

Code: Select all

emerge -va /usr/portage/sys-kernel/linux-headers/linux-headers-2.6.20.ebuild
- if path to your portage tree is /usr/portage of course.
I think that after that procedure, removing of kernel sources (e.g. gentoo-sources) and installing them again is good idea (and surely save for your purpose).
It should work.
Best regards.
thanks, that worked for me, too :)
https://github.com/kernelOfTruth/ZFS-fo ... scCD-4.9.0
https://github.com/kernelOfTruth/pulsea ... zer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Top
Rion
Guru
Guru
User avatar
Posts: 383
Joined: Thu Oct 12, 2006 4:09 am
Location: Minsk, Belarus
Contact:
Contact Rion
Website

  • Quote

Post by Rion » Sun Mar 04, 2007 5:24 pm

thanks, works for me too
rion-overlay
Top
lmmsci
Apprentice
Apprentice
Posts: 190
Joined: Sat May 20, 2006 3:01 pm

  • Quote

Post by lmmsci » Sun Mar 04, 2007 6:35 pm

So, if it works, I think adding [SOLVED] to subject of this thread is very good idea. :wink:
Top
mightymephisto
n00b
n00b
Posts: 9
Joined: Mon Dec 19, 2005 5:22 pm
Contact:
Contact mightymephisto
Website

  • Quote

Post by mightymephisto » Wed Mar 07, 2007 11:12 pm

I actually found that by using a more recent version of busybox solved my problem.

Code: Select all

FEATURES="keepwork" emerge busybox
which kept the source code in /var/tmp/portage/sys-apps/busybox-1.4.1-r2/work/busybox-1.4.1. I used that to create the .tar.bz2 file package which genkernel uses.

Code: Select all

cd /tmp
cp -R /var/tmp/portage/sys-apps/busybox-1.4.1-r2/work/busybox-1.4.1 busybox-1.4.1-r2
tar -jcf busybox-1.4.1-r2.tar.bz2 busybox-1.4.1-r2
mv busybox-1.4.1-r2.tar.bz2 /usr/share/genkernel/pkg/
Then I edited /etc/genkernel.conf to use the newer version of busybox, by changing BUSYBOX_VER to 1.4.1-r2

Code: Select all

BUSYBOX_VER="1.4.1-r2"
Then genkernel worked as normal :D
Top
System_Failure
n00b
n00b
User avatar
Posts: 63
Joined: Mon Dec 09, 2002 1:09 am
Location: /home/System_Failure/

  • Quote

Post by System_Failure » Thu Mar 08, 2007 11:10 am

mightymephisto wrote:I actually found that by using a more recent version of busybox solved my problem.

Code: Select all

FEATURES="keepwork" emerge busybox
which kept the source code in /var/tmp/portage/sys-apps/busybox-1.4.1-r2/work/busybox-1.4.1. I used that to create the .tar.bz2 file package which genkernel uses.

Code: Select all

cd /tmp
cp -R /var/tmp/portage/sys-apps/busybox-1.4.1-r2/work/busybox-1.4.1 busybox-1.4.1-r2
tar -jcf busybox-1.4.1-r2.tar.bz2 busybox-1.4.1-r2
mv busybox-1.4.1-r2.tar.bz2 /usr/share/genkernel/pkg/
Then I edited /etc/genkernel.conf to use the newer version of busybox, by changing BUSYBOX_VER to 1.4.1-r2

Code: Select all

BUSYBOX_VER="1.4.1-r2"
Then genkernel worked as normal :D
while a little bit longer of a solution, I like it better because it keeps things up-to-date. Seems to have solved the problem prefectly^^ thank you
"I like beaches."
Top
ToeiRei
Veteran
Veteran
User avatar
Posts: 1191
Joined: Mon Jan 03, 2005 10:50 am
Location: Austria
Contact:
Contact ToeiRei
Website

  • Quote

Post by ToeiRei » Fri Mar 09, 2007 11:16 am

Great thing. You should file a bug that the package for genkernel gets updated...
Nevertheless it is strange that genkernel needs its own packages - why can't it just build busybox?

Rei
Please stand by - The mailer daemon is busy burning your messages in hell...
Top
richard77
Apprentice
Apprentice
User avatar
Posts: 281
Joined: Wed Apr 21, 2004 8:06 pm

  • Quote

Post by richard77 » Mon Jul 16, 2007 2:35 pm

lmmsci suggestion worked also for me.

Should this be reported as a genkernel bug?
Fletto i muscoli e sono nel vuoto
Top
Soultaker
n00b
n00b
Posts: 4
Joined: Mon Jul 16, 2007 4:03 pm

  • Quote

Post by Soultaker » Tue Jul 17, 2007 12:48 pm

I encountered the same problem, and fixed it by unmasking the latest version of genkernel, 3.4.8, by adding "genkernel ~x86" to /etc/portage/package.use.

So if it was a bug in genkernel, it has been fixed by now, and it's just annoying that the latest stable version of kernel-headers does not work with the latest stable version of genkernel.
Last edited by Soultaker on Thu Jul 19, 2007 3:34 pm, edited 1 time in total.
Top
SkyLine
n00b
n00b
Posts: 36
Joined: Wed Oct 11, 2006 7:24 am

  • Quote

Post by SkyLine » Wed Jul 18, 2007 3:04 pm

lmmsci wrote:I had the same problem.
Check which version of linux-headers you have. I suppose that it is version 2.6.20-r1. If try to look for /usr/include/asm/page.h file you'll find nothing and this file is necessary for kernel compilation as you can see in your logs:
/var/tmp/genkernel/6528.19024.3323.4812/busybox-1.1.3+gentoo/libbb/procps.c:15:22: error: asm/page.h: No such file or directory
Just downgrade linux-headers to version 2.6.20:

Code: Select all

emerge -va =sys-kernel/linux-headers-2.6.20
or more drastically (e.g.):

Code: Select all

emerge -va /usr/portage/sys-kernel/linux-headers/linux-headers-2.6.20.ebuild
- if path to your portage tree is /usr/portage of course.
I think that after that procedure, removing of kernel sources (e.g. gentoo-sources) and installing them again is good idea (and surely save for your purpose).
It should work.
Best regards.
Same Problem.

Is have been solved by genkernel-3.4.8.

Code: Select all

ACCEPT_KEYWORDS="~x86" emerge -v genkernel
Thanks another information.
Top
Post Reply

12 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic