Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 679496 - app-text/djvu-3.5.27: GException.h:232:82: error: throw will always call terminate() [-Werror=terminate]
Summary: app-text/djvu-3.5.27: GException.h:232:82: error: throw will always call term...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-05 08:33 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2020-09-01 02:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2019-03-05 08:33:11 UTC
/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
Comment 1 Arfrever Frehtes Taifersar Arahesis 2020-09-01 02:11:38 UTC
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/