Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[python3] Build failure on arm64-osx #43322

Closed
BrandenXia opened this issue Jan 17, 2025 · 1 comment
Closed

[python3] Build failure on arm64-osx #43322

BrandenXia opened this issue Jan 17, 2025 · 1 comment
Assignees
Labels
category:question This issue is a question

Comments

@BrandenXia
Copy link

BrandenXia commented Jan 17, 2025

Package: python3[core,extensions]:[email protected]#1

Host Environment

  • Host: arm64-osx
  • Compiler: AppleClang 16.0.0.16000026
  • vcpkg-tool version: 2024-11-12-eb492805e92a2c14a230f5c3deb3e89f6771c321
    vcpkg-scripts version: 81ab9a8 2025-01-10 (7 days ago)

To Reproduce

vcpkg install libtorch --allow-unsupported

Failure logs

CMake Warning at ports/python3/portfile.cmake:16 (message):
  python3 currently requires the following programs from the system package
  manager:

      autoconf automake autoconf-archive

  On Debian and Ubuntu derivatives:

      sudo apt-get install autoconf automake autoconf-archive

  On recent Red Hat and Fedora derivatives:

      sudo dnf install autoconf automake autoconf-archive

  On Arch Linux and derivatives:

      sudo pacman -S autoconf automake autoconf-archive

  On Alpine:

      apk add autoconf automake autoconf-archive

  On macOS:

      brew install autoconf automake autoconf-archive

Call Stack (most recent call first):
  scripts/ports.cmake:196 (include)


Downloading python-cpython-v3.11.10.tar.gz
Successfully downloaded python-cpython-v3.11.10.tar.gz.
-- Extracting source /Users/username/.vcpkg-clion/vcpkg/downloads/python-cpython-v3.11.10.tar.gz
-- Applying patch 0001-only-build-required-projects.patch
-- Applying patch 0003-use-vcpkg-zlib.patch
-- Applying patch 0004-devendor-external-dependencies.patch
-- Applying patch 0005-dont-copy-vcruntime.patch
-- Applying patch 0008-python.pc.patch
-- Applying patch 0010-dont-skip-rpath.patch
-- Applying patch 0012-force-disable-modules.patch
-- Applying patch 0014-fix-get-python-inc-output.patch
-- Applying patch 0015-dont-use-WINDOWS-def.patch
-- Applying patch 0016-undup-ffi-symbols.patch
-- Applying patch 0018-fix-sysconfig-include.patch
-- Applying patch 0019-fix-ssl-linkage.patch
-- Applying patch 0002-static-library.patch
-- Using source at /Users/username/.vcpkg-clion/vcpkg/buildtrees/python3/src/v3.11.10-a15ef142f4.clean
-- Found external ninja('1.12.1').
-- Getting CMake variables for arm64-osx-dbg
-- Getting CMake variables for arm64-osx-rel
-- Generating configure for arm64-osx
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: /opt/homebrew/bin/autoreconf -vfi
    Working Directory: /Users/username/.vcpkg-clion/vcpkg/buildtrees/python3/src/v3.11.10-a15ef142f4.clean/
    Error code: 1
    See logs for more information:
      /Users/username/.vcpkg-clion/vcpkg/buildtrees/python3/autoconf-arm64-osx-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_make.cmake:731 (vcpkg_execute_required_process)
  ports/python3/portfile.cmake:293 (vcpkg_configure_make)
  scripts/ports.cmake:196 (include)



/Users/username/.vcpkg-clion/vcpkg/buildtrees/python3/autoconf-arm64-osx-err.log
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force 
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: /opt/homebrew/Cellar/autoconf/2.72/bin/autoconf --force
configure.ac:18: error: possibly undefined macro: AC_MSG_ERROR
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: error: /opt/homebrew/Cellar/autoconf/2.72/bin/autoconf failed with exit status: 1
@LilyWangLL LilyWangLL self-assigned this Jan 17, 2025
@LilyWangLL LilyWangLL added the category:question This issue is a question label Jan 17, 2025
@LilyWangLL
Copy link
Contributor

Please try the solution: brew install autoconf automake autoconf-archive.
Duplicate of #41917 #39440.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

2 participants