X-Envelope-From: notmuch-bounces@notmuchmail.org  Mon May  4 09:14:07 2026
Return-Path: <notmuch-bounces@notmuchmail.org>
X-Original-To: nmbug@yantan.tethera.net
Delivered-To: nmbug@yantan.tethera.net
Received: from yantan.tethera.net (localhost [127.0.0.1])
	by mail.notmuchmail.org (Postfix) with ESMTP id BD7975F5C5;
	Mon,  4 May 2026 09:14:07 +0000 (UTC)
Received: from mail-dl1-x122a.google.com (mail-dl1-x122a.google.com [IPv6:2607:f8b0:4864:20::122a])
	by mail.notmuchmail.org (Postfix) with ESMTPS id ACE9B5E522
	for <notmuch@notmuchmail.org>; Mon,  4 May 2026 09:14:04 +0000 (UTC)
Received: by mail-dl1-x122a.google.com with SMTP id a92af1059eb24-12c19d23b19so5385093c88.0
        for <notmuch@notmuchmail.org>; Mon, 04 May 2026 02:14:04 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1777886043; cv=none;
        d=google.com; s=arc-20240605;
        b=HUr0oELoM3KLY2P6eV2KZqzFDry29TL++7EAokmQWv0Ni0r7HZDs+mgNyvV221RdpA
         O6SG4nfr+R1Ot0pyyD419xtcKpgRA6EYc/0tHdkPUtZd2a12Tp2goUdqnwFLLBCA2k+g
         K0+8F9lSX4IztEXMbhOFv2Ggc12BWUwZez3t78pf3yCPyLWA1hnYMeEdl8Ch3U196b8R
         eHo1152tJGAX0adrYezAtSMIXKfQqvPNUIpUFVjZOhfQeLtpzP5bQ89dT1DFO6BO8pCb
         6NQXQmtlQxCSVreqRG5GK9RML8JveWWVrY7pvqqhDp0LD6hqDYm71x3mxvym5ET2M+JK
         AibA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605;
        h=cc:to:subject:message-id:date:from:in-reply-to:references
         :mime-version:dkim-signature;
        bh=bYlCWatEkyfdELqjaTbrnCX1jaepMNpxcF/wzmb+m/Y=;
        fh=CaF81yNfH2SDzI3kyy8i5B4weEQ6PfRpZFu2BgSIVFA=;
        b=PNKjSiQamBs7b9ApxI+I7YAgrwinpO4TIcZ2af7hMowcdSF4actVBE4cd9wMi4eZ5O
         T92xZ7fS4H/hGWDNmokm8rF8gBgXNc+rel5nXxK9fudCrRLAZr7xfZXBB5Y4r57zwc91
         cVa5NvILdddP3xvorpprvVY0+b+ALN4HJbefp9YQmZ34J23DydSIVzDtNeL13bM8fmBN
         Yf/WURuobTjNi3q7/qZa6LDJvvNcvBPkCLVqtY3FNU984gIV9SbYiP8gJo/KCUnL5b6c
         n1eSDyuf3txWOb/G08bIzyhUuqhMdYjkodNy66s6o3ikPFwWSqf3kCGItVSkuUllbSap
         FUOQ==;
        darn=notmuchmail.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20251104; t=1777886043; x=1778490843; darn=notmuchmail.org;
        h=cc:to:subject:message-id:date:from:in-reply-to:references
         :mime-version:from:to:cc:subject:date:message-id:reply-to;
        bh=bYlCWatEkyfdELqjaTbrnCX1jaepMNpxcF/wzmb+m/Y=;
        b=d+gTcTqePNUpunOljf9vjvG1nruW82PA/Mb5rFhODMPxJ5MGFIIHoqZxi3ly0KAOBA
         ht5fcqVyVyIM6dKtSY/MoBiN4ZvTGbO+fx8dGSKqTmjBomfM7jtjvO8J7ZNyMqqo/YMZ
         t6+SqUvMRvSo6cLqWGoJLmbACxsz53s/gaf3Cvtm6EsTW0vd253NN6WOgsISMpDNxQNw
         tSD24bVM455fUHN3fYwx3V3LTtq2IcE2fp46h3b98g5bF1S1nS1rvExEjYXw0XbgLO1f
         znKe20qv+aaPMzFPlsKQ99IlV8JIVijmOiEyoqrEBj6szlFsXr7CS+m62BKE01gkOhEi
         +PHQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20251104; t=1777886043; x=1778490843;
        h=cc:to:subject:message-id:date:from:in-reply-to:references
         :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
         :message-id:reply-to;
        bh=bYlCWatEkyfdELqjaTbrnCX1jaepMNpxcF/wzmb+m/Y=;
        b=lEunh1X35u5GXwy9X0GyAkOpJzZofJSU+vnqJDQIyEHySbgJG+qIFKS+RbAWXXcT3Y
         4SDJ8wnnmWj+mmojDCqdBMFRN1/fNIGdnZ//2Um27t9SxYJIKsry/1QKmSpJqzLDMxQG
         tgVC1XntIUtPrHEYgbdGJDzb9512ibfQ7l8YrNHIXpHzKRICfp2pELnpNH3wCiZbqUNM
         FWLBylIIWJ/A2jmEkzCeZTn6NmKw8PIdnuxg4bMmJSiIUFtRd9VC1sw6tnnMB8zPTPbK
         Btp9ZbW3Npxu8vqT7vGiY5/IOeYeAZLpfXkux0ZK9rJ3xNW5MHHmrhx12EiibNhKmKID
         Ad0Q==
X-Gm-Message-State: AOJu0YwITS2e5LMcP3XGFICpg7TitH39UQ9kN8NdGN3utmP4ZXopwGbV
	lgn/T56EMuVFwJVNvgTXdFMP/d6FC9QrUpzjy6zD49A2MJJuRHWhgtytLSuVQxX7hbOEidATUNQ
	cSaSxgpE4p/d8NbjCB2i/2/vlRT/zQB0=
X-Gm-Gg: AeBDiesqpPpUWkNmaXqlaJ8OrQ1iuCRfbzecSJGnHEK4UbT47P/8IHaoss8gCAGLJyn
	FS1IVtpNvFtH0XmLE2i1BYrlM5/4EMCUBDefTqiwgtEHzFyxkTG1xDVNPZI0tUAX/j8FnI7u4a4
	PxCnoxQOp0QwAEQJ6xESXe9VyYHM68PrCevDQpsv3t6dQvVOtS/tjIhCVtUxTXk9Y0OFDxd9HYH
	DDJ1x74Yl90aIqiqBz+nKo19KNP61+QvHspVKfb17dudcGaXNcclq27fUO8C7UhpZaRdv4u0bUK
	wTBL3znmBS7ilk0=
X-Received: by 2002:a05:7022:699d:b0:12d:ea4f:99dd with SMTP id
 a92af1059eb24-12dfd83a00amr4059636c88.34.1777886042670; Mon, 04 May 2026
 02:14:02 -0700 (PDT)
MIME-Version: 1.0
References: <87pl3e2nvl.fsf@tethera.net>
In-Reply-To: <87pl3e2nvl.fsf@tethera.net>
From: Michael J Gruber <michaeljgruber+grubix+git@gmail.com>
Date: Mon, 4 May 2026 11:13:50 +0200
X-Gm-Features: AVHnY4KId8JBLsnGf1zb0YzjODLE2t1O7VrGt3z2h9VCbUA89mYEWHFXPUfgaA8
Message-ID: <CAA19uiR+u2p4FpjA-Ub=dBKLGSVtULBMPs3F9i4dWwRcG12yhA@mail.gmail.com>
Subject: Re: compilation issues with gcc-15 / gcc-16
To: David Bremner <david@tethera.net>
Message-ID-Hash: HK33YVM46253C3DSH3G2YB4N5GXIUPKY
X-Message-ID-Hash: HK33YVM46253C3DSH3G2YB4N5GXIUPKY
X-MailFrom: michaeljgruber@gmail.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: notmuch@notmuchmail.org
X-Mailman-Version: 3.3.3
Precedence: list
List-Id: "Use and development of the notmuch mail system." <notmuch.notmuchmail.org>
List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
List-Owner: <mailto:notmuch-owner@notmuchmail.org>
List-Post: <mailto:notmuch@notmuchmail.org>
List-Subscribe: <mailto:notmuch-join@notmuchmail.org>
List-Unsubscribe: <mailto:notmuch-leave@notmuchmail.org>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

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.

CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g
-grecord-gcc-switches -pipe -Wall -Werror=format-security
-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1
 -mbranch-protection=standard -fasynchronous-unwind-tables
-fstack-clash-protection -fno-omit-frame-pointer
-mno-omit-leaf-frame-pointer  '

LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs
-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1
-specs=/usr/lib/rpm/redhat/redhat-package-notes  '

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