Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102999 - genkernel breaks at compiling bzImage with --dmraid
Summary: genkernel breaks at compiling bzImage with --dmraid
Status: RESOLVED DUPLICATE of bug 101535
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-18 12:57 UTC by Gerald Schneider
Modified: 2005-08-19 00:34 UTC (History)
0 users

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 Gerald Schneider 2005-08-18 12:57:32 UTC
For some reason genkernel always sets CONFIG_BLK_DEV_DM=m when I run it with
--dmraid, even if I set it to "y" and call it with --oldconfig, setting
CONFIG_DM_MIRROR set to "m" too and causing the kernel to recognize the raid
itself, but without loading the partitions because he can't load the "mirror"
module at this early stage.
running genkernel with --menuconfig and setting the option explicitely to "y"
causes the compile process to break with unresolved symbols in that part.
I openend a new bug because it doesn't seem to be related to bug #102407

Reproducible: Always
Steps to Reproduce:
1. pick a kernel
2. run genkernel --kerneldir=/usr/src/linux-2.6.12-gentoo-r9 --dmraid
--no-install --menuconfig all
3. in menuconfig select device drivers --> multi device support -> device mapper
support as included, NOT as module
4. compile

Actual Results:  
* ERROR: Failed to compile the "bzImage" target...

* -- Grepping log... --

  SCSI generic support (CHR_DEV_SG) [Y/n/m/?] y
  *
  * Some SCSI devices (e.g. CD jukebox) support multiple LUNs
  *
  Probe all LUNs on each SCSI device (SCSI_MULTI_LUN) [Y/n/?] y
  Verbose SCSI error reporting (kernel size +=12K) (SCSI_CONSTANTS) [N/y/?] n
--
dm-raid1.c:(.exit.text+0xbfc): undefined reference to `dm_unregister_target'
make: *** [.tmp_vmlinux1] Fehler 1
* Gentoo Linux Genkernel; Version 3.3.5
* Running with options: --kerneldir=/usr/src/linux-2.6.12-gentoo-r9 --dmraid
--gensplash=gentoo --no-install --menuconfig all

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

---

less .config shows that CONFIG_BLK_DEV_DM and CONFIG_DM_MIRROR are set to "m"
isntead to "y"

Expected Results:  
the DM features should compile included, not as a module

tested with these kernels:
 - linux-2.6.12-gentoo-r6
 - linux-2.6.12-gentoo-r8
 - linux-2.6.12-gentoo-r9
 - linux-2.6.13-rc5-mm1
 - linux-2.6.13-rc6

---

emerge info
Portage 2.0.51.22-r2 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r1,
2.6.12-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre5
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://194.117.143.72/mirrors/gentoo
ftp://mirror.nutsmaas.nl/gentoo/ ftp://130.59.10.35/mirror/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 7zip X aac aalib acpi aim alsa apache2 apm avi bash-completion berkdb
bitmap-fonts bluetooth bootsplash cdda cddb cdr cpudetection crypt css cups curl
dedicated directfb dpms dri dvb dvd dvdr eds encode escreen esd fam fame fbcon
fbsplash font-server foomaticdb fortran freetype ftp geoip gif gimp gimpprint
glx gnome gnome-print gphoto2 gpm gstreamer gtk gtk2 hpn icu imagemagick imlib
ipv6 joystick jp2 jpeg jpeg2k lame ldap libcaca lm_sensors logitech-mouse
logrotate lzw lzw-tiff mad mng mozilla moznocompose moznoirc mozsvg mp3 mp4live
mpeg mpeg2 mpeg4 mplayer mysql nas ncurses network nfs nls nsplugin ntfs nvidia
ogg on-the-fly-crypt openal opengl osc oss pam pda pdflib perl php png python qt
quicktime rdesktop readline real rtc samba scanner screen sdl spell sqlite
sse-filters ssl stream svg tcltk tcpd tga tiff transcode truetype truetype-fonts
type1-fonts usb userlocales v4l v4l2 vcd vorbis xine xinetd xml2 xmms xosd xpm
xrandr xv xvid xvmc zlib linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Gerald Schneider 2005-08-19 00:34:45 UTC

*** This bug has been marked as a duplicate of 101535 ***