delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/07/18/19:35:26

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 56INZPKl3662480
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 56INZPKl3662480
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=GhV862C4
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 852153851AB6
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1752881723;
bh=KPAxrBmaj7gpZouvYXMf4v4yfZAs+MPCnQvH7I4VjYY=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=GhV862C4QI4P5MtHpTbsp2Zh3S+C4RoMPOMQkwHLwu3qEyxnCYr1fzpug85qnyBv+
M7eck4MUOFtj9iH/JK4iRWKKc5eo2uoTdvtSfJJGw9KpAZxWo1A03T3aGPuHz8VF0K
RkF1KxsJSCOk74vLx5yPtQ3qyRyJzJlmQBuSEn6g=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1C37B3851C05
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1C37B3851C05
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1752881695; cv=none;
b=X0C1/1WluKKXJ/3bWizBrsOoMrbwF/EI4xaNQxobs1Yq6SMKT779f1KMASo31vOHr2kzw+TOM9f10QafABHmcrr7OI3k1uVR068XKxY4CmPZDIVPlZGtclqU9RafTQaEmawJQfFT4iQebtjFoG+XYLfSpVCNxxHH0qlu1yW7A5U=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1752881695; c=relaxed/simple;
bh=VflZrhRR+O74MU9Bsyi1FYfVFL6la13C7jhJLQRKrTo=;
h=Message-ID:Date:MIME-Version:From:Subject:To:DKIM-Signature;
b=KR6usKWcInRWQHSf/LVOa4T4luddM5e/ktD1VJkmD5qIQinOTVAGO1H41yp1YYvsyIMyGHrL1AtUcxmedmLUbELfB1vVKv7aLaUMsXOehDqmdmU7yUxH7OS48f1FzwCeaeYlsSYStf7A2BiPO83iFOpGn6Mc9Gp7cN8y4N9e6Ug=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1C37B3851C05
Message-ID: <fcf71e61-c511-4c67-9c33-d28d5574af09@SystematicSW.ab.ca>
Date: Fri, 18 Jul 2025 17:34:51 -0600
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: CMake is not finding a usable cc on my cygwin system, I've tried
many things.
To: cygwin AT cygwin DOT com
References: <CAGB_HuS1AEp3WGF5AANhtZyWnr+QdfbJZ3_egaaE1hM8QO6rig AT mail DOT gmail DOT com>
Organization: Systematic Software
In-Reply-To: <CAGB_HuS1AEp3WGF5AANhtZyWnr+QdfbJZ3_egaaE1hM8QO6rig@mail.gmail.com>
X-Stat-Signature: an87y9ip3bt5mhm84hwaeghmcao1hbsg
X-Rspamd-Server: rspamout01
X-Rspamd-Queue-Id: 542C56000C
X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361
X-Session-ID: U2FsdGVkX1/DEPzIgReglK8osYitGZ2dn7Sd94Px+ng=
X-HE-Tag: 1752881693-461607
X-HE-Meta: U2FsdGVkX18wRNHp92nbChs71Y5/iifIecntKm515OCZfS8+mq7gsNpu2IuYoVFupsXh9HyQ9GbikSqQy1Ad/xS5sPrdUYCAqDnYhV5xFn3PACYSkWprjEGO4TqDHw9DrsXV2E8zh326OtJOcExbwqUPRQaJwL3ZQD6+JO4eEShZUiCv0wP7Cp3CH6Ov1tn5oTtuZWw06+7BT48+qHeQC+wapR1/iKV71f0NUy577YrOelLWlgI+2I+yyPe+lop8f9jkhX4Ut1hVLmov2g3Vv6shDs9e7Zj9a+yntzjgU2ZE/NWAOYlA5zF5yoL1FHGRZ0xMr/9c7KYI+HPtYQ3QkGseo3Mv6+OLzv//0DAf2r6dN35G5h84Xg==
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: Brian Inglis via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Brian Inglis <Brian DOT Inglis AT SystematicSW DOT ab DOT ca>
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>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 56INZPKl3662480

On 2025-07-18 16:14, Soren via Cygwin wrote:
> Hello Cygwinstas,
> 
> Cygwin root is C:\ix\cygwin, just so you know.
> 
> This is the output I see: mintty screen dump:
> 
> $ cmake -G"Unix Makefiles" C:/Users/somia/Downloads/libjpeg-turbo-3.1.1/
> cmake -G"Unix Makefiles" C:/Users/somia/Downloads/libjpeg-turbo-3.1.1/
> -- The C compiler identification is GNU 12.5.0
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - failed
> -- Check for working C compiler: /c/ix/cygwin/bin/cc
> -- Check for working C compiler: /c/ix/cygwin/bin/cc - broken
> CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
>    The C compiler
> 
>      "/c/ix/cygwin/bin/cc"
> 
>    is not able to compile a simple test program.
>   It fails with the following output:
>   Change Dir: '/c/Users/somia/build/libjpeg-turbo/CMakeFiles/CMakeScratch/TryCompile-PYyzjN'
> 
>      Run Build Command(s): /usr/bin/cmake.exe -E env VERBOSE=1
> /c/perl/c/bin/gmake.exe -f Makefile cmTC_de473/fast
>      C:/perl/c/bin/gmake  -f CMakeFiles/cmTC_de473.dir/build.make
> CMakeFiles/cmTC_de473.dir/build
>      gmake[1]: Entering directory
> 'C:/Users/somia/build/libjpeg-turbo/CMakeFiles/CMakeScratch/TryCompile-PYyzjN'
>      Building C object CMakeFiles/cmTC_de473.dir/testCCompiler.c.o
>      /c/ix/cygwin/bin/cc    -o
> CMakeFiles/cmTC_de473.dir/testCCompiler.c.o -c
> /c/Users/somia/build/libjpeg-turbo/CMakeFiles/CMakeScratch/TryCompile-PYyzjN/testCCompiler.c
>      /usr/bin/sh: /c/ix/cygwin/bin/cc: No such file or directory
>      gmake[1]: *** [CMakeFiles/cmTC_de473.dir/build.make:78:
> CMakeFiles/cmTC_de473.dir/testCCompiler.c.o] Error 127
>      gmake[1]: Leaving directory
> 'C:/Users/somia/build/libjpeg-turbo/CMakeFiles/CMakeScratch/TryCompile-PYyzjN'
>      gmake: *** [Makefile:127: cmTC_de473/fast] Error 2
> 
> 
>    CMake will not be able to correctly generate this project.
> Call Stack (most recent call first):
>    CMakeLists.txt:16 (project)
> 
> -- Configuring incomplete, errors occurred!
> 
> If I clean out all cached data in my build dir and set `CC=/bin/gcc';
> export CC' is get another error:
> 
> cmake -G"Unix Makefiles" C:/Users/somia/Downloads/libjpeg-turbo-3.1.1/
> CMake Error at /usr/share/cmake/Modules/CMakeDetermineCCompiler.cmake:49
> (message):
>    Could not find compiler set in environment variable CC:
>    /bin/gcc.
> Call Stack (most recent call first):
>    CMakeLists.txt:16 (project)
> 
> CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
> -- Configuring incomplete, errors occurred!
> 
>    I hear people saying good things about CMake but this is maddening.
> My cmake is newly installed in /usr/bin/cmake and is version 3.30.1
> 
> I'm trying to build libjpeg-turbo as my pathnames above would suggest.

Cygwin current cmake is 3.31.3.
It looks like you are running a Windows cmake.
Try:

$ which -a cmake
/usr/bin/cmake
$ ls -Ggl /bin/cc
lrwxrwxrwx 1 7 Aug  2  2024 /bin/cc -> gcc.exe

Are you running from a Cygwin terminal+/-shell, did you run Cygwin.bat, or set 
up a DOS/cmd environment with Cygwin bin at the start of your PATH?

You should also be using Cygwin paths not DOS/Windows device paths, which may 
not work with Cygwin tools.

If you want to work in the Windows environment and do Windows builds, try Msys2.

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher  but when there is no more to cut
                                 -- Antoine de Saint-Exupéry

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