microsoft / vcpkg

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

[libffi] Build failure on x64-linux #39274

Closed jianglibo closed 3 months ago

jianglibo commented 5 months ago

Package: libffi:x64-linux@3.4.6

Host Environment

To Reproduce

vcpkg install

Failure logs

-- Using cached libffi-3.4.6.tar.gz.
-- Cleaning sources at /home/jianglibo/dic-cxx/external/vcpkg/buildtrees/libffi/src/libffi-3-5867c437e9.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/jianglibo/dic-cxx/external/vcpkg/downloads/libffi-3.4.6.tar.gz
-- Applying patch dll-bindir.diff
-- Using source at /home/jianglibo/dic-cxx/external/vcpkg/buildtrees/libffi/src/libffi-3-5867c437e9.clean
-- Getting CMake variables for x64-linux
-- Getting CMake variables for x64-linux-dbg
-- Getting CMake variables for x64-linux-rel
-- Configuring x64-linux-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: /usr/bin/bash -c "V=1 ./../src/libffi-3-5867c437e9.clean/configure  \"--enable-portable-binary\" \"--disable-docs\" \"--disable-multi-os-directory\" \"CCAS=cc\" \"--disable-silent-rules\" \"--verbose\" \"--disable-shared\" \"--enable-static\" \"--prefix=/home/jianglibo/dic-cxx/vcpkg_installed/x64-linux/debug\" \"--bindir=\\${prefix}/../tools/libffi/debug/bin\" \"--sbindir=\\${prefix}/../tools/libffi/debug/sbin\" \"--libdir=\\${prefix}/lib\" \"--includedir=\\${prefix}/../include\" \"--datarootdir=\\${prefix}/share/libffi\""
    Working Directory: /home/jianglibo/dic-cxx/external/vcpkg/buildtrees/libffi/x64-linux-dbg
    Error code: 255
    See logs for more information:
      /home/jianglibo/dic-cxx/external/vcpkg/buildtrees/libffi/config-x64-linux-dbg-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_make.cmake:863 (vcpkg_execute_required_process)
  ports/libffi/portfile.cmake:49 (vcpkg_configure_make)
  scripts/ports.cmake:175 (include)
/home/jianglibo/dic-cxx/external/vcpkg/buildtrees/libffi/config-x64-linux-dbg-err.log ``` configure: error: working directory cannot be determined ```

Additional context

vcpkg.json ``` { "name": "openpiv-cplusplus", "version-string": "latest", "dependencies": [ "armadillo", "asyncplusplus", { "name": "benchmark", "platform": "!windows" }, { "name": "opencv4", "features": [ "cuda" ] }, "catch2", "cxxopts", "fftw3", "fmt", "gtest", { "name": "mimalloc", "platform": "!(arm | uwp)" }, "spdlog", "tiff" ] } ```
WangWeiLin-MV commented 5 months ago

Using the latest version of vcpkg for local installation does not reproduce the issue.

It might be file permissions issue. Please try vcpkg install libffi with latest vcpkg to check whether the mentioned port could be built.

github-actions[bot] commented 4 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.