Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 219605

Summary: xen-sources-2.6.21 - undefined reference to `stts'
Product: Gentoo Linux Reporter: Lord Realname <bugs.gentoo>
Component: New packagesAssignee: Gentoo Xen Devs <xen>
Status: RESOLVED CANTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log of xen-sources-2.6.21

Description Lord Realname 2008-04-28 16:48:02 UTC
Compiling xen-sources-2.6.21 ends with an error, no matter if compiled with gcc 4.2.3 or 3.4.6.



Reproducible: Always

Steps to Reproduce:
1. make
Actual Results:  
arch/i386/kernel/built-in.o: In function `__switch_to':
(.text+0xcd6): undefined reference to `stts'
arch/i386/kernel/built-in.o: In function `flush_thread':
(.text+0xf57): undefined reference to `stts'
arch/i386/kernel/built-in.o: In function `prepare_to_copy':
(.text+0xfc4): undefined reference to `stts'
arch/i386/kernel/built-in.o: In function `restore_sigcontext':
signal.c:(.text+0x132e): undefined reference to `stts'
arch/i386/kernel/built-in.o: In function `math_error':
(.text+0x2332): undefined reference to `stts'
arch/i386/kernel/built-in.o:(.text+0x2d1a): more undefined references to `stts' follow
arch/i386/kernel/built-in.o: In function `native_flush_tlb_single':
paravirt.c:(.text+0x10951): undefined reference to `__native_flush_tlb_single'
arch/i386/kernel/built-in.o: In function `native_flush_tlb_global':
paravirt.c:(.text+0x10956): undefined reference to `__native_flush_tlb_global'
arch/i386/kernel/built-in.o: In function `native_flush_tlb':
paravirt.c:(.text+0x1095b): undefined reference to `__native_flush_tlb'
arch/i386/mm/built-in.o: In function `zap_low_mappings':
(.text+0x16c): undefined reference to `__flush_tlb_all'
arch/i386/mm/built-in.o: In function `__set_fixmap':
(.text+0x2a5): undefined reference to `__flush_tlb_one'
arch/i386/mm/built-in.o: In function `set_pmd_pfn':
(.text+0x22e): undefined reference to `__flush_tlb_one'
arch/i386/mm/built-in.o: In function `flush_kernel_map':
pageattr.c:(.text+0x11e7): undefined reference to `__flush_tlb_all'
arch/i386/mm/built-in.o: In function `paging_init':
(.init.text+0x512): undefined reference to `__flush_tlb_all'
mm/built-in.o: In function `zap_pte':
fremap.c:(.text+0x9564): undefined reference to `__flush_tlb_one'
mm/built-in.o: In function `do_wp_page':
memory.c:(.text+0xa235): undefined reference to `__flush_tlb_one'
memory.c:(.text+0xa447): undefined reference to `__flush_tlb_one'
mm/built-in.o: In function `__handle_mm_fault':
(.text+0xbdf7): undefined reference to `__flush_tlb_one'
mm/built-in.o: In function `move_page_tables':
mremap.c:(.text+0xf352): undefined reference to `__flush_tlb_one'
mm/built-in.o:rmap.c:(.text+0xfc5f): more undefined references to `__flush_tlb_one' follow
mm/built-in.o: In function `unmap_vm_area':
(.text+0x10d40): undefined reference to `__flush_tlb_all'
arch/i386/power/built-in.o: In function `__restore_processor_state':
(.text+0x173): undefined reference to `stts'
make: *** [.tmp_vmlinux1] Error 1

Expected Results:  
Uhm... compile cleanly. ;)

CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-04-28 17:09:37 UTC
emerge --info, please.

Also, the first error you pasted was probably not the first error the build system printed. Please attach its entirety (i.e. the output of `make 2>&1 | tee build.log').

Also, the kernel build system normally ignores your CFLAGS completely.
Comment 2 Lord Realname 2008-04-28 18:13:40 UTC
emerge --info


Portage 2.1.5_rc6 (default-linux/x86/2007.0/desktop, gcc-4.2.3, glibc-2.7-r2, 2.6.25-gentoo-r1 i686)
=================================================================
System uname: 2.6.25-gentoo-r1 i686 Intel(R) Pentium(R) M processor 1.60GHz
Timestamp of tree: Mon, 28 Apr 2008 07:45:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r8, 2.5.2-r2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://212.219.56.135/sites/www.ibiblio.org/gentoo/"
LANG="de_DE.UTF-8"
LC_ALL="en_EN.UTF-8"
LDFLAGS=""
LINGUAS="de en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
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.europe.gentoo.org/gentoo-portage"
USE="X aac acpi alsa bash-completion berkdb bzip2 cairo cdr cjk cli cpudetection cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode evo fam firefox flac fortran fuse gdbm gif glitz gpm gstreamer gtk hal iconv imlib injection isdnlog jack jpeg kerberos mad md5sum midi mikmod mmx mp3 mpeg mudflap musepack ncurses nls nptl nptlonly ogg openmp pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session sid sndfile spl sse sse2 ssl svg tcpd tiff truetype tta type1 unicode vim-syntax vorbis wavpack wifi win32codecs wma x86 xml xorg xprint xv zlib" ALSA_CARDS="usb-usx2y" 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" 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 synaptics mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="i810 vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS


Comment 3 Lord Realname 2008-04-28 18:17:42 UTC
Created attachment 151260 [details]
build.log of xen-sources-2.6.21
Comment 4 Lord Realname 2008-04-30 13:54:41 UTC
With xen-sources-2.6.20-r7 its the same problem.
Comment 5 Patrick Lauer gentoo-dev 2010-01-06 22:33:21 UTC
Dropped version. Try .29 or .31 :)