From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vs1-xe2a.google.com (mail-vs1-xe2a.google.com [IPv6:2607:f8b0:4864:20::e2a]) by sourceware.org (Postfix) with ESMTPS id 73D713858D33 for ; Sun, 8 Jan 2023 09:18:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 73D713858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-vs1-xe2a.google.com with SMTP id 3so5698186vsq.7 for ; Sun, 08 Jan 2023 01:18:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=uhTmbcfo0w3JDYxsVwY9PsMyDLSEbc+N4ADDdhUumNA=; b=QwNbHfxDEj9+1UREJ22D3d2P7k24h3umsZLrgNhLAKjFem7ZGMRaYvBCLgZ3+rDNfi e7M4w+xePd2xpohodKokPv3kZ4xL5uux5EOQTJQ5UVk8xNNiiHZBFHcxUB/I/Av49gVi MmlYvg38cF7r2I4JQiUW29/sfJdDdizpJLAS7kA43/d/QgyVUZ/2NZjJZvVxV6agSdjy PaGEkMqcTXNY2UBrzZdP8O59EcPPdRLZ8cPr6QMPOQUuu45lAX7BtQFuMQ3ptJPendY3 pdgSojUMAvgnv8iXzy0fu+HGRJpARTSJwx2AgX73Bx49qCbZ/s+VJGErkJjRTNAhQ1Bp m/hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uhTmbcfo0w3JDYxsVwY9PsMyDLSEbc+N4ADDdhUumNA=; b=5wLmKiE4Kaz7Ls49YHTCZSSI4YKXTsxZgbOVDeFFxRXD+Fx9B65JBRXv6z/6HrICdY ufvcKs6D0HYqScWQVeEX4YRPeemA6d4x8cTBjHmYd6gSz1GJKNoVB6UGibOnwtdFmBmz Qh/eM0xaB1WATY09ky1Dbyf0jn4XD/FF6GZk5wRhA1rm9JHdFF+zjsYObA5zZUbeupjo e/husDaVRatJxxy5mfuqIVBzgzcNtSFdS5IkDIFM0iQWmnobKgesfVEHNLi4IQDmbDj8 i9AdsWi4doj+2ucQHtj3kUPD4e8F2IoHHfd9gMaPjGrBKDNhYEd2x7rxNiDwNHUubp9y VknA== X-Gm-Message-State: AFqh2kpl4iiAuA62UWM1lbih5X8adEIp4wdBsDEK++kAk/ciA03mi5B7 P/M8PDiz004LFrP3ThkaAmMI0ESntKpSIkfk9kU= X-Google-Smtp-Source: AMrXdXv8Ptkn/APltZhrjeY4UyGIyFhoS8VdgNRY8tYLGIDJZtFfTFmwN/JlZYSyIy20BrwDZHM4tE0Qyh024X+x2VM= X-Received: by 2002:a67:ee93:0:b0:3b2:a92d:a1f0 with SMTP id n19-20020a67ee93000000b003b2a92da1f0mr7831527vsp.46.1673169532812; Sun, 08 Jan 2023 01:18:52 -0800 (PST) MIME-Version: 1.0 References: <1845715a-7507-73dd-ecc3-da0c842ac64d@gmail.com> In-Reply-To: <1845715a-7507-73dd-ecc3-da0c842ac64d@gmail.com> From: Csaba Raduly Date: Sun, 8 Jan 2023 10:18:25 +0100 Message-ID: Subject: Re: clang doesn't work from cygwin-3.4.0 (Re: clang-format and clang-check return 127 and no text) To: ggl329 Cc: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Sun, 8 Jan 2023 at 09:11, ggl329 via Cygwin wrote: > > In my environment, clang doesn't work as reported in > https://cygwin.com/pipermail/cygwin/2022-December/252719.html . > > I found that it doesn't work with cygwin-3.4.0-1, > but works with cygwin-3.3.6-1. > cygwin-3.5.0-0.69.g8a003605c1df doesn't help. > Changes in cygwin-3.4.0-1 bring this issue? > or clang needs to be rebuilt? > > clang 8.0.1-1 [snip] This was working before I upgraded Cygwin: $ clang --version clang version 8.0.1 (tags/RELEASE_801/final) Target: x86_64-unknown-windows-cygnus Thread model: posix InstalledDir: /usr/bin $ clang-format.exe --version clang-format version 8.0.1 (tags/RELEASE_801/final) $ uname -a CYGWIN_NT-10.0-19045 AMDAHL 3.3.5-341.x86_64 2022-05-13 12:27 UTC x86_64 Cygwin But it doesn't work anymore with $ uname -a CYGWIN_NT-10.0-19045 AMDAHL 3.4.3-1.x86_64 2022-12-16 12:38 UTC x86_64 Cygwin (same symptom as https://cygwin.com/pipermail/cygwin/2022-December/252719.html) Additionally, $ strace /usr/bin/clang --version strace.exe: error creating process C:\cygwin64\bin\clang, (error 5) $ gdb -q /usr/bin/clang -ex run Reading symbols from /usr/bin/clang... (No debugging symbols found in /usr/bin/clang) Starting program: /usr/bin/clang [New Thread 804.0x2d50] [New Thread 804.0xe6c] [New Thread 804.0x200c] [Thread 804.0xe6c exited with code 3221225785] [Thread 804.0x10b8 exited with code 3221225785] [Thread 804.0x2d50 exited with code 3221225785] During startup program exited with code 0xc0000139. 0xC0000139 is "Entry point not found" Csaba -- You can get very substantial performance improvements by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler So if you're looking for a completely portable, 100% standards-conformant way to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK)