microsoft / vcpkg

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

[libmount] Build error on x64-linux #36144

Closed kaomoneus closed 7 months ago

kaomoneus commented 9 months ago

Package: libmount:x64-linux@2.39

Host Environment

To Reproduce

vcpkg install curl[http2] fontconfig freetype liblzma libpng lzo sdl2 zlib Failure logs

-- Downloading https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.39/util-linux-2.39.tar.xz -> util-linux-2.39.tar.xz...
-- Extracting source /vcpkg/downloads/util-linux-2.39.tar.xz
-- Using source at /vcpkg/buildtrees/libmount/src/2.39-8e811842f2.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/local/bin/autoreconf -vfi
    Working Directory: /vcpkg/buildtrees/libmount/src/2.39-8e811842f2.clean/
    Error code: 1
    See logs for more information:
      /vcpkg/buildtrees/libmount/autoconf-x64-linux-out.log
      /vcpkg/buildtrees/libmount/autoconf-x64-linux-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_make.cmake:629 (vcpkg_execute_required_process)
  ports/libmount/portfile.cmake:23 (vcpkg_configure_make)
  scripts/ports.cmake:170 (include)
/vcpkg/buildtrees/libmount/autoconf-x64-linux-out.log ``` libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'. libtoolize: copying file 'config/ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' ```
/vcpkg/buildtrees/libmount/autoconf-x64-linux-err.log ``` autoreconf: export WARNINGS= autoreconf: Entering directory '.' autoreconf: running: true --force autoreconf: running: aclocal --force -I m4 autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy --force autoreconf: configure.ac: not using Intltool autoreconf: running: true --copy autoreconf: running: aclocal --force -I m4 autoreconf: running: /usr/local/bin/autoconf --force configure.ac:2503: error: possibly undefined macro: PKG_CHECK_VAR If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. autoreconf: error: /usr/local/bin/autoconf failed with exit status: 1 ```
kaomoneus commented 9 months ago

As an additional information, this bug has been discovered while running on quay.io/pypa/manylinux2014_x86_64:2024-01-08-eb135ed image.

  1. Install vcpkg
    git clone --depth=1 https://github.com/microsoft/vcpkg /vcpkg-clone
        if [ -e /vcpkg/installed ]; then
          mv /vcpkg/installed /vcpkg-clone/
          rm -rf /vcpkg
        fi
        mv /vcpkg-clone /vcpkg
  2. Install python3
    cd /vcpkg
    ./vcpkg install python3
    ln -sf $(pwd)/installed/x64-linux/tools/python3/python3.[0-9][0-9] /usr/bin/python3
  3. Try to install following:
    ./vcpkg install \
            curl[http2] \
            fontconfig \
            freetype \
            liblzma \
            libpng \
            lzo \
            sdl2 \
            zlib \
            # EOF
  4. boom

CC: @LilyWangLL

kaomoneus commented 9 months ago

@LilyWangLL , @jimwang118 hi guys! Any updates on that? Thanks!

LilyWangLL commented 9 months ago

Sorry for the late reply. This issue can't repro on the latest vcpkg, I test this issue on Ubuntu 23.04, this seems to need update the version of pkgconfig. See https://www.spinics.net/lists/linux-btrfs/msg55141.html.

dg0yt commented 8 months ago

Or just install pkg-config.

github-actions[bot] commented 7 months ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.

LilyWangLL commented 7 months ago

We haven't been able to repro this; if more information comes up, or this issue appears again, please reopen.