DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 60M8KZMD1995578
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 60M8KZMD1995578
Authentication-Results: delorie.com;
	dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=KHpxrmyx
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 413EE4BC8989
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1769070030;
	bh=MwGH46UdzXmdnkSaaykXeILin3ETDKEYX6Dyzmx0WZQ=;
	h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=KHpxrmyxPt98uTAmtJmIPVht0iFF6S7Sog62KgqDJNNObzB5hHCkVXxNR3md/lOV+
	 lOqE5L0+1/fMZF46bA8RW4vO1guvHELcVWBSUSMdt7wINg1W+q3GhzjlRsY1G+eEat
	 3Qy3H50ZBwmZqrSlJhTQftWgp/7ZxjSo/qRqJcLY=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 222F24BA540B
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 222F24BA540B
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1769070008; cv=none;
 b=J4+bMt0ZlTr2Xc/+leRcnsiPu4yvTdp1+XBxIdGJdNpLdMm3O7Zqf8fixWYzex+kxbAbpn9ZSeVrvFQERK52dXYjZsp+4Hxn5ZyOtDxI3xYSKF7jKzojM7XCZqPm5w+Rq0ZTFXHqx9TeGBfS8dFVRbGBxapWumH3eJ+pCJh4cf0=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1769070008; c=relaxed/simple;
 bh=a/f6zpG00du0QOzRry4CcmJ55g8+QWpnJKr5YQ25xSI=;
 h=Date:From:To:Subject:Message-Id:Mime-Version:DKIM-Signature;
 b=Dz+voOd5sYqi5IuH8qWXyavhdDNTzLhWQg+yHII76vt3Nqa8rTPi6aRUhlCmRZCHF1FiA/vZSYa97WZtmFMEEt8ETC1U2gHMsqrzzAR7g62llZDlZRh+acxBhCqqxDmIhpquBxp9qhKOwXp4KJKwSL/hOjTdZqk4URiG3WKdW44=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 222F24BA540B
Date: Thu, 22 Jan 2026 17:20:03 +0900
To: cygwin@cygwin.com
Subject: Re: Request to update libc++ related packages for current
 Clang/LLVM toolchain
Message-Id: <20260122172003.9f1447b5885d76561c898c81@nifty.ne.jp>
In-Reply-To: <1768723106210.867796925.3623049726@gmail.com>
References: <20260118164544.346bdad89e67eec6fd054d95@nifty.ne.jp>
 <1768723106210.867796925.3623049726@gmail.com>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Takashi Yano via Cygwin <cygwin@cygwin.com>
Reply-To: Takashi Yano <takashi.yano@nifty.ne.jp>
Content-Type: text/plain; charset="iso-2022-jp"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces~archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>

On Sun, 18 Jan 2026 10:07:43 +0000
kikairoya wrote:
> 
> 2026$BG/(B1$B7n(B18$BF|(B 16:45:44 (+09:00) $B$G!"(BTakashi Yano $B$5$s$,=q$-$^$7$?(B:
> 
> > Thanks for pointing this out.
> > 
> > The comment in the emutls.c explains that.
> > https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/builtins/emutls.c#L378-L389
> > 
> > Do you think this is a defect we should accept?
> > 
> 
> The restriction might be acceptable if there is a great gain with using
> compiler-rt, but I feel linking to cyggcc_s.dll is not so bad.
> 
> If you are planning to provide a package built with compiler-rt, especially
> one that contains a DLL, I would say, "Please don't do that." It's very
> different if someone decides to build their own application with compiler-rt
> and takes responsibility for doing so. Before providing such a package, the
> implementation of native TLS in cygwin1.dll is needed, as well as an update
> to the toolchains to use it (and, I guess, it is impossible to switch with
> keeping ABI). That changes the fundamental design of the distribution.

I attempted to build the entire compiler-rt (builtins) as a shared library,
similar to the suggestions in:
https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/builtins/emutls.c#L388-L389
, and could successfully solve the problem.
Could you please try 21.1.4-2 (Test)?

> BTW, the profiler that provided by compiler-rt (unfortunately, it isn't included
> in your package; available without -rtlib=compiler-rt, it works fine even with
> libgcc_s) is definitely great; clang built with profile guided optimization
> reduces 20% of walltime to build LLVM in GitHub Actions.

Actually, profiler itself was included, but did not work at all. Both the
compiler-rt package and the llvm package had their own issues. I have
uploaded llvm 21.1.4-2 (Test) and compiler-rt 21.1.4-2 (Test), so please
test the profiler as well.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
