Hi > On 18 Feb 2023, at 20:28, -xlan- <ahsan.ahmed3...@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