Summary: | x11-misc/lightdm-1.2.2 with gcc-4.7 and -D_FORTIFY_SOURCE > 0 - /usr/include/bits/unistd.h:266:1: error: inlining failed in call to always_inline 'getgroups': function not inlinable | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | iGentoo <AlphatPC> |
Component: | [OLD] Unspecified | Assignee: | Markos Chandras (RETIRED) <hwoarang> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dlan, gmiramir, jrmalaq, SuloevDmitry |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://bugs.launchpad.net/lightdm/+bug/999884 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 390247 | ||
Attachments: | build.log |
Description
iGentoo
2012-04-17 16:31:05 UTC
Not compile lightdm-1.2.2 with gcc-4.5.3-r2 witch CFLAGS='-O3' Compile fine lightdm-1.2.2 with gcc-4.5.3-r2 witch CFLAGS='-O2' (In reply to comment #1) > Not compile lightdm-1.2.2 with gcc-4.5.3-r2 witch CFLAGS='-O3' > Compile fine lightdm-1.2.2 with gcc-4.5.3-r2 witch CFLAGS='-O2' This has nothing to do with this bug Error is the same: /usr/include/bits/unistd.h:266:1: error: inlining failed in call to always_inline 'getgroups': function not inlinable Same problem for me. What about version 1.2.2? (In reply to comment #5) > What about version 1.2.2? Same problem. Compiles on gcc-4.7 with --disable-tests. The current Debian temporary solution as shown here: https://launchpad.net/debian/+source/lightdm/1.2.2-1 debian guys disable tests @@ -13,7 +13,7 @@ LICENSE="GPL-3 LGPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="+introspection qt4" +IUSE="+introspection qt4 test" RDEPEND="dev-libs/glib:2 dev-libs/libxml2 @@ -65,6 +65,7 @@ econf --localstatedir=/var \ --disable-static \ $(use_enable introspection) \ + $(use_enable test tests) \ $(use_enable qt4 liblightdm-qt) \ --with-user-session=${_session} \ --with-greeter-session=${_greeter} \ The upstream bug was closed as invalid and I am not particularily happy about this. Also, disabling the tests is not a solution but a workaround. This will remain open until the next gcc-4.7 and lightdm version for further testing sed -i -e "s/getgroups/lightdm_&" test/src/libsystem.c (In reply to comment #10) > sed -i -e "s/getgroups/lightdm_&" test/src/libsystem.c tested, it works! minor typo fix sed -i -e "s/getgroups/lightdm_/" tests/src/libsystem.c Can you still reproduce it with gcc-4.7.1? Just tried. I still fails with gcc-4.7.1 (In reply to comment #13) > Just tried. I still fails with gcc-4.7.1 what's the problem?? here either fix from comment 8 or 11 works for me. (with comment 8, USE disable -test) Disabling tests is a workaround not an fix. Renaming the function in the code to avoid namespace pollution seems correct but we need to be in sync with upstream (In reply to comment #11) > (In reply to comment #10) > > sed -i -e "s/getgroups/lightdm_&" test/src/libsystem.c > > tested, it works! minor typo fix > sed -i -e "s/getgroups/lightdm_/" tests/src/libsystem.c You forgot the & or otherwise that will result in getgroups getting renamed as lightdm_ instead of lightdm_getgroups. This has been reported upstream, https://bugs.launchpad.net/lightdm/+bug/999884 https://bugs.launchpad.net/lightdm/+bug/1015396 So I've applied the sed in Portage while fixing pam.d files to respect system-local-login in -r2. |