<p></p>
<blockquote>
<p>FTR the cflags in Fedora are:<br>
[…]<br>
And ldflags:</p>
</blockquote>
<p>Ah-ah!  We got a winner.  If I build Geany with those flags (minus the <code>-spec</code> parameters that obviously don't work on my Debian):</p>
<div class="highlight highlight-source-shell"><pre>$ <span class="pl-k">export</span> LDFLAGS=<span class="pl-s"><span class="pl-pds">"</span>-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now<span class="pl-pds">"</span></span>
$ <span class="pl-k">export</span> CFLAGS=<span class="pl-s"><span class="pl-pds">"</span>-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong  -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection<span class="pl-pds">"</span></span>
$ <span class="pl-k">export</span> CXXFLAGS=<span class="pl-s"><span class="pl-pds">"</span><span class="pl-smi">$CFLAGS</span><span class="pl-pds">"</span></span>
$ ./autogen.sh --prefix=/tmp/_install
[…]
$ make -j4 install
[…]
$ /tmp/_install/bin/geany -c /tmp/_conf
/usr/include/c++/8/bits/stl_vector.h:950: std::vector<span class="pl-k"><</span>_Tp, _Alloc<span class="pl-k">></span>::const_reference std::vector<span class="pl-k"><</span>_Tp, _Alloc<span class="pl-k">></span>::operator[](std::vector<span class="pl-k"><</span>_Tp, _Alloc<span class="pl-k">></span>::size_type) const [with _Tp <span class="pl-k">=</span> unsigned char<span class="pl-k">;</span> _Alloc <span class="pl-k">=</span> std::allocator<span class="pl-k"><</span>unsigned char<span class="pl-k">></span><span class="pl-k">;</span> std::vector<span class="pl-k"><</span>_Tp, _Alloc<span class="pl-k">></span>::const_reference <span class="pl-k">=</span> const unsigned char<span class="pl-k">&;</span> std::vector<span class="pl-k"><</span>_Tp, _Alloc<span class="pl-k">></span>::size_type <span class="pl-k">=</span> long unsigned int]: Assertion <span class="pl-s"><span class="pl-pds">'</span>__builtin_expect(__n < this->size(), true)<span class="pl-pds">'</span></span> failed.</pre></div>
<p>Without testing further, my money would go on <code>-D_GLIBCXX_ASSERTIONS</code>.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany-plugins/issues/1041#issuecomment-739836146">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ3NY53LZ2BOOHKLBMTSTSW2NANCNFSM4UHMIKQQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ4FMF3X2YYOPUWNSUDSTSW2NA5CNFSM4UHMIKQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFQMQB4Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany-plugins/issues/1041#issuecomment-739836146",
"url": "https://github.com/geany/geany-plugins/issues/1041#issuecomment-739836146",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>