www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/05/08/16:00:23

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 548K0M2Y2342359
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 548K0M2Y2342359
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=enqEKpWM
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0D4893858280
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1746734422;
bh=emKEd685XBk9ZcXnSUpeW1wotJ8w6cbfVdbeLy8lBmk=;
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=enqEKpWMKiVmfE0zD6AMnUCCTV/6uN856i6di56MN8lVLVvgcxj3rCk3fC4SeVLN6
0sq9iws8NSUSVejBFuamHzx0jkoUrae6Xq/I9+5NcGcKP+WJsgIhxK0drHr23QOBs3
uoOFO67qN5+qHiwP9zTPc2IJQx4SXcLXJcnwAhHc=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2FB933858D1E
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2FB933858D1E
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1746734360; cv=none;
b=YC0DM5LiCXXigPnb51RmUUSQvmihehTO94SRgt5w0vvso9Oq68EfWKWErehIzbv+jBV9oAYb8t5mp4X4DDAJz6hK8rtZ10iM5532k5dqnCCz97nCHl9h+CjeBECeqL1Y/j0VgaTHN5wBP4kvui1/Kr0JIYlk5Oa8BNiZlfzrHKc=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1746734360; c=relaxed/simple;
bh=zR2HGmnRL38S1KXkxtni5rHQfUUa14xY29K+F7kOryU=;
h=Message-ID:Date:MIME-Version:From:Subject:To:DKIM-Signature;
b=LcBPswTshp+RI3kBChwR4FrP6mk+FfwRGY/YZc8Ir0yurfKKurXQUrY3On1zeia6gorL0OBnUCMyJ0sRai7P4BbkcRl4sL2hJN/y/qanIeFK71HgcTCIkf2pjTKZC04I2ASxqms/gXdf8aqb9VqjbsMDJuPi5OBidpHFZo7Mmtk=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2FB933858D1E
Message-ID: <7558fc25-75a1-4cd9-ad9d-0d0b15ca6eb7@SystematicSW.ab.ca>
Date: Thu, 8 May 2025 13:59:17 -0600
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Default GCC compiler options and how to change them
To: cygwin AT cygwin DOT com
References: <bc517274-b4b9-45ca-abec-fad52d0a41e6 AT hamishmb DOT com>
Organization: Systematic Software
In-Reply-To: <bc517274-b4b9-45ca-abec-fad52d0a41e6@hamishmb.com>
X-Rspamd-Server: rspamout02
X-Rspamd-Queue-Id: 374492002C
X-Stat-Signature: p6f9fskm4fu5c4ofx4a4yee8wrg4ghyc
X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361
X-Session-ID: U2FsdGVkX1+gcKar7CcehKR0lsJ2OsDb0qQd4qNm5kI=
X-HE-Tag: 1746734358-751545
X-HE-Meta: U2FsdGVkX1/5W6i7x1akf1FCtq2u9szrxLoAWhBHNgC4KHM7B+b0lIa0rGe+1DFMmlckhjrLhnW3OASUnGh1CWVRRn1rIX087R4iFR4EVnWdeojfcQ9cB+aSkVXlgXmwyrlubCFUOi3ndu0izocz7gpZUvDAuuZ427TzinlVa6Sqm7INMtdntMnd2hGZi/+lT1/LPc8TDlx+rZtKvLJhKlFN+iqLjJMJ7lKW/3Jboj5W+otrxmnQRoYsaJx7nVA6b12W9SCec8H0C5QuSzMCvpOH2vOcS+BYeIufWSNYKFVFJOTyRYS/c9A9V7cGSDGt73LPdUWg7oSjH9W8AE+REok/6JQTtFg3
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 548K0M2Y2342359

On 2025-05-08 13:25, Hamish McIntyre-Bhatty via Cygwin wrote:
> I've run into a blocker when trying to build wxPython that wasn't a problem when 
> I last did it (which amittedly was over a year ago). Some -werror flags are 
> being passed to GCC, but I can't see where they're coming from. Are there any 
> defaults set for GCC that mean -werror might be turned on?
> 
> When I build wxPython on my host (Linux) system, I don't get the same issues, so 
> I'm assuming there are defaults being set somewhere. If anyone could offer some 
> help I'd be very appreciative.

Try gcc -v and gcc -###:

$ gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-cygwin/12/lto-wrapper.exe
Target: x86_64-pc-cygwin
Configured with: /mnt/share/cygpkgs/gcc/gcc.x86_64/src/gcc-12.4.0/configure 
--srcdir=/mnt/share/cygpkgs/gcc/gcc.x86_64/src/gcc-12.4.0 --prefix=/usr 
--exec-prefix=/usr --localstatedir=/var --sysconfdir=/etc 
--docdir=/usr/share/doc/gcc --htmldir=/usr/share/doc/gcc/html -C 
--build=x86_64-pc-cygwin --host=x86_64-pc-cygwin --target=x86_64-pc-cygwin 
--without-libiconv-prefix --without-libintl-prefix --libexecdir=/usr/lib 
--with-gcc-major-version-only --enable-shared --enable-shared-libgcc 
--enable-static --enable-version-specific-runtime-libs --enable-bootstrap 
--enable-__cxa_atexit --enable-clocale=newlib --with-dwarf2 --with-tune=generic 
--enable-languages=ada,c,c++,fortran,lto,objc,obj-c++,jit --enable-graphite 
--enable-threads=posix --enable-libatomic --enable-libgomp --enable-libquadmath 
--enable-libquadmath-support --disable-libssp --enable-libada --disable-symvers 
--disable-multilib --with-gnu-ld --with-gnu-as 
--with-cloog-include=/usr/include/cloog-isl --without-libiconv-prefix 
--without-libintl-prefix --with-system-zlib --enable-linker-build-id 
--with-default-libstdcxx-abi=gcc4-compatible --enable-libstdcxx-filesystem-ts
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.4.0 (GCC)

$ gcc -###
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-cygwin/12/lto-wrapper.exe
Target: x86_64-pc-cygwin
Configured with: /mnt/share/cygpkgs/gcc/gcc.x86_64/src/gcc-12.4.0/configure 
--srcdir=/mnt/share/cygpkgs/gcc/gcc.x86_64/src/gcc-12.4.0 --prefix=/usr 
--exec-prefix=/usr --localstatedir=/var --sysconfdir=/etc 
--docdir=/usr/share/doc/gcc --htmldir=/usr/share/doc/gcc/html -C 
--build=x86_64-pc-cygwin --host=x86_64-pc-cygwin --target=x86_64-pc-cygwin 
--without-libiconv-prefix --without-libintl-prefix --libexecdir=/usr/lib 
--with-gcc-major-version-only --enable-shared --enable-shared-libgcc 
--enable-static --enable-version-specific-runtime-libs --enable-bootstrap 
--enable-__cxa_atexit --enable-clocale=newlib --with-dwarf2 --with-tune=generic 
--enable-languages=ada,c,c++,fortran,lto,objc,obj-c++,jit --enable-graphite 
--enable-threads=posix --enable-libatomic --enable-libgomp --enable-libquadmath 
--enable-libquadmath-support --disable-libssp --enable-libada --disable-symvers 
--disable-multilib --with-gnu-ld --with-gnu-as 
--with-cloog-include=/usr/include/cloog-isl --without-libiconv-prefix 
--without-libintl-prefix --with-system-zlib --enable-linker-build-id 
--with-default-libstdcxx-abi=gcc4-compatible --enable-libstdcxx-filesystem-ts
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.4.0 (GCC)

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