Summary: | sys-fs/udisks-1.99.0 broken with <gcc-4.6 fails with error: #pragma GCC diagnostic not allowed inside functions | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Manuel Rüger (RETIRED) <mrueg> |
Component: | New packages | Assignee: | Freedesktop bugs <freedesktop-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | coatzin, iqt4linux, milton, rjtupas, tommy |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.freedesktop.org/show_bug.cgi?id=52614 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 427550 | ||
Attachments: |
build.log
Failed build for sys-fs/udisks-1.99.0 emerge --info |
Description
Manuel Rüger (RETIRED)
2012-07-28 04:42:38 UTC
Changing gcc from 4.5.3 to 4.6.3 fixes the problem. 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) Reported here: http://bugs.freedesktop.org/show_bug.cgi?id=52614 Removing toolchain from CC since this is not a problem with it... *** Bug 428480 has been marked as a duplicate of this bug. *** 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)
Created attachment 320052 [details]
emerge --info
Is it possible to readd udisks-1.98.0 into portage until this issue is solved? (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 |