From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ms11p00im-qufo17281401.me.com (ms11p00im-qufo17281401.me.com [17.58.38.51]) by sourceware.org (Postfix) with ESMTPS id 11A7E3858D39 for ; Sun, 6 Nov 2022 19:27:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 11A7E3858D39 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=1667762833; bh=bPKS3kydsWmvxrpM4kce8Ssf1u1Ga5GQGZM07OSNINA=; h=From:Content-Type:Mime-Version:Subject:Message-Id:Date:To; b=eRzENxEkeavXpoDyp97a7SuApD15Lr3xwWR0FUAuBWQtMqrL4Fc4/CL48k+nG3Qau /HBXOknFssYi3C/LJ/sxDGhgkkUG29C07z4Ef8Q8bp58oAjznoZUVsITH26ownN8bb 8BQgCnLbh2q8yE8ijPc2bDChFWkv4q76bsHc5MSwT4kK743SFchAkvAVkdsfM0Iceu BEE0HQDZ9l6SX0C4tWaJZ4/YToEtfX2GC86VHBDfwM9RrzJM1LntFwzMohu1/j3N2y V4NJnhoktvOLHzMwDFHuyUNSod2ES95kKQcigb2OtHGyc40/2iYj41ZNVBQ+0xI4aF USUBX3lgt7vOg== Received: from smtpclient.apple (ms11p00im-dlb-asmtpmailmevip.me.com [17.57.154.19]) by ms11p00im-qufo17281401.me.com (Postfix) with ESMTPSA id 2C8E4BA0393 for ; Sun, 6 Nov 2022 19:27:13 +0000 (UTC) From: Simon Wright Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.200.110.1.12\)) Subject: Bootstrap fail, gcc-13-20221030 on macOS 13 Message-Id: <3BE69AF8-B33E-40D0-835A-213610E83E3A@mac.com> Date: Sun, 6 Nov 2022 19:27:00 +0000 To: gcc-help@gcc.gnu.org X-Mailer: Apple Mail (2.3731.200.110.1.12) X-Proofpoint-GUID: l9basc7ODGa5okkyRzwHHGBpO9AmVW5e X-Proofpoint-ORIG-GUID: l9basc7ODGa5okkyRzwHHGBpO9AmVW5e X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.425,18.0.572,17.11.62.513.0000000_definitions?= =?UTF-8?Q?=3D2022-01-14=5F01:2022-01-14=5F01,2020-02-14=5F11,2021-12-02?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 clxscore=1011 spamscore=0 mlxscore=0 mlxlogscore=768 phishscore=0 adultscore=0 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2211060174 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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: The boot compiler is GCC 12.1.0. Configuration fails because the C compiler can=E2=80=99t produce an = executable. I don=E2=80=99t have the log, but the errors were like configure:3943: gcc -c -g conftest.c >&5 : error: unknown value '13.0.0' of '-mmacosx-version-min' I tried setting CFLAGS and CXXFLAGS as here: export CFLAGS=3D-mmacosx-version-min=3D12.0.0 export CXXFLAGS=3D-mmacosx-version-min=3D12.0.0 $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 (having checked that this flag was needed to avoid the error in a = standard-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 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; | }