microsoft / vcpkg

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

[libsodium] Build error on x64-linux #41343

Closed patlecat closed 1 week ago

patlecat commented 1 week ago

Package: libsodium:x64-linux@1.0.20#1

Host Environment

To Reproduce

vcpkg install

Failure logs

-- Using cached jedisct1-libsodium-1.0.20-RELEASE.tar.gz.
-- Cleaning sources at /home/xxx/vcpkg/buildtrees/libsodium/src/20-RELEASE-e1d8ad6ac8.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/xxx/vcpkg/downloads/jedisct1-libsodium-1.0.20-RELEASE.tar.gz
-- Using source at /home/xxx/vcpkg/buildtrees/libsodium/src/20-RELEASE-e1d8ad6ac8.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/xxx/vcpkg/buildtrees/libsodium/src/20-RELEASE-e1d8ad6ac8.clean/
    Error code: 2
    See logs for more information:
      /home/xxx/vcpkg/buildtrees/libsodium/autoconf-x64-linux-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_make.cmake:731 (vcpkg_execute_required_process)
  /home/xxx/.cache/vcpkg/registries/git-trees/ab6a37dc1d297573d444a9ac29e2cbd496ff51c0/portfile.cmake:49 (vcpkg_configure_make)
  scripts/ports.cmake:192 (include)
/home/xxx/vcpkg/buildtrees/libsodium/autoconf-x64-linux-err.log ``` autoreconf: export WARNINGS= autoreconf: Entering directory '.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force -I m4 autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy --force Can't exec "libtoolize": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 293. autoreconf: error: libtoolize failed with exit status: 2 ```

Additional context

vcpkg.json ``` { "dependencies": [ { "name": "libsodium", "platform": "(linux & x64)" } ] } ```
dg0yt commented 1 week ago

Install the system package which provides libtoolize, probably called libtool.

patlecat commented 1 week ago

@dg0yt yep that was it, thanks a lot!