All of lore.kernel.org
 help / color / mirror / Atom feed
From: sunilkumar.dora@windriver.com
To: openembedded-devel@lists.openembedded.org
Cc: raj.khem@gmail.com, Sundeep.Kokkonda@windriver.com,
	Randy.MacLeod@windriver.com, SunilKumar.Dora@windriver.com
Subject: [meta-networking][PATCH v2] dovecot: Work around clang 23 hang
Date: Sat,  5 Sep 2026 18:32:22 +0530	[thread overview]
Message-ID: <20260905130222.941722-1-sunilkumar.dora@windriver.com> (raw)

From: Khem Raj <raj.khem@gmail.com>

clang 23 enables DFAJumpThreading by default and takes over 90
minutes on the switch based state machine loops in the lib-json
tests, where clang 22 needs under a second. Reported upstream with a
bisect and reduced testcase:
https://github.com/llvm/llvm-project/issues/221391

Disable just that pass for clang builds until the fix lands. gcc
builds are not affected.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Sunil Dora <sunilkumar.dora@windriver.com>
---
  v2: disable DFAJumpThreading instead of LSR (bisected root cause,
  keeps LSR enabled); https://github.com/llvm/llvm-project/issues/221391

 meta-networking/recipes-support/dovecot/dovecot_2.4.5.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-networking/recipes-support/dovecot/dovecot_2.4.5.bb b/meta-networking/recipes-support/dovecot/dovecot_2.4.5.bb
index 2f4981bee1..993453eaa3 100644
--- a/meta-networking/recipes-support/dovecot/dovecot_2.4.5.bb
+++ b/meta-networking/recipes-support/dovecot/dovecot_2.4.5.bb
@@ -20,6 +20,9 @@ SRC_URI[sha256sum] = "868c2686a61b5f8e00a3e4721789b1ab46e6528fd773a5fbed07a6ecba
 
 DEPENDS = "openssl xz zlib bzip2 libcap icu libtirpc bison-native"
 CFLAGS += "-I${STAGING_INCDIR}/tirpc"
+# clang 23 takes hours to compile the lib-json tests, drop when
+# https://github.com/llvm/llvm-project/issues/221391 is fixed
+CFLAGS:append:toolchain-clang = " -mllvm -enable-dfa-jump-thread=false"
 LDFLAGS += "-ltirpc"
 
 inherit autotools pkgconfig systemd useradd gettext multilib_header
-- 
2.43.0



                 reply	other threads:[~2026-09-05 13:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260905130222.941722-1-sunilkumar.dora@windriver.com \
    --to=sunilkumar.dora@windriver.com \
    --cc=Randy.MacLeod@windriver.com \
    --cc=Sundeep.Kokkonda@windriver.com \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=raj.khem@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.