[lttng-dev] userspace-rcu 0.12.2: build fails
Mathieu Desnoyers
mathieu.desnoyers at efficios.com
Thu Feb 18 09:34:19 EST 2021
----- On Feb 17, 2021, at 8:41 PM, Tomasz Kłoczko kloczko.tomasz at 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
More information about the lttng-dev
mailing list