Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 274565 - include/linux/compiler-gcc4.h:8:4: error: #error Your version of gcc miscompiles the __weak directive
Summary: include/linux/compiler-gcc4.h:8:4: error: #error Your version of gcc miscompi...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-17 22:09 UTC by peter Koegel
Modified: 2009-06-21 20:51 UTC (History)
1 user (show)

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 peter Koegel 2009-06-17 22:09:53 UTC
emerge -Dup world
emerge -u gentoo-sources
genkernel all
I try gcc-4.3.3-r2 and gcc-4.4.0
================================
Log:
================================
genkernel all
* Gentoo Linux Genkernel; Version 3.4.8
* Running with options: all

* Linux Kernel 2.6.30-gentoo-r1 for x86...
* kernel: >> Running mrproper...
* config: Using config from /usr/share/genkernel/x86/kernel-config-2.6
*         Previous config backed up to .config.bak
*         >> Running oldconfig...
* kernel: >> Cleaning...
* ERROR: Failed to compile the "prepare" target...

* -- Grepping log... --

  SHIPPED scripts/kconfig/lex.zconf.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf -o arch/x86/Kconfig
.config:247:warning: symbol value 'm' invalid for ACPI_DOCK
.config:1272:warning: symbol value 'm' invalid for FIXED_PHY
.config:1595:warning: symbol value 'm' invalid for ISDN
.config:2562:warning: symbol value 'm' invalid for RTC_INTF_SYSFS
.config:2563:warning: symbol value 'm' invalid for RTC_INTF_PROC
.config:2564:warning: symbol value 'm' invalid for RTC_INTF_DEV
--
    2. MMConfig (PCI_GOMMCONFIG)
    3. Direct (PCI_GODIRECT)
  > 4. Any (PCI_GOANY)
  choice[1-4?]: 4
Support for DMA Remapping Devices (EXPERIMENTAL) (DMAR) [N/y/?] (NEW) PCI Express support (PCIEPORTBUS) [Y/n/?] y
  Root Port Advanced Error Reporting support (PCIEAER) [Y/n/?] y
--
  * Please see Documentation/ide/ide.txt for help/info on IDE drives
  *
  Support for SATA (deprecated; conflicts with libata SATA driver) (BLK_DEV_IDE_SATA) [N/y/?] n
  generic ATA/ATAPI disk support (IDE_GD) [Y/n/m/?] (NEW)     ATA disk support (IDE_GD_ATA) [Y/n/?] (NEW)     ATAPI floppy support (IDE_GD_ATAPI) [N/y/?] (NEW)   PCMCIA IDE support (BLK_DEV_IDECS) [M/n/?] m
  Cardbus IDE support (Delkin/ASKA/Workbit) (BLK_DEV_DELKIN) [N/m/y/?] (NEW)   Include IDE/ATAPI CDROM support (BLK_DEV_IDECD) [Y/n/m/?] y
    Verbose error logging for IDE/ATAPI CDROM driver (BLK_DEV_IDECD_VERBOSE_ERRORS) [Y/n/?] (NEW)   Include IDE/ATAPI TAPE support (BLK_DEV_IDETAPE) [M/n/y/?] m
--
SCSI media changer support (CHR_DEV_SCH) [M/n/y/?] m
*
* Some SCSI devices (e.g. CD jukebox) support multiple LUNs
*
Probe all LUNs on each SCSI device (SCSI_MULTI_LUN) [N/y/?] n
Verbose SCSI error reporting (kernel size +=12K) (SCSI_CONSTANTS) [N/y/?] n
--
    Compile in debug mode (AIC94XX_DEBUG) [N/y/?] n
  Adaptec I2O RAID support  (SCSI_DPT_I2O) [M/n/y/?] m
  AdvanSys SCSI support (SCSI_ADVANSYS) [M/n/y/?] m
  Always IN2000 SCSI support (SCSI_IN2000) [M/n/y/?] m
  ARECA (ARC11xx/12xx/13xx/16xx) SATA/SAS RAID Host Adapter (SCSI_ARCMSR) [M/n/y/?] m
    Enable PCI Error Recovery Capability in Areca Driver(ARCMSR) (SCSI_ARCMSR_AER) [N/y/?] (NEW)   LSI Logic New Generation RAID Device Drivers (MEGARAID_NEWGEN) [Y/n/?] y
--
  O2CB Kernelspace Clustering (OCFS2_FS_O2CB) [Y/n/m/?] (NEW)   OCFS2 Userspace Clustering (OCFS2_FS_USERSPACE_CLUSTER) [Y/n/m/?] (NEW)   OCFS2 statistics (OCFS2_FS_STATS) [Y/n/?] (NEW)   OCFS2 logging support (OCFS2_DEBUG_MASKLOG) [Y/n/?] y
  OCFS2 expensive checks (OCFS2_DEBUG_FS) [N/y/?] (NEW)   OCFS2 POSIX Access Control Lists (OCFS2_FS_POSIX_ACL) [N/y/?] (NEW) Btrfs filesystem (EXPERIMENTAL) Unstable disk format (BTRFS_FS) [N/m/y/?] (NEW) Dnotify support (DNOTIFY) [Y/n/?] y
Inotify file change notification support (INOTIFY) [Y/n/?] y
  Inotify support for userspace (INOTIFY_USER) [Y/n/?] y
Quota support (QUOTA) [Y/?] y
  Report quota messages through netlink interface (QUOTA_NETLINK_INTERFACE) [N/y/?] (NEW)   Print quota warnings to console (OBSOLETE) (PRINT_QUOTA_WARNING) [Y/n/?] (NEW) Old quota format support (QFMT_V1) [N/m/y/?] (NEW) Quota format v2 support (QFMT_V2) [N/m/y/?] (NEW) Kernel automounter support (AUTOFS_FS) [N/m/y/?] n
--
                 from include/linux/stddef.h:4,
                 from include/linux/posix_types.h:4,
                 from include/linux/types.h:14,
                 from include/linux/page-flags.h:8,
                 from kernel/bounds.c:9:
include/linux/compiler-gcc4.h:8:4: error: #error Your version of gcc miscompiles the __weak directive
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
* Gentoo Linux Genkernel; Version 3.4.8
* Running with options: all

* ERROR: Failed to compile the "prepare" target...

* -- End log... --




Reproducible: Always

Steps to Reproduce:
1.emerge -Dup world
2. emerge -u gentoo-sources
3. genkernel all or  genkernel --menuconfig --bootloader=grub all

Actual Results:  
ERROR: Failed to compile the "prepare" target...


System uname: Linux-2.6.26-gentoo-r1-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 17 Jun 2009 19:30:01 +0000
app-shells/bash:     4.0_p24
dev-java/java-config: 1.3.7, 2.1.8
dev-lang/python:     2.4.4-r4, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde ldap libnotify mad midi mikmod mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis win32codecs x86 xml xorg xulrunner xv 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 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Mike Auty (RETIRED) gentoo-dev 2009-06-21 20:51:03 UTC
Hi there, from what I've read, this issue should only occur with gcc-4.1.  Could you please post the output of "gcc-config -l" and if it has a star next to gcc-4.1 then try running gcc-config followed by one of the numbers next to gcc-4.3/gcc-4.4 (for example "gcc-config 2")...