Suspicious warnings during kernel compilation, all of similar shape: WARNING: arch/powerpc/kernel/built-in.o(.toc+0xf50): Section mismatch: reference to .init.data:iommu_is_off (between 'fphalf' and 'PPC64_CACHES') Reproducible: Always Steps to Reproduce: CONFIG_HOTPLUG_CPU=y CONFIG_PPC64_SWSUSP=y # CONFIG_DISABLE_CONSOLE_SUSPEND is not set CONFIG_SOFTWARE_SUSPEND=y CONFIG_SUSPEND_SMP=y # CONFIG_USB_SUSPEND is not set Actual Results: At the end of kernel compile: SYSMAP System.map SYSMAP .tmp_System.map MODPOST vmlinux WARNING: arch/powerpc/kernel/built-in.o(.toc+0xf50): Section mismatch: reference to .init.data:iommu_is_off (between 'fphalf' and 'PPC64_CACHES') WARNING: arch/powerpc/kernel/built-in.o(.toc+0xf58): Section mismatch: reference to .init.data:dt_root_addr_cells (between 'fphalf' and 'PPC64_CACHES') WARNING: arch/powerpc/kernel/built-in.o(.toc+0xf60): Section mismatch: reference to .init.data:dt_root_size_cells (between 'fphalf' and 'PPC64_CACHES') WARNING: arch/powerpc/kernel/built-in.o(.toc+0xf88): Section mismatch: reference to .init.data:iommu_force_on (between 'fphalf' and 'PPC64_CACHES') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x1028): Section mismatch: reference to .init.data:feature_properties (between 'fphalf' and 'PPC64_CACHES') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x1038): Section mismatch: reference to .init.data: (between 'fphalf' and 'PPC64_CACHES') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x1048): Section mismatch: reference to .init.data:ibm_pa_features (between 'fphalf' and 'PPC64_CACHES') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x1050): Section mismatch: reference to .init.data: (between 'fphalf' and 'PPC64_CACHES') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x1580): Section mismatch: reference to .init.data:dt_string_start (between 'PPC64_CACHES' and 'swsusp_save_area_ptr') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x1588): Section mismatch: reference to .init.data:dt_string_end (between 'PPC64_CACHES' and 'swsusp_save_area_ptr') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x1590): Section mismatch: reference to .init.data:prom_entry (between 'PPC64_CACHES' and 'swsusp_save_area_ptr') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x15c8): Section mismatch: reference to .init.data:prom (between 'PPC64_CACHES' and 'swsusp_save_area_ptr') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x15e8): Section mismatch: reference to .init.data:of_platform (between 'PPC64_CACHES' and 'swsusp_save_area_ptr') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x15f8): Section mismatch: reference to .init.data:mem_reserve_cnt (between 'PPC64_CACHES' and 'swsusp_save_area_ptr') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x1608): Section mismatch: reference to .init.data:mem_reserve_map (between 'PPC64_CACHES' and 'swsusp_save_area_ptr') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x1610): Section mismatch: reference to .init.data:ram_top (between 'PPC64_CACHES' and 'swsusp_save_area_ptr') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x1620): Section mismatch: reference to .init.data:alloc_top_high (between 'PPC64_CACHES' and 'swsusp_save_area_ptr') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x1628): Section mismatch: reference to .init.data:alloc_bottom (between 'PPC64_CACHES' and 'swsusp_save_area_ptr') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x1630): Section mismatch: reference to .init.data:rmo_top (between 'PPC64_CACHES' and 'swsusp_save_area_ptr') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x1638): Section mismatch: reference to .init.data:alloc_top (between 'PPC64_CACHES' and 'swsusp_save_area_ptr') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x1678): Section mismatch: reference to .init.data:prom_scratch (between 'PPC64_CACHES' and 'swsusp_save_area_ptr') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x1748): Section mismatch: reference to .init.data:prom_iommu_off (between 'PPC64_CACHES' and 'swsusp_save_area_ptr') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x17f8): Section mismatch: reference to .init.data:prom_tce_alloc_start (between 'PPC64_CACHES' and 'swsusp_save_area_ptr') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x1800): Section mismatch: reference to .init.data:prom_tce_alloc_end (between 'PPC64_CACHES' and 'swsusp_save_area_ptr') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x1878): Section mismatch: reference to .init.data:regbuf (between 'PPC64_CACHES' and 'swsusp_save_area_ptr') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x1890): Section mismatch: reference to .init.data:prom_initrd_start (between 'PPC64_CACHES' and 'swsusp_save_area_ptr') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x1898): Section mismatch: reference to .init.data:prom_initrd_end (between 'PPC64_CACHES' and 'swsusp_save_area_ptr') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x18d0): Section mismatch: reference to .init.data:prom_cmd_line (between 'PPC64_CACHES' and 'swsusp_save_area_ptr') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x1908): Section mismatch: reference to .init.data:prom_iommu_force_on (between 'PPC64_CACHES' and 'swsusp_save_area_ptr') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x1920): Section mismatch: reference to .init.data:dt_header_start (between 'PPC64_CACHES' and 'swsusp_save_area_ptr') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x1930): Section mismatch: reference to .init.data:dt_struct_start (between 'PPC64_CACHES' and 'swsusp_save_area_ptr') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x1940): Section mismatch: reference to .init.data:dt_struct_end (between 'PPC64_CACHES' and 'swsusp_save_area_ptr') WARNING: arch/powerpc/kernel/built-in.o(.toc+0x1988): Section mismatch: reference to .init.data:of_stdout_device (between 'PPC64_CACHES' and 'swsusp_save_area_ptr') WARNING: arch/powerpc/mm/built-in.o(.toc+0x310): Section mismatch: reference to .init.text: Expected Results: swsusp attempts failed so far, most notably not beeing able to freeze kfand --- no idea whether that is related to the above messages, which to me look suspicious enough.
Created attachment 128365 [details] Other suspicious kernel compilation warnings
*** Deprecated use of action 'info', use '--info' instead Portage 2.1.2.11 (default-linux/ppc/ppc64/2007.0/32bit-userland/desktop/970/pmac, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r3 ppc64) ================================================================= System uname: 2.6.22-gentoo-r3 ppc64 PPC970FX, altivec supported Gentoo Base System release 1.12.9 Timestamp of tree: Fri, 17 Aug 2007 01:20:01 +0000 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r6 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="ppc" AUTOCLEAN="yes" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -pipe -mcpu=970 -mtune=970 -maltivec -mabi=altivec" CHOST="powerpc-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -mcpu=970 -mtune=970 -maltivec -mabi=altivec" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X aac aalib acl aiglx alsa altivec ao arts audiofile bash-completion berkdb bitmap-fonts bzip2 cairo cdr chardet cjk cli cracklib crypt cups dbus directfb dri dv dvd dvdr dvi eds emacs emboss encode esd exif fam fbcon ffmpeg fftw firefox flac fontconfig foomaticdb fortran gb gcc64 gdbm gif gimp glade glitz glut gmp gnome gnomecanvas gnuplot gnutls gphoto2 gpm graphviz gs gstreamer gtk gtk2 gtkhtml hal haskell iconv imagemagick imlib ipod ipv6 isdnlog jpeg jpeg2k kde kdeenablefinal lame latex ldap leim logrotate mad midi mikmod motif mozdevelop mozsvg mp3 mp4 mpeg mplayer mudflap mule musepack ncurses nodrm nptl nptlonly nsplugin ocaml ogg openal opengl openmp pam pango pcre pdf pdflib perl plotutils png postscript ppc ppds pppd python qmail qt3 qt3support qt4 quicktime readline reflection rtc sdk sdl seamonkey session smp sndfile spell spl ssl svg t1lib tcltk tcpd tetex theora threads threadsafe tiff timidity tk truetype truetype-fonts tta type1-fonts unicode usb vorbis wavpack wma xine xinerama xml xorg xpm xrandr xv zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Soo, which kernel (and which _version_) are you seeing this ?
These particular messages were produced while compiling (~)gentoo-sources-2.6.22-r4 (running (~)gentoo-sources-2.6.22-r3). But I definitely already observed them while compiling r3; and I think also for r2, which was the first version of 2.6.22 I tried on this box.
Can you please test this with the latest development kernel, 2.6.23-rc6 as of this writing? Please also post your kernel .config.
Created attachment 131255 [details] linux-2.6.22-gentoo-r6.config Kernel .config for gentoo-sources-2.6.22-r6
Created attachment 131257 [details] stdout and stderr of ``make'' for gentoo-sources-2.6.22-r6 This still shows the suspicious ``Section mismatch'' warnings concerning swsusp.
The latest development kernel is: sys-kernel/vanilla-sources-2.6.23_rc6. Can you test with that one please?
Created attachment 131259 [details] vanilla-sources-2.6.23_rc6.make.log With vanilla-sources-2.6.23-rc6, far fewer ``Section mismatch'' messages, but still quite a few deprecated and warn_unused_result messages.
Created attachment 131260 [details] .config for vanilla-sources-2.6.23-rc6
These shouldn't really cause any problems: they are warnings, not errors. If there is actually something wrong with your system, please open a bug about that.