While building gentoo-sources-2.6.13 with the attached config: echo ' /bin/sh /usr/src/linux-2.6.13-gentoo/scripts/mksysmap .tmp_System.map' && /bin/sh /usr/src/linux-2.6.13-gentoo/scripts/mksysmap .tmp_vmlinux2 .tmp_System.map /bin/sh /usr/src/linux-2.6.13-gentoo/scripts/mksysmap .tmp_System.map cmp -s System.map .tmp_System.map || (echo Inconsistent kallsyms data; echo Try setting CONFIG_KALLSYMS_EXTRA_PASS; rm .tmp_kallsyms* ; /bin/false ) Inconsistent kallsyms data Try setting CONFIG_KALLSYMS_EXTRA_PASS make: *** [vmlinux] Error 1 Reproducible: Always Steps to Reproduce: Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.13-gentoo i686) ================================================================= System uname: 2.6.13-gentoo i686 Intel(R) Pentium(R) 4 CPU 3.20GHz Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.12 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="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -momit-leaf-frame-pointer -pipe" CHOST="i686-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/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -momit-leaf-frame-pointer -pipe -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.ITDNet.net/gentoo" LANG="en_US.utf8" LC_ALL="en_US.utf8" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aac acl alsa apache2 avi berkdb bitmap-fonts bonobo cdr crypt cups curl dbus directfb doc dvd dvdr eds emboss encode flac foomaticdb gd gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml guile hal imagemagick imlib ipv6 ithreads java jpeg junit kde kdeenablefinal ldap libg++ libwww mad mikmod mmap mmx motif mozilla mp3 mpeg mysql ncurses nls nptl nvidia ogg oggvorbis opengl pam pdflib perl pic plotutils png postgres pthreads python qt quicktime readline sdl session sharedmem slang spell sse sse2 ssl svga symlink tcltk tcpd tetex threads tiff truetype truetype-fonts type1-fonts unicode usb vorbis win32codecs xine xml xml2 xmms xv xvmc zlib linguas_en userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS
Created attachment 67353 [details] config_2.6.13_bad
After setting CONFIG_KALLSYMS_EXTRA_PASS the kernel compiles and runs fine.
Is this definately new to 2.6.13, or if you unpack/compile a 2.6.12 kernel *from clean* does this problem also occur there too?
I never got this with any gentoo-sources until 2.6.13. What do you mean by "from clean" ? I upgrade kernels by emergeing the new gentoo-sources, unmergeing the old, repointing the /usr/src/linux symlink to the new ones, config && make bzImage && make modules. Does that count for "from clean" ?
Yes, that will do. (This kind of problem is likely to be introduced on a new binutils/gcc/glibc version rather than a kernel upgrade)
I just built a 2.6.12-r10 kernel with the new attached config alright, so I guess the problem comes from 2.6.13. The two configs should be identical, apart for things that are 2.6.13-only ( like HZ value, etc ).
Created attachment 67506 [details] config_2.6.12-r10_good
IIRC the only toolchain related update recently was gcc-3.4.4-r1.
These LKML messages seem related: http://lkml.org/lkml/2005/8/29/221 http://lkml.org/lkml/2005/8/31/129 http://lkml.org/lkml/2005/8/31/185 I will try the proposed patch as soon as I have time.
Created attachment 67550 [details] config_2.6.13_good Building a 2.6.13 kernel with this config works. The diff with the _bad config is only: --- config_2.6.13_good 2005-09-03 16:00:22.000000000 +0300 +++ buggy_config 2005-09-03 15:46:41.000000000 +0300 @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit # Linux kernel version: 2.6.13-gentoo -# Sat Sep 3 15:53:58 2005 +# Wed Aug 31 17:52:53 2005 # CONFIG_X86=y CONFIG_MMU=y @@ -111,11 +111,11 @@ CONFIG_HPET_TIMER=y CONFIG_HPET_EMULATE_RTC=y CONFIG_SMP=y -CONFIG_NR_CPUS=3 +CONFIG_NR_CPUS=2 CONFIG_SCHED_SMT=y # CONFIG_PREEMPT_NONE is not set -# CONFIG_PREEMPT_VOLUNTARY is not set -CONFIG_PREEMPT=y +CONFIG_PREEMPT_VOLUNTARY=y +# CONFIG_PREEMPT is not set CONFIG_PREEMPT_BKL=y CONFIG_X86_LOCAL_APIC=y CONFIG_X86_IO_APIC=y So, the problem should be very isolated now.
Created attachment 67560 [details, diff] kallsyms.c.patch Ok, the patch from http://lkml.org/lkml/2005/8/31/129 fixes the issue for the _bad config. Attaching here for reference, please include.
Yup I had the same problem and the patch from http://lkml.org/lkml/2005/8/31/129 fixes it. I think this patch is included in the mm-sources-2.6.13-r1 by default so that's another option if you don't feel like patching by hand.
Fixed in genpatches-2.6.13-2 Fixed in gentoo-sources-2.6.13-r1