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/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 > > >