www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/09/04/13:39:19

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 584HdIJV301073
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 584HdIJV301073
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=JxnEgMCN
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 188AE3858C42
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1757007557;
bh=riRmf4rJ2sNdTOKFhtREmTAytUqhBvo9j0sRkJAFUYo=;
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=JxnEgMCNcyhNPqe7YPF/XpeT2PqhLQwj7l9TZHsqvyl3UXvMy0k9vB7vRlJl8R5ai
lUYQeJPlB0jHfc2sJZYjD/subHF6ROQBjZF5wqkkMpApfwpqz161SBHv3nsvoLZetz
/uU7tr38i73YnDe/LfxxE2J6ddgoFfgf7Ep6KffU=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A738D3858D1E
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A738D3858D1E
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1757007526; cv=none;
b=yCHW2Paw8PoAWf5nL36bfimYFCD/TvbRCvcIGTM2vqj6tRbdVyELxz2mffaVnzc3S8XZkdN59lpmYFdX4/nhR8nXas/Q3dZPQ9jRGLlZ03TWqFQUiTXsaYr1P1Wg4odBLR/OiWLdqi8YkEkTOgfvWB6NPuyfWlPUFiLKKtXu0hg=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1757007526; c=relaxed/simple;
bh=5JlCeQR5/HDeMYnKW9v9yRjHO7ieXybVSMHUGCXkKUE=;
h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version;
b=Xu4vbfMrK8gnCUIH/ORJJ8D8bLpNBd5cwYTHNRkcQi82p79LP1CYKnxwX1pzLNPfPoNbjjEnEFQeSH5QUDEZvZfr5jw7d/BurWzj0NzVbUQaI2EtF47uczU+wvhMIIUOgm6yGP552WHzOds/Y4yegtKU7as3aRIsWi24XU0r9Ao=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A738D3858D1E
Date: Thu, 4 Sep 2025 10:38:46 -0700 (PDT)
X-X-Sender: jeremyd AT resin DOT csoft DOT net
To: Thierry DECHAIZE <thierry DOT dechaize AT gmail DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Strange behaviour with Resource Compiler og GCC (MinGW32/64)
and LLVM
In-Reply-To: <92019dcf-f8d5-4833-804d-8db174f35576@gmail.com>
Message-ID: <800bdaf6-6599-9708-904d-173245479113@jdrake.com>
References: <92019dcf-f8d5-4833-804d-8db174f35576 AT gmail DOT com>
MIME-Version: 1.0
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
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: Jeremy Drake via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Jeremy Drake <cygwin AT jdrake DOT com>
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 Thu, 4 Sep 2025, Thierry DECHAIZE via Cygwin wrote:

> Hi,
>
> I test new implementation of LLVM 20.1.8 recently provided by CYGWIN64 on
> WIN11 64 bit.
>
> Just to illustrated this strange behaviour read joined text : some tests with
> different Resource Compiler.
>
> I'm not a specialist, but it's seem important to ameliorate this behaviour in
> future release of LLVM on Cygwin64.
>
> You agree ?

This was kind of hard to follow... TL;DR: using Windows-style paths with
Cygwin programs yields inconsistent results.  LLVM/Clang work better than
Binutils/GCC.

Specific failing case for llvm-windres:
$ mkdir src
$ touch src/resource.h
$ echo '#include "resource.h"' > src/test.rc
$ llvm-windres -v -o src/test.o src/test.rc
 /usr/bin/clang-21 --driver-mode=gcc -target x86_64-pc-windows-cygnus -E -xc -DRC_INVOKED src/test.rc -o /tmp/preproc-c14940.rc
$ llvm-windres -v -o src/test.o src\\test.rc
 /usr/bin/clang-21 --driver-mode=gcc -target x86_64-pc-windows-cygnus -E -xc -DRC_INVOKED "src\\test.rc" -o /tmp/preproc-9202d9.rc
src\test.rc:1:10: fatal error: 'resource.h' file not found
    1 | #include "resource.h"
      |          ^~~~~~~~~~~~
1 error generated.
llvm-rc: Preprocessing failed.


In general, it's better to stick with Cygwin paths (forward slashes,
/cygdrive/c/ instead of C:\) for Cygwin programs.  If you want native
LLVM/Clang that is also available, ie
https://github.com/mstorsjo/llvm-mingw or https://www.msys2.org CLANG64
environment

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019