t/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wempty-body -Werror=misleading-indentation -Werror=narrowing -Werror=overloaded-virtual -pthread -I/usr/include/poppler -I/usr/include/GraphicsMagick -I/usr/include/uuid -c -o config.o config.cc g++ -fopenmp -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 -Wall -Wempty-body -Werror=misleading-indentation -Werror=narrowing -Werror=overloaded-virtual -pthread -I/usr/include/poppler -I/usr/include/GraphicsMagick -I/usr/include/uuid -c -o pdf2djvu.o pdf2djvu.cc BUILDSTDERR: In file included from image-filter.hh:22, BUILDSTDERR: from pdf2djvu.cc:43: BUILDSTDERR: pdf-backend.hh: In constructor 'pdf::Pixmap::Pixmap(pdf::Renderer*)': BUILDSTDERR: pdf-backend.hh:224:14: warning: enumeration value 'splashModeCMYK8' not handled in switch [-Wswitch] BUILDSTDERR: 224 | switch (bmp->getMode()) BUILDSTDERR: | ^ BUILDSTDERR: pdf-backend.hh:224:14: warning: enumeration value 'splashModeDeviceN8' not handled in switch [-Wswitch] BUILDSTDERR: In file included from pdf-backend.hh:39, BUILDSTDERR: from image-filter.hh:22, BUILDSTDERR: from pdf2djvu.cc:43: BUILDSTDERR: /usr/include/poppler/SplashOutputDev.h: At global scope: BUILDSTDERR: /usr/include/poppler/SplashOutputDev.h:307:8: error: 'virtual void SplashOutputDev::drawImage(GfxState*, Object*, Stream*, int, int, GfxImageColorMap*, bool, const int*, bool)' was hidden [-Werror=overloaded-virtual] BUILDSTDERR: 307 | void drawImage(GfxState *state, Object *ref, Stream *str, BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: pdf2djvu.cc:338:8: error: by 'void MutedRenderer::drawImage(pdf::gfx::State*, pdf::Object*, pdf::Stream*, int, int, pdf::gfx::ImageColorMap*, bool, int*, bool)' [-Werror=overloaded-virtual] BUILDSTDERR: 338 | void drawImage(pdf::gfx::State *state, pdf::Object *object, pdf::Stream *stream, int width, int height, BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: In file included from pdf-backend.hh:39, BUILDSTDERR: from image-filter.hh:22, BUILDSTDERR: from pdf2djvu.cc:43: BUILDSTDERR: /usr/include/poppler/SplashOutputDev.h:287:8: error: 'virtual void SplashOutputDev::drawChar(GfxState*, double, double, double, double, double, double, CharCode, int, const Unicode*, int)' was hidden [-Werror=overloaded-virtual] BUILDSTDERR: 287 | void drawChar(GfxState *state, double x, double y, BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: pdf2djvu.cc:381:8: error: by 'void MutedRenderer::drawChar(pdf::gfx::State*, double, double, double, double, double, double, CharCode, int, Unicode*, int)' [-Werror=overloaded-virtual] BUILDSTDERR: 381 | void drawChar(pdf::gfx::State *state, double x, double y, double dx, double dy, double origin_x, double origin_y, BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: cc1plus: some warnings being treated as errors BUILDSTDERR: make: *** [: pdf2djvu.o] Error 1 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.rQqcmG (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.rQqcmG (%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 700, 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/pdf2djvu.spec