DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 53K4PL9v101268 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 53K4PL9v101268 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=fkMyHsH5 X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 668193858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1745123119; bh=82R3XpAnQhabdyLebsCqmf2Sww2TQoAorcxDw0m+r+U=; h=Date:To:Cc:Subject:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=fkMyHsH5WUAwSCGISPOYqnnfQp4wfTD1sgwm3r28u5m5dK236GA9tz2NfJyJDWQB5 SERfS+wYXdMWpstyaDE3iS4qXDUa7LUSwMMQsW+MWkxLB8tx+yfaup0sv7IKAfTmGd hKbaMpW/nzP5btm3RqHKRruMfAeuYCsiwZoVtil0= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E9E3A3858D20 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E9E3A3858D20 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1745123045; cv=none; b=WDvAK5P7FQT27NaiiBfSzAcfThApurJbJMVQX3VSMJzFr3DgaQA7V4x1mkFoy81lVtYFnoO4Qc3yAqLUxn7as+Dp/oOf2pVyFvcf+zIwACPLI8EmaoYO3rXyzydYrHwy+6JV7cX9ewEQKzCigk11IwsupGfJoUxVEv8AYQjZ0rg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1745123045; c=relaxed/simple; bh=nJbsL1+DGGQM1yIR7UABzANAbLdJU1qurmweiqwhGxY=; h=Date:From:To:Subject:Message-Id:Mime-Version:DKIM-Signature; b=Omw/Q3hmjNzEqoZjta2D4MyEhlKlCIryjlWqlsKDyaezX4dYpDC9YMnnkuxqVm3qViSdx251cuWxRjz2gwMrhRGRpw3BsRYkbOLBiY0d0Gpj+52+CJ53Emb4MRp3LFVqUj6wl9uGRAaNGOugSzhRZs9XBWyFSGYcy2HBqRylqKc= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E9E3A3858D20 Date: Sun, 20 Apr 2025 13:23:59 +0900 To: cygwin AT cygwin DOT com Cc: Yuyi Wang <Strawberry_Str AT hotmail DOT com> Subject: Rust for cygwin (was Re: Deadlock when calling pthread_key_create in the destructor of a pthread_key) Message-Id: <20250420132359.bfd51ddf860f3faaf518b378@nifty.ne.jp> In-Reply-To: <TYCPR01MB10926E7778CD9FFFD49F126EEF8A42@TYCPR01MB10926.jpnprd01.prod.outlook.com> References: <20250324145221 DOT 25188bbb53d8ee7a8160e3ab AT nifty DOT ne DOT jp> <TYCPR01MB10926E7778CD9FFFD49F126EEF8A42 AT TYCPR01MB10926 DOT jpnprd01 DOT prod DOT outlook DOT com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 X-BeenThere: cygwin AT cygwin DOT 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 AT cygwin DOT com?subject=unsubscribe> List-Archive: <https://cygwin.com/pipermail/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help> List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>, <mailto:cygwin-request AT cygwin DOT com?subject=subscribe> From: Takashi Yano via Cygwin <cygwin AT cygwin DOT com> Reply-To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com> On Mon, 24 Mar 2025 14:41:19 +0800 Yuyi Wang wrote: > > I mean it is some kind of cross compiler. > > Yes. Rustc is a cross compiler powered by LLVM. > > > ...is it possible to build Rust compiler itself by the cross-compiler? > > Theoretically yes. Actually once a GitHub user @Ookiineko succeeded before, but > now the account has been deleted. I think the largest blocker is LLVM itself. > The latest version of LLVM provided by cygwin is 8.0, and 11.0 by MSYS2, while > rustc needs LLVM 17.0 at least. @Ookiineko added some patches to LLVM to make it > work, but they were not committed to upstream, but I haven't understand all of > them yet. Thanks to MSYS2 guys' work, I have successfully built LLVM package with Polly, Clang, compiler-rt, and libunwind packages version 20.1.2. I still trying built libc++ and libc++abi, but it is not going smoothly. Is there any other blocker to build Rust for cygwin? -- Takashi Yano <takashi DOT yano AT nifty DOT ne DOT 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