Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 364285 - sys-libs/libsmbios users -Werror during build (and will not compile against gcc-4.6.0)
Summary: sys-libs/libsmbios users -Werror during build (and will not compile against g...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: werror gcc-4.6
  Show dependency tree
 
Reported: 2011-04-20 20:20 UTC by Billy DeVincentis
Modified: 2011-05-29 10:11 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,38.63 KB, text/plain)
2011-04-20 20:20 UTC, Billy DeVincentis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Billy DeVincentis 2011-04-20 20:20:07 UTC
SmbiosFactory.Tpo -c src/libsmbios_c++/smbios/SmbiosFactory.cpp  -fPIC -DPIC -o src/libsmbios_c++/smbios/.libs/out_libsmbios_la-SmbiosFactory.o
make[1]: *** [src/libsmbios_c/memory/out_libsmbios_c_la-memory_linux.lo] Error 1
In file included from ./src/include/smbios/config.hpp:36:0,
                 from ./src/include/smbios/compat.h:23,
                 from ./src/include/smbios/IObserver.h:23,
                 from ./src/libsmbios_c++/common/CmosRWImpl.h:21,
                 from src/libsmbios_c++/cmos/CmosRWFactory.cpp:20:
./src/include/smbios/config/compiler/gcc.hpp:120:7: error: #warning "Unknown compiler version - please run the configure tests and report the results" [-Werror=cpp]
cc1: all warnings being treated as errors

libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./out/include -I./out/include -I./src/include -DLIBSMBIOS_LOCALEDIR=\"/usr/share/locale\" -I./src/libsmbios_c++/common -Werror -Wall -march=native -O2 -pipe -MT src/libsmbios_c++/common/out_libsmbios_la-Observer.lo -MD -MP -MF src/libsmbios_c++/common/.deps/out_libsmbios_la-Observer.Tpo -c src/libsmbios_c++/common/Observer.cpp  -fPIC -DPIC -o src/libsmbios_c++/common/.libs/out_libsmbios_la-Observer.o
make[1]: *** [src/libsmbios_c/smi/out_libsmbios_c_la-smi_linux.lo] Error 1
In file included from ./src/include/smbios/config.hpp:36:0,
                 from ./src/include/smbios/compat.h:23,
                 from src/libsmbios_c++/smbios/SmbiosFactory.cpp:21:
./src/include/smbios/config/compiler/gcc.hpp:120:7: error: #warning "Unknown compiler version - please run the configure tests and report the results" [-Werror=cpp]
In file included from ./src/include/smbios/config.hpp:36:0,
                 from ./src/include/smbios/compat.h:23,
                 from src/libsmbios_c++/rbu/RbuHdr.cpp:20:
./src/include/smbios/config/compiler/gcc.hpp:120:7: error: #warning "Unknown compiler version - please run the configure tests and report the results" [-Werror=cpp]
In file included from ./src/include/smbios/config.hpp:36:0,
                 from ./src/include/smbios/compat.h:23,
                 from ./src/include/smbios/IObserver.h:23,
                 from src/libsmbios_c++/common/Observer.cpp:20:
./src/include/smbios/config/compiler/gcc.hpp:120:7: error: #warning "Unknown compiler version - please run the configure tests and report the results" [-Werror=cpp]
In file included from ./src/include/smbios/config.hpp:36:0,
                 from ./src/include/smbios/compat.h:23,
                 from src/libsmbios_c++/common/ascii2enUS_scancode.cpp:21:
./src/include/smbios/config/compiler/gcc.hpp:120:7: error: #warning "Unknown compiler version - please run the configure tests and report the results" [-Werror=cpp]
cc1plus: all warnings being treated as errors

cc1plus: all warnings being treated as errors

make[1]: *** [src/libsmbios_c++/rbu/out_libsmbios_la-Rbu_Linux.lo] Error 1
make[1]: *** [src/libsmbios_c++/common/out_libsmbios_la-ascii2enUS_scancode.lo] Error 1
cc1plus: all warnings being treated as errors

make[1]: *** [src/libsmbios_c++/memory/out_libsmbios_la-Memory_Linux.lo] Error 1
cc1plus: all warnings being treated as errors

make[1]: *** [src/libsmbios_c++/common/out_libsmbios_la-Observer.lo] Error 1
cc1plus: all warnings being treated as errors

make[1]: *** [src/libsmbios_c++/smbios/out_libsmbios_la-SmbiosStrategy_Linux.lo] Error 1
cc1plus: all warnings being treated as errors

make[1]: *** [src/libsmbios_c++/rbu/out_libsmbios_la-RbuHdr.lo] Error 1
cc1plus: all warnings being treated as errors

make[1]: *** [src/libsmbios_c++/cmos/out_libsmbios_la-CmosRW_LinuxIO.lo] Error 1
cc1plus: all warnings being treated as errors

make[1]: *** [src/libsmbios_c++/smi/out_libsmbios_la-Smi_Linux.lo] Error 1
cc1plus: all warnings being treated as errors

make[1]: *** [src/libsmbios_c++/memory/out_libsmbios_la-Memory.lo] Error 1
cc1plus: all warnings being treated as errors

make[1]: *** [src/libsmbios_c++/smbios/out_libsmbios_la-SmbiosFactory.lo] Error 1
cc1plus: all warnings being treated as errors

make[1]: *** [src/libsmbios_c++/cmos/out_libsmbios_la-CmosRW.lo] Error 1
cc1plus: all warnings being treated as errors

make[1]: *** [src/libsmbios_c++/cmos/out_libsmbios_la-CmosRWFactory.lo] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-libs/libsmbios-2.2.26/work/libsmbios-2.2.26'
make: *** [all-recursive] Error 1
emake failed
 * ERROR: sys-libs/libsmbios-2.2.26 failed (compile phase):
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 5375:  Called _eapi2_src_compile
 *     ebuild.sh, line  665:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =sys-libs/libsmbios-2.2.26',
 * the complete build log and the output of 'emerge -pqv =sys-libs/libsmbios-2.2.26'.
 * The complete build log is located at '/var/tmp/portage/sys-libs/libsmbios-2.2.26/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/libsmbios-2.2.26/temp/environment'.
 * S: '/var/tmp/portage/sys-libs/libsmbios-2.2.26/work/libsmbios-2.2.26'

>>> Failed to emerge sys-libs/libsmbios-2.2.26, Log file:

>>>  '/var/tmp/portage/sys-libs/libsmbios-2.2.26/temp/build.log'
 * 
 * The following package has failed to build or install:
 * 
 *  (sys-libs/libsmbios-2.2.26::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/sys-libs/libsmbios-2.2.26/temp/build.log'
 * 


Reproducible: Always




Linux1 billydv # emerge --info
Portage 2.2.0_alpha30 (default/linux/amd64/10.0/desktop, gcc-4.6.0, glibc-2.13-r2, 2.6.38-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-r2-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.0.2
Timestamp of tree: Mon, 18 Apr 2011 05:30: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.2
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.6.3-r1, 1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.5.2, 4.6.0
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
sys-kernel/linux-headers: 2.6.38
virtual/os-headers:  0
Repositories: gentoo miscellaneous
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
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/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going"
FEATURES="assume-digests binpkg-logs buildpkg distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j17 -l24"
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"
PORTDIR_OVERLAY="/usr/portage/local/miscellaneous"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib accessibility acl acpi aften alsa amd64 animate archive ares artworkextra audio audiofile avahi bash-completion beep berkdb bidi bittorrent bluetooth bookmarks branding bzip2 cairo cdda cddb cdio cdr chm cli clucene consolekit corefonts cpudetection cracklib crypt css cups curl cxx dbus declarative deprecated designer-plugin device-mapper dga directfb discouraged doc dri dts dv dvb dvd dvdnav dvdr ebook eds elisp emacs emboss emerald encode esd eselect examples exif expat extra-tools extras fam fat fax fbcon fbcondecor ffmpeg firefox flac flash fltk fontconfig foomaticdb fortran ftp fts3 fuse gcj gd gdbm gdu ggi gif gimp glep glib gnome gnutls gphoto2 gpm gstreamer gtk handbook hddtemp hfs hpcups hpijs html httpd hyperestraier iconv idn imagemagick imlib inkjar inotify ipv6 jack jadetex java jfs joystick jpeg jpeg2k kde kdrive kerberos konqueror lame lcms ldap libcaca libnotify libsamplerate lirc live lm_sensors mad mail matroska md5sum mdnsresponder-compat mikmod mime mjpeg mmx mmxext mng modules mono mozilla mp3 mp4 mpeg mplayer mudflap multilib musepack musicbrainz mysql nas nautilus ncurses networking new-login nls npp nptl nptlonly nsplugin ntfs objc odbc offensive ogg openal openexr opengl openmp osdmenu pam pango pcre pdf perl plasma png policykit postgres ppds pppd ps pulseaudio python qt3support qt4 quicktime raptor rar rdesktop readline realmedia reflection regex reiser4 reiserfs reports samba sametime scanner script sdl secure-delete semantic-desktop servletapi session sip skins slang slp smbclient smp sndfile snmp sound speech speex spell sql sqlite sse sse2 ssl startup-notification static-ppds stream subversion svg swat sysfs syslog tcpd templates themes theora threads thumbnail tidy tiff timidity tk tools truetype udev unicode unsupported usb utils v4l2 vcd vdpau vdr video vlm vorbis wav wavpack weather webkit wmf x264 xattr xcb xcomposite xfs xine xml xorg xpm xscreensaver xulrunner xv xvid xvmc zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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="evdev joystick keyboard mouse" 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="fbdev nvidia nv vesa" 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, INSTALL_MASK, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Linux1 billydv #
Comment 1 Billy DeVincentis 2011-04-20 20:20:45 UTC
Created attachment 270719 [details]
build.log
Comment 2 steveb 2011-05-28 08:33:41 UTC
A simple "sed -i -e "s:\-Werror[\t ]*::g" Makefile.am" src_configure() should work around this issue.

Or simply patching that test for GCC 4.5.x to check for GCC 4.6.x:
--- a/src/include/smbios_c/config/compiler/gcc.h 2010-06-11 17:31:01.000000000 +0200
+++ b/src/include/smbios_c/config/compiler/gcc.h 2011-05-28 10:28:16.706170622 +0200
@@ -24,7 +24,7 @@
 #  error "GCC versions < 2.90 not supported"
 #endif
 //
-#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5))
+#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 6))
 #  if defined(LIBSMBIOS_C_ASSERT_CONFIG)
 #     error "Unknown compiler version - please run the configure tests and report the results"
 #  else
--- a/src/include/smbios/config/compiler/gcc.hpp 2009-03-24 08:21:54.000000000 +0100
+++ b/src/include/smbios/config/compiler/gcc.hpp 2011-05-28 10:28:32.076170630 +0200
@@ -113,7 +113,7 @@
 #  error "Compiler not configured - please reconfigure"
 #endif
 //
-#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5))
+#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 6))
 #  if defined(LIBSMBIOS_ASSERT_CONFIG)
 #     error "Unknown compiler version - please run the configure tests and report the results"
 #  else
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-05-29 10:11:33 UTC
+  29 May 2011; Lars Wendler <polynomial-c@gentoo.org> libsmbios-2.2.26.ebuild,
+  +files/libsmbios-2.2.26-gcc46.patch:
+  Fixed building with >=gcc-4.6.0. Thanks to Billy DeVincentis for reporting
+  this issue in bug #364285 and to steveb for giving the right hints how to fix
+  this.
+