rsing error"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: Source/Utilities.h:508:20: warning: 'FI_MSG_ERROR_MEMORY' defined but not used [-Wunused-variable] BUILDSTDERR: static const char *FI_MSG_ERROR_MEMORY = "Memory allocation failed"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ g++ -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 -I. -ISource -ISource/Metadata -ISource/FreeImageToolkit -D__ANSI__ -I/usr/include/jxrlib -I/usr/include/OpenEXR -pthread -I/usr/include/libdrm -I/usr/include/openjpeg-2.3 -I/usr/include/libraw -I/usr/include/libpng16 -c Source/FreeImage/PluginMNG.cpp -o Source/FreeImage/PluginMNG.o BUILDSTDERR: In file included from Source/FreeImage/PluginMNG.cpp:23: BUILDSTDERR: Source/Utilities.h: In function 'unsigned int CalculatePitch(unsigned int)': BUILDSTDERR: Source/Utilities.h:285:14: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] BUILDSTDERR: return line + 3 & ~3; BUILDSTDERR: ~~~~~^~~ BUILDSTDERR: Source/Utilities.h: At global scope: BUILDSTDERR: Source/Utilities.h:514:20: warning: 'FI_MSG_WARNING_INVALID_THUMBNAIL' defined but not used [-Wunused-variable] BUILDSTDERR: static const char *FI_MSG_WARNING_INVALID_THUMBNAIL = "Warning: attached thumbnail cannot be written to output file (invalid format) - Thumbnail saving aborted"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: Source/Utilities.h:513:20: warning: 'FI_MSG_ERROR_UNSUPPORTED_COMPRESSION' defined but not used [-Wunused-variable] BUILDSTDERR: static const char *FI_MSG_ERROR_UNSUPPORTED_COMPRESSION = "Unsupported compression type"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: Source/Utilities.h:512:20: warning: 'FI_MSG_ERROR_UNSUPPORTED_FORMAT' defined but not used [-Wunused-variable] BUILDSTDERR: static const char *FI_MSG_ERROR_UNSUPPORTED_FORMAT = "Unsupported format"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: Source/Utilities.h:511:20: warning: 'FI_MSG_ERROR_MAGIC_NUMBER' defined but not used [-Wunused-variable] BUILDSTDERR: static const char *FI_MSG_ERROR_MAGIC_NUMBER = "Invalid magic number"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: Source/Utilities.h:510:20: warning: 'FI_MSG_ERROR_PARSING' defined but not used [-Wunused-variable] BUILDSTDERR: static const char *FI_MSG_ERROR_PARSING = "Parsing error"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: Source/Utilities.h:509:20: warning: 'FI_MSG_ERROR_DIB_MEMORY' defined but not used [-Wunused-variable] BUILDSTDERR: static const char *FI_MSG_ERROR_DIB_MEMORY = "DIB allocation failed, maybe caused by an invalid image size or by a lack of memory"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: Source/Utilities.h:508:20: warning: 'FI_MSG_ERROR_MEMORY' defined but not used [-Wunused-variable] BUILDSTDERR: static const char *FI_MSG_ERROR_MEMORY = "Memory allocation failed"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.sPoM37 (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.sPoM37 (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 626, 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/freeimage.spec