From 784f9ab95ccff67035f22120996fd9ca53c355d3 Mon Sep 17 00:00:00 2001 From: native-api Date: Wed, 5 Jun 2024 22:57:43 +0300 Subject: [PATCH] +1 error message --- Common-build-problems.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/Common-build-problems.md b/Common-build-problems.md index 86aa3fe..24cf290 100644 --- a/Common-build-problems.md +++ b/Common-build-problems.md @@ -17,7 +17,7 @@ - [macOS: "ld: symbol(s) not found for architecture x86_64" (#1245)](#macos-ld-symbol-s-not-found-for-architecture-x86-64-1245) - [Python cannot find a dependent dynamic library even though it's installed](#python-cannot-find-a-dependent-dynamic-library-even-though-its-installed) - ["python-build: definition not found" or another new feature missing even though you have a new enough Pyenv](#python-build-definition-not-found-or-another-new-feature-missing-even-though-you-have-a-new-enough-pyenv) -- ["configure: error: internal configure error for the platform triplet, please file a bug report" in MacOS](#configure-error-internal-configure-error-for-the-platform-triplet-please-file-a-bug-report-in-macos) +- ["configure: error: internal configure error for the platform triplet, please file a bug report" or "configure: error: Unexpected output of 'arch' on OSX" in MacOS](#configure-error-internal-configure-error-for-the-platform-triplet-please-file-a-bug-report-or-configure-error-unexpected-output-of-arch-on-osx-in-macos) - [Keg-only Homebrew packages are forcibly linked / added to PATH](#keg-only-homebrew-packages-are-forcibly-linked--added-to-path) - [On Apple Silicon, when building for ARM64, a dependency is present in x64 Homebrew but not arm64 Homebrew](#on-apple-silicon-when-building-for-arm64-a-dependency-is-present-in-x64-homebrew-but-not-arm64-homebrew) ## Prerequisites @@ -364,12 +364,19 @@ bash $ which -a pyenv If yes, [remove it](https://github.com/pyenv/pyenv#uninstalling-pyenv). -## "configure: error: internal configure error for the platform triplet, please file a bug report" in MacOS +## "configure: error: internal configure error for the platform triplet, please file a bug report" or "configure: error: Unexpected output of 'arch' on OSX" in MacOS ``` checking for the platform triplet based on compiler characteristics... darwin configure: error: internal configure error for the platform triplet, please file a bug report ``` +or +``` +checking build system type... arm-apple-darwin<...> +checking host system type... arm-apple-darwin<...> +<...> +configure: error: Unexpected output of 'arch' on OSX +``` This means that *the Python version you're installing doesn't support your MacOS and/or XCode version.* In particular: @@ -383,8 +390,12 @@ Unlink/Remove them from your `PATH`. Known error messages they cause: -* Homebrew `binutils` on `PATH`: - * `configure: error: Unexpected output of 'arch' on OSX` +* Homebrew `binutils` on `PATH` (note that the architecture is detected as `arm64` (`aarch64` is also possible) rather than `arm`): + * ``` + checking build system type... arm64-apple-darwin<...> + checking host system type... arm64-apple-darwin<...> + configure: error: Unexpected output of 'arch' on OSX + ``` * Homebrew `llvm` on `PATH`: * `warning: pointer is missing a nullability type specifier` * `llvm-ar: error: libpython3.10.a: Invalid record`