Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 455504 - sys-fs/vhba-20120422-r1 failed to build with gcc 4.6 - error: incompatible gcc/plugin versions
Summary: sys-fs/vhba-20120422-r1 failed to build with gcc 4.6 - error: incompatible gc...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexandre Rostovtsev (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-04 21:22 UTC by renesanso
Modified: 2013-02-05 04:41 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description renesanso 2013-02-04 21:22:52 UTC
sys-fs/vhba-20120422-r1 failed with gcc 4.6, with gcc 4.5 compiled ok.

Reproducible: Always

Steps to Reproduce:
1. build sys-fs/vhba-20120422-r1 with gcc 4.6, see errors.
2. build sys-fs/vhba-20120422-r1 with gcc 4.5, compiled ok.



# cat /var/tmp/portage/sys-fs/vhba-20120422-r1/temp/build.log
 * Package:    sys-fs/vhba-20120422-r1
 * Repository: gentoo
 * Maintainer: tetromino@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux multilib userland_GNU
 * FEATURES:   preserve-libs sandbox
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     3.7.3-hardened
 * Checking for suitable kernel configuration options...
 [ ok ]
 * Checking for suitable kernel configuration options...
 [ ok ]
ln: failed to create symbolic link ‘Module.symvers’: File exists
 * Preparing vhba module
make -C /usr/src/linux M=/var/tmp/portage/sys-fs/vhba-20120422-r1/work/vhba-module-20120422 modules
make[1]: Entering directory `/usr/src/linux-3.7.3-hardened'
  CC [M]  /var/tmp/portage/sys-fs/vhba-20120422-r1/work/vhba-module-20120422/vhba.o
cc1: ошибка: incompatible gcc/plugin versions
cc1: ошибка: fail to initialize plugin /usr/src/linux-3.7.3-hardened/tools/gcc/constify_plugin.so
cc1: ошибка: cannot load plugin /usr/src/linux-3.7.3-hardened/tools/gcc/stackleak_plugin.so
/usr/src/linux-3.7.3-hardened/tools/gcc/stackleak_plugin.so: undefined symbol: get_insns
cc1: ошибка: incompatible gcc/plugin versions
cc1: ошибка: fail to initialize plugin /usr/src/linux-3.7.3-hardened/tools/gcc/colorize_plugin.so
cc1: ошибка: cannot load plugin /usr/src/linux-3.7.3-hardened/tools/gcc/size_overflow_plugin.so
/usr/src/linux-3.7.3-hardened/tools/gcc/size_overflow_plugin.so: undefined symbol: ix86_isa_flags
cc1: ошибка: cannot load plugin /usr/src/linux-3.7.3-hardened/tools/gcc/latent_entropy_plugin.so
/usr/src/linux-3.7.3-hardened/tools/gcc/latent_entropy_plugin.so: undefined symbol: build_int_cstu
make[2]: *** [/var/tmp/portage/sys-fs/vhba-20120422-r1/work/vhba-module-20120422/vhba.o] Ошибка 1
make[1]: *** [_module_/var/tmp/portage/sys-fs/vhba-20120422-r1/work/vhba-module-20120422] Error 2
make[1]: Leaving directory `/usr/src/linux-3.7.3-hardened'
make: *** [modules] Error 2
 * ERROR: sys-fs/vhba-20120422-r1 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sys-fs/vhba-20120422-r1'`,
 * the complete build log and the output of `emerge -pqv '=sys-fs/vhba-20120422-r1'`.
 * The complete build log is located at '/var/tmp/portage/sys-fs/vhba-20120422-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-fs/vhba-20120422-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-fs/vhba-20120422-r1/work/vhba-module-20120422'
 * S: '/var/tmp/portage/sys-fs/vhba-20120422-r1/work/vhba-module-20120422'

emerge --info
--- Invalid atom in /etc/portage/package.use: www-client/aurora-9999-r9999
FEATURES variable contains unknown value(s): preserved-rebuild
Portage 2.1.11.50 (hardened/linux/amd64, gcc-4.6.3, glibc-2.16.0, 3.7.3-hardened x86_64)
=================================================================
System uname: Linux-3.7.3-hardened-x86_64-Intel-R-_Core-TM-_i7_CPU_950_@_3.07GHz-with-gentoo-2.2
KiB Mem:    24684008 total,    841284 free
KiB Swap:    3670012 total,   3669996 free
Timestamp of tree: Mon, 04 Feb 2013 11:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p42
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.5.4-r5, 2.6.8-r1, 2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.5.4, 4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: mate-overlay stuff pinkbyte mozilla desktop-effects sunrise init6 hardened-dev ROKO__ raw x-my gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=x86-64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/mateconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=x86-64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs preserved-rebuild sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --timeout=30"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/mate /var/lib/layman/stuff /var/lib/layman/pinkbyte /var/lib/layman/mozilla /var/lib/layman/desktop-effects /var/lib/layman/sunrise /var/lib/layman/init6 /var/lib/layman/hardened-development /var/lib/layman/ROKO__ /var/lib/layman/raw /usr/local/portage/my /usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="# X a52 aac aalib acl acpi adplug alsa amd64 amr apache2 bash-completion berkdb bl bluetooth bluray bs2b btrfs bzip2 cairo caps cd cdb cdda cddb cdparanoia cdr cli cpudetection cracklib crypt css cue cups curl custom-optimization cxx dc1394 dga dhcp dia dirac djvu dmraid drawing dri dts dv dvb dvd dvdr en encode equalizer examples faac faad fam fat fbcon ffmpeg flac fluidsynth fontconfig foomaticdb ftp fuse gallium gconf gd gdbm ggi gif gimp glib glut gme gmp gnome gnutls gphoto2 gpm gsm gstreamer gtk gtkstyle gzip hardened hfs iconv id3tag ieee1394 imagemagick imlib irda jfs jit joystick jpeg jpeg2k justify kate kde ladspa lame latex libass libcaca libmpeg2 libproxy libsamplerate libv4l libv4l2 lm_sensors lzma lzo mad maildir mailwrapper mate matroska mbox md5sum mdadm midi mjpeg mms mmx mmxext mng modplug modules mp3 mpeg mpg123 mplayer mtp mudflap multilib musepack nautilus ncurses nls nptl nsplugin ntfs nut offensive ogg openal opengl openmp optimisememory optimization oss pam pax_kernel pcmcia pcre pdf pic plasma plotutils png pnm policykit postproc pulseaudio pvr qt qt3 qt3support qt4 quicktime radio rar raw rdesktop readline realtime reiser4 reiserfs remoteosd rss rtmp rtsp ru sasl scanner schroedinger sdl sdl-image session shine shout sid skins slp smp sndfile sound source sox speex spell sqlite sse sse2 sse3 ssl ssse3 stest stream svg symlink szip taglib tcpd telext test-programs tga threads tiff tk tools tray truetype twolame udev unicode unrar urandom usb utf8 v4l v4l2 vaapi vcd vcdx videos vlm vnc vorbis vpx w32codecs wavpack wifi wma wma-fixed x264 xanim xattr xcb xcomposite xfs xinerama xml xosd xpm xscreensaver xv xvid zlib zoran zsh-completion zvbi" ABI_X86="64" ALSA_CARDS="hda-intel usb-audio" 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="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="openssl" DRACUT_MODULES="bootchart crypt crypt-gpg crypt-loop lvm ssh-client 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" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru en" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="vesa fbdev sisusb dummy radeon nouveau i915 i965 intel r100 r200 r300 r600 radeonsi vmware" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-02-04 21:47:57 UTC
Any kernel module must be built with the same compiler that had been used to build the kernel. This is a well-known feature of the kernel build system which helps to guarantee that the kernel and its modules have the same ABI.

If you built your kernel with gcc-4.5 and then updated to gcc-4.6, you have two choices:
1. rebuild the kernel with gcc-4.6 and reboot; or
2. temporarily switch back to gcc-4.5 using gcc-config to build any additional kernel modules, and then switch back to gcc-4.6 when finished.
Comment 2 renesanso 2013-02-05 04:41:50 UTC
Yes, worked with kernel, compiled by gcc 4.6 . Thanks for explanation.