From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mr85p00im-ztdg06021101.me.com (mr85p00im-ztdg06021101.me.com [17.58.23.180]) by sourceware.org (Postfix) with ESMTPS id AD4903858C53 for ; Mon, 7 Nov 2022 11:22:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AD4903858C53 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=mac.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mac.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mac.com; s=1a1hai; t=1667820150; bh=5yiF7PlxlNg7ZF6D5bK0PjXKFyOFsDlD2H/wELu6gfs=; h=From:Content-Type:Mime-Version:Subject:Date:To:Message-Id; b=PqZH8YHoDJs9RY1nG7fyIYMDV0FnlVd93JcU8iLC3cooZJG8kOGf5xWXD5VSM6Ddm HifdiuEJtdiOZvMaMcOS76iWR5e1sJ9iwQ5ckl4TIFh+GEkt4Sn38UD1WFJplDJCN6 ZA/7vYFFvNpIxnpeTBlPMVRhvG+uE9lgb0I+Lwkcz1xqc6w4oooToPnjSl1ZMENQis wMqW2YDP8uqpIjiybLNlbG3/n4mzDkvHctrvP3XiPbEO5zN4DAQEhrSOMriBfAzrj4 1L9QrVSlPBQhyLJxKsqyFVHe9RY4kBk2/AKboP8wTaBGBiO36P/Ro4AfPOxa3O+sZ+ 45st/pq/OnQGg== Received: from smtpclient.apple (mr38p00im-dlb-asmtp-mailmevip.me.com [17.57.152.18]) by mr85p00im-ztdg06021101.me.com (Postfix) with ESMTPSA id BA06380771 for ; Mon, 7 Nov 2022 11:22:29 +0000 (UTC) From: Simon Wright Content-Type: multipart/alternative; boundary="Apple-Mail=_A8EF27D3-A120-4B6D-A2AF-C623DC39FCC1" Reply-To: Simon Wright Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: Bootstrap fail, gcc-13-20221030 on macOS 13 Date: Mon, 7 Nov 2022 11:22:27 +0000 References: <3BE69AF8-B33E-40D0-835A-213610E83E3A@mac.com> To: gcc-help@gcc.gnu.org In-Reply-To: <3BE69AF8-B33E-40D0-835A-213610E83E3A@mac.com> Message-Id: X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Proofpoint-ORIG-GUID: IPOqvWFcdnLW7ZbpsZs3J-Ur57AI6QLJ X-Proofpoint-GUID: IPOqvWFcdnLW7ZbpsZs3J-Ur57AI6QLJ X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.425,18.0.816,17.0.605.474.0000000_definitions?= =?UTF-8?Q?=3D2022-01-18=5F01:2022-01-14=5F01,2022-01-18=5F01,2020-01-23?= =?UTF-8?Q?=5F02_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 bulkscore=0 mlxscore=0 clxscore=1015 spamscore=0 malwarescore=0 mlxlogscore=869 suspectscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2211070094 X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,KAM_NUMSUBJECT,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,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: --Apple-Mail=_A8EF27D3-A120-4B6D-A2AF-C623DC39FCC1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I=E2=80=99m 99% sure that this issue is down to the problem fixed in https:= //github.com/gcc-mirror/gcc/commit/6725f186cb70d48338f69456864bf469a12ee5be= - which is included in GCC 12.2 - so I=E2=80=99ll go build 12.2.0= & try again > On 6 Nov 2022, at 19:27, Simon Wright via Gcc-help > wrote: >=20 > The boot compiler is GCC 12.1.0. >=20 > Configuration fails because the C compiler can=E2=80=99t produce an execu= table. I don=E2=80=99t have the log, but the errors were like >=20 > configure:3943: gcc -c -g conftest.c >&5 > : error: unknown value '13.0.0' of '-mmacosx-version-min' >=20 > I tried setting CFLAGS and CXXFLAGS as here: >=20 > export CFLAGS=3D-mmacosx-version-min=3D12.0.0 > export CXXFLAGS=3D-mmacosx-version-min=3D12.0.0 >=20 > $GCC_SRC/configure \ > --prefix=3D$PREFIX \ > --without-libiconv-prefix \ > --disable-libmudflap \ > --disable-libstdcxx-pch \ > --disable-libsanitizer \ > --disable-libcc1 \ > --disable-libcilkrts \ > --disable-multilib \ > --disable-nls \ > --enable-languages=3Dc,c++,ada \ > --host=3D$BUILD \ > --target=3D$BUILD \ > --build=3D$BUILD \ > --without-isl \ > --with-build-sysroot=3D"$(xcrun --show-sdk-path)" \ > --with-sysroot=3D \ > --with-specs=3D"%{!sysroot=3D*:--sysroot=3D%:if-exists-else($XCODE $CLU)= }" \ > --with-build-config=3Dno \ > --enable-bootstrap \ > CFLAGS=3D-mmacosx-version-min=3D12.0.0 = \ > CXXFLAGS=3D-mmacosx-version-min=3D12.0.0=20 >=20 > (having checked that this flag was needed to avoid the error in a standar= d-alone compilation) but the configure now failed in fixincludes/. It seems= that sometimes the CFLAGS setting is used and sometimes it isn=E2=80=99t??= ? See lines 3674, 3744, 3800, 3857, 3905 below and then 3943 >=20 > configure:3652: checking whether the C compiler works > configure:3674: gcc -mmacosx-version-min=3D12.0.0 conftest.c >&5 > configure:3678: $? =3D 0 > configure:3726: result: yes > configure:3729: checking for C compiler default output file name > configure:3731: result: a.out > configure:3737: checking for suffix of executables > configure:3744: gcc -o conftest -mmacosx-version-min=3D12.0.0 conftest.= c >&5 > configure:3748: $? =3D 0 > configure:3770: result:=20 > configure:3792: checking whether we are cross compiling > configure:3800: gcc -o conftest -mmacosx-version-min=3D12.0.0 conftest.= c >&5 > configure:3804: $? =3D 0 > configure:3811: ./conftest > configure:3815: $? =3D 0 > configure:3830: result: no > configure:3835: checking for suffix of object files > configure:3857: gcc -c -mmacosx-version-min=3D12.0.0 conftest.c >&5 > configure:3861: $? =3D 0 > configure:3882: result: o > configure:3886: checking whether we are using the GNU C compiler > configure:3905: gcc -c -mmacosx-version-min=3D12.0.0 conftest.c >&5 > configure:3905: $? =3D 0 > configure:3914: result: yes > configure:3923: checking whether gcc accepts -g > configure:3943: gcc -c -g conftest.c >&5 > : error: unknown value '13.0.0' of '-mmacosx-version-min' > configure:3943: $? =3D 1 > configure: failed program was: > | /* confdefs.h */ > | #define PACKAGE_NAME "fixincludes" > | #define PACKAGE_TARNAME "fixincludes" > | #define PACKAGE_VERSION " " > | #define PACKAGE_STRING "fixincludes " > | #define PACKAGE_BUGREPORT "" > | #define PACKAGE_URL "" > | /* end confdefs.h. */ > |=20 > | int > | main () > | { > |=20 > | ; > | return 0; > | } >=20 >=20 --Apple-Mail=_A8EF27D3-A120-4B6D-A2AF-C623DC39FCC1--