Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 428398 - sys-fs/udisks-1.99.0 broken with <gcc-4.6 fails with error: #pragma GCC diagnostic not allowed inside functions
Summary: sys-fs/udisks-1.99.0 broken with <gcc-4.6 fails with error: #pragma GCC diagn...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
: 428480 (view as bug list)
Depends on:
Blocks: 427550
  Show dependency tree
 
Reported: 2012-07-28 04:42 UTC by Manuel Rüger (RETIRED)
Modified: 2012-08-03 08:34 UTC (History)
5 users (show)

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


Attachments
build.log (build.log,57.71 KB, text/plain)
2012-07-28 04:42 UTC, Manuel Rüger (RETIRED)
Details
Failed build for sys-fs/udisks-1.99.0 (sys-fs:udisks-1.99.0:20120801-205228.log,26.87 KB, text/plain)
2012-08-02 12:16 UTC, Matt
Details
emerge --info (emerge_info,6.39 KB, text/plain)
2012-08-02 12:16 UTC, Matt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Rüger (RETIRED) gentoo-dev 2012-07-28 04:42:38 UTC
Created attachment 319490 [details]
build.log

emerge --info udisks:2
Portage 2.1.11.9 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.3, glibc-2.15-r2, 3.4.6-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.4.6-gentoo-x86_64-AMD_FX-tm-6100_Six-Core_Processor-with-gentoo-2.1
Timestamp of tree: Fri, 27 Jul 2012 23:00:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2, 4.6.3
sys-devel/gcc-config:     1.6
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo x-portage kde ruegerlay sunrise
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/Visual-Paradigm/Visual_Paradigm_for_UML/resources/product_edition.properties /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /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="--with-bdeps=y --jobs=3"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles multilib-strict news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j10"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/kde /var/lib/layman/ruegerlay /var/lib/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl acpi addressbook alsa amd64 apache2 apm archive audio autoipd avahi bash-completion berkdb bluetooth branding bzip2 cairo calendar cdda cddb cdio cdparanoia cdr cleartype cli consolekit cracklib crypt css ctype cups curl cxx dbus debugger declarative device-mapper dga dhcpcd dia dirac djvu dri dts dv dvb dvd dvdr dvipdfm ebook emboss encode exif extra extras fam fbcon fbcondecor ffmpeg firefox flac floppy fontconfig fortran ftp g3dvl gd gdbm gecko gif gimp git gnuplot gnutls gphoto2 gpm graphics gtk gui haskell httpd iconv icu id3 id3tag idn ieee1394 imagemagick ipv6 java javascript jpeg jpeg2k kde kipi kontact kpathsea lame lastfm latex latex3 lcms ldap libnotify llvm lua lzma mad matroska mdnsresponder-compat mime mjpeg mmx mng modules mp3 mp4 mpeg mplayer mudflap multilib musepack musicbrainz mysql ncurses networkmanager nls nptl nsplugin nspluginwrapper ntfsprogs ntlm ntp ocr ogg ogm opengl openmp optimization pam pango pcre pda pdf pdfimport perl pgo phonon php plasma plotutils png policykit ppds pppd prediction pstricks python qt3support qt4 quicktime rar raw rdesktop readline rss rtsp ruby samba sasl scanner schroedinger science sdl semantic-desktop session smp snmp speex spell sql sqlite sqlite3 sse sse2 sse4 ssh ssl ssse3 startup-notification subtitles subversion svg symlink syslog sysvipc taglib tcl tcpd tex4ht theora threads tiff tk truetype twolame udev udisks unicode upower usb vaapi vcd vcdx vim-syntax vlc vorbis vpx wavpack webkit webm wmf wxwidgets x264 xcb xcomposite xine xinerama xml xorg xscreensaver xulrunner xv xvid xvmc zeroconf zip zlib zsh-completion" 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="*" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="radeon fglrx" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

sys-fs/udisks-1.98.0 was built with the following:
USE="(consolekit) crypt gptfdisk introspection (multilib) (policykit) -debug -systemd"
Comment 1 Manuel Rüger (RETIRED) gentoo-dev 2012-07-28 04:54:29 UTC
Changing gcc from 4.5.3 to 4.6.3 fixes the problem.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2012-07-28 06:36:17 UTC
Search for line where it says "CC_CHECK_CFLAGS_APPEND" in configure.ac of udisks-1.99.0, and you will find out upstream added a lot of warning flags when changing from 1.98.0 to 1.99.0.

So "logically" you can try disabling them flag by flag once you hit the one with a problem, like:

Try building with CFLAGS="-Wno-pragmas" or CFLAGS="-Wno-shadow" or CFLAGS="-Wno-error" or ... (I'm nearly sure it's one of these)
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2012-07-28 09:03:38 UTC
Reported here:

http://bugs.freedesktop.org/show_bug.cgi?id=52614

Removing toolchain from CC since this is not a problem with it...
Comment 4 Rafał Mużyło 2012-07-29 02:42:01 UTC
*** Bug 428480 has been marked as a duplicate of this bug. ***
Comment 5 Matt 2012-08-02 12:16:33 UTC
Created attachment 320050 [details]
Failed build for sys-fs/udisks-1.99.0

I'm stopping by to say I'm having the same problem

Failed build for sys-fs/udisks-1.99.0

(will attach --info as well)
Comment 6 Matt 2012-08-02 12:16:52 UTC
Created attachment 320052 [details]
emerge --info
Comment 7 Bernd Waibel 2012-08-03 08:14:59 UTC
Is it possible to readd udisks-1.98.0 into portage until this issue is solved?
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2012-08-03 08:34:12 UTC
(In reply to comment #7)
> Is it possible to readd udisks-1.98.0 into portage until this issue is
> solved?

nope, both udisks-1.99.0 and gcc-4.6.x are ~arch, and there is no reason whatsoever to install udisks:2 in stable currently
heck, it's even optional in ~ərch and you can avoid it for every desktop for now

with that said, fixed 1.99.0 in tree now:

http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udisks/udisks-1.99.0.ebuild?r1=1.3&r2=1.4

http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udisks/files/udisks-2.x-pragma.patch?rev=1.1&content-type=text/plain