LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (http://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   make CONFIG_DEBUG_SECTION_MISMATCH=y (http://www.linuxquestions.org/questions/linux-kernel-70/make-config_debug_section_mismatch%3Dy-682029/)

kaz2100 11-08-2008 06:03 PM

make CONFIG_DEBUG_SECTION_MISMATCH=y
 
Hya,

I am using Debian lenny (kernel 2.6.26, Debian package).

Last night, while building a new kernel, the error
Code:

CONFIG_DEBUG_SECTION_MISMATCH=y
showed up after make.

I did not see any related document within kernel source. Web search gave me several sites, however most of them look like for real developer (like contact Linus.)

Question is:
What is this message?
What am I supposed to do next?

Happy Penguins.

unSpawn 11-09-2008 06:10 AM

Quote:

Originally Posted by kaz2100 (Post 3335648)
What is this message?

You haven't posted the complete message (one line above or below in this case), because if you did

Quote:

Originally Posted by kaz2100 (Post 3335648)
What am I supposed to do next?

you'd see it offers you the advice of 'make CONFIG_DEBUG_SECTION_MISMATCH=y'. Better pipe output to a file unless you read fast ;-p

Quakeboy02 11-09-2008 02:01 PM

Did it stop and wait for your response? As unspawn says, we can't see enough about what's going on, but I get similar pauses when I forget to run "make oldconfig" after downloading a new kernel source. If my *guess* is right, it's just asking you what you want to choose for that configuration item.

kaz2100 11-10-2008 02:14 AM

Hya,

Thanks for your reply.

Yes, as unSpawn points out, I should have piped. Message looked like some sort of conflict among modules at the end of 'make'. (actual one is gone...) It was not waiting for any response.

I did 'make CONFIG_DEBUG_SECTION_MISMATCH=y' and I did not see any message.

I was rebuilding my kernel (uncheck some device drivers) by 'make gconfig', so I don't think I forgot to configure.

Anyway, at this moment, I am trying to build a kernel using same .config file under brand new source tree. I do not see the message again. I will update.

Happy Penguins!

kaz2100 11-22-2008 07:06 AM

Hya,

update.

I still have that message.
Code:

Kernel: arch/x86/boot/bzImage is ready  (#9)
  Building modules, stage 2.
  MODPOST 846 modules
WARNING: modpost: Found 2 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'

and make CONFIG_DEBUG_SECTION_MISMATCH=y gives me
Code:

WARNING: drivers/scsi/gdth.o(.text+0x397d): Section mismatch in reference from the function gdth_pci_probe_one() to the function .init.text:gdth_enable_int()
The function gdth_pci_probe_one() references
the function __init gdth_enable_int().
This is often because gdth_pci_probe_one lacks a __init
annotation or the annotation of gdth_enable_int is wrong.

The kernel itself looks like functional. (There are several tiny problems, such as USB memory label does not always show up as a mount point, screensaver does not turn off LCD,.... )

My penguin is Debian lenny kernel 2.6.26 (Debian package).

Happy Penguins!


All times are GMT -5. The time now is 05:15 AM.