nit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wwrite-strings -Wno-unused-parameter -Wno-strict-aliasing -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -fdiagnostics-show-option -c -o libmutrace_backtrace_symbols_la-backtrace-symbols.lo `test -f 'backtrace-symbols.c' || echo './'`backtrace-symbols.c chmod +x mutrace sed -e 's,@PACKAGE_STRING\@,mutrace 0.2,g' \ -e 's,@PACKAGE_NAME\@,mutrace,g' < matrace.in > matrace chmod +x matrace matrace.c: In function 'setup': matrace.c:177:9: warning: '__malloc_hook' is deprecated [-Wdeprecated-declarations] 177 | if (__malloc_hook) { | ^~ backtrace-symbols.c: In function 'find_address_in_section': backtrace-symbols.c:130:7: warning: implicit declaration of function 'bfd_get_section_flags'; did you mean 'bfd_set_section_flags'? [-Wimplicit-function-declaration] 130 | if ((bfd_get_section_flags(abfd, section) & SEC_ALLOC) == 0) | ^~~~~~~~~~~~~~~~~~~~~ | bfd_set_section_flags backtrace-symbols.c:133:8: warning: implicit declaration of function 'bfd_get_section_vma'; did you mean 'bfd_set_section_vma'? [-Wimplicit-function-declaration] 133 | vma = bfd_get_section_vma(abfd, section); | ^~~~~~~~~~~~~~~~~~~ | bfd_set_section_vma backtrace-symbols.c:137:26: warning: passing argument 1 of 'bfd_section_size' from incompatible pointer type [-Wincompatible-pointer-types] 137 | size = bfd_section_size(abfd, section); | ^~~~ | | | bfd * In file included from matrace.c:39: /usr/include/malloc.h:148:39: note: declared here 148 | extern void *(*__MALLOC_HOOK_VOLATILE __malloc_hook)(size_t __size, | ^~~~~~~~~~~~~ In file included from backtrace-symbols.c:52: /usr/include/bfd.h:1214:35: note: expected 'const asection *' {aka 'const struct bfd_section *'} but argument is of type 'bfd *' 1214 | bfd_section_size (const asection *sec) | ~~~~~~~~~~~~~~~~^~~ backtrace-symbols.c:137:9: error: too many arguments to function 'bfd_section_size' 137 | size = bfd_section_size(abfd, section); | ^~~~~~~~~~~~~~~~ In file included from backtrace-symbols.c:52: /usr/include/bfd.h:1214:1: note: declared here 1214 | bfd_section_size (const asection *sec) | ^~~~~~~~~~~~~~~~ mutrace.c: In function 'setup': mutrace.c:270:9: warning: '__malloc_hook' is deprecated [-Wdeprecated-declarations] 270 | if (__malloc_hook) { | ^~ In file included from mutrace.c:39: /usr/include/malloc.h:148:39: note: declared here 148 | extern void *(*__MALLOC_HOOK_VOLATILE __malloc_hook)(size_t __size, | ^~~~~~~~~~~~~ matrace.c: At top level: matrace.c:416:6: warning: no previous prototype for 'cfree' [-Wmissing-prototypes] 416 | void cfree(void *p) { | ^~~~~ make[1]: *** [Makefile:545: libmutrace_backtrace_symbols_la-backtrace-symbols.lo] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory '/builddir/build/BUILD/mutrace-0.2' make: *** [Makefile:372: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.sDC2HC (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.sDC2HC (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/mutrace.spec