Skip to content

[leveldb] build failure #27457

@jubnzv

Description

@jubnzv

Host Environment

  • OS: Debian testing
  • Compiler: g++ 12.2.0
Compiler versions
$ /usr/bin/c++ --version                                                             
c++ (Debian 12.2.0-3) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ ls -l /etc/alternatives/c++
lrwxrwxrwx 1 root root 12 Oct 10  2021 /etc/alternatives/c++ -> /usr/bin/g++

To Reproduce

Steps to reproduce the behavior:

  1. Install the latest vcpkg:
   $ git clone https://github.com/Microsoft/vcpkg.git /path/to/vcpkg
   $ cd /path/to/vcpkg && ./bootstrap-vcpkg.sh
   $ cd /path/to/scilla
   $ export VCPKG_ROOT=/path/to/vcpkg
  1. Create a directory with the vcpkg.json file that contains:
{
  "name": "test",
  "version-string": "1.0.0",
  "dependencies": [
    {
      "name": "leveldb",
      "default-features": false,
      "features": [
        "crc32c",
        "snappy"
      ]
    }
  ],
  "overrides": []
}
  1. Run the following command in the directory: $VCPKG_ROOT/vcpkg install --triplet x64-linux-dynamic

Failure logs

`vcpkg install` errors
Detecting compiler hash for triplet x64-linux...
Detecting compiler hash for triplet x64-linux-dynamic...
The following packages will be built and installed:
    leveldb[core,crc32c,snappy]:x64-linux-dynamic -> 1.22#5
Restored 0 package(s) from /home/jubnzv/.cache/vcpkg/archives in 4.445 us. Use --debug to see more details.
Installing 1/1 leveldb:x64-linux-dynamic...
Building leveldb[core,crc32c,snappy]:x64-linux-dynamic...
warning: -- Using community triplet x64-linux-dynamic. This triplet configuration is not guaranteed to succeed.
-- [COMMUNITY] Loading triplet configuration from: /home/jubnzv/Sources/vcpkg/triplets/community/x64-linux-dynamic.cmake
-- Note: leveldb only supports static library linkage. Building static library.
-- Using cached google-leveldb-1.22.tar.gz.
-- Cleaning sources at /home/jubnzv/Sources/vcpkg/buildtrees/leveldb/src/1.22-3348a839cb.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/jubnzv/Sources/vcpkg/downloads/google-leveldb-1.22.tar.gz
-- Applying patch fix_config.patch
-- Applying patch fix-dependencies.patch
-- Using source at /home/jubnzv/Sources/vcpkg/buildtrees/leveldb/src/1.22-3348a839cb.clean
-- Found external ninja('1.11.1').
-- Configuring x64-linux-dynamic
-- Building x64-linux-dynamic-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:131 (message):
    Command failed: /usr/bin/cmake --build . --config Debug --target install -- -v -j9
    Working Directory: /home/jubnzv/Sources/vcpkg/buildtrees/leveldb/x64-linux-dynamic-dbg
    See logs for more information:
      /home/jubnzv/Sources/vcpkg/buildtrees/leveldb/install-x64-linux-dynamic-dbg-out.log

Call Stack (most recent call first):
  /home/jubnzv/Dev/vcpkg-bug/vcpkg_installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  /home/jubnzv/Dev/vcpkg-bug/vcpkg_installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/leveldb/portfile.cmake:28 (vcpkg_cmake_install)
  scripts/ports.cmake:147 (include)


error: building leveldb:x64-linux-dynamic failed with: BUILD_FAILED
error: Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
    https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+leveldb
You can submit a new issue at:
    https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[leveldb]+Build+error
Include '[leveldb] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
    vcpkg-tool version: 2022-10-17-3247920fbdd47d08f36cbd480addd9890d3c2435
    vcpkg-scripts version: 7ad236f60 2022-10-24 (11 hours ago)


Please use the prefilled template from /home/jubnzv/Dev/vcpkg-bug/vcpkg_installed/vcpkg/issue_body.md when reporting your issue.

Metadata

Metadata

Assignees

Labels

category:port-bugThe issue is with a library, which is something the port should already support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions