compilation issues with gcc-15 / gcc-16

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

Date: Sat, 02 May 2026 17:53:50 +0900

To: notmuch@notmuchmail.org

Cc:

From: David Bremner


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

d
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: