^~~ /builddir/build/BUILD/catimg-2.4.0/src/stb_image.h:4067:13: note: in expansion of macro 'CASE' 4067 | CASE(STBI__F_paeth_first) cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-out_n],0,0)); break; | ^~~~ /builddir/build/BUILD/catimg-2.4.0/src/stb_image.h:4067:105: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 4067 | CASE(STBI__F_paeth_first) cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-out_n],0,0)); break; | ^~~~~ /builddir/build/BUILD/catimg-2.4.0/src/stb_image.h: In function 'stbi__gif_load_next': /builddir/build/BUILD/catimg-2.4.0/src/stb_image.h:5752:84: warning: unused parameter 'req_comp' [-Wunused-parameter] 5752 | static stbi_uc *stbi__gif_load_next(stbi__context *s, stbi__gif *g, int *comp, int req_comp) | ~~~~^~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/catimg-2.4.0/riscv64-redhat-linux-gnu' [100%] Linking C executable bin/catimg /usr/bin/cmake -E cmake_link_script CMakeFiles/catimg.dir/link.txt --verbose=1 /usr/bin/cc -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -Wall -Wextra -Os -std=c99 -Wno-unused-result -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -rdynamic CMakeFiles/catimg.dir/src/catimg.c.o CMakeFiles/catimg.dir/src/sh_color.c.o CMakeFiles/catimg.dir/src/sh_image.c.o CMakeFiles/catimg.dir/src/sh_utils.c.o -o bin/catimg -lm make[2]: Leaving directory '/builddir/build/BUILD/catimg-2.4.0/riscv64-redhat-linux-gnu' /usr/bin/ld: CMakeFiles/catimg.dir/src/sh_color.c.o: in function `.LANCHOR0': /builddir/build/BUILD/catimg-2.4.0/src/sh_color.h:41: multiple definition of `yuv_color_map'; CMakeFiles/catimg.dir/src/catimg.c.o:/builddir/build/BUILD/catimg-2.4.0/src/sh_color.h:41: first defined here /usr/bin/ld: CMakeFiles/catimg.dir/src/sh_color.c.o: in function `.LANCHOR1': /builddir/build/BUILD/catimg-2.4.0/src/sh_color.h:39: multiple definition of `color_map'; CMakeFiles/catimg.dir/src/catimg.c.o:/builddir/build/BUILD/catimg-2.4.0/src/sh_color.h:39: first defined here /usr/bin/ld: CMakeFiles/catimg.dir/src/sh_image.c.o: in function `.LANCHOR0': /builddir/build/BUILD/catimg-2.4.0/src/sh_color.h:41: multiple definition of `yuv_color_map'; CMakeFiles/catimg.dir/src/catimg.c.o:/builddir/build/BUILD/catimg-2.4.0/src/sh_color.h:41: first defined here /usr/bin/ld: CMakeFiles/catimg.dir/src/sh_image.c.o: in function `.LANCHOR0': /builddir/build/BUILD/catimg-2.4.0/src/sh_color.h:39: multiple definition of `color_map'; CMakeFiles/catimg.dir/src/catimg.c.o:/builddir/build/BUILD/catimg-2.4.0/src/sh_color.h:39: first defined here collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/catimg.dir/build.make:132: bin/catimg] Error 1 make[1]: *** [CMakeFiles/Makefile2:79: CMakeFiles/catimg.dir/all] Error 2 RPM build errors: make: *** [Makefile:133: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.sjrggP (%build) Bad exit status from /var/tmp/rpm-tmp.sjrggP (%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/catimg.spec