Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 362415 - XEN DomU kernel (gentoo-sources, vanilla sources) - arch/x86/built-in.o: In function `xen_hvm_post_suspend': (.text+0x2ace): undefined reference to `xen_unplug_emulated_devices'
Summary: XEN DomU kernel (gentoo-sources, vanilla sources) - arch/x86/built-in.o: In f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: http://git.kernel.org/?p=linux/kernel...
Whiteboard: [2.6.37 regression]
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2011-04-07 09:04 UTC by Philipp Riegger
Modified: 2011-04-15 12:53 UTC (History)
2 users (show)

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


Attachments
config-2.6.37-gentoo-r4 (config-2.6.37-gentoo-r4,44.88 KB, text/plain)
2011-04-07 09:06 UTC, Philipp Riegger
Details
config-2.6.38-gentoo-r1 (config-2.6.38-gentoo-r1,45.66 KB, text/plain)
2011-04-07 09:07 UTC, Philipp Riegger
Details
CONFIG_XEN_PVHVM patch (xen_pvhvm.patch,566 bytes, patch)
2011-04-10 14:50 UTC, Stratos Psomadakis (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Riegger 2011-04-07 09:04:13 UTC
When trying to build a new kernel vor my XEN DomU I get the following error:

  LD      vmlinux.o
  MODPOST vmlinux.o
WARNING: modpost: Found 6 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
arch/x86/built-in.o: In function `xen_hvm_post_suspend':
(.text+0x2ace): undefined reference to `xen_unplug_emulated_devices'
make: *** [.tmp_vmlinux1] Error 1

This happened with gentoo-sources 2.6.37 and 2.6.38 and with vanilla sources 2.6.37 (did not test 2.6.38 yet). I have no problems with gentoo-sources 2.6.36.

When I google for the error message I get 4 hits, 3 chinese pages I do not understand and 1 pastebin with the title "gentoo-sources-2.6.37 fails to build" or something like that.

I tried: linux-2.6.37-gentoo-r4  linux-2.6.38-gentoo-r1
Comment 1 Philipp Riegger 2011-04-07 09:06:26 UTC
Created attachment 268821 [details]
config-2.6.37-gentoo-r4

The config I used for 2.6.37.
Comment 2 Philipp Riegger 2011-04-07 09:07:02 UTC
Created attachment 268823 [details]
config-2.6.38-gentoo-r1

The config I used for 2.6.38.
Comment 3 Philipp Riegger 2011-04-07 09:07:45 UTC
 # emerge --info
Portage 2.2.0_alpha29 (hardened/linux/x86, gcc-4.5.2, glibc-2.13-r2, 2.6.36-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.36-gentoo-r8-i686-Intel-R-_Xeon-TM-_CPU_2.40GHz-with-gentoo-2.0.2
Timestamp of tree: Thu, 07 Apr 2011 00:45:01 +0000
app-shells/bash:     4.2_p8
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.0
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.68
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.38 (sys-kernel/linux-headers)
Repositories: gentoo playground_local java-overlay stoile_overlay wacfg gamerlay-stable
Installed sets: 
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=i686 -pipe -mno-tls-direct-seg-refs"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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"
CXXFLAGS="-Os -march=i686 -pipe -mno-tls-direct-seg-refs"
DISTDIR="/mnt/space/gentoo/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --alphabetical --binpkg-respect-use y --load-average=3 --with-bdeps y"
FEATURES="assume-digests binpkg-logs buildpkg collision-protect distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS=""
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo http://gentoo.inode.at/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
INSTALL_MASK="*.la"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1 -s"
PKGDIR="/mnt/space/gentoo/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 /var/lib/layman/java-overlay /var/lib/layman/stoile /var/lib/layman/wacfg /var/lib/layman/gamerlay"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="acl bash-completion berkdb bzip2 caps cli cracklib crypt cxx dri gdbm gs hardened iconv idn ipv6 jpeg modules mudflap ncurses nls nptl nptlonly pam pcre perl pic png pppd python readline session ssl svg sysfs tcpd tiff unicode urandom x86 xattr xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 cgi cgid 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 intel mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa via vmware nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Stratos Psomadakis (RETIRED) gentoo-dev 2011-04-10 13:57:30 UTC
the function "void xen_unplug_emulated_devices()" is inside an ifdef:
 #ifdef CONFIG_XEN_PVHVM

thus, you must have it set in your .config, but I don't see it...
trying adding it to your .config, and I think it'll fix your problem...
CONFIG_XEN_PVHVM=y

and here's the commit that introduced the new CONFIG option:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=ca65f9fc0c447da5b270b05c41c21b19c88617c3
Comment 5 Philipp Riegger 2011-04-10 14:36:58 UTC
1) I don't think I'm supposed to set that option, since it's not available in menuconfig.

2) If I set CONFIG_X86_LOCAL_APIC, CONFIG_XEN_PVHVM is set automatically.

3) This seems to be fixed in 2.6.39 (git-sources rc_2-git1 is the version I tried).

4) It's a bug nevertheless and might hit people when this goes stable.
Comment 6 Stratos Psomadakis (RETIRED) gentoo-dev 2011-04-10 14:50:52 UTC
Created attachment 269311 [details, diff]
CONFIG_XEN_PVHVM patch

yes, PVHVM depends on LOCAL_APIC...
anyway, it's just a workaround to make the kernel build...

but you're right, it is fixed in .39 rcs...
here's the patch, if anyone wants to include it to gentpaches...
Comment 7 Mike Pagano gentoo-dev 2011-04-15 12:53:28 UTC
Released in gentoo-sources-2.6.38-r3