microsoft / vcpkg

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

[gmp] Build error on x64-linux #41106

Open ysyecust opened 3 hours ago

ysyecust commented 3 hours ago

Package: gmp:x64-linux@6.3.0

Host Environment

To Reproduce

vcpkg install gmp

Failure logs

-- Using cached gmp-6.3.0.tar.xz.
-- Cleaning sources at /home/md/vcpkg/buildtrees/gmp/src/v6.3.0-036e54f1a3.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/md/vcpkg/downloads/gmp-6.3.0.tar.xz
-- Applying patch asmflags.patch
-- Applying patch cross-tools.patch
-- Applying patch subdirs.patch
-- Applying patch msvc_symbol.patch
-- Applying patch arm64-coff.patch
-- Using source at /home/md/vcpkg/buildtrees/gmp/src/v6.3.0-036e54f1a3.clean
-- Getting CMake variables for x64-linux
-- 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/md/vcpkg/buildtrees/gmp/src/v6.3.0-036e54f1a3.clean/
    Error code: 1
    See logs for more information:
      /home/md/vcpkg/buildtrees/gmp/autoconf-x64-linux-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_make.cmake:731 (vcpkg_execute_required_process)
  ports/gmp/portfile.cmake:82 (vcpkg_configure_make)
  scripts/ports.cmake:192 (include)
/home/md/vcpkg/buildtrees/gmp/autoconf-x64-linux-err.log ``` autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force configure.ac:3856: warning: AC_LIBTOOL_PROG_COMPILER_PIC is m4_require'd but not m4_defun'd acinclude.m4:2363: GMP_ASM_X86_GOT_UNDERSCORE is expanded from... configure.ac:3856: the top level configure.ac:3859: warning: AC_ENABLE_SHARED is m4_require'd but not m4_defun'd acinclude.m4:2717: GMP_ASM_X86_MCOUNT is expanded from... configure.ac:3859: the top level configure.ac:3859: warning: AC_PROG_LIBTOOL is m4_require'd but not m4_defun'd acinclude.m4:2717: GMP_ASM_X86_MCOUNT is expanded from... configure.ac:3859: the top level autoreconf: configure.ac: tracing configure.ac:3856: warning: AC_LIBTOOL_PROG_COMPILER_PIC is m4_require'd but not m4_defun'd acinclude.m4:2363: GMP_ASM_X86_GOT_UNDERSCORE is expanded from... configure.ac:3856: the top level configure.ac:3859: warning: AC_ENABLE_SHARED is m4_require'd but not m4_defun'd acinclude.m4:2717: GMP_ASM_X86_MCOUNT is expanded from... configure.ac:3859: the top level configure.ac:3859: warning: AC_PROG_LIBTOOL is m4_require'd but not m4_defun'd acinclude.m4:2717: GMP_ASM_X86_MCOUNT is expanded from... configure.ac:3859: the top level autoreconf: configure.ac: not using Libtool autoreconf: running: /usr/bin/autoconf --force configure.ac:3856: warning: AC_LIBTOOL_PROG_COMPILER_PIC is m4_require'd but not m4_defun'd acinclude.m4:2363: GMP_ASM_X86_GOT_UNDERSCORE is expanded from... configure.ac:3856: the top level configure.ac:3859: warning: AC_ENABLE_SHARED is m4_require'd but not m4_defun'd acinclude.m4:2717: GMP_ASM_X86_MCOUNT is expanded from... configure.ac:3859: the top level configure.ac:3859: warning: AC_PROG_LIBTOOL is m4_require'd but not m4_defun'd acinclude.m4:2717: GMP_ASM_X86_MCOUNT is expanded from... configure.ac:3859: the top level configure.ac:2726: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.ac:2814: error: possibly undefined macro: AC_PROG_LIBTOOL configure.ac:2937: error: possibly undefined macro: AC_CHECK_LIBM configure:11298: error: possibly undefined macro: AC_PROG_NM configure:15278: error: possibly undefined macro: AC_LIBTOOL_PROG_COMPILER_PIC configure:15373: error: possibly undefined macro: AC_ENABLE_SHARED autoreconf: /usr/bin/autoconf failed with exit status: 1 ```
ysyecust commented 3 hours ago

I fix it after

sudo apt-get install libtool