Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 616760 - sys-cluster/glusterfs-3.10.1 : /.../sysmacros.h:57:45: error: attempt to use poisoned "system"
Summary: sys-cluster/glusterfs-3.10.1 : /.../sysmacros.h:57:45: error: attempt to use ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2017-04-27 16:47 UTC by Toralf Förster
Modified: 2017-11-28 10:11 UTC (History)
6 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,5.58 KB, text/plain)
2017-04-27 16:47 UTC, Toralf Förster
Details
config.log.tbz2 (config.log.tbz2,26.03 KB, application/x-bzip)
2017-04-27 16:47 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,395.00 KB, text/plain)
2017-04-27 16:47 UTC, Toralf Förster
Details
environment (environment,168.57 KB, text/plain)
2017-04-27 16:47 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,34.17 KB, application/x-bzip)
2017-04-27 16:48 UTC, Toralf Förster
Details
sys-cluster:glusterfs-3.10.1:20170427-113918.log (sys-cluster:glusterfs-3.10.1:20170427-113918.log,38.01 KB, text/plain)
2017-04-27 16:48 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,45.07 KB, application/x-bzip)
2017-04-27 16:48 UTC, Toralf Förster
Details
pragma_exempt.patch (pragma_exempt.patch,440 bytes, patch)
2017-10-04 14:35 UTC, Ivan Dorna
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-04-27 16:47:45 UTC
                 from /var/tmp/portage/sys-cluster/glusterfs-3.10.1/work/glusterfs-3.10.1/libglusterfs/src/common-utils.h:44,
                 from /var/tmp/portage/sys-cluster/glusterfs-3.10.1/work/glusterfs-3.10.1/libglusterfs/src/dict.c:20:
/usr/include/sys/sysmacros.h:57:45: error: attempt to use poisoned "system"
   directly.  If you did not intend to use a system-defined macro\n\
                                             ^
make[4]: *** [Makefile:958: libglusterfs_la-dict.lo] Error 1

  -----------------------------------------------------------------

  This is an unstable amd64 chroot image (named 13.0-no-multilib_20170418-203001) at a hardened host acting as a tinderbox.

  -----------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-5.4.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.6 (fallback)
  [3]   python2.7 (fallback)
  [4]   pypy3 (fallback)
  [5]   pypy (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems) *
  [2]   ruby22 (with Rubygems)
Comment 1 Toralf Förster gentoo-dev 2017-04-27 16:47:49 UTC
Created attachment 471074 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-04-27 16:47:51 UTC
Created attachment 471076 [details]
config.log.tbz2
Comment 3 Toralf Förster gentoo-dev 2017-04-27 16:47:54 UTC
Created attachment 471078 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-04-27 16:47:57 UTC
Created attachment 471080 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2017-04-27 16:48:01 UTC
Created attachment 471082 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-04-27 16:48:04 UTC
Created attachment 471084 [details]
sys-cluster:glusterfs-3.10.1:20170427-113918.log
Comment 7 Toralf Förster gentoo-dev 2017-04-27 16:48:08 UTC
Created attachment 471086 [details]
temp.tbz2
Comment 8 Juergen Rose 2017-08-20 06:13:35 UTC
Almost 4 month later ...
Is there any patch?
Comment 9 Mikko Kurkela 2017-08-22 20:19:25 UTC
Workaround:
1) sudo su -

as root:
2) export EPATCH_USER_EXCLUDE="00_all_0005-sys-types.h-drop-sys-sysmacros.h-include.patch"
3) emerge glibc
4) unset EPATCH_USER_EXCLUDE
5) emerge glusterfs

if you want glibc as it was:
6) emerge glibc

I know, it's a pain but that's how I managed to get this working. With the patch every version of GlusterFS fails currently.
Comment 10 Mikko Kurkela 2017-08-22 20:23:49 UTC
To be more precise, GlusterFS fails to emerge on my system currently.
Comment 11 Bernd Feige 2017-08-31 15:34:24 UTC
I now digged a bit into this. The error message indicates that /usr/include/sys/sysmacros.h itself, line number 57, is the place of use of the poisoned preprocessor symbol "system", and indeed, replacing "system-defined" for example by "systemdefined" lets glusterfs build correctly. Note that this is in what is meant to be a warning message, unquoted only as a hack to have "symbol" replaced within it.
But alas, this also allows the "system" preprocessor symbol to match...

I don't know why this triggers specifically in glusterfs. Must be the specific includes used. Anyway this should not happen.
/usr/include/sys/sysmacros.h is part of sys-libs/glibc-2.25-r4 as was already noted.
Comment 12 James Le Cuirot gentoo-dev 2017-09-07 22:29:19 UTC
I hit this on arm and I wondered whether this was fixed in 3.12.0 so I hashed out a new ebuild with several improvements. I didn't encounter the problem on amd64 so I figured it was fixed until I then tried the new version on arm. I wonder why it doesn't affect my amd64 system. I'll try to work this out before I get 3.12.0 into the tree.
Comment 13 James Le Cuirot gentoo-dev 2017-09-08 23:25:18 UTC
I've found the cause and submitted a fix upstream. I have also submitted a pull request to Gentoo for adding 3.12.0 to the tree. That includes the fix.

https://github.com/gluster/glusterfs/pull/320
https://github.com/gentoo/gentoo/pull/5667
Comment 14 Ivan Dorna 2017-10-04 14:31:32 UTC
Same problem here, same case:

I've asked on irc on various channel, and one answer include this link:

https://bugzilla.redhat.com/show_bug.cgi?id=1494654

attached to the ticket, there is the proposed patch.

Thanks
Ivan
Comment 15 Ivan Dorna 2017-10-04 14:35:04 UTC
Created attachment 497598 [details, diff]
pragma_exempt.patch

the patch reported on RedHat bug tracking related to this bug.

https://bugzilla.redhat.com/show_bug.cgi?id=1494654
Comment 16 Austin S. Hemmelgarn 2017-10-06 14:32:27 UTC
The attached patch fixes the issue reliably here, both for the current stable version (3.6.5), and the current ~amd64 version (3.10.1).
Comment 17 Ivan Dorna 2017-10-09 14:53:08 UTC
please remind: gluaster website report 3.10.6 as stable, and 3.12 as testing, please, dump versions to maintain alignment.
Comment 18 James Le Cuirot gentoo-dev 2017-10-22 14:18:41 UTC
3.12.2 is now up. This needs to be stabilised later.
Comment 19 James Le Cuirot gentoo-dev 2017-11-28 10:11:13 UTC
3.12.3 is stable now and old versions are gone.