lttng-dev.lists.lttng.org archive mirror
 help / color / mirror / Atom feed
* [lttng-dev] userspace-rcu 0.12.2: build fails
@ 2021-02-18  1:36 Tomasz Kłoczko via lttng-dev
       [not found] ` <CABB28Cxfnmj7FyRTRJdgOJJ6UdSmf8Nd7ZeDt2CF_7FQMQhsVA@mail.gmail.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Tomasz Kłoczko via lttng-dev @ 2021-02-18  1:36 UTC (permalink / raw)
  To: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 68224 bytes --]

Hi,

Just tested 0.12.2 and lookd like build fails on compile test programs:

make[2]: Entering directory
'/home/tkloczko/rpmbuild/BUILD/userspace-rcu-0.12.2/tests/benchmark'
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common   -O2 -g -grecord-gcc-switches -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
test_urcu.o test_urcu.c
In file included from test_urcu.c:36:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu.c:24:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
In file included from ../../tests/common/../common/debug-yield.h:34,
                 from test_urcu.c:38:
../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’
follows non-static declaration
   38 | static inline int rand_r(unsigned int *seed)
      |                   ^~~~~~
In file included from test_urcu.c:25:
/usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with
type ‘int(unsigned int *)’
  459 | extern int rand_r (unsigned int *__seed) __THROW;
      |            ^~~~~~
make[2]: *** [Makefile:1321: test_urcu.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common  -DDYNAMIC_LINK_TEST  -O2 -g -grecord-gcc-switches
-pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64
-mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection
-fcf-protection -fdata-sections -ffunction-sections -flto=auto
-flto-partition=none -c -o test_urcu_dynamic_link-test_urcu.o `test -f
'test_urcu.c' || echo './'`test_urcu.c
In file included from test_urcu.c:36:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu.c:24:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
In file included from ../../tests/common/../common/debug-yield.h:34,
                 from test_urcu.c:38:
../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’
follows non-static declaration
   38 | static inline int rand_r(unsigned int *seed)
      |                   ^~~~~~
In file included from test_urcu.c:25:
/usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with
type ‘int(unsigned int *)’
  459 | extern int rand_r (unsigned int *__seed) __THROW;
      |            ^~~~~~
make[2]: *** [Makefile:1370: test_urcu_dynamic_link-test_urcu.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common  -DRCU_SIGNAL  -O2 -g -grecord-gcc-switches -pipe
-Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64
-mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection
-fcf-protection -fdata-sections -ffunction-sections -flto=auto
-flto-partition=none -c -o test_urcu_signal-test_urcu.o `test -f
'test_urcu.c' || echo './'`test_urcu.c
In file included from test_urcu.c:36:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu.c:24:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
In file included from ../../tests/common/../common/debug-yield.h:34,
                 from test_urcu.c:38:
../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’
follows non-static declaration
   38 | static inline int rand_r(unsigned int *seed)
      |                   ^~~~~~
In file included from test_urcu.c:25:
/usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with
type ‘int(unsigned int *)’
  459 | extern int rand_r (unsigned int *__seed) __THROW;
      |            ^~~~~~
make[2]: *** [Makefile:1552: test_urcu_signal-test_urcu.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common  -DRCU_SIGNAL -DDYNAMIC_LINK_TEST  -O2 -g
-grecord-gcc-switches -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
test_urcu_signal_dynamic_link-test_urcu.o `test -f 'test_urcu.c' || echo
'./'`test_urcu.c
In file included from test_urcu.c:36:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu.c:24:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
In file included from ../../tests/common/../common/debug-yield.h:34,
                 from test_urcu.c:38:
../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’
follows non-static declaration
   38 | static inline int rand_r(unsigned int *seed)
      |                   ^~~~~~
In file included from test_urcu.c:25:
/usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with
type ‘int(unsigned int *)’
  459 | extern int rand_r (unsigned int *__seed) __THROW;
      |            ^~~~~~
make[2]: *** [Makefile:1566: test_urcu_signal_dynamic_link-test_urcu.o]
Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common   -O2 -g -grecord-gcc-switches -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
test_rwlock.o test_rwlock.c
In file included from test_rwlock.c:36:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_rwlock.c:24:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
make[2]: *** [Makefile:1321: test_rwlock.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common   -O2 -g -grecord-gcc-switches -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
test_perthreadlock.o test_perthreadlock.c
In file included from test_perthreadlock.c:36:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_perthreadlock.c:24:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
make[2]: *** [Makefile:1321: test_perthreadlock.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common  -DDEBUG_YIELD  -O2 -g -grecord-gcc-switches -pipe
-Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64
-mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection
-fcf-protection -fdata-sections -ffunction-sections -flto=auto
-flto-partition=none -c -o test_urcu_yield-test_urcu.o `test -f
'test_urcu.c' || echo './'`test_urcu.c
In file included from test_urcu.c:36:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu.c:24:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
In file included from ../../tests/common/../common/debug-yield.h:34,
                 from test_urcu.c:38:
../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’
follows non-static declaration
   38 | static inline int rand_r(unsigned int *seed)
      |                   ^~~~~~
In file included from test_urcu.c:25:
/usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with
type ‘int(unsigned int *)’
  459 | extern int rand_r (unsigned int *__seed) __THROW;
      |            ^~~~~~
make[2]: *** [Makefile:1678: test_urcu_yield-test_urcu.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common  -DRCU_SIGNAL -DDEBUG_YIELD  -O2 -g
-grecord-gcc-switches -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
test_urcu_signal_yield-test_urcu.o `test -f 'test_urcu.c' || echo
'./'`test_urcu.c
In file included from test_urcu.c:36:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu.c:24:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
In file included from ../../tests/common/../common/debug-yield.h:34,
                 from test_urcu.c:38:
../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’
follows non-static declaration
   38 | static inline int rand_r(unsigned int *seed)
      |                   ^~~~~~
In file included from test_urcu.c:25:
/usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with
type ‘int(unsigned int *)’
  459 | extern int rand_r (unsigned int *__seed) __THROW;
      |            ^~~~~~
make[2]: *** [Makefile:1622: test_urcu_signal_yield-test_urcu.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common  -DRCU_MB  -O2 -g -grecord-gcc-switches -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
test_urcu_mb-test_urcu.o `test -f 'test_urcu.c' || echo './'`test_urcu.c
In file included from test_urcu.c:36:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu.c:24:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
In file included from ../../tests/common/../common/debug-yield.h:34,
                 from test_urcu.c:38:
../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’
follows non-static declaration
   38 | static inline int rand_r(unsigned int *seed)
      |                   ^~~~~~
In file included from test_urcu.c:25:
/usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with
type ‘int(unsigned int *)’
  459 | extern int rand_r (unsigned int *__seed) __THROW;
      |            ^~~~~~
make[2]: *** [Makefile:1482: test_urcu_mb-test_urcu.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common   -O2 -g -grecord-gcc-switches -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
test_urcu_qsbr.o test_urcu_qsbr.c
In file included from test_urcu_qsbr.c:36:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_qsbr.c:24:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
In file included from ../common/debug-yield.h:34,
                 from test_urcu_qsbr.c:38:
../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’
follows non-static declaration
   38 | static inline int rand_r(unsigned int *seed)
      |                   ^~~~~~
In file included from test_urcu_qsbr.c:25:
/usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with
type ‘int(unsigned int *)’
  459 | extern int rand_r (unsigned int *__seed) __THROW;
      |            ^~~~~~
make[2]: *** [Makefile:1321: test_urcu_qsbr.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common   -O2 -g -grecord-gcc-switches -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
test_mutex.o test_mutex.c
In file included from test_mutex.c:36:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_mutex.c:24:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
make[2]: *** [Makefile:1321: test_mutex.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common   -O2 -g -grecord-gcc-switches -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
test_urcu_gc.o test_urcu_gc.c
In file included from test_urcu_gc.c:36:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_gc.c:24:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
In file included from ../common/debug-yield.h:34,
                 from test_urcu_gc.c:38:
../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’
follows non-static declaration
   38 | static inline int rand_r(unsigned int *seed)
      |                   ^~~~~~
In file included from test_urcu_gc.c:25:
/usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with
type ‘int(unsigned int *)’
  459 | extern int rand_r (unsigned int *__seed) __THROW;
      |            ^~~~~~
make[2]: *** [Makefile:1321: test_urcu_gc.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common  -DRCU_SIGNAL  -O2 -g -grecord-gcc-switches -pipe
-Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64
-mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection
-fcf-protection -fdata-sections -ffunction-sections -flto=auto
-flto-partition=none -c -o test_urcu_signal_gc-test_urcu_gc.o `test -f
'test_urcu_gc.c' || echo './'`test_urcu_gc.c
In file included from test_urcu_gc.c:36:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_gc.c:24:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
In file included from ../common/debug-yield.h:34,
                 from test_urcu_gc.c:38:
../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’
follows non-static declaration
   38 | static inline int rand_r(unsigned int *seed)
      |                   ^~~~~~
In file included from test_urcu_gc.c:25:
/usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with
type ‘int(unsigned int *)’
  459 | extern int rand_r (unsigned int *__seed) __THROW;
      |            ^~~~~~
make[2]: *** [Makefile:1580: test_urcu_signal_gc-test_urcu_gc.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common  -DTEST_LOCAL_GC  -O2 -g -grecord-gcc-switches -pipe
-Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64
-mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection
-fcf-protection -fdata-sections -ffunction-sections -flto=auto
-flto-partition=none -c -o test_urcu_lgc-test_urcu_gc.o `test -f
'test_urcu_gc.c' || echo './'`test_urcu_gc.c
In file included from test_urcu_gc.c:36:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_gc.c:24:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
In file included from ../common/debug-yield.h:34,
                 from test_urcu_gc.c:38:
../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’
follows non-static declaration
   38 | static inline int rand_r(unsigned int *seed)
      |                   ^~~~~~
In file included from test_urcu_gc.c:25:
/usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with
type ‘int(unsigned int *)’
  459 | extern int rand_r (unsigned int *__seed) __THROW;
      |            ^~~~~~
make[2]: *** [Makefile:1468: test_urcu_lgc-test_urcu_gc.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common  -DRCU_MB  -O2 -g -grecord-gcc-switches -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
test_urcu_mb_gc-test_urcu_gc.o `test -f 'test_urcu_gc.c' || echo
'./'`test_urcu_gc.c
In file included from test_urcu_gc.c:36:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_gc.c:24:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
In file included from ../common/debug-yield.h:34,
                 from test_urcu_gc.c:38:
../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’
follows non-static declaration
   38 | static inline int rand_r(unsigned int *seed)
      |                   ^~~~~~
In file included from test_urcu_gc.c:25:
/usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with
type ‘int(unsigned int *)’
  459 | extern int rand_r (unsigned int *__seed) __THROW;
      |            ^~~~~~
make[2]: *** [Makefile:1496: test_urcu_mb_gc-test_urcu_gc.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common   -O2 -g -grecord-gcc-switches -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
test_urcu_qsbr_gc.o test_urcu_qsbr_gc.c
In file included from test_urcu_qsbr_gc.c:36:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_qsbr_gc.c:24:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
In file included from ../common/debug-yield.h:34,
                 from test_urcu_qsbr_gc.c:38:
../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’
follows non-static declaration
   38 | static inline int rand_r(unsigned int *seed)
      |                   ^~~~~~
In file included from test_urcu_qsbr_gc.c:25:
/usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with
type ‘int(unsigned int *)’
  459 | extern int rand_r (unsigned int *__seed) __THROW;
      |            ^~~~~~
make[2]: *** [Makefile:1321: test_urcu_qsbr_gc.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common  -DTEST_LOCAL_GC  -O2 -g -grecord-gcc-switches -pipe
-Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64
-mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection
-fcf-protection -fdata-sections -ffunction-sections -flto=auto
-flto-partition=none -c -o test_urcu_qsbr_lgc-test_urcu_qsbr_gc.o `test -f
'test_urcu_qsbr_gc.c' || echo './'`test_urcu_qsbr_gc.c
In file included from test_urcu_qsbr_gc.c:36:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_qsbr_gc.c:24:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
In file included from ../common/debug-yield.h:34,
                 from test_urcu_qsbr_gc.c:38:
../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’
follows non-static declaration
   38 | static inline int rand_r(unsigned int *seed)
      |                   ^~~~~~
In file included from test_urcu_qsbr_gc.c:25:
/usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with
type ‘int(unsigned int *)’
  459 | extern int rand_r (unsigned int *__seed) __THROW;
      |            ^~~~~~
make[2]: *** [Makefile:1538: test_urcu_qsbr_lgc-test_urcu_qsbr_gc.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common  -DRCU_SIGNAL -DTEST_LOCAL_GC  -O2 -g
-grecord-gcc-switches -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
test_urcu_signal_lgc-test_urcu_gc.o `test -f 'test_urcu_gc.c' || echo
'./'`test_urcu_gc.c
In file included from test_urcu_gc.c:36:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_gc.c:24:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
In file included from ../common/debug-yield.h:34,
                 from test_urcu_gc.c:38:
../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’
follows non-static declaration
   38 | static inline int rand_r(unsigned int *seed)
      |                   ^~~~~~
In file included from test_urcu_gc.c:25:
/usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with
type ‘int(unsigned int *)’
  459 | extern int rand_r (unsigned int *__seed) __THROW;
      |            ^~~~~~
make[2]: *** [Makefile:1594: test_urcu_signal_lgc-test_urcu_gc.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common  -DTEST_LOCAL_GC -DRCU_MB  -O2 -g
-grecord-gcc-switches -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
test_urcu_mb_lgc-test_urcu_gc.o `test -f 'test_urcu_gc.c' || echo
'./'`test_urcu_gc.c
In file included from test_urcu_gc.c:36:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_gc.c:24:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
In file included from ../common/debug-yield.h:34,
                 from test_urcu_gc.c:38:
../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’
follows non-static declaration
   38 | static inline int rand_r(unsigned int *seed)
      |                   ^~~~~~
In file included from test_urcu_gc.c:25:
/usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with
type ‘int(unsigned int *)’
  459 | extern int rand_r (unsigned int *__seed) __THROW;
      |            ^~~~~~
make[2]: *** [Makefile:1510: test_urcu_mb_lgc-test_urcu_gc.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common  -DDYNAMIC_LINK_TEST  -O2 -g -grecord-gcc-switches
-pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64
-mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection
-fcf-protection -fdata-sections -ffunction-sections -flto=auto
-flto-partition=none -c -o test_urcu_qsbr_dynamic_link-test_urcu_qsbr.o
`test -f 'test_urcu_qsbr.c' || echo './'`test_urcu_qsbr.c
In file included from test_urcu_qsbr.c:36:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_qsbr.c:24:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
In file included from ../common/debug-yield.h:34,
                 from test_urcu_qsbr.c:38:
../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’
follows non-static declaration
   38 | static inline int rand_r(unsigned int *seed)
      |                   ^~~~~~
In file included from test_urcu_qsbr.c:25:
/usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with
type ‘int(unsigned int *)’
  459 | extern int rand_r (unsigned int *__seed) __THROW;
      |            ^~~~~~
make[2]: *** [Makefile:1524: test_urcu_qsbr_dynamic_link-test_urcu_qsbr.o]
Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common   -O2 -g -grecord-gcc-switches -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
test_urcu_defer.o test_urcu_defer.c
In file included from test_urcu_defer.c:36:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_defer.c:24:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
In file included from ../common/debug-yield.h:34,
                 from test_urcu_defer.c:38:
../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’
follows non-static declaration
   38 | static inline int rand_r(unsigned int *seed)
      |                   ^~~~~~
In file included from test_urcu_defer.c:25:
/usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with
type ‘int(unsigned int *)’
  459 | extern int rand_r (unsigned int *__seed) __THROW;
      |            ^~~~~~
make[2]: *** [Makefile:1321: test_urcu_defer.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common   -O2 -g -grecord-gcc-switches -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
test_urcu_assign.o test_urcu_assign.c
In file included from test_urcu_assign.c:36:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_assign.c:24:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
In file included from ../common/debug-yield.h:34,
                 from test_urcu_assign.c:38:
../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’
follows non-static declaration
   38 | static inline int rand_r(unsigned int *seed)
      |                   ^~~~~~
In file included from test_urcu_assign.c:25:
/usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with
type ‘int(unsigned int *)’
  459 | extern int rand_r (unsigned int *__seed) __THROW;
      |            ^~~~~~
make[2]: *** [Makefile:1321: test_urcu_assign.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common  -DDYNAMIC_LINK_TEST  -O2 -g -grecord-gcc-switches
-pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64
-mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection
-fcf-protection -fdata-sections -ffunction-sections -flto=auto
-flto-partition=none -c -o test_urcu_assign_dynamic_link-test_urcu_assign.o
`test -f 'test_urcu_assign.c' || echo './'`test_urcu_assign.c
In file included from test_urcu_assign.c:36:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_assign.c:24:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
In file included from ../common/debug-yield.h:34,
                 from test_urcu_assign.c:38:
../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’
follows non-static declaration
   38 | static inline int rand_r(unsigned int *seed)
      |                   ^~~~~~
In file included from test_urcu_assign.c:25:
/usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with
type ‘int(unsigned int *)’
  459 | extern int rand_r (unsigned int *__seed) __THROW;
      |            ^~~~~~
make[2]: *** [Makefile:1342:
test_urcu_assign_dynamic_link-test_urcu_assign.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common   -O2 -g -grecord-gcc-switches -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
test_urcu_bp.o test_urcu_bp.c
In file included from test_urcu_bp.c:36:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_bp.c:24:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
In file included from ../common/debug-yield.h:34,
                 from test_urcu_bp.c:38:
../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’
follows non-static declaration
   38 | static inline int rand_r(unsigned int *seed)
      |                   ^~~~~~
In file included from test_urcu_bp.c:25:
/usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with
type ‘int(unsigned int *)’
  459 | extern int rand_r (unsigned int *__seed) __THROW;
      |            ^~~~~~
make[2]: *** [Makefile:1321: test_urcu_bp.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common  -DDYNAMIC_LINK_TEST  -O2 -g -grecord-gcc-switches
-pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64
-mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection
-fcf-protection -fdata-sections -ffunction-sections -flto=auto
-flto-partition=none -c -o test_urcu_bp_dynamic_link-test_urcu_bp.o `test
-f 'test_urcu_bp.c' || echo './'`test_urcu_bp.c
In file included from test_urcu_bp.c:36:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_bp.c:24:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
In file included from ../common/debug-yield.h:34,
                 from test_urcu_bp.c:38:
../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’
follows non-static declaration
   38 | static inline int rand_r(unsigned int *seed)
      |                   ^~~~~~
In file included from test_urcu_bp.c:25:
/usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with
type ‘int(unsigned int *)’
  459 | extern int rand_r (unsigned int *__seed) __THROW;
      |            ^~~~~~
make[2]: *** [Makefile:1356: test_urcu_bp_dynamic_link-test_urcu_bp.o]
Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common   -O2 -g -grecord-gcc-switches -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
test_urcu_lfq.o test_urcu_lfq.c
In file included from test_urcu_lfq.c:39:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_lfq.c:25:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
make[2]: *** [Makefile:1321: test_urcu_lfq.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common   -O2 -g -grecord-gcc-switches -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
test_urcu_wfq.o test_urcu_wfq.c
In file included from test_urcu_wfq.c:39:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_wfq.c:25:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
make[2]: *** [Makefile:1321: test_urcu_wfq.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common   -O2 -g -grecord-gcc-switches -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
test_urcu_lfs.o test_urcu_lfs.c
In file included from test_urcu_lfs.c:39:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_lfs.c:25:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
make[2]: *** [Makefile:1321: test_urcu_lfs.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common   -O2 -g -grecord-gcc-switches -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
test_urcu_wfs.o test_urcu_wfs.c
In file included from test_urcu_wfs.c:40:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_wfs.c:25:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
make[2]: *** [Makefile:1321: test_urcu_wfs.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common   -O2 -g -grecord-gcc-switches -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
test_urcu_lfs_rcu.o test_urcu_lfs_rcu.c
In file included from test_urcu_lfs_rcu.c:39:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_lfs_rcu.c:25:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
make[2]: *** [Makefile:1321: test_urcu_lfs_rcu.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common   -O2 -g -grecord-gcc-switches -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
test_urcu_wfcq.o test_urcu_wfcq.c
In file included from test_urcu_wfcq.c:40:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_wfcq.c:25:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
make[2]: *** [Makefile:1321: test_urcu_wfcq.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common  -DDYNAMIC_LINK_TEST  -O2 -g -grecord-gcc-switches
-pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64
-mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection
-fcf-protection -fdata-sections -ffunction-sections -flto=auto
-flto-partition=none -c -o test_urcu_wfq_dynlink-test_urcu_wfq.o `test -f
'test_urcu_wfq.c' || echo './'`test_urcu_wfq.c
In file included from test_urcu_wfq.c:39:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_wfq.c:25:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
make[2]: *** [Makefile:1650: test_urcu_wfq_dynlink-test_urcu_wfq.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common  -DDYNAMIC_LINK_TEST  -O2 -g -grecord-gcc-switches
-pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64
-mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection
-fcf-protection -fdata-sections -ffunction-sections -flto=auto
-flto-partition=none -c -o test_urcu_wfs_dynlink-test_urcu_wfs.o `test -f
'test_urcu_wfs.c' || echo './'`test_urcu_wfs.c
In file included from test_urcu_wfs.c:40:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_wfs.c:25:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
make[2]: *** [Makefile:1664: test_urcu_wfs_dynlink-test_urcu_wfs.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common  -DDYNAMIC_LINK_TEST  -O2 -g -grecord-gcc-switches
-pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64
-mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection
-fcf-protection -fdata-sections -ffunction-sections -flto=auto
-flto-partition=none -c -o test_urcu_wfcq_dynlink-test_urcu_wfcq.o `test -f
'test_urcu_wfcq.c' || echo './'`test_urcu_wfcq.c
In file included from test_urcu_wfcq.c:40:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_wfcq.c:25:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
make[2]: *** [Makefile:1636: test_urcu_wfcq_dynlink-test_urcu_wfcq.o] Error
1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common  -DDYNAMIC_LINK_TEST  -O2 -g -grecord-gcc-switches
-pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64
-mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection
-fcf-protection -fdata-sections -ffunction-sections -flto=auto
-flto-partition=none -c -o test_urcu_lfq_dynlink-test_urcu_lfq.o `test -f
'test_urcu_lfq.c' || echo './'`test_urcu_lfq.c
In file included from test_urcu_lfq.c:39:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_lfq.c:25:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
make[2]: *** [Makefile:1426: test_urcu_lfq_dynlink-test_urcu_lfq.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common  -DDYNAMIC_LINK_TEST  -O2 -g -grecord-gcc-switches
-pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64
-mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection
-fcf-protection -fdata-sections -ffunction-sections -flto=auto
-flto-partition=none -c -o test_urcu_lfs_dynlink-test_urcu_lfs.o `test -f
'test_urcu_lfs.c' || echo './'`test_urcu_lfs.c
In file included from test_urcu_lfs.c:39:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_lfs.c:25:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
make[2]: *** [Makefile:1440: test_urcu_lfs_dynlink-test_urcu_lfs.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common  -DRCU_QSBR  -O2 -g -grecord-gcc-switches -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
test_urcu_hash-test_urcu_hash.o `test -f 'test_urcu_hash.c' || echo
'./'`test_urcu_hash.c
In file included from test_urcu_hash.h:39,
                 from test_urcu_hash.c:23:
../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’
follows non-static declaration
   38 | static inline int rand_r(unsigned int *seed)
      |                   ^~~~~~
In file included from test_urcu_hash.h:28,
                 from test_urcu_hash.c:23:
/usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with
type ‘int(unsigned int *)’
  459 | extern int rand_r (unsigned int *__seed) __THROW;
      |            ^~~~~~
In file included from test_urcu_hash.h:40,
                 from test_urcu_hash.c:23:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_hash.h:27,
                 from test_urcu_hash.c:23:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
make[2]: *** [Makefile:1384: test_urcu_hash-test_urcu_hash.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common  -DRCU_QSBR  -O2 -g -grecord-gcc-switches -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
test_urcu_hash-test_urcu_hash_rw.o `test -f 'test_urcu_hash_rw.c' || echo
'./'`test_urcu_hash_rw.c
In file included from test_urcu_hash.h:39,
                 from test_urcu_hash_rw.c:23:
../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’
follows non-static declaration
   38 | static inline int rand_r(unsigned int *seed)
      |                   ^~~~~~
In file included from test_urcu_hash.h:28,
                 from test_urcu_hash_rw.c:23:
/usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with
type ‘int(unsigned int *)’
  459 | extern int rand_r (unsigned int *__seed) __THROW;
      |            ^~~~~~
In file included from test_urcu_hash.h:40,
                 from test_urcu_hash_rw.c:23:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_hash.h:27,
                 from test_urcu_hash_rw.c:23:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
make[2]: *** [Makefile:1398: test_urcu_hash-test_urcu_hash_rw.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common  -DRCU_QSBR  -O2 -g -grecord-gcc-switches -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
test_urcu_hash-test_urcu_hash_unique.o `test -f 'test_urcu_hash_unique.c'
|| echo './'`test_urcu_hash_unique.c
In file included from test_urcu_hash.h:39,
                 from test_urcu_hash_unique.c:23:
../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’
follows non-static declaration
   38 | static inline int rand_r(unsigned int *seed)
      |                   ^~~~~~
In file included from test_urcu_hash.h:28,
                 from test_urcu_hash_unique.c:23:
/usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with
type ‘int(unsigned int *)’
  459 | extern int rand_r (unsigned int *__seed) __THROW;
      |            ^~~~~~
In file included from test_urcu_hash.h:40,
                 from test_urcu_hash_unique.c:23:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_hash.h:27,
                 from test_urcu_hash_unique.c:23:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
make[2]: *** [Makefile:1412: test_urcu_hash-test_urcu_hash_unique.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/common  -DDYNAMIC_LINK_TEST  -O2 -g -grecord-gcc-switches
-pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64
-mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection
-fcf-protection -fdata-sections -ffunction-sections -flto=auto
-flto-partition=none -c -o test_urcu_lfs_rcu_dynlink-test_urcu_lfs_rcu.o
`test -f 'test_urcu_lfs_rcu.c' || echo './'`test_urcu_lfs_rcu.c
In file included from test_urcu_lfs_rcu.c:39:
../../tests/common/cpuset.h:32:23: error: conflicting types for
‘cpu_set_t’; have ‘long unsigned int’
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from test_urcu_lfs_rcu.c:25:
/usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’
with type ‘cpu_set_t’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
make[2]: *** [Makefile:1454: test_urcu_lfs_rcu_dynlink-test_urcu_lfs_rcu.o]
Error 1
make[2]: Target 'all' not remade because of errors.
make[2]: Leaving directory
'/home/tkloczko/rpmbuild/BUILD/userspace-rcu-0.12.2/tests/benchmark'
Making all in regression
make[2]: Entering directory
'/home/tkloczko/rpmbuild/BUILD/userspace-rcu-0.12.2/tests/regression'
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/utils -I../../tests/common  -DRCU_MEMBARRIER  -O2 -g
-grecord-gcc-switches -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
rcutorture_urcu_membarrier-urcutorture.o `test -f 'urcutorture.c' || echo
'./'`urcutorture.c
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from ../../tests/common/api.h:65,
                 from urcutorture.c:8:
/usr/include/bits/cpu-set.h:42:3: error: conflicting types for ‘cpu_set_t’;
have ‘struct <anonymous>’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
In file included from ../../tests/common/api.h:29,
                 from urcutorture.c:8:
../../tests/common/cpuset.h:32:23: note: previous declaration of
‘cpu_set_t’ with type ‘cpu_set_t’ {aka ‘long unsigned int’}
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
make[2]: *** [Makefile:1048: rcutorture_urcu_membarrier-urcutorture.o]
Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/utils -I../../tests/common  -DRCU_SIGNAL  -O2 -g
-grecord-gcc-switches -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
rcutorture_urcu_signal-urcutorture.o `test -f 'urcutorture.c' || echo
'./'`urcutorture.c
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from ../../tests/common/api.h:65,
                 from urcutorture.c:8:
/usr/include/bits/cpu-set.h:42:3: error: conflicting types for ‘cpu_set_t’;
have ‘struct <anonymous>’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
In file included from ../../tests/common/api.h:29,
                 from urcutorture.c:8:
../../tests/common/cpuset.h:32:23: note: previous declaration of
‘cpu_set_t’ with type ‘cpu_set_t’ {aka ‘long unsigned int’}
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
make[2]: *** [Makefile:1076: rcutorture_urcu_signal-urcutorture.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/utils -I../../tests/common  -DRCU_MB  -O2 -g
-grecord-gcc-switches -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
rcutorture_urcu_mb-urcutorture.o `test -f 'urcutorture.c' || echo
'./'`urcutorture.c
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from ../../tests/common/api.h:65,
                 from urcutorture.c:8:
/usr/include/bits/cpu-set.h:42:3: error: conflicting types for ‘cpu_set_t’;
have ‘struct <anonymous>’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
In file included from ../../tests/common/api.h:29,
                 from urcutorture.c:8:
../../tests/common/cpuset.h:32:23: note: previous declaration of
‘cpu_set_t’ with type ‘cpu_set_t’ {aka ‘long unsigned int’}
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
make[2]: *** [Makefile:1034: rcutorture_urcu_mb-urcutorture.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/utils -I../../tests/common  -DRCU_BP  -O2 -g
-grecord-gcc-switches -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
rcutorture_urcu_bp-urcutorture.o `test -f 'urcutorture.c' || echo
'./'`urcutorture.c
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from ../../tests/common/api.h:65,
                 from urcutorture.c:8:
/usr/include/bits/cpu-set.h:42:3: error: conflicting types for ‘cpu_set_t’;
have ‘struct <anonymous>’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
In file included from ../../tests/common/api.h:29,
                 from urcutorture.c:8:
../../tests/common/cpuset.h:32:23: note: previous declaration of
‘cpu_set_t’ with type ‘cpu_set_t’ {aka ‘long unsigned int’}
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~
make[2]: *** [Makefile:1020: rcutorture_urcu_bp-urcutorture.o] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H   -I../../include -I../../include -I../../src
-I../../tests/utils -I../../tests/common  -DTORTURE_QSBR -DRCU_QSBR  -O2 -g
-grecord-gcc-switches -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
rcutorture_urcu_qsbr-urcutorture.o `test -f 'urcutorture.c' || echo
'./'`urcutorture.c
In file included from /usr/include/sched.h:44,
                 from /usr/include/pthread.h:22,
                 from ../../tests/common/api.h:65,
                 from urcutorture.c:8:
/usr/include/bits/cpu-set.h:42:3: error: conflicting types for ‘cpu_set_t’;
have ‘struct <anonymous>’
   42 | } cpu_set_t;
      |   ^~~~~~~~~
In file included from ../../tests/common/api.h:29,
                 from urcutorture.c:8:
../../tests/common/cpuset.h:32:23: note: previous declaration of
‘cpu_set_t’ with type ‘cpu_set_t’ {aka ‘long unsigned int’}
   32 | typedef unsigned long cpu_set_t;
      |                       ^~~~~~~~~

kloczek
-- 
Tomasz Kłoczko | LinkedIn: *http://lnkd.in/FXPWxH <http://lnkd.in/FXPWxH>*

[-- Attachment #1.2: Type: text/html, Size: 73763 bytes --]

[-- Attachment #2: Type: text/plain, Size: 156 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [lttng-dev] userspace-rcu 0.12.2: build fails
       [not found] ` <CABB28Cxfnmj7FyRTRJdgOJJ6UdSmf8Nd7ZeDt2CF_7FQMQhsVA@mail.gmail.com>
@ 2021-02-18 14:34   ` Mathieu Desnoyers via lttng-dev
  2021-02-19 18:39     ` Tomasz Kłoczko via lttng-dev
  0 siblings, 1 reply; 5+ messages in thread
From: Mathieu Desnoyers via lttng-dev @ 2021-02-18 14:34 UTC (permalink / raw)
  To: Tomasz Kłoczko, Michael Jeanson; +Cc: lttng-dev

----- On Feb 17, 2021, at 8:41 PM, Tomasz Kłoczko kloczko.tomasz@gmail.com wrote:

> Hi,

> Just tested 0.12.2 and look s like build fails on compile test programs:

Hi, 

Adding Michael and the lttng-dev mailing list in CC. 

Can you provide information about your build environment ? Which distribution are you 
building on ? 

Is it a pristine tree on which bootstrap and configure have been executed locally ? 

Can you reproduce this issue with 0.12.1 ?

Thanks, 

Mathieu 

> make[2]: Entering directory
> '/home/tkloczko/rpmbuild/BUILD/userspace-rcu-0.12.2/tests/benchmark'
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -O2 -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu.o test_urcu.c
> In file included from test_urcu.c:36:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu.c:24:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> In file included from ../../tests/common/../common/debug-yield.h:34,
> from test_urcu.c:38:
> ../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’ follows
> non-static declaration
> 38 | static inline int rand_r(unsigned int *seed)
> | ^~~~~~
> In file included from test_urcu.c:25:
> /usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with type
> ‘int(unsigned int *)’
> 459 | extern int rand_r (unsigned int *__seed) __THROW;
> | ^~~~~~
> make[2]: *** [Makefile:1321: test_urcu.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -DDYNAMIC_LINK_TEST -O2 -g -grecord-gcc-switches -pipe
> -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_dynamic_link-test_urcu.o `test -f 'test_urcu.c' || echo
> './'`test_urcu.c
> In file included from test_urcu.c:36:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu.c:24:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> In file included from ../../tests/common/../common/debug-yield.h:34,
> from test_urcu.c:38:
> ../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’ follows
> non-static declaration
> 38 | static inline int rand_r(unsigned int *seed)
> | ^~~~~~
> In file included from test_urcu.c:25:
> /usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with type
> ‘int(unsigned int *)’
> 459 | extern int rand_r (unsigned int *__seed) __THROW;
> | ^~~~~~
> make[2]: *** [Makefile:1370: test_urcu_dynamic_link-test_urcu.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -DRCU_SIGNAL -O2 -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_signal-test_urcu.o `test -f 'test_urcu.c' || echo './'`test_urcu.c
> In file included from test_urcu.c:36:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu.c:24:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> In file included from ../../tests/common/../common/debug-yield.h:34,
> from test_urcu.c:38:
> ../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’ follows
> non-static declaration
> 38 | static inline int rand_r(unsigned int *seed)
> | ^~~~~~
> In file included from test_urcu.c:25:
> /usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with type
> ‘int(unsigned int *)’
> 459 | extern int rand_r (unsigned int *__seed) __THROW;
> | ^~~~~~
> make[2]: *** [Makefile:1552: test_urcu_signal-test_urcu.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -DRCU_SIGNAL -DDYNAMIC_LINK_TEST -O2 -g
> -grecord-gcc-switches -pipe -Wall -Werror=format-security
> -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_signal_dynamic_link-test_urcu.o `test -f 'test_urcu.c' || echo
> './'`test_urcu.c
> In file included from test_urcu.c:36:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu.c:24:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> In file included from ../../tests/common/../common/debug-yield.h:34,
> from test_urcu.c:38:
> ../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’ follows
> non-static declaration
> 38 | static inline int rand_r(unsigned int *seed)
> | ^~~~~~
> In file included from test_urcu.c:25:
> /usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with type
> ‘int(unsigned int *)’
> 459 | extern int rand_r (unsigned int *__seed) __THROW;
> | ^~~~~~
> make[2]: *** [Makefile:1566: test_urcu_signal_dynamic_link-test_urcu.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -O2 -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_rwlock.o test_rwlock.c
> In file included from test_rwlock.c:36:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_rwlock.c:24:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> make[2]: *** [Makefile:1321: test_rwlock.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -O2 -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_perthreadlock.o test_perthreadlock.c
> In file included from test_perthreadlock.c:36:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_perthreadlock.c:24:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> make[2]: *** [Makefile:1321: test_perthreadlock.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -DDEBUG_YIELD -O2 -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_yield-test_urcu.o `test -f 'test_urcu.c' || echo './'`test_urcu.c
> In file included from test_urcu.c:36:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu.c:24:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> In file included from ../../tests/common/../common/debug-yield.h:34,
> from test_urcu.c:38:
> ../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’ follows
> non-static declaration
> 38 | static inline int rand_r(unsigned int *seed)
> | ^~~~~~
> In file included from test_urcu.c:25:
> /usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with type
> ‘int(unsigned int *)’
> 459 | extern int rand_r (unsigned int *__seed) __THROW;
> | ^~~~~~
> make[2]: *** [Makefile:1678: test_urcu_yield-test_urcu.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -DRCU_SIGNAL -DDEBUG_YIELD -O2 -g -grecord-gcc-switches
> -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
> -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
> -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64
> -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection
> -fcf-protection -fdata-sections -ffunction-sections -flto=auto
> -flto-partition=none -c -o test_urcu_signal_yield-test_urcu.o `test -f
> 'test_urcu.c' || echo './'`test_urcu.c
> In file included from test_urcu.c:36:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu.c:24:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> In file included from ../../tests/common/../common/debug-yield.h:34,
> from test_urcu.c:38:
> ../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’ follows
> non-static declaration
> 38 | static inline int rand_r(unsigned int *seed)
> | ^~~~~~
> In file included from test_urcu.c:25:
> /usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with type
> ‘int(unsigned int *)’
> 459 | extern int rand_r (unsigned int *__seed) __THROW;
> | ^~~~~~
> make[2]: *** [Makefile:1622: test_urcu_signal_yield-test_urcu.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -DRCU_MB -O2 -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_mb-test_urcu.o `test -f 'test_urcu.c' || echo './'`test_urcu.c
> In file included from test_urcu.c:36:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu.c:24:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> In file included from ../../tests/common/../common/debug-yield.h:34,
> from test_urcu.c:38:
> ../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’ follows
> non-static declaration
> 38 | static inline int rand_r(unsigned int *seed)
> | ^~~~~~
> In file included from test_urcu.c:25:
> /usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with type
> ‘int(unsigned int *)’
> 459 | extern int rand_r (unsigned int *__seed) __THROW;
> | ^~~~~~
> make[2]: *** [Makefile:1482: test_urcu_mb-test_urcu.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -O2 -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_qsbr.o test_urcu_qsbr.c
> In file included from test_urcu_qsbr.c:36:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_qsbr.c:24:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> In file included from ../common/debug-yield.h:34,
> from test_urcu_qsbr.c:38:
> ../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’ follows
> non-static declaration
> 38 | static inline int rand_r(unsigned int *seed)
> | ^~~~~~
> In file included from test_urcu_qsbr.c:25:
> /usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with type
> ‘int(unsigned int *)’
> 459 | extern int rand_r (unsigned int *__seed) __THROW;
> | ^~~~~~
> make[2]: *** [Makefile:1321: test_urcu_qsbr.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -O2 -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_mutex.o test_mutex.c
> In file included from test_mutex.c:36:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_mutex.c:24:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> make[2]: *** [Makefile:1321: test_mutex.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -O2 -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_gc.o test_urcu_gc.c
> In file included from test_urcu_gc.c:36:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_gc.c:24:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> In file included from ../common/debug-yield.h:34,
> from test_urcu_gc.c:38:
> ../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’ follows
> non-static declaration
> 38 | static inline int rand_r(unsigned int *seed)
> | ^~~~~~
> In file included from test_urcu_gc.c:25:
> /usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with type
> ‘int(unsigned int *)’
> 459 | extern int rand_r (unsigned int *__seed) __THROW;
> | ^~~~~~
> make[2]: *** [Makefile:1321: test_urcu_gc.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -DRCU_SIGNAL -O2 -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_signal_gc-test_urcu_gc.o `test -f 'test_urcu_gc.c' || echo
> './'`test_urcu_gc.c
> In file included from test_urcu_gc.c:36:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_gc.c:24:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> In file included from ../common/debug-yield.h:34,
> from test_urcu_gc.c:38:
> ../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’ follows
> non-static declaration
> 38 | static inline int rand_r(unsigned int *seed)
> | ^~~~~~
> In file included from test_urcu_gc.c:25:
> /usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with type
> ‘int(unsigned int *)’
> 459 | extern int rand_r (unsigned int *__seed) __THROW;
> | ^~~~~~
> make[2]: *** [Makefile:1580: test_urcu_signal_gc-test_urcu_gc.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -DTEST_LOCAL_GC -O2 -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_lgc-test_urcu_gc.o `test -f 'test_urcu_gc.c' || echo
> './'`test_urcu_gc.c
> In file included from test_urcu_gc.c:36:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_gc.c:24:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> In file included from ../common/debug-yield.h:34,
> from test_urcu_gc.c:38:
> ../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’ follows
> non-static declaration
> 38 | static inline int rand_r(unsigned int *seed)
> | ^~~~~~
> In file included from test_urcu_gc.c:25:
> /usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with type
> ‘int(unsigned int *)’
> 459 | extern int rand_r (unsigned int *__seed) __THROW;
> | ^~~~~~
> make[2]: *** [Makefile:1468: test_urcu_lgc-test_urcu_gc.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -DRCU_MB -O2 -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_mb_gc-test_urcu_gc.o `test -f 'test_urcu_gc.c' || echo
> './'`test_urcu_gc.c
> In file included from test_urcu_gc.c:36:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_gc.c:24:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> In file included from ../common/debug-yield.h:34,
> from test_urcu_gc.c:38:
> ../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’ follows
> non-static declaration
> 38 | static inline int rand_r(unsigned int *seed)
> | ^~~~~~
> In file included from test_urcu_gc.c:25:
> /usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with type
> ‘int(unsigned int *)’
> 459 | extern int rand_r (unsigned int *__seed) __THROW;
> | ^~~~~~
> make[2]: *** [Makefile:1496: test_urcu_mb_gc-test_urcu_gc.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -O2 -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_qsbr_gc.o test_urcu_qsbr_gc.c
> In file included from test_urcu_qsbr_gc.c:36:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_qsbr_gc.c:24:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> In file included from ../common/debug-yield.h:34,
> from test_urcu_qsbr_gc.c:38:
> ../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’ follows
> non-static declaration
> 38 | static inline int rand_r(unsigned int *seed)
> | ^~~~~~
> In file included from test_urcu_qsbr_gc.c:25:
> /usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with type
> ‘int(unsigned int *)’
> 459 | extern int rand_r (unsigned int *__seed) __THROW;
> | ^~~~~~
> make[2]: *** [Makefile:1321: test_urcu_qsbr_gc.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -DTEST_LOCAL_GC -O2 -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_qsbr_lgc-test_urcu_qsbr_gc.o `test -f 'test_urcu_qsbr_gc.c' || echo
> './'`test_urcu_qsbr_gc.c
> In file included from test_urcu_qsbr_gc.c:36:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_qsbr_gc.c:24:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> In file included from ../common/debug-yield.h:34,
> from test_urcu_qsbr_gc.c:38:
> ../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’ follows
> non-static declaration
> 38 | static inline int rand_r(unsigned int *seed)
> | ^~~~~~
> In file included from test_urcu_qsbr_gc.c:25:
> /usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with type
> ‘int(unsigned int *)’
> 459 | extern int rand_r (unsigned int *__seed) __THROW;
> | ^~~~~~
> make[2]: *** [Makefile:1538: test_urcu_qsbr_lgc-test_urcu_qsbr_gc.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -DRCU_SIGNAL -DTEST_LOCAL_GC -O2 -g -grecord-gcc-switches
> -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
> -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
> -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64
> -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection
> -fcf-protection -fdata-sections -ffunction-sections -flto=auto
> -flto-partition=none -c -o test_urcu_signal_lgc-test_urcu_gc.o `test -f
> 'test_urcu_gc.c' || echo './'`test_urcu_gc.c
> In file included from test_urcu_gc.c:36:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_gc.c:24:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> In file included from ../common/debug-yield.h:34,
> from test_urcu_gc.c:38:
> ../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’ follows
> non-static declaration
> 38 | static inline int rand_r(unsigned int *seed)
> | ^~~~~~
> In file included from test_urcu_gc.c:25:
> /usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with type
> ‘int(unsigned int *)’
> 459 | extern int rand_r (unsigned int *__seed) __THROW;
> | ^~~~~~
> make[2]: *** [Makefile:1594: test_urcu_signal_lgc-test_urcu_gc.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -DTEST_LOCAL_GC -DRCU_MB -O2 -g -grecord-gcc-switches
> -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
> -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
> -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64
> -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection
> -fcf-protection -fdata-sections -ffunction-sections -flto=auto
> -flto-partition=none -c -o test_urcu_mb_lgc-test_urcu_gc.o `test -f
> 'test_urcu_gc.c' || echo './'`test_urcu_gc.c
> In file included from test_urcu_gc.c:36:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_gc.c:24:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> In file included from ../common/debug-yield.h:34,
> from test_urcu_gc.c:38:
> ../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’ follows
> non-static declaration
> 38 | static inline int rand_r(unsigned int *seed)
> | ^~~~~~
> In file included from test_urcu_gc.c:25:
> /usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with type
> ‘int(unsigned int *)’
> 459 | extern int rand_r (unsigned int *__seed) __THROW;
> | ^~~~~~
> make[2]: *** [Makefile:1510: test_urcu_mb_lgc-test_urcu_gc.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -DDYNAMIC_LINK_TEST -O2 -g -grecord-gcc-switches -pipe
> -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_qsbr_dynamic_link-test_urcu_qsbr.o `test -f 'test_urcu_qsbr.c' ||
> echo './'`test_urcu_qsbr.c
> In file included from test_urcu_qsbr.c:36:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_qsbr.c:24:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> In file included from ../common/debug-yield.h:34,
> from test_urcu_qsbr.c:38:
> ../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’ follows
> non-static declaration
> 38 | static inline int rand_r(unsigned int *seed)
> | ^~~~~~
> In file included from test_urcu_qsbr.c:25:
> /usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with type
> ‘int(unsigned int *)’
> 459 | extern int rand_r (unsigned int *__seed) __THROW;
> | ^~~~~~
> make[2]: *** [Makefile:1524: test_urcu_qsbr_dynamic_link-test_urcu_qsbr.o] Error
> 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -O2 -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_defer.o test_urcu_defer.c
> In file included from test_urcu_defer.c:36:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_defer.c:24:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> In file included from ../common/debug-yield.h:34,
> from test_urcu_defer.c:38:
> ../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’ follows
> non-static declaration
> 38 | static inline int rand_r(unsigned int *seed)
> | ^~~~~~
> In file included from test_urcu_defer.c:25:
> /usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with type
> ‘int(unsigned int *)’
> 459 | extern int rand_r (unsigned int *__seed) __THROW;
> | ^~~~~~
> make[2]: *** [Makefile:1321: test_urcu_defer.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -O2 -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_assign.o test_urcu_assign.c
> In file included from test_urcu_assign.c:36:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_assign.c:24:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> In file included from ../common/debug-yield.h:34,
> from test_urcu_assign.c:38:
> ../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’ follows
> non-static declaration
> 38 | static inline int rand_r(unsigned int *seed)
> | ^~~~~~
> In file included from test_urcu_assign.c:25:
> /usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with type
> ‘int(unsigned int *)’
> 459 | extern int rand_r (unsigned int *__seed) __THROW;
> | ^~~~~~
> make[2]: *** [Makefile:1321: test_urcu_assign.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -DDYNAMIC_LINK_TEST -O2 -g -grecord-gcc-switches -pipe
> -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_assign_dynamic_link-test_urcu_assign.o `test -f 'test_urcu_assign.c'
> || echo './'`test_urcu_assign.c
> In file included from test_urcu_assign.c:36:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_assign.c:24:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> In file included from ../common/debug-yield.h:34,
> from test_urcu_assign.c:38:
> ../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’ follows
> non-static declaration
> 38 | static inline int rand_r(unsigned int *seed)
> | ^~~~~~
> In file included from test_urcu_assign.c:25:
> /usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with type
> ‘int(unsigned int *)’
> 459 | extern int rand_r (unsigned int *__seed) __THROW;
> | ^~~~~~
> make[2]: *** [Makefile:1342: test_urcu_assign_dynamic_link-test_urcu_assign.o]
> Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -O2 -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_bp.o test_urcu_bp.c
> In file included from test_urcu_bp.c:36:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_bp.c:24:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> In file included from ../common/debug-yield.h:34,
> from test_urcu_bp.c:38:
> ../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’ follows
> non-static declaration
> 38 | static inline int rand_r(unsigned int *seed)
> | ^~~~~~
> In file included from test_urcu_bp.c:25:
> /usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with type
> ‘int(unsigned int *)’
> 459 | extern int rand_r (unsigned int *__seed) __THROW;
> | ^~~~~~
> make[2]: *** [Makefile:1321: test_urcu_bp.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -DDYNAMIC_LINK_TEST -O2 -g -grecord-gcc-switches -pipe
> -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_bp_dynamic_link-test_urcu_bp.o `test -f 'test_urcu_bp.c' || echo
> './'`test_urcu_bp.c
> In file included from test_urcu_bp.c:36:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_bp.c:24:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> In file included from ../common/debug-yield.h:34,
> from test_urcu_bp.c:38:
> ../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’ follows
> non-static declaration
> 38 | static inline int rand_r(unsigned int *seed)
> | ^~~~~~
> In file included from test_urcu_bp.c:25:
> /usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with type
> ‘int(unsigned int *)’
> 459 | extern int rand_r (unsigned int *__seed) __THROW;
> | ^~~~~~
> make[2]: *** [Makefile:1356: test_urcu_bp_dynamic_link-test_urcu_bp.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -O2 -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_lfq.o test_urcu_lfq.c
> In file included from test_urcu_lfq.c:39:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_lfq.c:25:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> make[2]: *** [Makefile:1321: test_urcu_lfq.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -O2 -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_wfq.o test_urcu_wfq.c
> In file included from test_urcu_wfq.c:39:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_wfq.c:25:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> make[2]: *** [Makefile:1321: test_urcu_wfq.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -O2 -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_lfs.o test_urcu_lfs.c
> In file included from test_urcu_lfs.c:39:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_lfs.c:25:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> make[2]: *** [Makefile:1321: test_urcu_lfs.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -O2 -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_wfs.o test_urcu_wfs.c
> In file included from test_urcu_wfs.c:40:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_wfs.c:25:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> make[2]: *** [Makefile:1321: test_urcu_wfs.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -O2 -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_lfs_rcu.o test_urcu_lfs_rcu.c
> In file included from test_urcu_lfs_rcu.c:39:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_lfs_rcu.c:25:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> make[2]: *** [Makefile:1321: test_urcu_lfs_rcu.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -O2 -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_wfcq.o test_urcu_wfcq.c
> In file included from test_urcu_wfcq.c:40:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_wfcq.c:25:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> make[2]: *** [Makefile:1321: test_urcu_wfcq.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -DDYNAMIC_LINK_TEST -O2 -g -grecord-gcc-switches -pipe
> -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_wfq_dynlink-test_urcu_wfq.o `test -f 'test_urcu_wfq.c' || echo
> './'`test_urcu_wfq.c
> In file included from test_urcu_wfq.c:39:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_wfq.c:25:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> make[2]: *** [Makefile:1650: test_urcu_wfq_dynlink-test_urcu_wfq.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -DDYNAMIC_LINK_TEST -O2 -g -grecord-gcc-switches -pipe
> -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_wfs_dynlink-test_urcu_wfs.o `test -f 'test_urcu_wfs.c' || echo
> './'`test_urcu_wfs.c
> In file included from test_urcu_wfs.c:40:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_wfs.c:25:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> make[2]: *** [Makefile:1664: test_urcu_wfs_dynlink-test_urcu_wfs.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -DDYNAMIC_LINK_TEST -O2 -g -grecord-gcc-switches -pipe
> -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_wfcq_dynlink-test_urcu_wfcq.o `test -f 'test_urcu_wfcq.c' || echo
> './'`test_urcu_wfcq.c
> In file included from test_urcu_wfcq.c:40:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_wfcq.c:25:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> make[2]: *** [Makefile:1636: test_urcu_wfcq_dynlink-test_urcu_wfcq.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -DDYNAMIC_LINK_TEST -O2 -g -grecord-gcc-switches -pipe
> -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_lfq_dynlink-test_urcu_lfq.o `test -f 'test_urcu_lfq.c' || echo
> './'`test_urcu_lfq.c
> In file included from test_urcu_lfq.c:39:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_lfq.c:25:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> make[2]: *** [Makefile:1426: test_urcu_lfq_dynlink-test_urcu_lfq.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -DDYNAMIC_LINK_TEST -O2 -g -grecord-gcc-switches -pipe
> -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_lfs_dynlink-test_urcu_lfs.o `test -f 'test_urcu_lfs.c' || echo
> './'`test_urcu_lfs.c
> In file included from test_urcu_lfs.c:39:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_lfs.c:25:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> make[2]: *** [Makefile:1440: test_urcu_lfs_dynlink-test_urcu_lfs.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -DRCU_QSBR -O2 -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_hash-test_urcu_hash.o `test -f 'test_urcu_hash.c' || echo
> './'`test_urcu_hash.c
> In file included from test_urcu_hash.h:39,
> from test_urcu_hash.c:23:
> ../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’ follows
> non-static declaration
> 38 | static inline int rand_r(unsigned int *seed)
> | ^~~~~~
> In file included from test_urcu_hash.h:28,
> from test_urcu_hash.c:23:
> /usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with type
> ‘int(unsigned int *)’
> 459 | extern int rand_r (unsigned int *__seed) __THROW;
> | ^~~~~~
> In file included from test_urcu_hash.h:40,
> from test_urcu_hash.c:23:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_hash.h:27,
> from test_urcu_hash.c:23:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> make[2]: *** [Makefile:1384: test_urcu_hash-test_urcu_hash.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -DRCU_QSBR -O2 -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_hash-test_urcu_hash_rw.o `test -f 'test_urcu_hash_rw.c' || echo
> './'`test_urcu_hash_rw.c
> In file included from test_urcu_hash.h:39,
> from test_urcu_hash_rw.c:23:
> ../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’ follows
> non-static declaration
> 38 | static inline int rand_r(unsigned int *seed)
> | ^~~~~~
> In file included from test_urcu_hash.h:28,
> from test_urcu_hash_rw.c:23:
> /usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with type
> ‘int(unsigned int *)’
> 459 | extern int rand_r (unsigned int *__seed) __THROW;
> | ^~~~~~
> In file included from test_urcu_hash.h:40,
> from test_urcu_hash_rw.c:23:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_hash.h:27,
> from test_urcu_hash_rw.c:23:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> make[2]: *** [Makefile:1398: test_urcu_hash-test_urcu_hash_rw.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -DRCU_QSBR -O2 -g -grecord-gcc-switches -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_hash-test_urcu_hash_unique.o `test -f 'test_urcu_hash_unique.c' ||
> echo './'`test_urcu_hash_unique.c
> In file included from test_urcu_hash.h:39,
> from test_urcu_hash_unique.c:23:
> ../../src/compat-rand.h:38:19: error: static declaration of ‘rand_r’ follows
> non-static declaration
> 38 | static inline int rand_r(unsigned int *seed)
> | ^~~~~~
> In file included from test_urcu_hash.h:28,
> from test_urcu_hash_unique.c:23:
> /usr/include/stdlib.h:459:12: note: previous declaration of ‘rand_r’ with type
> ‘int(unsigned int *)’
> 459 | extern int rand_r (unsigned int *__seed) __THROW;
> | ^~~~~~
> In file included from test_urcu_hash.h:40,
> from test_urcu_hash_unique.c:23:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_hash.h:27,
> from test_urcu_hash_unique.c:23:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> make[2]: *** [Makefile:1412: test_urcu_hash-test_urcu_hash_unique.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/common -DDYNAMIC_LINK_TEST -O2 -g -grecord-gcc-switches -pipe
> -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> test_urcu_lfs_rcu_dynlink-test_urcu_lfs_rcu.o `test -f 'test_urcu_lfs_rcu.c' ||
> echo './'`test_urcu_lfs_rcu.c
> In file included from test_urcu_lfs_rcu.c:39:
> ../../tests/common/cpuset.h:32:23: error: conflicting types for ‘cpu_set_t’;
> have ‘long unsigned int’
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from test_urcu_lfs_rcu.c:25:
> /usr/include/bits/cpu-set.h:42:3: note: previous declaration of ‘cpu_set_t’ with
> type ‘cpu_set_t’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> make[2]: *** [Makefile:1454: test_urcu_lfs_rcu_dynlink-test_urcu_lfs_rcu.o]
> Error 1
> make[2]: Target 'all' not remade because of errors.
> make[2]: Leaving directory
> '/home/tkloczko/rpmbuild/BUILD/userspace-rcu-0.12.2/tests/benchmark'
> Making all in regression
> make[2]: Entering directory
> '/home/tkloczko/rpmbuild/BUILD/userspace-rcu-0.12.2/tests/regression'
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/utils -I../../tests/common -DRCU_MEMBARRIER -O2 -g
> -grecord-gcc-switches -pipe -Wall -Werror=format-security
> -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> rcutorture_urcu_membarrier-urcutorture.o `test -f 'urcutorture.c' || echo
> './'`urcutorture.c
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from ../../tests/common/api.h:65,
> from urcutorture.c:8:
> /usr/include/bits/cpu-set.h:42:3: error: conflicting types for ‘cpu_set_t’; have
> ‘struct <anonymous>’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> In file included from ../../tests/common/api.h:29,
> from urcutorture.c:8:
> ../../tests/common/cpuset.h:32:23: note: previous declaration of ‘cpu_set_t’
> with type ‘cpu_set_t’ {aka ‘long unsigned int’}
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> make[2]: *** [Makefile:1048: rcutorture_urcu_membarrier-urcutorture.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/utils -I../../tests/common -DRCU_SIGNAL -O2 -g
> -grecord-gcc-switches -pipe -Wall -Werror=format-security
> -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> rcutorture_urcu_signal-urcutorture.o `test -f 'urcutorture.c' || echo
> './'`urcutorture.c
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from ../../tests/common/api.h:65,
> from urcutorture.c:8:
> /usr/include/bits/cpu-set.h:42:3: error: conflicting types for ‘cpu_set_t’; have
> ‘struct <anonymous>’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> In file included from ../../tests/common/api.h:29,
> from urcutorture.c:8:
> ../../tests/common/cpuset.h:32:23: note: previous declaration of ‘cpu_set_t’
> with type ‘cpu_set_t’ {aka ‘long unsigned int’}
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> make[2]: *** [Makefile:1076: rcutorture_urcu_signal-urcutorture.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/utils -I../../tests/common -DRCU_MB -O2 -g -grecord-gcc-switches
> -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
> -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
> -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64
> -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection
> -fcf-protection -fdata-sections -ffunction-sections -flto=auto
> -flto-partition=none -c -o rcutorture_urcu_mb-urcutorture.o `test -f
> 'urcutorture.c' || echo './'`urcutorture.c
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from ../../tests/common/api.h:65,
> from urcutorture.c:8:
> /usr/include/bits/cpu-set.h:42:3: error: conflicting types for ‘cpu_set_t’; have
> ‘struct <anonymous>’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> In file included from ../../tests/common/api.h:29,
> from urcutorture.c:8:
> ../../tests/common/cpuset.h:32:23: note: previous declaration of ‘cpu_set_t’
> with type ‘cpu_set_t’ {aka ‘long unsigned int’}
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> make[2]: *** [Makefile:1034: rcutorture_urcu_mb-urcutorture.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/utils -I../../tests/common -DRCU_BP -O2 -g -grecord-gcc-switches
> -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
> -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
> -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64
> -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection
> -fcf-protection -fdata-sections -ffunction-sections -flto=auto
> -flto-partition=none -c -o rcutorture_urcu_bp-urcutorture.o `test -f
> 'urcutorture.c' || echo './'`urcutorture.c
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from ../../tests/common/api.h:65,
> from urcutorture.c:8:
> /usr/include/bits/cpu-set.h:42:3: error: conflicting types for ‘cpu_set_t’; have
> ‘struct <anonymous>’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> In file included from ../../tests/common/api.h:29,
> from urcutorture.c:8:
> ../../tests/common/cpuset.h:32:23: note: previous declaration of ‘cpu_set_t’
> with type ‘cpu_set_t’ {aka ‘long unsigned int’}
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~
> make[2]: *** [Makefile:1020: rcutorture_urcu_bp-urcutorture.o] Error 1
> /usr/bin/gcc -DHAVE_CONFIG_H -I../../include -I../../include -I../../src
> -I../../tests/utils -I../../tests/common -DTORTURE_QSBR -DRCU_QSBR -O2 -g
> -grecord-gcc-switches -pipe -Wall -Werror=format-security
> -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
> -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o
> rcutorture_urcu_qsbr-urcutorture.o `test -f 'urcutorture.c' || echo
> './'`urcutorture.c
> In file included from /usr/include/sched.h:44,
> from /usr/include/pthread.h:22,
> from ../../tests/common/api.h:65,
> from urcutorture.c:8:
> /usr/include/bits/cpu-set.h:42:3: error: conflicting types for ‘cpu_set_t’; have
> ‘struct <anonymous>’
> 42 | } cpu_set_t;
> | ^~~~~~~~~
> In file included from ../../tests/common/api.h:29,
> from urcutorture.c:8:
> ../../tests/common/cpuset.h:32:23: note: previous declaration of ‘cpu_set_t’
> with type ‘cpu_set_t’ {aka ‘long unsigned int’}
> 32 | typedef unsigned long cpu_set_t;
> | ^~~~~~~~~

> kloczek
> --
> Tomasz Kłoczko | LinkedIn: [ http://lnkd.in/FXPWxH | http://lnkd.in/FXPWxH ]

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [lttng-dev] userspace-rcu 0.12.2: build fails
  2021-02-18 14:34   ` Mathieu Desnoyers via lttng-dev
@ 2021-02-19 18:39     ` Tomasz Kłoczko via lttng-dev
  2021-02-19 19:20       ` Mathieu Desnoyers via lttng-dev
  0 siblings, 1 reply; 5+ messages in thread
From: Tomasz Kłoczko via lttng-dev @ 2021-02-19 18:39 UTC (permalink / raw)
  To: Mathieu Desnoyers; +Cc: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 762 bytes --]

On Thu, 18 Feb 2021 at 14:34, Mathieu Desnoyers <
mathieu.desnoyers@efficios.com> wrote:

> ----- On Feb 17, 2021, at 8:41 PM, Tomasz Kłoczko kloczko.tomasz@gmail.com
> wrote:
>
> > Hi,
>
> > Just tested 0.12.2 and look s like build fails on compile test programs:
>
> Hi,
>
> Adding Michael and the lttng-dev mailing list in CC.
>
> Can you provide information about your build environment ? Which
> distribution are you
> building on ?
>
> Is it a pristine tree on which bootstrap and configure have been executed
> locally ?
>
> Can you reproduce this issue with 0.12.1 ?
>

Just done that test and in exactly the same build env 0.12.1 builds without
any problems.

kloczek
-- 
Tomasz Kłoczko | LinkedIn: http://lnkd.in/FXPWxH

[-- Attachment #1.2: Type: text/html, Size: 2108 bytes --]

[-- Attachment #2: Type: text/plain, Size: 156 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [lttng-dev] userspace-rcu 0.12.2: build fails
  2021-02-19 18:39     ` Tomasz Kłoczko via lttng-dev
@ 2021-02-19 19:20       ` Mathieu Desnoyers via lttng-dev
  2021-02-19 22:45         ` Tomasz Kłoczko via lttng-dev
  0 siblings, 1 reply; 5+ messages in thread
From: Mathieu Desnoyers via lttng-dev @ 2021-02-19 19:20 UTC (permalink / raw)
  To: Tomasz Kłoczko; +Cc: lttng-dev



----- On Feb 19, 2021, at 1:39 PM, Tomasz Kłoczko kloczko.tomasz@gmail.com wrote:

> On Thu, 18 Feb 2021 at 14:34, Mathieu Desnoyers < [
> mailto:mathieu.desnoyers@efficios.com | mathieu.desnoyers@efficios.com ] >
> wrote:

>> ----- On Feb 17, 2021, at 8:41 PM, Tomasz Kłoczko [
>> mailto:kloczko.tomasz@gmail.com | kloczko.tomasz@gmail.com ] wrote:

>> > Hi,

>> > Just tested 0.12.2 and look s like build fails on compile test programs:

>> Hi,

>> Adding Michael and the lttng-dev mailing list in CC.

>> Can you provide information about your build environment ? Which distribution
>> are you
>> building on ?

>> Is it a pristine tree on which bootstrap and configure have been executed
>> locally ?

>> Can you reproduce this issue with 0.12.1 ?

> Just done that test and in exactly the same build env 0.12.1 builds without any
> problems.

Good to know. This does not provide any clarification on your build environment
though (see my request above). Therefore we cannot attempt to reproduce on our side yet.

Thanks,

Mathieu


-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [lttng-dev] userspace-rcu 0.12.2: build fails
  2021-02-19 19:20       ` Mathieu Desnoyers via lttng-dev
@ 2021-02-19 22:45         ` Tomasz Kłoczko via lttng-dev
  0 siblings, 0 replies; 5+ messages in thread
From: Tomasz Kłoczko via lttng-dev @ 2021-02-19 22:45 UTC (permalink / raw)
  To: Mathieu Desnoyers; +Cc: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 3923 bytes --]

On Fri, 19 Feb 2021 at 19:20, Mathieu Desnoyers <
mathieu.desnoyers@efficios.com> wrote:
[..]

> Good to know. This does not provide any clarification on your build
> environment
> though (see my request above). Therefore we cannot attempt to reproduce on
> our side yet.
>

I'm building on top of my own distribution which is quite close to fedora
rawhide (with tons of fixes) however before starting actual build I'm
regenerating all ac/am/lt files using "autoreconf -fiv" because I'm
patching configiure.ac and some Makefile.am files.
I need that because 1.2.2 has underlinkig issues.
Here is the patch which fixes underlinking:
```
--- a/src/Makefile.am~  2021-02-17 19:52:04.000000000 +0000
+++ b/src/Makefile.am   2021-02-18 01:19:04.366349148 +0000
@@ -34,7 +34,7 @@

 liburcu_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT)
 liburcu_la_CFLAGS = -DRCU_MEMBARRIER $(AM_CFLAGS)
-liburcu_la_LIBADD = liburcu-common.la
+liburcu_la_LIBADD = liburcu-common.la $(PTHREAD_LIBS)

 liburcu_memb_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT)
 liburcu_memb_la_CFLAGS = -DRCU_MEMBARRIER $(AM_CFLAGS)
@@ -42,22 +42,22 @@

 liburcu_qsbr_la_SOURCES = urcu-qsbr.c urcu-pointer.c $(COMPAT)
 liburcu_qsbr_la_CFLAGS = -DRCU_QSBR $(AM_CFLAGS)
-liburcu_qsbr_la_LIBADD = liburcu-common.la
+liburcu_qsbr_la_LIBADD = liburcu-common.la $(PTHREAD_LIBS)

 liburcu_mb_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT)
 liburcu_mb_la_CFLAGS = -DRCU_MB $(AM_CFLAGS)
-liburcu_mb_la_LIBADD = liburcu-common.la
+liburcu_mb_la_LIBADD = liburcu-common.la $(PTHREAD_LIBS)

 liburcu_signal_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT)
 liburcu_signal_la_CFLAGS = -DRCU_SIGNAL $(AM_CFLAGS)
-liburcu_signal_la_LIBADD = liburcu-common.la
+liburcu_signal_la_LIBADD = liburcu-common.la $(PTHREAD_LIBS)

 liburcu_bp_la_SOURCES = urcu-bp.c urcu-pointer.c $(COMPAT)
-liburcu_bp_la_LIBADD = liburcu-common.la
+liburcu_bp_la_LIBADD = liburcu-common.la $(PTHREAD_LIBS)

 liburcu_cds_la_SOURCES = rculfqueue.c rculfstack.c lfstack.c \
        workqueue.c workqueue.h $(RCULFHASH) $(COMPAT)
-liburcu_cds_la_LIBADD = liburcu-common.la
+liburcu_cds_la_LIBADD = liburcu-common.la $(PTHREAD_LIBS)

 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = liburcu-cds.pc liburcu.pc liburcu-bp.pc liburcu-qsbr.pc \
```
Without that patch build fails on:
```
make[5]: Entering directory
'/home/tkloczko/rpmbuild/BUILD/userspace-rcu-0.12.2/doc/examples/hlist'
+ /usr/bin/gcc -g -O2 -Wall -O2 -g -grecord-gcc-switches -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fdata-sections -ffunction-sections -flto=auto -flto-partition=none
-L../../../src/.libs/ -Wl,-rpath
/home/tkloczko/rpmbuild/BUILD/userspace-rcu-0.12.2/doc/examples/../../src/.libs/
-Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto
-flto-partition=none -fuse-linker-plugin -o cds_hlist_add_head_rcu
cds_hlist_add_head_rcu.o -lurcu
/usr/bin/ld: ../../../src/.libs//liburcu.so: undefined reference to
`pthread_join'
/usr/bin/ld: ../../../src/.libs//liburcu.so: undefined reference to
`pthread_create'
collect2: error: ld returned 1 exit status
```

I must apologise. I made small mistake in my other patch which removes from
configiure.ac amd all Makefile.am files hadcoding all -W<foo> and -g flags
(I want to control such things completely from outside the build framework
over CFLAGS and other env variables).

After fixing that patch looks like 1.2.2 builds correctly however that
underlinking issue is real.

One more time sorry .. kind of my fault :/

kloczek
-- 
Tomasz Kłoczko | LinkedIn: http://lnkd.in/FXPWxH

[-- Attachment #1.2: Type: text/html, Size: 6807 bytes --]

[-- Attachment #2: Type: text/plain, Size: 156 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-02-19 22:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-18  1:36 [lttng-dev] userspace-rcu 0.12.2: build fails Tomasz Kłoczko via lttng-dev
     [not found] ` <CABB28Cxfnmj7FyRTRJdgOJJ6UdSmf8Nd7ZeDt2CF_7FQMQhsVA@mail.gmail.com>
2021-02-18 14:34   ` Mathieu Desnoyers via lttng-dev
2021-02-19 18:39     ` Tomasz Kłoczko via lttng-dev
2021-02-19 19:20       ` Mathieu Desnoyers via lttng-dev
2021-02-19 22:45         ` Tomasz Kłoczko via lttng-dev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).