+ exec
+ rm -rf /rpmbuild
+ mkdir -p /rpmbuild
+ su -c 'rpmbuild -ba /builddir/build/SPECS/libatomic_ops.spec            --define "debug_package %{nil}"            --undefine _annotated_build            --define "_missing_doc_files_terminate_build %{nil}"            --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d"            --define "_emacs_sitelispdir /usr/share/emacs/site-lisp"            --nocheck   ' mockbuild
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.zeW3dg
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf libatomic_ops-7.4.6
+ /usr/bin/gzip -dc /builddir/build/SOURCES/libatomic_ops-7.4.6.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd libatomic_ops-7.4.6
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/cat /builddir/build/SOURCES/gc_ppc64le_force_AO_load.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ autoreconf -fi
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:14: installing './compile'
configure.ac:8: installing './missing'
src/Makefile.am: installing './depcomp'
+ install -m644 -p /builddir/build/SOURCES/gpl-2.0.txt ./COPYING
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.RrDY1A
+ umask 022
+ cd /builddir/build/BUILD
+ cd libatomic_ops-7.4.6
+ CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 '
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 '
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  -I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  -I/usr/lib64/gfortran/modules'
+ export FCFLAGS
+ LDFLAGS='-Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
+ export LDFLAGS
+ '[' 1 = 1 ']'
+++ dirname ./configure
++ find . -name config.guess -o -name config.sub
+ for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub)
++ basename ./config.sub
+ '[' -f /usr/lib/rpm/redhat/config.sub ']'
+ /usr/bin/rm -f ./config.sub
++ basename ./config.sub
+ /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub
'/usr/lib/rpm/redhat/config.sub' -> './config.sub'
+ for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub)
++ basename ./config.guess
+ '[' -f /usr/lib/rpm/redhat/config.guess ']'
+ /usr/bin/rm -f ./config.guess
++ basename ./config.guess
+ /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess
'/usr/lib/rpm/redhat/config.guess' -> './config.guess'
+ '[' 1 = 1 ']'
+ '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']'
++ find . -name ltmain.sh
+ for i in $(find . -name ltmain.sh)
+ /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./ltmain.sh
+ ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --disable-silent-rules
checking build system type... riscv64-redhat-linux-gnu
checking host system type... riscv64-redhat-linux-gnu
checking target system type... riscv64-redhat-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for riscv64-redhat-linux-gnu-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... none
checking dependency style of gcc... none
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert riscv64-redhat-linux-gnu file names to riscv64-redhat-linux-gnu format... func_convert_file_noop
checking how to convert riscv64-redhat-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for riscv64-redhat-linux-gnu-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for riscv64-redhat-linux-gnu-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for riscv64-redhat-linux-gnu-ar... no
checking for ar... ar
checking for archiver @FILE support... @
checking for riscv64-redhat-linux-gnu-strip... no
checking for strip... strip
checking for riscv64-redhat-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for riscv64-redhat-linux-gnu-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for PIC compiler flag... -fPIC
checking whether gcc -fPIC causes __PIC__ definition... yes
checking for gcc -Wextra... yes
checking for pthread_self in -lpthread... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating pkgconfig/atomic_ops.pc
config.status: creating pkgconfig/atomic_ops-uninstalled.pc
config.status: creating src/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default commands
+ make -j4
Making all in src
make[1]: Entering directory '/builddir/build/BUILD/libatomic_ops-7.4.6/src'
make  all-am
make[2]: Entering directory '/builddir/build/BUILD/libatomic_ops-7.4.6/src'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../src -I../src  -fPIC -Wall -Wextra -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1   -c -o atomic_ops.lo atomic_ops.c
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../src -I../src  -fPIC -Wall -Wextra -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1   -c -o atomic_ops_stack.lo atomic_ops_stack.c
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../src -I../src  -fPIC -Wall -Wextra -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1   -c -o atomic_ops_malloc.lo atomic_ops_malloc.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../src -I../src -fPIC -Wall -Wextra -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c atomic_ops_stack.c  -fPIC -DPIC -o .libs/atomic_ops_stack.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../src -I../src -fPIC -Wall -Wextra -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c atomic_ops.c  -fPIC -DPIC -o .libs/atomic_ops.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../src -I../src -fPIC -Wall -Wextra -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c atomic_ops_malloc.c  -fPIC -DPIC -o .libs/atomic_ops_malloc.o
In file included from atomic_ops_stack.h:32:0,
                 from atomic_ops_malloc.h:29,
                 from atomic_ops_malloc.c:19:
atomic_ops.h:371:4: error: #error Cannot implement AO_compare_and_swap_full on this architecture.
 #  error Cannot implement AO_compare_and_swap_full on this architecture.
    ^~~~~
In file included from atomic_ops_stack.h:32:0,
                 from atomic_ops_stack.c:23:
atomic_ops.h:371:4: error: #error Cannot implement AO_compare_and_swap_full on this architecture.
 #  error Cannot implement AO_compare_and_swap_full on this architecture.
    ^~~~~
make[2]: *** [Makefile:612: atomic_ops_stack.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
atomic_ops.c:102:1: error: unknown type name 'AO_TS_t'; did you mean 'AO_TS_T'?
 AO_TS_t AO_locks[AO_HASH_SIZE] = {
 ^~~~~~~
 AO_TS_T
In file included from atomic_ops.c:52:0:
atomic_ops.h:160:29: error: 'AO_TS_t' undeclared here (not in a function); did you mean 'AO_TS_T'?
 #define AO_TS_INITIALIZER ((AO_TS_t)AO_TS_CLEAR)
                             ^
atomic_ops.c:103:3: note: in expansion of macro 'AO_TS_INITIALIZER'
   AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER,
   ^~~~~~~~~~~~~~~~~
atomic_ops.h:160:37: error: expected ')' before 'AO_TS_CLEAR'
 #define AO_TS_INITIALIZER ((AO_TS_t)AO_TS_CLEAR)
                                     ^
atomic_ops.c:103:3: note: in expansion of macro 'AO_TS_INITIALIZER'
   AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER,
   ^~~~~~~~~~~~~~~~~
atomic_ops.h:160:37: error: expected ')' before 'AO_TS_CLEAR'
 #define AO_TS_INITIALIZER ((AO_TS_t)AO_TS_CLEAR)
                                     ^
atomic_ops.c:103:22: note: in expansion of macro 'AO_TS_INITIALIZER'
   AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER,
                      ^~~~~~~~~~~~~~~~~
atomic_ops.h:160:37: error: expected ')' before 'AO_TS_CLEAR'
 #define AO_TS_INITIALIZER ((AO_TS_t)AO_TS_CLEAR)
                                     ^
atomic_ops.c:103:41: note: in expansion of macro 'AO_TS_INITIALIZER'
   AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER,
                                         ^~~~~~~~~~~~~~~~~
atomic_ops.h:160:37: error: expected ')' before 'AO_TS_CLEAR'
 #define AO_TS_INITIALIZER ((AO_TS_t)AO_TS_CLEAR)
                                     ^
atomic_ops.c:103:60: note: in expansion of macro 'AO_TS_INITIALIZER'
   AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER,
                                                            ^~~~~~~~~~~~~~~~~
atomic_ops.h:160:37: error: expected ')' before 'AO_TS_CLEAR'
 #define AO_TS_INITIALIZER ((AO_TS_t)AO_TS_CLEAR)
                                     ^
atomic_ops.c:104:3: note: in expansion of macro 'AO_TS_INITIALIZER'
   AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER,
   ^~~~~~~~~~~~~~~~~
atomic_ops.h:160:37: error: expected ')' before 'AO_TS_CLEAR'
 #define AO_TS_INITIALIZER ((AO_TS_t)AO_TS_CLEAR)
                                     ^
atomic_ops.c:104:22: note: in expansion of macro 'AO_TS_INITIALIZER'
   AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER,
                      ^~~~~~~~~~~~~~~~~
atomic_ops.h:160:37: error: expected ')' before 'AO_TS_CLEAR'
 #define AO_TS_INITIALIZER ((AO_TS_t)AO_TS_CLEAR)
                                     ^
atomic_ops.c:104:41: note: in expansion of macro 'AO_TS_INITIALIZER'
   AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER,
                                         ^~~~~~~~~~~~~~~~~
atomic_ops.h:160:37: error: expected ')' before 'AO_TS_CLEAR'
 #define AO_TS_INITIALIZER ((AO_TS_t)AO_TS_CLEAR)
                                     ^
atomic_ops.c:104:60: note: in expansion of macro 'AO_TS_INITIALIZER'
   AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER,
                                                            ^~~~~~~~~~~~~~~~~
atomic_ops.h:160:37: error: expected ')' before 'AO_TS_CLEAR'
 #define AO_TS_INITIALIZER ((AO_TS_t)AO_TS_CLEAR)
                                     ^
atomic_ops.c:105:3: note: in expansion of macro 'AO_TS_INITIALIZER'
   AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER,
   ^~~~~~~~~~~~~~~~~
atomic_ops.h:160:37: error: expected ')' before 'AO_TS_CLEAR'
 #define AO_TS_INITIALIZER ((AO_TS_t)AO_TS_CLEAR)
                                     ^
atomic_ops.c:105:22: note: in expansion of macro 'AO_TS_INITIALIZER'
   AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER,
                      ^~~~~~~~~~~~~~~~~
atomic_ops.h:160:37: error: expected ')' before 'AO_TS_CLEAR'
 #define AO_TS_INITIALIZER ((AO_TS_t)AO_TS_CLEAR)
                                     ^
atomic_ops.c:105:41: note: in expansion of macro 'AO_TS_INITIALIZER'
   AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER,
                                         ^~~~~~~~~~~~~~~~~
atomic_ops.h:160:37: error: expected ')' before 'AO_TS_CLEAR'
 #define AO_TS_INITIALIZER ((AO_TS_t)AO_TS_CLEAR)
                                     ^
atomic_ops.c:105:60: note: in expansion of macro 'AO_TS_INITIALIZER'
   AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER,
                                                            ^~~~~~~~~~~~~~~~~
atomic_ops.h:160:37: error: expected ')' before 'AO_TS_CLEAR'
 #define AO_TS_INITIALIZER ((AO_TS_t)AO_TS_CLEAR)
                                     ^
atomic_ops.c:106:3: note: in expansion of macro 'AO_TS_INITIALIZER'
   AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER,
   ^~~~~~~~~~~~~~~~~
atomic_ops.h:160:37: error: expected ')' before 'AO_TS_CLEAR'
 #define AO_TS_INITIALIZER ((AO_TS_t)AO_TS_CLEAR)
                                     ^
atomic_ops.c:106:22: note: in expansion of macro 'AO_TS_INITIALIZER'
   AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER,
                      ^~~~~~~~~~~~~~~~~
atomic_ops.h:160:37: error: expected ')' before 'AO_TS_CLEAR'
 #define AO_TS_INITIALIZER ((AO_TS_t)AO_TS_CLEAR)
                                     ^
atomic_ops.c:106:41: note: in expansion of macro 'AO_TS_INITIALIZER'
   AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER,
                                         ^~~~~~~~~~~~~~~~~
atomic_ops.h:160:37: error: expected ')' before 'AO_TS_CLEAR'
 #define AO_TS_INITIALIZER ((AO_TS_t)AO_TS_CLEAR)
                                     ^
atomic_ops.c:106:60: note: in expansion of macro 'AO_TS_INITIALIZER'
   AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER, AO_TS_INITIALIZER,
                                                            ^~~~~~~~~~~~~~~~~
atomic_ops.c:111:31: warning: type defaults to 'int' in declaration of 'AO_TS_t' [-Wimplicit-int]
 static void lock_ool(volatile AO_TS_t *l)
                               ^~~~~~~
atomic_ops.c:111:39: error: expected ';', ',' or ')' before '*' token
 static void lock_ool(volatile AO_TS_t *l)
                                       ^
atomic_ops.c:119:30: warning: type defaults to 'int' in declaration of 'AO_TS_t' [-Wimplicit-int]
 AO_INLINE void lock(volatile AO_TS_t *l)
                              ^~~~~~~
atomic_ops.c:119:38: error: expected ';', ',' or ')' before '*' token
 AO_INLINE void lock(volatile AO_TS_t *l)
                                      ^
atomic_ops.c:125:32: warning: type defaults to 'int' in declaration of 'AO_TS_t' [-Wimplicit-int]
 AO_INLINE void unlock(volatile AO_TS_t *l)
                                ^~~~~~~
atomic_ops.c:125:40: error: expected ';', ',' or ')' before '*' token
 AO_INLINE void unlock(volatile AO_TS_t *l)
                                        ^
atomic_ops.c:133:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'init_lock'
   static volatile AO_TS_t init_lock = AO_TS_INITIALIZER;
                           ^~~~~~~~~
In file included from atomic_ops.c:52:0:
atomic_ops.c: In function 'block_all_signals':
atomic_ops.c:137:26: warning: implicit declaration of function 'AO_load_acquire' [-Wimplicit-function-declaration]
     if (AO_EXPECT_FALSE(!AO_load_acquire(&initialized)))
                          ^
atomic_ops.h:173:49: note: in definition of macro 'AO_EXPECT_FALSE'
 # define AO_EXPECT_FALSE(expr) __builtin_expect(expr, 0)
                                                 ^~~~
atomic_ops.c:139:7: warning: implicit declaration of function 'lock'; did you mean 'clock'? [-Wimplicit-function-declaration]
       lock(&init_lock);
       ^~~~
       clock
atomic_ops.c:139:13: error: 'init_lock' undeclared (first use in this function); did you mean 'AO_pt_lock'?
       lock(&init_lock);
             ^~~~~~~~~
             AO_pt_lock
atomic_ops.c:139:13: note: each undeclared identifier is reported only once for each function it appears in
atomic_ops.c:142:7: warning: implicit declaration of function 'unlock'; did you mean 'clock'? [-Wimplicit-function-declaration]
       unlock(&init_lock);
       ^~~~~~
       clock
atomic_ops.c:143:7: warning: implicit declaration of function 'AO_store_release'; did you mean '__sync_lock_release'? [-Wimplicit-function-declaration]
       AO_store_release(&initialized, 1);
       ^~~~~~~~~~~~~~~~
       __sync_lock_release
atomic_ops.c: In function 'AO_fetch_compare_and_swap_emulation':
atomic_ops.c:159:12: error: 'my_lock' undeclared (first use in this function); did you mean 'AO_locks'?
   AO_TS_t *my_lock = AO_locks + AO_HASH(addr);
            ^~~~~~~
            AO_locks
atomic_ops.c: In function 'AO_compare_double_and_swap_double_emulation':
atomic_ops.c:181:12: error: 'my_lock' undeclared (first use in this function); did you mean 'AO_locks'?
   AO_TS_t *my_lock = AO_locks + AO_HASH(addr);
            ^~~~~~~
            AO_locks
atomic_ops.c: In function 'AO_store_full_emulation':
atomic_ops.c:206:12: error: 'my_lock' undeclared (first use in this function); did you mean 'AO_locks'?
   AO_TS_t *my_lock = AO_locks + AO_HASH(addr);
            ^~~~~~~
            AO_locks
atomic_ops.c: In function 'AO_spin':
atomic_ops.c:228:12: warning: implicit declaration of function 'AO_load'; did you mean 'AO_nop'? [-Wimplicit-function-declaration]
   AO_t j = AO_load(&spin_dummy);
            ^~~~~~~
            AO_nop
atomic_ops.c:234:3: warning: implicit declaration of function 'AO_store'; did you mean 'AO_spin'? [-Wimplicit-function-declaration]
   AO_store(&spin_dummy, j);
   ^~~~~~~~
   AO_spin
make[2]: *** [Makefile:612: atomic_ops.lo] Error 1
atomic_ops_malloc.c: In function 'AO_malloc_enable_mmap':
atomic_ops_malloc.c:107:5: warning: implicit declaration of function 'AO_store'; did you mean 'AO_free'? [-Wimplicit-function-declaration]
     AO_store(&mmap_enabled, 1);
     ^~~~~~~~
     AO_free
atomic_ops_malloc.c: In function 'get_chunk':
atomic_ops_malloc.c:199:33: warning: implicit declaration of function 'AO_load'; did you mean 'AO_nop'? [-Wimplicit-function-declaration]
     char *initial_ptr = (char *)AO_load(&initial_heap_ptr);
                                 ^~~~~~~
                                 AO_nop
atomic_ops_malloc.c:199:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     char *initial_ptr = (char *)AO_load(&initial_heap_ptr);
                         ^
atomic_ops_malloc.c:206:15: warning: implicit declaration of function 'AO_compare_and_swap_acquire'; did you mean 'AO_stack_pop_acquire'? [-Wimplicit-function-declaration]
         (void)AO_compare_and_swap_acquire(&initial_heap_ptr,
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
               AO_stack_pop_acquire
atomic_ops_malloc.c:212:9: warning: implicit declaration of function 'AO_compare_and_swap'; did you mean '__sync_val_compare_and_swap'? [-Wimplicit-function-declaration]
     if (AO_compare_and_swap(&initial_heap_ptr, (AO_t)my_chunk_ptr,
         ^~~~~~~~~~~~~~~~~~~
         __sync_val_compare_and_swap
make[2]: *** [Makefile:612: atomic_ops_malloc.lo] Error 1
make[2]: Leaving directory '/builddir/build/BUILD/libatomic_ops-7.4.6/src'
make[1]: *** [Makefile:471: all] Error 2
make[1]: Leaving directory '/builddir/build/BUILD/libatomic_ops-7.4.6/src'
make: *** [Makefile:473: all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.RrDY1A (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.RrDY1A (%build)
++ cleanup
++ set +e
++ sync
++ sleep 5
++ sync
++ poweroff
Terminated
+++ cleanup
+++ set +e
+++ sync
Terminated
++++ cleanup
++++ set +e
++++ sync
++++ sleep 5
++++ sync
++++ poweroff