Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 104393 - gentoo-sources-2.6.13 build error: Inconsistent kallsyms data
Summary: gentoo-sources-2.6.13 build error: Inconsistent kallsyms data
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Daniel Drake (RETIRED)
URL: http://www.kernel.org/git/?p=linux/ke...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-31 09:26 UTC by Ivan Yosifov
Modified: 2005-09-11 08:06 UTC (History)
1 user (show)

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


Attachments
config_2.6.13_bad (buggy_config,29.38 KB, text/plain)
2005-08-31 09:27 UTC, Ivan Yosifov
Details
config_2.6.12-r10_good (working_config,28.28 KB, text/plain)
2005-09-02 14:13 UTC, Ivan Yosifov
Details
config_2.6.13_good (config_2.6.13_good,29.38 KB, text/plain)
2005-09-03 06:04 UTC, Ivan Yosifov
Details
kallsyms.c.patch (kallsyms.c.patch,16.87 KB, patch)
2005-09-03 08:07 UTC, Ivan Yosifov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Yosifov 2005-08-31 09:26:11 UTC
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
Comment 1 Ivan Yosifov 2005-08-31 09:27:26 UTC
Created attachment 67353 [details]
config_2.6.13_bad
Comment 2 Ivan Yosifov 2005-08-31 10:36:11 UTC
After setting CONFIG_KALLSYMS_EXTRA_PASS the kernel compiles and runs fine.
Comment 3 Daniel Drake (RETIRED) gentoo-dev 2005-09-01 12:03:48 UTC
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?
Comment 4 Ivan Yosifov 2005-09-01 12:54:54 UTC
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" ?
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2005-09-02 05:21:52 UTC
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)
Comment 6 Ivan Yosifov 2005-09-02 14:12:08 UTC
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 ).
Comment 7 Ivan Yosifov 2005-09-02 14:13:20 UTC
Created attachment 67506 [details]
config_2.6.12-r10_good
Comment 8 Ivan Yosifov 2005-09-02 14:17:05 UTC
IIRC the only toolchain related update recently was gcc-3.4.4-r1.
Comment 9 Ivan Yosifov 2005-09-03 04:59:10 UTC
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.
Comment 10 Ivan Yosifov 2005-09-03 06:04:02 UTC
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.
Comment 11 Ivan Yosifov 2005-09-03 08:07:27 UTC
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.
Comment 12 t35t0r 2005-09-06 13:47:13 UTC
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.
Comment 13 Daniel Drake (RETIRED) gentoo-dev 2005-09-11 08:06:28 UTC
Fixed in genpatches-2.6.13-2
Fixed in gentoo-sources-2.6.13-r1