From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) by sourceware.org (Postfix) with ESMTPS id 8D4453858C2C for ; Mon, 20 Feb 2023 11:20:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8D4453858C2C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ot1-x32e.google.com with SMTP id v1-20020a9d6041000000b0068d4a8a8d2dso128232otj.12 for ; Mon, 20 Feb 2023 03:20:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/JNPTuKNntoz5qttJCYReK9Z1emKMZGKuI2tB/x0t0E=; b=lD9ETMKUbBwfQFNr4sN3JYYqH0+9xPrIKXc9Q4yyzhRunyWlDi+XfmY0XC3QNcWrnD kn9IcFuqI19L5bAs3HbYG2ld9IRwbkfyl2DoX7gg01+733da4s13yj+XuiG+jBEIt86S qm7hPji9asy+hMKJuC4M4xM/jIBER5csMHhzqTY99n1gnDrjNKQ/ulUhCl/iGdh7QFK7 cQ4nx2aawJ9GfKf6ltUjpw42BbHdDRNdwv7zAmOdLL/fQjbhhRWT8L8+3YNekv0DEdx5 t2zLQ4oX33F2UK0PfB1SJo9NtE2N61ho9yNxfTe7ndRJ0EQV9bg5eOVhAcPB/3lnezQN mvxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/JNPTuKNntoz5qttJCYReK9Z1emKMZGKuI2tB/x0t0E=; b=NVOyLc2GFSGbiUvkZ9R0ecM4Wbq3RClXT8N1Wv1GX5ujD+EzRCcZbxSTM9vxDDegIF seGC6ih0fM+VmgZBKhlrCqzEnOeCBlboT2Tcm4WXLDZ3g7gbNQHeS9gM+QTYLucVqsCn nhwYU9mQO/lSQ7ZGLwMysCJTkd4Za7EUgoIiA5hfLIj4Y7kKvQ7/pS/WlHADOPTw5HPW /XqIj07mL72qS4V/vwMCjMrLx6nrT5p60euJIHiz0pNXZCXoZ3h/WULlsd0OsrjykZQs 2QGVR9YqKh5L/D5RqHru97MNdbYyVUzGvJMms4a595lXG3NeRbcj6mEKmgjXNOpnqnIG RvgA== X-Gm-Message-State: AO0yUKWoBnEKZC7Hpd39F2W+8Fsp8H3WsziODsrToyMahPgOSnybJDM/ w4H1aAPV4+DgT82HGxoPjhJKwdWgPAyQONSht/Cj3RQns2cUnQ== X-Google-Smtp-Source: AK7set+DQYrR1p4s1JjXpAG5PTKz9EmGGXNgIJyIgLvYDyLpUbTsqDFmNNEOBmujKcoXAImBcCPwwgCuxItefE+1xSM= X-Received: by 2002:ac8:705c:0:b0:3bd:1a12:a83c with SMTP id y28-20020ac8705c000000b003bd1a12a83cmr860365qtm.13.1676824045565; Sun, 19 Feb 2023 08:27:25 -0800 (PST) MIME-Version: 1.0 References: <3FB34CBA-3065-4596-994D-D666BFA7B632@googlemail.com> <4E479E20-5C2D-4CCA-8446-1D1FD6BAB8E5@googlemail.com> In-Reply-To: <4E479E20-5C2D-4CCA-8446-1D1FD6BAB8E5@googlemail.com> From: -xlan- Date: Sun, 19 Feb 2023 08:27:13 -0800 Message-ID: Subject: Re: Failure During Building To: Iain Sandoe Cc: GCC Development Content-Type: multipart/alternative; boundary="0000000000009639c905f510050c" X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,DATE_IN_PAST_12_24,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --0000000000009639c905f510050c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, I have the SDK installed but I don't understand how to use the --with-sysroot command. Is the flag supposed to be with my make all-gcc command, please elaborate. On Sat, Feb 18, 2023 at 3:49 PM Iain Sandoe wrote: > Hi > > > On 18 Feb 2023, at 20:28, -xlan- wrote: > > > > I tried compiling version 12.2.0 and it attempts to access system > headers at /usr/include, but on mac the system headers are stored at > > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Deve= loper/SDKs/MacOSX.sdk/usr/include. > > For supported x86_64 GCC versions (at present 12 and trunk) on macOS12. > > It is usually easiest to install the Xcode Command Line Tools - the SDK > path is then /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk > > then add the following to your configure line: > > =E2=80=94with-sysroot=3D/Library/Developer/CommandLineTools/SDKs/MacOSX12= .sdk > > If you want to use the set in Xcode then add the following to your > configure line: > > =E2=80=94with-sysroot=3D`xcrun --show-sdk-path` > > I prefer/recommend the first option. > HTH, > Iain > > > --0000000000009639c905f510050c--