Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 331089 - sys-kernel/genkernel-3.4.10.906 menuconfig adds DM_MIRROR=m to .config even when I set it to n
Summary: sys-kernel/genkernel-3.4.10.906 menuconfig adds DM_MIRROR=m to .config even w...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-03 17:17 UTC by Christian Asseburg
Modified: 2010-08-07 09:15 UTC (History)
0 users

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


Attachments
Kernel .config that I want to use. (DM_MIRROR=n is edited manually.) (.config,53.85 KB, text/plain)
2010-08-03 17:20 UTC, Christian Asseburg
Details
genkernel.conf (genkernel.conf,5.47 KB, text/plain)
2010-08-03 17:22 UTC, Christian Asseburg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Asseburg 2010-08-03 17:17:40 UTC
I use the genkernel to compile my kernel. With the sys-kernel/gentoo-sources-2.6.34-r1 I want to compile my kernel so that the option Device manager>RAID and LVM>Mirror support is off (DM_MIRROR=n). No matter what I choose in menuconfig, when it saves the configuration it always puts DM_MIRROR=m.

Reproducible: Always

Steps to Reproduce:
1. Invoke menuconfig with genkernel all
2. Use my .config (attached) where DM_MIRROR=n
3. Save the config from menuconfig and exit menuconfig to start the compile.

Actual Results:  
ca@home ~ $ sudo genkernel --no-clean all
Password: 
* Gentoo Linux Genkernel; Version 3.4.10.906
* Running with options: --no-clean all

* Linux Kernel 2.6.34-gentoo-r1 for x86...
* config: --no-clean is enabled; leaving the .config alone.
* config: >> Invoking menuconfig...
#
# configuration written to .config
#


*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.

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

* -- Grepping log... --

    Mirror target (DM_MIRROR) [M/n/y/?] m
      Mirror userspace logging (EXPERIMENTAL) (DM_LOG_USERSPACE) [N/m/?] (NEW) aborted!

Console input/output is redirected. Run 'make oldconfig' to update configuration.

make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.  Stop.
* Gentoo Linux Genkernel; Version 3.4.10.906
* Running with options: --no-clean all

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

* -- End log... --

* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.

* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
* 
* Please do *not* report compilation failures as genkernel bugs!
* 


Expected Results:  

Should work as usual and compile kernel with the options I select in menuconfig.



A workaround is to first configure the kernel with menuconfig, save that, let the error message happen. Then edit the .config manually, find the line DM_MIRROR=m and change it to =n, save. Re-run the genkernel --no-clean all, this time not changing anything in the menuconfig and exit menuconfig with <esc><esc> (i.e. not saving anything). Then the compile starts as usual.

I'll upload my .config, my genkernel.conf and the genkernel log file as attachments.

emerge --info
Portage 2.1.8.3 (default/linux/x86/10.0/desktop/gnome, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.34-gentoo-r1-i686-Intel-R-_Celeron-R-_M_processor_1.40GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 02 Aug 2010 16:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1 skype-eula googleearth AdobeFlash-10 AdobeFlash-10.1"
ACCEPT_PROPERTIES="*"
ALSA_CARDS="hda-intel usb-audio"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol"
ANT_HOME="/usr/share/ant"
APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias"
ARCH="x86"
AUTOCLEAN="yes"
BUILD_PREFIX="/tmp"
CAMERAS="fuji"
CBUILD="i686-pc-linux-gnu"
CCACHE_DIR="/var/tmp/ccache"
CCACHE_SIZE="500M"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLISION_IGNORE="/lib/modules"
COLORTERM="gnome-terminal"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CVS_RSH="ssh"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-vfccKL3Saf,guid=140b8bd4a585745164c9d09200000055"
DESKTOP_SESSION="gnome"
DISPLAY=":0.0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="-a -v --with-bdeps y --quiet-build --keep-going"
EMERGE_WARNING_DELAY="10"
EPREFIX=""
EROOT="/"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
GCC_SPECS=""
GDK_USE_XFT="1"
GDMSESSION="gnome"
GDM_LANG="en_GB.UTF-8"
GDM_XSERVER_LOCATION="local"
GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/ "
GNOME_DESKTOP_SESSION_ID="this-is-deprecated"
GNOME_KEYRING_CONTROL="/tmp/keyring-uVztFY"
GNOME_KEYRING_PID="7605"
GTK_RC_FILES="/etc/gtk/gtkrc:/home/ca/.gtkrc-1.2-gnome2"
GUILE_LOAD_PATH="/usr/share/guile/1.8"
HOME="/home/ca"
INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.20.1/info:/usr/share/gcc-data/i486-pc-linux-gnu/4.1.2/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.4.3/info:/usr/share/info/emacs-23"
INPUT_DEVICES="keyboard mouse evdev synaptics"
JAVAC="/etc/java-config-2/current-system-vm/bin/javac"
JAVACC_HOME="/usr/share/javacc/"
JAVA_HOME="/etc/java-config-2/current-system-vm"
JDK_HOME="/etc/java-config-2/current-system-vm"
KERNEL="linux"
LANG="en_GB.UTF-8"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LC_MONETARY="fi_FI.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LINGUAS="ca fr fr_CA sv_SE sv da es_ES es es_LA fi it is no nl de ja en_GB en en_US el"
LOGNAME="ca"
LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:"
MAKEOPTS="-j2"
MANPATH="/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.20.1/man:/usr/share/gcc-data/i486-pc-linux-gnu/4.1.2/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.4.3/man:/etc/java-config/system-vm/man/"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
OPENGL_PROFILE="xorg-x11"
ORBIT_SOCKETDIR="/tmp/orbit-ca"
PAGER="/usr/bin/less"
PATH="/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i486-pc-linux-gnu/gcc-bin/4.1.2:/usr/i686-pc-linux-gnu/gcc-bin/4.4.3:/usr/games/bin"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc x86-openbsd ppc-openbsd ppc64 x86-winnt x86-fbsd ppc-aix alpha arm x86-freebsd s390 amd64 arm-linux x86-macos x64-openbsd ia64-hpux hppa x86-netbsd amd64-linux ia64-linux x86 sparc-solaris x64-freebsd sparc64-solaris x86-linux x64-macos sparc m68k-mint ia64 mips ppc-macos x86-interix hppa-hpux amd64-fbsd x64-solaris mips-irix m68k sh x86-solaris sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="warn error"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="ca /usr/sbin/sendmail"
PORTAGE_ELOG_SYSTEM="save_summary mail"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_PYM_PATH="/usr/lib/portage/pym"
PORTAGE_QUIET="1"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="35"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PWD="/home/ca"
PYTHONDOCS="/usr/share/doc/python-docs-2.6.5/html/library"
PYTHONDOCS_2_6="/usr/share/doc/python-docs-2.6.5/html/library"
PYTHONDOCS_3_1="/usr/share/doc/python-docs-3.1.2/html/library"
PYTHONDONTWRITEBYTECODE="1"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/i486-pc-linux-gnu/gcc-bin/4.1.2:/usr/i686-pc-linux-gnu/gcc-bin/4.4.3"
RPMDIR="/usr/portage/rpm"
RUBY_TARGETS="ruby18"
R_HOME="/usr/lib/R"
SESSION_MANAGER="local/home:@/tmp/.ICE-unix/7614,unix/home:/tmp/.ICE-unix/7614"
SHELL="/bin/bash"
SHLVL="1"
SSH_AGENT_PID="7643"
SSH_AUTH_SOCK="/tmp/keyring-uVztFY/ssh"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
TERM="xterm"
TEXINPUTS="/usr/lib/ocaml/ocamldoc:"
USE="X a52 aac acl acpi alsa avahi bash-completion berkdb bidi bzip2 cairo canna caps cdda cddb cdparanoia cdr chasen cjk cli consolekit cracklib crypt curl curlwrappers cxx dbus djvu doc dri dts dvd dvdr eds emboss encode evo exif expat fam fbcon ffmpeg fftw flac fontconfig fortran freewnn gdbm gdu geoip gif gimp gmp gnome gnome-keyring gnutls gphoto2 gpm gpu graphviz gstreamer gtk guile hal hardened hddtemp iconv icq icu idn imagemagick ipv6 irc jabber jadetex java javascript jpeg jpeg2k kerberos lapack latex lcms ldap libcaca libnotify lzo m17n-lib mad maildir matroska mikmod mime mmap mmx mng modplug modules mono mp3 mp4 mpeg msn mudflap musepack musicbrainz mysql mysqli nautilus ncurses networkmanager nls nocd nptl nptlonly nsplugin ocaml ocamlopt offensive ogg opengl pam pango pcre pdf perl phonon plotutils png policykit posix ppds pppd python qt3support qt4 quicktime raw readline reflection sasl sdl session shorten spell spl sqlite sqlite3 sse sse2 ssl startup-notification subtitles subversion svg svga symlink sysfs syslog taglib tcl tcpd theora threads tiff tk truetype udev unicode usb vcd vorbis wavpack wifi win32codecs wmf x264 x86 xattr xcb xft xine xml xmp xorg xulrunner xv xvid yahoo zeroconf zlib" ALSA_CARDS="hda-intel usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="fuji" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ca fr fr_CA sv_SE sv da es_ES es es_LA fi it is no nl de ja en_GB en en_US el" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
USER="ca"
USERLAND="GNU"
USERNAME="ca"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES NGINX_MODULES_HTTP NGINX_MODULES_MAIL QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS USERLAND VIDEO_CARDS XTABLES_ADDONS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="radeon"
WINDOWID="58735765"
WINDOWPATH="7"
XAUTHORITY="/home/ca/.Xauthority"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share:/usr/share/gdm"
XDG_MENU_PREFIX="gnome-"
XDG_SESSION_COOKIE="3379a474495b08f35c80bf7349176923-1280842562.556179-168977303"
XERCESC_NLS_HOME="/usr/share/xerces-c/msg"
XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
XZ_OPT="--memory=max"
_="/usr/bin/emerge"
bash4="4.0.37(2)-release"
Comment 1 Christian Asseburg 2010-08-03 17:20:21 UTC
Created attachment 241287 [details]
Kernel .config that I want to use. (DM_MIRROR=n is edited manually.)

Load this with menuconfig and then save it with menuconfig and DM_MIRROR is m.
Comment 2 Christian Asseburg 2010-08-03 17:22:17 UTC
Created attachment 241289 [details]
genkernel.conf
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-08-06 09:10:11 UTC
Not a bug.
If you select LVM support, we enforce having BLK_DEV_DM, DM_SNAPSHOT, DM_MIRROR,  available so that LVM can be brought up reliably.
Comment 4 Christian Asseburg 2010-08-07 09:15:56 UTC
OK I understand.

Could you then also assume something for:
Mirror userspace logging (EXPERIMENTAL) (DM_LOG_USERSPACE) [N/m/?] (NEW)
aborted!

Because otherwise the build stops there after menuconfig.