First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 168599
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Genkernel Maintainers <genkernel@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Dominik Stadler (RETIRED) <centic@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
busybox-1.1.3+gentoo-no-asm-page-h.patch busybox-1.1.3+gentoo-no-asm-page-h.patch patch Peter Alfredsen 2007-02-27 18:07 0000 356 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 168599 depends on: Show dependency tree
Bug 168599 blocks: 159304
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-02-27 16:24 0000
I may have made some mistake here, but I cannot find out which, neither do the
forum or bugzilla contain anything in this regard. So I'm posting a bugreport,
maybe it's one after all:

I get an error when I try to build and install a kernel using genkernel.

I run genkernel as follows:
genkernel --no-menuconfig --install --bootloader=grub all

Genkernel prints out:
* Gentoo Linux Genkernel; Version 3.4.7_pre3
* Running with options: --no-menuconfig --install --bootloader=grub all

* Linux Kernel 2.6.20-gentoo for x86...
* kernel: >> Running mrproper...
* config: Using config from /etc/kernels/kernel-config-x86-2.6.20-gentoo
*         Previous config backed up to .config.bak
*         >> Running oldconfig...
* kernel: >> Cleaning...
*         >> Compiling 2.6.20-gentoo bzImage...
*         >> Compiling 2.6.20-gentoo modules...
* Copying config for successful build to
/etc/kernels/kernel-config-x86-2.6.20-gentoo
* busybox: >> Configuring...
* busybox: >> Compiling...
* ERROR: Failed to compile the "all" target...


The part of the logfile where it fails contains:
/var/tmp/genkernel/20490.9538.22679.29314/busybox-1.1.3+gentoo/util-linux/nfsmount.c:1003:
warning: dereferencing type-punned pointer will break strict-aliasing rules
--
  CC e2fsprogs/blkid/devno.o
  CC e2fsprogs/blkid/probe.o
  CC e2fsprogs/blkid/read.o
  CC e2fsprogs/blkid/resolve.o
/var/tmp/genkernel/20490.9538.22679.29314/busybox-1.1.3+gentoo/e2fsprogs/blkid/read.c:
In function 'blkid_read_cache':
/var/tmp/genkernel/20490.9538.22679.29314/busybox-1.1.3+gentoo/e2fsprogs/blkid/read.c:298:
warning: 'name' may be used uninitialized in this function
--
  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/20490.9538.22679.29314/busybox-1.1.3+gentoo/libbb/procps.c:15:22:
error: asm/page.h: No such file or directory
make[1]: ***
[/var/tmp/genkernel/20490.9538.22679.29314/busybox-1.1.3+gentoo/libbb/procps.o]
Error 1
make: *** [all] Error 2
* Gentoo Linux Genkernel; Version 3.4.7_pre3
* Running with options: --no-menuconfig --install --bootloader=grub all

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

* -- End log... --

------- Comment #1 From Dominik Stadler (RETIRED) 2007-02-27 16:24:39 0000 -------
emerge --info:

Portage 2.1.2-r11 (default-linux/x86/no-nptl, gcc-4.1.2, glibc-2.5-r0,
2.6.18-gentoo-r6 i686)
=================================================================
System uname: 2.6.18-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 27 Feb 2007 12:50:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
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
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.20-r1
ACCEPT_KEYWORDS="x86 ~x86"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1
emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m
maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
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"
ARCH="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CC_HOME="/opt/rational/clearcase"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CLASSPATH="."
CLEAN_DELAY="5"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CVS_RSH="ssh"
CXXFLAGS="-O2 -march=i686 -pipe"
DISPLAY="192.168.225.72:0.0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/usr/bin/vim"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--verbose"
EMERGE_WARNING_DELAY="10"
FEATURES="autoconfig confcache distlocks metadata-transfer parallel-fetch
sandbox sfperms strict"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -P ${DISTDIR} ${URI}"
GCC_SPECS=""
GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://gentoo.inode.at/source/ "
G_BROKEN_FILENAMES="1"
G_FILENAME_ENCODING="UTF-8"
HOME="/root"
INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.17/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/info"
INPUT_DEVICES="keyboard mouse evdev"
JAVAC="/etc/java-config-2/current-system-vm/bin/javac"
JAVA_HOME="/etc/java-config-2/current-system-vm"
JDK_HOME="/etc/java-config-2/current-system-vm"
KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses
text"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LINGUAS="en de"
LOGNAME="root"
LS_COLORS=""
MAIL="/var/mail/root"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.17/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/man:/etc/java-config/system-vm/man/"
OPENGL_PROFILE="xorg-x11"
ORACLE_HOME="/opt/Oracle_10.2.0"
PAGER="/usr/bin/less"
PATH="/opt/rational/clearcase/bin:/opt/Oracle_10.2.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc s390 amd64 x86 ppc64 x86-fbsd m68k arm sparc sh mips ia64
alpha ppc-macos hppa sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib/portage/bin"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="warn error log"
PORTAGE_ELOG_MAILFROM="portage"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_PYM_PATH="/usr/lib/portage/pym"
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-*"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/java-experimental
/usr/portage/local/layman/java-migration-packages /usr/local/portage"
PWD="/root"
PYTHONPATH="/usr/lib/portage/pym"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -P ${DISTDIR} ${URI}"
ROOT="/"
ROOTPATH="/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1"
RPMDIR="/usr/portage/rpm"
SHELL="/bin/bash"
SHLVL="1"
SSH_CLIENT="192.168.179.1 3080 22"
SSH_CONNECTION="192.168.179.1 3080 192.168.179.129 22"
SSH_TTY="/dev/pts/0"
STAGE1_USE="-nptl -nptlonly"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
TERM="xterm"
USE="7zip X alsa apache apache2 apm arts asf bash-completion berkdb
bitmap-fonts bzip2 clearcase cli cracklib crypt db2 dri eds emboss encode exif
foomaticdb gdbm gif gnome gstreamer gtk gtk2 iconv imlib isdnlog java jpeg kde
libg++ libwww mad midi mikmod motif mp3 mpeg mpeg2 mplayer ncurses nls ogg
opengl oss pam pcre perl png pppd python qt3 qt4 quicktime readline real
realmedia reflection sdl session snmp spell spl sqlite sqlite3 ssl tcpd
truetype truetype-fonts type1-fonts vorbis winbind x86 xine xml xorg xv zlib"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1
emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m
maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
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" INPUT_DEVICES="keyboard mouse evdev"
KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001
mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="apm ark ati
chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mga neomagic nsc nv
rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l
vesa vga via vmware voodoo"
USER="root"
USERLAND="GNU"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS
ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL
LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal"
VIDEO_CARDS="apm ark ati chips cirrus cyrix dummy fbdev glint i128 i740 i810
imstt mga neomagic nsc nv rendition s3 s3virge savage siliconmotion sis sisusb
tdfx tga trident tseng v4l vesa vga via vmware voodoo"
XARGS="xargs -r"
_="/usr/bin/emerge"

------- Comment #2 From Peter Alfredsen 2007-02-27 18:07:59 0000 -------
Created an attachment (id=111449) [details]
busybox-1.1.3+gentoo-no-asm-page-h.patch

This is because the new linux-headers-2.6.20-r1 doesn't have asm/page.h. The
files inside busybox-1.1.3+gentoo.tar.bz2 need to be patched with the attached
patch somehow.

------- Comment #3 From Peter Alfredsen 2007-02-27 18:09:56 0000 -------
Please make this a blocker of the linux-headers tracker bug, #159304.

------- Comment #4 From Peter Alfredsen 2007-02-27 18:33:50 0000 -------
This doesn't actually work, though... hmmm...

------- Comment #5 From Peter Alfredsen 2007-02-27 20:20:24 0000 -------
(In reply to comment #4)
> This doesn't actually work, though... hmmm...
> 
Oh, yes it does. I just couldn't 'make allyesconfig', but that wasn't what
genkernel was doing. Just finished compiling gentoo-sources-2.6.19-r4 with the
busybox-1.1.3+gentoo.tar.bz2 linked at the end. if you want to try with it,
just copy it to /usr/share/genkernel/pkg/busybox-1.1.3+gentoo.tar.bz2 and
retry.

http://www.wikiupload.com/download_page.php?id=91176

------- Comment #6 From DEMAINE Benoît-Pierre, aka DoubleHP 2007-02-28 04:20:41 0000 -------
I compiled a linux-2.6.20-gentoo on 2007-02-08 very fine with
sys-kernel/genkernel-3.4.7 and I got failure since upgrade to 3.4.7_pre3, using
same source tree (I just turned on "mrproper" on to make sure), and same conf.

On same sources with same conf, reverting to 3.4.7 did not help. Break may be
due to an other upgrade that happened by the mean time ...

------- Comment #7 From DEMAINE Benoît-Pierre, aka DoubleHP 2007-02-28 05:19:15 0000 -------
I did not understand what to do with patch in c2 (where to put it in portage
?), but putting http://www.wikiupload.com/download_page.php?id=91176 to
/usr/share/genkernel/pkg/busybox-1.1.3+gentoo.tar.bz2 (after archiving old one)
did help building a new kernel.

------- Comment #8 From Dominik Stadler (RETIRED) 2007-02-28 06:39:31 0000 -------
A workaround for now is to run the following before running genkernel:

ln -s /usr/src/linux/include/asm/page.h /usr/include/asm/

------- Comment #9 From Peter Alfredsen 2007-02-28 11:51:09 0000 -------
(In reply to comment #7)
> I did not understand what to do with patch in c2 (where to put it in portage
> ?), but putting http://www.wikiupload.com/download_page.php?id=91176 to
> /usr/share/genkernel/pkg/busybox-1.1.3+gentoo.tar.bz2 (after archiving old one)
> did help building a new kernel.
> 

Thank you for testing it. The tarball was just the original
busybox-1.1.3+gentoo.tar.bz2 with the patch applied. 

------- Comment #10 From Jakub Moc (RETIRED) 2007-03-03 14:18:55 0000 -------
*** Bug 169126 has been marked as a duplicate of this bug. ***

------- Comment #11 From Chris Gianelloni (RETIRED) 2007-03-07 22:38:39 0000 -------
OK.  I've fixed this in SVN.

Thanks for the patch!

------- Comment #12 From DEMAINE Benoît-Pierre, aka DoubleHP 2007-03-20 21:57:13 0000 -------
Works for me; please close.

------- Comment #13 From Dominik Stadler (RETIRED) 2007-03-21 12:43:40 0000 -------
It also works for me now, I am closing this as fixed now.

------- Comment #14 From Chris Gianelloni (RETIRED) 2007-03-21 20:54:00 0000 -------
In the future, leave the resolution to the maintainer.  I was planning on
holding off until it was 3.4.7 final, rather than still the _pre releases.

------- Comment #15 From Jakub Moc (RETIRED) 2007-04-16 08:58:31 0000 -------
*** Bug 174768 has been marked as a duplicate of this bug. ***

------- Comment #16 From Jakub Moc (RETIRED) 2007-07-14 11:17:42 0000 -------
*** Bug 185288 has been marked as a duplicate of this bug. ***

------- Comment #17 From Jakub Moc (RETIRED) 2007-07-19 21:39:17 0000 -------
*** Bug 185917 has been marked as a duplicate of this bug. ***

------- Comment #18 From Ian Stakenvicius 2007-07-25 20:33:43 0000 -------
For people that can't wait, since this bug is still happening now with
portage-stable, try doing the following..  this will check of busybox installs
clean on your system, if so then it copies the distfile to genkernel's package
directory and updates genkernel.conf:

emerge -1 =sys-apps/busybox-1.5.1 &&
cp /usr/portage/distfiles/busybox-1.5.1* /usr/share/genkernel/pkg/ &&
sed -i -e 's/BUSYBOX_VER=".*"/BOSYBOX_VER="1.5.1"/' /etc/genkernel.conf

------- Comment #19 From Andrew Gaffney 2007-07-25 22:09:34 0000 -------
This isn't really an issue, since genkernel-3.4.8 was stabilized the other day.

First Last Prev Next    No search results available      Search page      Enter new bug