【问题标题】:How do I specify the header location building gcc-12 on Macos M1?如何在 Macos M1 上指定构建 gcc-12 的标头位置?
【发布时间】:2022-10-17 15:46:38
【问题描述】:

全部。

我正在尝试使用 Ian 在https://github.com/iains/gcc-darwin-arm64 的出色工作在运行 MacOS 11.3.1 和 Xcode 13.2.1 的 M1 Mini 上构建 gcc-12,但我似乎无法为包含文件指定正确的位置。以下选项通过配置传递:

--with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1

但是构建过程在尝试修复包含时会尝试查看/usr/include

在不指定目录的情况下运行configure 会以同样的方式失败。

附:我第一次将这个发布到问不同但没有收到任何回应。

【问题讨论】:

    标签: macos gcc


    【解决方案1】:

    像这样的东西可能会起作用......

    ../configure --prefix=$(pwd)/install --enable-languages=all --with-sysroot=$(xcrun --show-sdk-path)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-07-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-06-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多