Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280192 - sys-kernel/gentoo-sources-2.6.28-r5: Section mismatch in reference from the function autodetect_raid() to the variable .init.data:raid_autopart
Summary: sys-kernel/gentoo-sources-2.6.28-r5: Section mismatch in reference from the f...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-03 17:30 UTC by Paweł Rumian
Modified: 2009-08-11 13:16 UTC (History)
0 users

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


Attachments
My config file (config,41.81 KB, text/plain)
2009-08-03 17:31 UTC, Paweł Rumian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paweł Rumian 2009-08-03 17:30:07 UTC
When compiling sys-kernel/gentoo-sources-2.6.28-gentoo-r5 I get 

WARNING: modpost: Found 1 section mismatch(es). To see full details build your kernel with: 'make CONFIG_DEBUG_SECTION_MISMATCH=y'

Afer compiling with make CONFIG_DEBUG_SECTION_MISMATCH=y I get the following:

  CHK     include/linux/version.h                      
  CHK     include/linux/utsrelease.h                   
  SYMLINK include/asm -> include/asm-x86               
  CC      kernel/bounds.s                              
  GEN     include/linux/bounds.h
  CC      arch/x86/kernel/asm-offsets.s
  GEN     include/asm/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CC      scripts/mod/empty.o
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  CC      init/main.o
  CHK     include/linux/compile.h
  CC      init/version.o
  CC      init/do_mounts.o
  CC      init/do_mounts_md.o
  LD      init/mounts.o
WARNING: init/mounts.o(.text+0x26c): Section mismatch in reference from the function autodetect_raid() to the variable .init.data:raid_autopart
The function autodetect_raid() references
the variable __initdata raid_autopart.
This is often because autodetect_raid lacks a __initdata
annotation or the annotation of raid_autopart is wrong.

  CC      init/noinitramfs.o
  CC      init/calibrate.o
  LD      init/built-in.o
WARNING: init/built-in.o(.text+0x50c): Section mismatch in reference from the function autodetect_raid() to the variable .init.data:raid_autopart
The function autodetect_raid() references
the variable __initdata raid_autopart.
This is often because autodetect_raid lacks a __initdata
annotation or the annotation of raid_autopart is wrong.

(no more errors)



Reproducible: Always

Steps to Reproduce:
1. cd /usr/src/linux-2.6.28-gentoo-r5
2. make
3.

Actual Results:  
The same as those in description.

Expected Results:  
No section mismatch.

Portage 2.2_rc33 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r5 i686)
=================================================================                                            
System uname: Linux-2.6.28-gentoo-r5-i686-AMD_Athlon-tm-_XP_2500+-with-glibc2.0                              
Timestamp of tree: Mon, 03 Aug 2009 13:00:01 +0000                                                           
distcc 3.1 i686-pc-linux-gnu [disabled]                                                                      
ccache version 2.4 [enabled]                                                                                 
app-shells/bash:     3.2_p39                                                                                 
dev-java/java-config: 2.1.8-r1                                                                               
dev-lang/python:     2.5.4-r3                                                                                
dev-util/ccache:     2.4-r7                                                                                  
dev-util/cmake:      2.6.4                                                                                   
sys-apps/baselayout: 1.12.11.1                                                                               
sys-apps/sandbox:    1.9                                                                                     
sys-devel/autoconf:  2.13, 2.63-r1                                                                           
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                               
sys-devel/binutils:  2.18-r3                                                                                 
sys-devel/gcc-config: 1.4.1                                                                                  
sys-devel/libtool:   1.5.26                                                                                  
virtual/os-headers:  2.6.27-r2                                                                               
ACCEPT_KEYWORDS="x86"                                                                                        
CBUILD="i686-pc-linux-gnu"                                                                                   
CFLAGS="-O2 -march=athlon-xp -pipe"                                                                          
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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 /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="pl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X aac acl acpi alsa bash-completion berkdb bluetooth branding bzip2 bzlib cairo cddb cdr cli cracklib crypt cups dbus dga dri dvd dvdr dvdread emboss encode exif fam ffmpeg flac foomaticdb fortran gif gimp gnuplot gnutls gpm gtk hal iconv ieee1394 imagemagick imap imlib ipv6 isdnlog jabber java jpeg kde kipi lame latex libnotify lm_sensors loop-aes mad mikmod mmx mmxext mp3 mpeg mplayer mudflap musepack mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support qt4 quicktime raw readline reflection rss sdl session spell spl sse ssl startup-notification svg sysfs syslog tcpd tiff truetype unicode usb vorbis webkit win32codecs x86 xine xml xorg xulrunner xv zlib" ALSA_CARDS="emu10k1 intel8x0 mpu401" 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 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" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Paweł Rumian 2009-08-03 17:31:19 UTC
Created attachment 200037 [details]
My config file
Comment 2 James Earl Spahlinger 2009-08-10 00:42:36 UTC
Do you get a compiled kernel or does this error cause the compile to stop? If you have any additional build logs you can include please do so to assist the maintainers
Comment 3 Mike Pagano gentoo-dev 2009-08-11 13:16:26 UTC
Section matches are generally harmless and are in many kernel versions and seem
to come and go. Please feel free to take these upstream at

http://bugzilla.kernel.org.