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 error on x64-linux #38400

Closed
patrick-rotsaert opened this issue Apr 24, 2024 · 5 comments
Closed

[python3] Build error on x64-linux #38400

patrick-rotsaert opened this issue Apr 24, 2024 · 5 comments
Labels
category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team.

Comments

@patrick-rotsaert
Copy link

patrick-rotsaert commented Apr 24, 2024

Package: python3:x64-linux@3.11.8#1

Host Environment

  • Host: x64-linux
  • Compiler: GNU 11.4.0
  • vcpkg-tool version: 2024-03-14-7d353e869753e5609a1f1a057df3db8fd356e49d
    vcpkg-scripts version: 6d2c971 2024-04-24 (18 minutes ago)

To Reproduce

vcpkg install
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:175 (include)


-- Using cached python-cpython-v3.11.8.tar.gz.
-- Cleaning sources at /home/patrickr/git/zoo/vcpkg/buildtrees/python3/src/v3.11.8-fe0ac5827a.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/patrickr/git/zoo/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/patrickr/git/zoo/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:112 (message):
    Command failed: /usr/bin/autoreconf -vfi
    Working Directory: /home/patrickr/git/zoo/vcpkg/buildtrees/python3/src/v3.11.8-fe0ac5827a.clean/
    Error code: 1
    See logs for more information:
      /home/patrickr/git/zoo/vcpkg/buildtrees/python3/autoconf-x64-linux-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_make.cmake:728 (vcpkg_execute_required_process)
  ports/python3/portfile.cmake:274 (vcpkg_configure_make)
  scripts/ports.cmake:175 (include)



/home/patrickr/git/zoo/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": "zoo",
  "version-string": "0.0.1",
  "license": "BSL-1.0",
  "dependencies": [
    "fmt",
    "spdlog",
    "boost",
    "libpq",
    "libmysql",
    "sqlite3",
    "libssh",
    "gtest"
  ]
}

Note: The CMake cache variable VCPKG_TARGET_TRIPLET was set to "x64-linux-dynamic"

@jimwang118 jimwang118 added the category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. label Apr 25, 2024
@jimwang118 jimwang118 removed their assignment Apr 25, 2024
@jimwang118
Copy link
Contributor

I haven't reproduced this problem on x64-linux.

@patrick-rotsaert
Copy link
Author

@jimwang118 The triplet was "x64-linux-dynamic". With "x64-linux" I don't have the issue either.

@FrankXie05
Copy link
Contributor

  python3 currently requires the following programs from the system package
  manager:

      autoconf automake autoconf-archive

Maybe you need these sustem package and also run command sudo apt-get install libtool.

@patrick-rotsaert
Copy link
Author

Indeed,autoconf-archive was not installed on my system.
Problem resolved after installing it.
Thanks for pointing that out.

@jimwang118
Copy link
Contributor

Indeed,autoconf-archive was not installed on my system. Problem resolved after installing it. Thanks for pointing that out.

Thanks for the reply. Your problem has been solved. I will close this issue. If you have other questions, please submit a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team.
Projects
None yet
Development

No branches or pull requests

3 participants