Re: compilation issues with gcc-15 / gcc-16

Subject: Re: compilation issues with gcc-15 / gcc-16

Date: Mon, 27 Jul 2026 22:57:49 -0300

To: Michael J Gruber

Cc: notmuch@notmuchmail.org

From: David Bremner


Michael J Gruber <michaeljgruber+grubix+git@gmail.com> writes:

> Am Sa., 2. Mai 2026 um 10:54 Uhr schrieb David Bremner <david@tethera.net>:
>>
>>
>> I'm not sure if this is a problem with notmuch and gcc becoming stricter
>> / more ambitious, or a compiler bug, but today I learned that gcc-15
>> 15.2.0-7 (an upstream snapshot) and gcc-16 both miscompile notmuch at
>> optimization level O2. A workaround seems to be to run configure as
>>
>> CFLAGS="-g -O1" ./configure
>>
>> I filed a Debian bug report at
>>
>>   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1135526
>
> FYI:
> I don't see this on Fedora with notmuch 0.40 and gcc-16.0.1-0.11.fc44
> resp. gcc-15.2.1-7.fc43.

This seems to be fixed in Debian now too. Upstream gcc fixed the
optimization bug in gcc 15.3 and 16.2
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: