/bin/sh ../libtool --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -DDIR_DATADIR=\"/usr/share\" -pthread -march=native -fno-ident -frecord-gcc-switches -fstack-clash-protection -fstack-protector-all -mfunction-return=thunk -mindirect-branch=thunk -mindirect-branch-register -pipe -Wall -Werror=terminate -O3 -Wall -DNDEBUG -c -o libdjvulibre_la-GSmartPointer.lo `test -f 'GSmartPointer.cpp' || echo './'`GSmartPointer.cpp libtool: compile: x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -DDIR_DATADIR=\"/usr/share\" -pthread -march=native -fno-ident -frecord-gcc-switches -fstack-clash-protection -fstack-protector-all -mfunction-return=thunk -mindirect-branch=thunk -mindirect-branch-register -pipe -Wall -Werror=terminate -O3 -Wall -DNDEBUG -c GSmartPointer.cpp -fPIC -DPIC -o .libs/libdjvulibre_la-GSmartPointer.o In file included from GThreads.h:90, from GSmartPointer.cpp:76: GSmartPointer.cpp: In destructor 'virtual DJVU::GPEnabled::~GPEnabled()': GException.h:232:82: error: throw will always call terminate() [-Werror=terminate] # define G_THROW(msg) throw GException(msg,__FILE__,__LINE__,__PRETTY_FUNCTION__) ^ GSmartPointer.cpp:93:5: note: in expansion of macro 'G_THROW' G_THROW( ERR_MSG("GSmartPointer.suspicious") ); ^~~~~~~ GException.h:232:82: note: in C++11 destructors default to noexcept # define G_THROW(msg) throw GException(msg,__FILE__,__LINE__,__PRETTY_FUNCTION__) ^ GSmartPointer.cpp:93:5: note: in expansion of macro 'G_THROW' G_THROW( ERR_MSG("GSmartPointer.suspicious") ); ^~~~~~~ cc1plus: some warnings being treated as errors make[2]: *** [Makefile:858: libdjvulibre_la-GSmartPointer.lo] Error 1 make[2]: Opuszczenie katalogu '/var/tmp/portage/app-text/djvu-3.5.27/work/djvulibre-3.5.27/libdjvu' make[1]: *** [Makefile:418: all-recursive] Error 1 make[1]: Opuszczenie katalogu '/var/tmp/portage/app-text/djvu-3.5.27/work/djvulibre-3.5.27' make: *** [Makefile:349: all] Error 2 * ERROR: app-text/djvu-3.5.27::gentoo failed (compile phase): * emake failed
Problem was fixed in app-text/djvu-3.5.27-r2 (which is misnamed because it is snapshot from somewhere between 3.5.27 and 3.5.28). Problematic code in libdjvu/GSmartPointer.cpp was disabled in: https://sourceforge.net/p/djvu/djvulibre-git/ci/df3831b1f1b71fe6d62935eb7b896cfef8a8f360/