microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
22.99k stars 6.35k forks source link

[python3] Build error on x64-linux #40707

Closed nelson-xia closed 1 month ago

nelson-xia commented 1 month ago

Package: python3:x64-linux@3.11.8#4

Host Environment

To Reproduce

vcpkg install --x-feature=python --x-feature=cuda

Failure logs

CMake Warning at ports/python3/portfile.cmake:7 (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:192 (include)

-- Using cached python-cpython-v3.11.8.tar.gz.
-- Cleaning sources at /home/gtxia/tools/vcpkg/buildtrees/python3/src/v3.11.8-fe0ac5827a.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/gtxia/tools/vcpkg/downloads/python-cpython-v3.11.8.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 0002-static-library.patch
-- Applying patch 0011-gcc-ldflags-fix.patch
-- Using source at /home/gtxia/tools/vcpkg/buildtrees/python3/src/v3.11.8-fe0ac5827a.clean
-- Getting CMake variables for x64-linux-dbg
-- Getting CMake variables for x64-linux-rel
-- Generating configure for x64-linux
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: /usr/bin/autoreconf -vfi
    Working Directory: /home/gtxia/tools/vcpkg/buildtrees/python3/src/v3.11.8-fe0ac5827a.clean/
    Error code: 1
    See logs for more information:
      /home/gtxia/tools/vcpkg/buildtrees/python3/autoconf-x64-linux-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_make.cmake:731 (vcpkg_execute_required_process)
  ports/python3/portfile.cmake:274 (vcpkg_configure_make)
  scripts/ports.cmake:192 (include)
/home/gtxia/tools/vcpkg/buildtrees/python3/autoconf-x64-linux-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: /usr/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: /usr/bin/autoconf failed with exit status: 1 ```

Additional context

vcpkg.json ``` { "name": "openmvs", "version": "2.3.0", "description": "OpenMVS: open Multi-View Stereo reconstruction library", "homepage": "https://cdcseacave.github.io/openMVS", "dependencies": [ "boost-iostreams", "boost-program-options", "boost-serialization", "boost-system", "boost-throw-exception", { "name": "cgal", "default-features": false }, "eigen3", "glew", "glfw3", "libpng", { "name": "opencv", "features": [ "eigen", "openexr" ] }, "opengl", "tiff", "vcglib", "zlib" ], "features": { "python": { "description": "Python bindings for OpenMVS", "dependencies": [ "boost-python" ] }, "cuda": { "description": "CUDA support for OpenMVS", "dependencies": [ "cuda" ] }, "openmp": { "description": "OpenMP support for OpenMVS" } } } ```
nelson-xia commented 1 month ago

It is my fault. Use following command to solve this issue sudo apt-get install autoconf automake autoconf-archive