Summary: | gentoo-sources-2.6.13 build error: Inconsistent kallsyms data | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ivan Yosifov <iyosifov> |
Component: | [OLD] Core system | Assignee: | Daniel Drake (RETIRED) <dsd> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kernel |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff_plain;h=b3dbb4ecd46767b621df3dedd28788da93ee0cac;hp=e82894f84dbba130ab46c97748c03647f8204f92 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
config_2.6.13_bad
config_2.6.12-r10_good config_2.6.13_good kallsyms.c.patch |
Description
Ivan Yosifov
2005-08-31 09:26:11 UTC
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 |