ddir/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' BUILDSTDERR: 4067 | CASE(STBI__F_paeth_first) cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-out_n],0,0)); break; BUILDSTDERR: | ^~~~~ BUILDSTDERR: /builddir/build/BUILD/catimg-2.4.0/src/stb_image.h: In function 'stbi__gif_load_next': BUILDSTDERR: /builddir/build/BUILD/catimg-2.4.0/src/stb_image.h:5752:84: warning: unused parameter 'req_comp' [-Wunused-parameter] BUILDSTDERR: 5752 | static stbi_uc *stbi__gif_load_next(stbi__context *s, stbi__gif *g, int *comp, int req_comp) BUILDSTDERR: | ~~~~^~~~~~~~ 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' BUILDSTDERR: /usr/bin/ld: CMakeFiles/catimg.dir/src/sh_color.c.o: in function `.LANCHOR0': BUILDSTDERR: /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 BUILDSTDERR: /usr/bin/ld: CMakeFiles/catimg.dir/src/sh_color.c.o: in function `.LANCHOR1': BUILDSTDERR: /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 BUILDSTDERR: /usr/bin/ld: CMakeFiles/catimg.dir/src/sh_image.c.o: in function `.LANCHOR0': BUILDSTDERR: /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 BUILDSTDERR: /usr/bin/ld: CMakeFiles/catimg.dir/src/sh_image.c.o: in function `.LANCHOR0': BUILDSTDERR: /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 BUILDSTDERR: collect2: error: ld returned 1 exit status BUILDSTDERR: make[2]: *** [CMakeFiles/catimg.dir/build.make:132: bin/catimg] Error 1 RPM build errors: BUILDSTDERR: make[1]: *** [CMakeFiles/Makefile2:79: CMakeFiles/catimg.dir/all] Error 2 BUILDSTDERR: make: *** [Makefile:133: all] Error 2 BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.OYSpYM (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.OYSpYM (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 636, in do 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