public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: -xlan- <ahsan.ahmed3246@gmail.com>
To: Iain Sandoe <idsandoe@googlemail.com>
Cc: GCC Development <gcc@gcc.gnu.org>
Subject: Re: Failure During Building
Date: Sun, 19 Feb 2023 08:27:13 -0800	[thread overview]
Message-ID: <CAOZ-8gXk3VfjusRR1nXwoe-JAAhEr3D27Yss0H028WO5Yq+fjw@mail.gmail.com> (raw)
In-Reply-To: <4E479E20-5C2D-4CCA-8446-1D1FD6BAB8E5@googlemail.com>

[-- Attachment #1: Type: text/plain, Size: 1156 bytes --]

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 <idsandoe@googlemail.com> wrote:

> Hi
>
> > On 18 Feb 2023, at 20:28, -xlan- <ahsan.ahmed3246@gmail.com> 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/Developer/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:
>
> —with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
>
> If you want to use the set in Xcode then add the following to your
> configure line:
>
> —with-sysroot=`xcrun --show-sdk-path`
>
> I prefer/recommend the first option.
> HTH,
> Iain
>
>
>

  reply	other threads:[~2023-02-20 11:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-17 15:17 -xlan-
2023-02-17 15:37 ` Jonathan Wakely
2023-02-17 16:03   ` Iain Sandoe
2023-02-18 20:28     ` -xlan-
2023-02-18 23:49       ` Iain Sandoe
2023-02-19 16:27         ` -xlan- [this message]
2023-02-19 16:48           ` Iain Sandoe
2023-02-19 16:56             ` -xlan-

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAOZ-8gXk3VfjusRR1nXwoe-JAAhEr3D27Yss0H028WO5Yq+fjw@mail.gmail.com \
    --to=ahsan.ahmed3246@gmail.com \
    --cc=gcc@gcc.gnu.org \
    --cc=idsandoe@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).