DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 54B4nYo2019635 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 54B4nYo2019635 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=UH3Qu2BR X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D60DC3858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1746905075; bh=x5izTklpxzeG2lU3GWNp9Q1KhklyvnZUkpW+n5C2YIk=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=UH3Qu2BRA3Qp0Q8EjW/3U+4d4gFWiEUhwo18viIz/p021X43v0IC/SvTVTUJNMnt2 ymiKa7/ylSqCo8u7apB+OtJ3XD1sIH9gzxGFDqhrswaXrLaBV1EtOf0DbPDcppPJlr NOPgiBtJDO5vlsx9810ChRWYpIQyt0YASipCcUKQ= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 80D573858D32 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 80D573858D32 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1746905009; cv=pass; b=W8TplwX1taPxGuGpEqr+U6sTB3bDcNReDSMmygIVk9mP2GTj54yCVen5usFhIHg+5V8sOxksSNi6Uf+ulFo5VZ+dSq/lsjyVF4avE9L0Unx25Z8uD7pUsxxMp+njcQkC/d3iaIxbL5Fl9p7T5mCMBxrmOkpm5Hj3FIpw20bdPX8= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1746905009; c=relaxed/simple; bh=kV8bVJP/6hg442HhXXBNpGecnRYiqbS+wZpjHdQ3Ybw=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=A25AXqHTJaUlxvWNkFftWAp78O29ta1Mp2YwfAGDHUqoBtyWVpdrvU1HhSkwu12ldxVHVXR6DzAhserwU8LPSKFd47l6zOBra6wv3SyzrQYXlRcChUxeWFJi14b3dw0aI/bFlxPyEL0W6FKPPcUn8r4lgMOf1j255vtRgZxgIsQ= ARC-Authentication-Results: i=2; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 80D573858D32 ARC-Seal: i=1; a=rsa-sha256; t=1746905005; cv=none; d=zohomail.eu; s=zohoarc; b=HBu/kZawA4SVnHhr9HQkoY8FK0yzwueZU1Q07sJibU/NYGCvv++1LQEHb0d/07Q82FcTpWIYU5FNMTCP4p0kNTh+ZIgs1n9oLGpv7rXjDeabaGmy4zcbBMDXCBgosfxTjGqx5T31Use8RBJF5SYJmSJOJRbfy0AL/waonQ2raKg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1746905005; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=J0+6dJwebg4MgON+57OUiyc8yeVHM7YbXeym3nZR+6o=; b=ibitFCrx95sDuj8Plf8Oeog9+g7Wi1Sq+yT97ZdDXk1r/J7fvR159NwYb07coh4Uu/3xHI9YVWwHN+uMPCXEZcK53gr/L9SaXdScZd1EGxb9tIX73om0YGBo/KSAu6wS8F6eVMNwoPIEzNu+yPRTsHy8pGsEQD23aGCK/tcp//o= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=hamishmb.com; spf=pass smtp.mailfrom=cygwin AT hamishmb DOT com; dmarc=pass header.from= Message-ID: <975daff7-68f6-4aa3-902d-0de6f5dd9b3b@hamishmb.com> Date: Sat, 10 May 2025 20:23:19 +0100 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: <7558fc25-75a1-4cd9-ad9d-0d0b15ca6eb7 AT SystematicSW DOT ab DOT ca> Content-Language: en-US In-Reply-To: <7558fc25-75a1-4cd9-ad9d-0d0b15ca6eb7@SystematicSW.ab.ca> X-ZohoMailClient: External X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Hamish McIntyre-Bhatty via Cygwin Reply-To: Hamish McIntyre-Bhatty Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On 08/05/2025 20:59, Brian Inglis via Cygwin wrote: > 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) > Thanks for the reply, but that doesn't seem to be quite what I'm looking for, unless I missed something in the output on your Cygwin install. Perhaps I need to look in the spec files mentioned in the output? Re the gold stars thing, I reckon you deserve one too, you always seem to be popping in with helpful answers to queries. Best, Hamish -- 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