Thanks for the answer. This explains where it comes from. Regarding my second question: Do you have any recommandation on the best thing to do ? What is the solution to build cryptopp as before ?
Thanks in advance. Le lundi 25 septembre 2023 à 17:08:16 UTC+2, Jeffrey Walton a écrit : > On Monday, September 25, 2023 at 10:13:03 AM UTC-4 Krissscool72 wrote: > > until now I was using cryptopp 8.2.0 on Ubuntu 18.04 and builting it with > CXXFLAGS="-DNDEBUG -O3 -mfunction-return=thunk -mindirect-branch=thunk" > make static > > I tried to build it on Ubuntu 22.04: > - Linux version 5.15.0-82-generic > - gcc 11.4.0 > > and encountered the followinf error: > /usr/include/c++/11/cstddef:126:48: error: '-mindirect-branch' and > 'fcf-protection' are not compatible > > *Do you have any idea where it comes from ?* > > I tried to compile with the following options instead: > CXXFLAGS="-DNDEBUG -O3 -fcf-protection=none -mfunction-return=thunk > -mindirect-branch=thunk" make static > OR > CXXFLAGS="-DNDEBUG -O3 -mfunction-return=thunk-extern > -mindirect-branch=thunk-extern" make static > which succeedeed. > > *Do you have any recommandation on the best thing to do ?* > > > And I think these are the GCC bugs: > > * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87412 > * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93654 > > Jeff > -- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/cryptopp-users/bc73bcf1-108e-4b25-832b-74a2b45a1452n%40googlegroups.com.
