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

[boost] Build failure on arm64-osx #43396

Open
hongbo-wei opened this issue Jan 22, 2025 · 2 comments
Open

[boost] Build failure on arm64-osx #43396

hongbo-wei opened this issue Jan 22, 2025 · 2 comments
Assignees
Labels
category:question This issue is a question

Comments

@hongbo-wei
Copy link

Title:
[python3] Build failure on arm64-osx when installing Boost

Body:

### **Description**  
When attempting to install Boost using `vcpkg` on an ARM-based macOS system, the build process fails while trying to build `python3:arm64-osx`. The error occurs during the `autoreconf` step, even after installing the required dependencies (`autoconf`, `automake`, `autoconf-archive`) via Homebrew.

### **Steps to Reproduce**  
1. Install dependencies:  
   ```sh
   brew install autoconf automake autoconf-archive
  1. Clone and bootstrap vcpkg:
    git clone https://github.com/microsoft/vcpkg.git
    cd vcpkg
    ./bootstrap-vcpkg.sh
  2. Attempt to install Boost:
    ./vcpkg install boost

Error Log

The following error occurs during the build process:

CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: /opt/homebrew/bin/autoreconf -vfi
    Working Directory: /Users/hongbo_wei/Downloads/GitHub/vcpkg/buildtrees/python3/src/v3.11.10-a15ef142f4.clean/
    Error code: 1
    See logs for more information:
      /Users/hongbo_wei/Downloads/GitHub/vcpkg/buildtrees/python3/autoconf-arm64-osx-err.log

System Information

  • Operating System: macOS (ARM64)
  • Compiler: Xcode default toolchain (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++)
  • vcpkg Version: Latest (confirmed with git pull and vcpkg update)
  • Dependencies Installed:
    • autoconf
    • automake
    • autoconf-archive

Additional Context

  • The issue persists even after ensuring all dependencies are installed and vcpkg is up to date.
  • The full log from autoconf-arm64-osx-err.log is attached for further debugging.

Proposed Fix

It would be helpful to:

  1. Investigate why autoreconf is failing on ARM64 macOS.
  2. Provide a workaround or patch for building python3 on ARM64 macOS.
  3. Consider adding better error handling or documentation for ARM64 macOS users.

Attachments

@Mengna-Li Mengna-Li self-assigned this Jan 22, 2025
@Mengna-Li
Copy link
Contributor

Duplicate of #40002.

I noticed that you have run brew install autoconf automake autoconf-archive to install tools but it has not resolved the issue. You can try the following steps,hoping it will help you:

  1. Run autoconf -- version to ensure that it has been successfully downloaded.
  2. Run aclocal to regenerate aclocal.m4.
  3. Run autoreconf - fiv to regenerate macros.
  4. Run brew install libtool to install libtool.

@Mengna-Li Mengna-Li added the category:question This issue is a question label Jan 22, 2025
@Osyotr
Copy link
Contributor

Osyotr commented Jan 22, 2025

Alternatively don't install all of boost. Use individual submodules.

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

3 participants