Hi Shengyu,

> On 27 Feb 2023, at 13:35, Shengyu Huang via Gcc <gcc@gcc.gnu.org> wrote:
> 

> By the way, is it expected that I need to configure with 
> `--with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk`?

Yes.
 - for some time now macOS no longer installs headers in /usr/include (and on 
newer versions most of the libraries are omitted from /usr/lib).
 - So you must use a sysroot pointing to a usable SDK.

thanks
Iain

Reply via email to