From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 971E43858C1F; Mon, 2 Jan 2023 17:12:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 971E43858C1F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1672679548; bh=yIGSemUDm0Ll0PG+BMBKb7aXvpwmwIYLEhC22TuV7+w=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qebIoKaJcSqh09mO6R8nRDDPwGUUlPhoQVWzcnGOUOJV2GsRcmV5pAIkrKQDP9SUI aiMw8KPBcKJUG5obz0Hz32iVLP9L+Xi/tfq2AiiDjg3FzYT51b8THJHnG8e5Y9x2Tb Bff2IK+9zp/IuYf39EPTiKzt8B+O3wDoAilk/VYE= From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107568] Darwin: Bootstrap fails with macOS13 sdk because sprintf and friends are deprecated in the SDK. Date: Mon, 02 Jan 2023 17:12:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107568 --- Comment #12 from Iain Sandoe --- with Xcode 14.1 CLT and the macOS13 SDK, the build fails without the work-around and works for this: time nice make -j10 BOOT_CFLAGS=3D"-O2 -g -Wno-error=3Ddeprecated-declarati= ons" >b.txt 2>e.txt=20 (jftr) configure line is: /src-local/gcc-master/configure --prefix=3D/opt/iains/x86_64-apple-darwin21/gcc-13-0-0 --build=3Dx86_64-apple-darwin21 --with-sysroot=3D/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk CC=3Dx86_64-apple-darwin19-gcc CXX=3Dx86_64-apple-darwin19-g++ --enable-languages=3Dall >conf.txt and the source is current master. (OK, so the differences are [1] I am on macOS12 and [2] I'm using Xcode 14.1 CLT,but the fail and fix are completely repeatable here). Next, I guess I'll pick up the xc 14.2 release.=