microsoft / vcpkg

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

[dbus] Installing dbus[core,systemd]:x64-linux@1.15.8#2 failure #38983

Open onbings opened 4 months ago

onbings commented 4 months ago

Operating system

gcc (Debian 10.2.1-6) 10.2.1 20210110

Compiler

gcc (Debian 10.2.1-6) 10.2.1 20210110

Steps to reproduce the behavior

Installing 1/61 dbus[core,systemd]:x64-linux@1.15.8#2...

Failure logs

Installing 1/61 dbus[core,systemd]:x64-linux@1.15.8#2... Building dbus[core,systemd]:x64-linux@1.15.8#2... /home/bha/.cache/vcpkg/registries/git-trees/d91a1718705f5d0d6ba7922cf832759a58469ff8: info: installing overlay port from here -- Note: dbus only supports dynamic library linkage. Building dynamic library. -- Using cached dbus-dbus-dbus-1.15.8.tar.gz. -- Cleaning sources at /home/bha/pro/vcpkg/buildtrees/dbus/src/bus-1.15.8-13db4f5df7.clean. Use --editable to skip cleaning for the packages you specify. -- Extracting source /home/bha/pro/vcpkg/downloads/dbus-dbus-dbus-1.15.8.tar.gz -- Applying patch cmake.dep.patch -- Applying patch pkgconfig.patch -- Applying patch getpeereid.patch -- Applying patch libsystemd.patch -- Using source at /home/bha/pro/vcpkg/buildtrees/dbus/src/bus-1.15.8-13db4f5df7.clean -- Configuring x64-linux CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message): Command failed: /home/bha/pro/vcpkg/downloads/tools/ninja/1.10.2-linux/ninja -v Working Directory: /home/bha/pro/vcpkg/buildtrees/dbus/x64-linux-rel/vcpkg-parallel-configure Error code: 1 See logs for more information: /home/bha/pro/vcpkg/buildtrees/dbus/config-x64-linux-dbg-CMakeCache.txt.log /home/bha/pro/vcpkg/buildtrees/dbus/config-x64-linux-rel-CMakeCache.txt.log /home/bha/pro/vcpkg/buildtrees/dbus/config-x64-linux-out.log

Call Stack (most recent call first): /home/bha/bld/evs-hwfw-sb-xts-lin/vcpkg_installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:252 (vcpkg_execute_required_process) /home/bha/.cache/vcpkg/registries/git-trees/d91a1718705f5d0d6ba7922cf832759a58469ff8/portfile.cmake:26 (vcpkg_cmake_configure) scripts/ports.cmake:175 (include)

error: building dbus:x64-linux failed with: BUILD_FAILED Elapsed time to handle dbus:x64-linux: 17 s 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+dbus You can submit a new issue at: https://github.com/microsoft/vcpkg/issues/new?title=[dbus]+Build+error+on+x64-linux&body=Copy+issue+body+from+%2Fhome%2Fbha%2Fbld%2Fevs-hwfw-sb-xts-lin%2Fvcpkg_installed%2Fvcpkg%2Fissue_body.md

-- Running vcpkg install - failed CMake Error at /home/bha/pro/vcpkg/scripts/buildsystems/vcpkg.cmake:899 (message): vcpkg install failed. See logs for more information: /home/bha/bld/evs-hwfw-sb-xts-lin/vcpkg-manifest-install.log Call Stack (most recent call first): /opt/cmake-3.29.0-rc1-linux-x86_64/share/cmake-3.29/Modules/CMakeDetermineSystem.cmake:146 (include) CMakeLists.txt:47 (project)

CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred!

LOG FILE: bha@fw-xta2:~$ cat /home/bha/pro/vcpkg/buildtrees/dbus/config-x64-linux-out.log [1/2] "/home/bha/pro/vcpkg/downloads/tools/cmake-3.29.2-linux/cmake-3.29.2-linux-x86_64/bin/cmake" -E chdir ".." "/home/bha/pro/vcpkg/downloads/tools/cmake-3.29.2-linux/cmake-3.29.2-linux-x86_64/bin/cmake" "/home/bha/pro/vcpkg/buildtrees/dbus/src/bus-1.15.8-13db4f5df7.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=/home/bha/pro/vcpkg/packages/dbus_x64-linux" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DDBUS_BUILD_TESTS=OFF" "-DDBUS_ENABLE_DOXYGEN_DOCS=OFF" "-DDBUS_ENABLE_XML_DOCS=OFF" "-DDBUS_INSTALL_SYSTEM_LIBS=OFF" "-DDBUS_WITH_GLIB=OFF" "-DTHREADS_PREFER_PTHREAD_FLAG=ON" "-DXSLTPROC_EXECUTABLE=FALSE" "-DCMAKE_INSTALL_SYSCONFDIR=/home/bha/pro/vcpkg/packages/dbus_x64-linux/etc/dbus" "-DWITH_SYSTEMD_SYSTEMUNITDIR=lib/systemd/system" "-DWITH_SYSTEMD_USERUNITDIR=lib/systemd/user" "-DENABLE_SYSTEMD=ON" "-DDBUS_BUILD_X11=OFF" "-DCMAKE_REQUIRE_FIND_PACKAGE_X11=OFF" "-DCMAKE_MAKE_PROGRAM=/home/bha/pro/vcpkg/downloads/tools/ninja/1.10.2-linux/ninja" "-DCMAKE_SYSTEM_NAME=Linux" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/home/bha/pro/vcpkg/scripts/toolchains/linux.cmake" "-DVCPKG_TARGET_TRIPLET=x64-linux" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=/home/bha/pro/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=/home/bha/pro/vcpkg" "-D_VCPKG_INSTALLED_DIR=/home/bha/bld/evs-hwfw-sb-xts-lin/vcpkg_installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DDBUS_DISABLE_ASSERT=OFF" "-DDBUS_ENABLE_STATS=OFF" "-DDBUS_ENABLE_VERBOSE_MODE=OFF" FAILED: ../CMakeCache.txt "/home/bha/pro/vcpkg/downloads/tools/cmake-3.29.2-linux/cmake-3.29.2-linux-x86_64/bin/cmake" -E chdir ".." "/home/bha/pro/vcpkg/downloads/tools/cmake-3.29.2-linux/cmake-3.29.2-linux-x86_64/bin/cmake" "/home/bha/pro/vcpkg/buildtrees/dbus/src/bus-1.15.8-13db4f5df7.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=/home/bha/pro/vcpkg/packages/dbus_x64-linux" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DDBUS_BUILD_TESTS=OFF" "-DDBUS_ENABLE_DOXYGEN_DOCS=OFF" "-DDBUS_ENABLE_XML_DOCS=OFF" "-DDBUS_INSTALL_SYSTEM_LIBS=OFF" "-DDBUS_WITH_GLIB=OFF" "-DTHREADS_PREFER_PTHREAD_FLAG=ON" "-DXSLTPROC_EXECUTABLE=FALSE" "-DCMAKE_INSTALL_SYSCONFDIR=/home/bha/pro/vcpkg/packages/dbus_x64-linux/etc/dbus" "-DWITH_SYSTEMD_SYSTEMUNITDIR=lib/systemd/system" "-DWITH_SYSTEMD_USERUNITDIR=lib/systemd/user" "-DENABLE_SYSTEMD=ON" "-DDBUS_BUILD_X11=OFF" "-DCMAKE_REQUIRE_FIND_PACKAGE_X11=OFF" "-DCMAKE_MAKE_PROGRAM=/home/bha/pro/vcpkg/downloads/tools/ninja/1.10.2-linux/ninja" "-DCMAKE_SYSTEM_NAME=Linux" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/home/bha/pro/vcpkg/scripts/toolchains/linux.cmake" "-DVCPKG_TARGET_TRIPLET=x64-linux" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=/home/bha/pro/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=/home/bha/pro/vcpkg" "-D_VCPKG_INSTALLED_DIR=/home/bha/bld/evs-hwfw-sb-xts-lin/vcpkg_installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DDBUS_DISABLE_ASSERT=OFF" "-DDBUS_ENABLE_STATS=OFF" "-DDBUS_ENABLE_VERBOSE_MODE=OFF" -- fetched variable from meson.build - DBUS_VERSION = 1.15.8 -- fetched variable from meson.build - DBUS_VERSION_STRING = 1.15.8 -- fetched variable from meson.build - DBUS_MAJOR_VERSION = 1 -- fetched variable from meson.build - DBUS_MINOR_VERSION = 15 -- fetched variable from meson.build - DBUS_MICRO_VERSION = 8 -- fetched variable from meson.build - DBUS_LIBRARY_AGE = 38 -- fetched variable from meson.build - DBUS_LIBRARY_REVISION = 0 -- fetched variable from meson.build - DBUS_LIBRARY_CURRENT = 41 -- The C compiler identification is GNU 10.2.1 -- The CXX compiler identification is GNU 10.2.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -...

-- effectively used warnings for 'WARNINGS_CXXFLAGS': all;array-bounds;cast-align;char-subscripts;double-promotion;duplicated-branches;duplicated-cond;extra;float-equal;format-nonliteral;format-security;format=2;init-self;logical-op;missing-declarations;missing-format-attribute;missing-include-dirs;missing-noreturn;no-error=missing-field-initializers;no-error=unused-label;no-error=unused-parameter;no-missing-field-initializers;no-unused-label;no-unused-parameter;null-dereference;packed;pointer-arith;redundant-decls;restrict;return-type;shadow;sign-compare;strict-aliasing;switch-default;switch-enum;undef;unused-but-set-variable;write-strings -- effectively used disabled warnings for 'WARNINGS_CXXFLAGS': error=inline;error=overloaded-virtual;error=missing-field-initializers;error=null-dereference;error=strict-aliasing;error=unused-parameter;unused-parameter -- unsupported warnings for 'WARNINGS_CXXFLAGS': declaration-after-statement;implicit-function-declaration;jump-misses-init;missing-prototypes;nested-externs;old-style-definition;pointer-sign;strict-prototypes

NOTE: system bus listens on /home/bha/pro/vcpkg/packages/dbus_x64-linux/var/run/dbus/system_bus_socket | This build of dbus will not interoperate with the well-known | system bus socket, /var/run/dbus/system_bus_socket.

-- Could NOT find DocBookXSL (missing: DocBookXSL_DIR)

set -DDBUS_INSTALL_SYSTEM_LIBS=1 to install runtime libraries too set DBUSDIR (environment or cmake option) to overwrite the default install directory

              D-BUS 1.15.8
              =============

    install prefix:           /home/bha/pro/vcpkg/packages/dbus_x64-linux
    install exec_prefix:      /home/bha/pro/vcpkg/packages/dbus_x64-linux
    install libdir:           /home/bha/pro/vcpkg/packages/dbus_x64-linux/lib
    install libexecdir:       /home/bha/pro/vcpkg/packages/dbus_x64-linux/libexec
    install bindir:           /home/bha/pro/vcpkg/packages/dbus_x64-linux/bin
    install sysconfdir:       /home/bha/pro/vcpkg/packages/dbus_x64-linux/etc/dbus
    install datadir:          /home/bha/pro/vcpkg/packages/dbus_x64-linux/share
    source code location:     /home/bha/pro/vcpkg/buildtrees/dbus/src/bus-1.15.8-13db4f5df7.clean
    build dir:                /home/bha/pro/vcpkg/buildtrees/dbus/x64-linux-rel
    c compiler:               cc
    cflags:                   -fPIC -fno-common  -Wall -Warray-bounds -Wcast-align -Wchar-subscripts -Wdeclaration-after-statement -Wdouble-promotion -Wduplicated-branches -Wduplicated-cond -Wextra -Wfloat-equal -Wformat-nonliteral -Wformat-security -Wformat=2 -Wimplicit-function-declaration -Winit-self -Wjump-misses-init -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wno-error=missing-field-initializers -Wno-error=unused-label -Wno-error=unused-parameter -Wno-missing-field-initializers -Wno-unused-label -Wno-unused-parameter -Wnull-dereference -Wold-style-definition -Wpacked -Wpointer-arith -Wpointer-sign -Wredundant-decls -Wrestrict -Wreturn-type -Wshadow -Wsign-compare -Wstrict-aliasing -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wundef -Wunused-but-set-variable -Wwrite-strings -Wno-error=inline -Wno-error=overloaded-virtual -Wno-error=missing-field-initializers -Wno-error=null-dereference -Wno-error=strict-aliasing -Wno-error=unused-parameter -Wno-unused-parameter               
    cflags debug:             -g -D_DEBUG
    cflags release:           -O3 -DNDEBUG
    cxx compiler:             c++
    cxxflags:                 -fPIC -fno-common  -Wall -Warray-bounds -Wcast-align -Wchar-subscripts -Wdouble-promotion -Wduplicated-branches -Wduplicated-cond -Wextra -Wfloat-equal -Wformat-nonliteral -Wformat-security -Wformat=2 -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-error=missing-field-initializers -Wno-error=unused-label -Wno-error=unused-parameter -Wno-missing-field-initializers -Wno-unused-label -Wno-unused-parameter -Wnull-dereference -Wpacked -Wpointer-arith -Wredundant-decls -Wrestrict -Wreturn-type -Wshadow -Wsign-compare -Wstrict-aliasing -Wswitch-default -Wswitch-enum -Wundef -Wunused-but-set-variable -Wwrite-strings -Wno-error=inline -Wno-error=overloaded-virtual -Wno-error=missing-field-initializers -Wno-error=null-dereference -Wno-error=strict-aliasing -Wno-error=unused-parameter -Wno-unused-parameter
    cxxflags debug:           -g
    cxxflags release:         -O3 -DNDEBUG
    64-bit int:               long
    32-bit int:               int
    16-bit int:               short
    pointer size:             8
    Doxygen:                  /usr/bin/doxygen
    Docbook Generator:
    gcc coverage profiling:   OFF
    Building unit tests:      OFF
    Building with GLib:       OFF
    Building verbose mode:    OFF
    Building w/o assertions:  OFF
    Building w/o checks:      OFF
    Building bus stats API:   OFF
    installing system libs:   OFF
    Building inotify support: 1
    Building kqueue support:
    Building systemd support: ON
    systemd system install dir:lib/systemd/system
    systemd user install dir: lib/systemd/user
    Traditional activation:   ON
    Building Doxygen docs:    OFF
    Building Qt help docs:
    Building XML docs:        OFF
    Daemon executable name:   dbus-daemon
    System bus address:       unix:path=/home/bha/pro/vcpkg/packages/dbus_x64-linux/var/run/dbus/system_bus_socket
    System bus socket:
    System bus PID file:      /home/bha/pro/vcpkg/packages/dbus_x64-linux/var/run/dbus/pid
    System bus user:          messagebus
    Session bus socket dir:   /tmp
    'make check' socket dir:
    Test listen address:

NOTE: building with assertions increases library size and decreases performance.

-- Configuring done (17.0s) CMake Error in dbus/CMakeLists.txt: Imported target "PkgConfig::SYSTEMD" includes non-existent path

"/opt/evs/sdk/host/bin/../aarch64-buildroot-linux-gnu/sysroot/home/bha/bld/evs-hwfw-sb-xts-lin/vcpkg_installed/x64-linux/lib/pkgconfig/../../include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

-- Generating done (0.0s) CMake Warning: Manually-specified variables were not used by the project:

FETCHCONTENT_FULLY_DISCONNECTED
VCPKG_PLATFORM_TOOLSET
VCPKG_SET_CHARSET_FLAG
_VCPKG_ROOT_DIR

Additional context

No response

Cheney-W commented 4 months ago

The latest version of dbus is 1.15.8#4 and I could install this port successfully in my side. Could you please update your local vcpkg and reinstall this port again?