CMake

CPackComponentsDEB-shlibdeps-with-private-lib-failure

command_line: /__w/nightly-builds/nightly-builds/build/bin/ctest "-C" "Debug" "--build-and-test" "/__w/nightly-builds/nightly-builds/Tests/CPackComponentsDEB" "/__w/nightly-builds/nightly-builds/build/Tests/CPackComponentsDEB/buildDEB-shlibdeps-with-private-lib-failure" "--build-generator" "Ninja" "--build-makeprogram" "/usr/bin/ninja" "--build-project" "CPackComponentsDEB" "--build-options" "-DCPACK_GENERATOR:STRING=DEB" "-DCPACK_BINARY_DEB:BOOL=ON" "-DCPackDEBConfiguration=shlibdeps-with-private-lib-failure" "--graphviz=CPackComponentsDEB.dot" "--test-command" "/__w/nightly-builds/nightly-builds/build/bin/cmake" "-DCPackComponentsDEB_SOURCE_DIR:PATH=/__w/nightly-builds/nightly-builds/Tests/CPackComponentsDEB" "-DCPackComponentsDEB_BINARY_DIR:PATH=/__w/nightly-builds/nightly-builds/build/Tests/CPackComponentsDEB/buildDEB-shlibdeps-with-private-lib-failure" "-DCPackGen=DEB" "-DCPackDEBConfiguration=shlibdeps-with-private-lib-failure" "-DCONFIG=Debug" "-P" "/__w/nightly-builds/nightly-builds/Tests/CPackComponentsDEB/RunCPackVerifyResult-shlibdeps-with-private-lib-failure.cmake"

working_directory: "./Tests"

Processors: 1

Execution Time: 3.16

BeforeCPULoadAverage: 5.2333984375

AfterCPULoadAverage: 5.2333984375

BeforeHostMemoryUsed: 1210480

AfterHostMemoryUsed: 1198328

Completion Status: Completed

Environment: #CTEST_RESOURCE_GROUP_COUNT=

stdout:

Internal cmake changing into directory: /__w/nightly-builds/nightly-builds/build/Tests/CPackComponentsDEB/buildDEB-shlibdeps-with-private-lib-failure
======== CMake output     ======
The C compiler identification is Clang 21.0.0
The CXX compiler identification is Clang 21.0.0
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working C compiler: /usr/bin/cc - skipped
Detecting C compile features
Detecting C compile features - done
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Check for working CXX compiler: /usr/bin/c++ - skipped
Detecting CXX compile features
Detecting CXX compile features - done
Configuring done (1.2s)
Generating done (0.0s)
Generate graphviz: /__w/nightly-builds/nightly-builds/build/Tests/CPackComponentsDEB/buildDEB-shlibdeps-with-private-lib-failure/CPackComponentsDEB.dot
Build files have been written to: /__w/nightly-builds/nightly-builds/build/Tests/CPackComponentsDEB/buildDEB-shlibdeps-with-private-lib-failure
======== End CMake output ======
Change Dir: '/__w/nightly-builds/nightly-builds/build/Tests/CPackComponentsDEB/buildDEB-shlibdeps-with-private-lib-failure'

Run Clean Command: /usr/bin/ninja clean
[1/1] Cleaning all built files...
Cleaning... 0 files.

Run Build Command(s): /usr/bin/ninja
[1/11] Building CXX object shlibdeps-with-private-lib/CMakeFiles/myprivatelib.dir/myprivatelib.cpp.o
[2/11] Building CXX object CMakeFiles/mylibapp3.dir/mylibapp.cpp.o
[3/11] Building CXX object CMakeFiles/mylibapp2.dir/mylibapp.cpp.o
[4/11] Building CXX object CMakeFiles/mylibapp.dir/mylibapp.cpp.o
[5/11] Building CXX object CMakeFiles/mylib.dir/mylib.cpp.o
[6/11] Linking CXX static library libmylib.a
[7/11] Linking CXX shared library shlibdeps-with-private-lib/libmyprivatelib.so.1.2.3
[8/11] Creating library symlink shlibdeps-with-private-lib/libmyprivatelib.so.1 shlibdeps-with-private-lib/libmyprivatelib.so
[9/11] Linking CXX executable mylibapp2
[10/11] Linking CXX executable mylibapp
[11/11] Linking CXX executable mylibapp3

Running test command: "/__w/nightly-builds/nightly-builds/build/bin/cmake" "-DCPackComponentsDEB_SOURCE_DIR:PATH=/__w/nightly-builds/nightly-builds/Tests/CPackComponentsDEB" "-DCPackComponentsDEB_BINARY_DIR:PATH=/__w/nightly-builds/nightly-builds/build/Tests/CPackComponentsDEB/buildDEB-shlibdeps-with-private-lib-failure" "-DCPackGen=DEB" "-DCPackDEBConfiguration=shlibdeps-with-private-lib-failure" "-DCONFIG=Debug" "-P" "/__w/nightly-builds/nightly-builds/Tests/CPackComponentsDEB/RunCPackVerifyResult-shlibdeps-with-private-lib-failure.cmake"
-- =============================================================================
-- CTEST_FULL_OUTPUT (Avoid ctest truncation of output)
-- 
CMAKE_CPACK_COMMAND = /__w/nightly-builds/nightly-builds/build/bin/cpack
config_args = 
config_verbose = 
-- CPack_output=CPack: Create package using DEB
CPack: Install projects
CPack: - Install project: CPackComponentsDEB [Debug]
CPack: -   Install component: applications
CPack: -   Install component: libraries
CPack: -   Install component: headers
CPack: Create package

-- CPack_error=CPackDeb: - Generating dependency list
CMake Error at /__w/nightly-builds/nightly-builds/Modules/Internal/CPack/CPackDeb.cmake:432 (message):
  CPackDeb: dpkg-shlibdeps: 'dpkg-shlibdeps: error: cannot find library
  libmyprivatelib.so.1 needed by ./usr/bin/mylibapp3 (ELF format:
  'elf64-x86-64' abi: 'ELF:64:l:amd64:0'; RPATH: '')

  dpkg-shlibdeps: warning: package could avoid a useless dependency if
  ./usr/bin/mylibapp3 ./usr/bin/mylibapp were not linked against
  libgcc_s.so.1 (they use none of the library's symbols)

  dpkg-shlibdeps: warning: package could avoid a useless dependency if
  ./usr/bin/mylibapp3 ./usr/bin/mylibapp were not linked against
  libstdc++.so.6 (they use none of the library's symbols)

  dpkg-shlibdeps: error: cannot continue due to the error above

  Note: libraries are not searched in other binary packages that do not have
  any shlibs or symbols file.

  To help dpkg-shlibdeps find private libraries, you might need to use -l.

  ';

  executed command: '/usr/bin/dpkg-shlibdeps --ignore-missing-info -O
  ./usr/bin/mylibapp;./usr/bin/mylibapp3';

  found files: './usr/bin/symtest: symbolic link to mylibapp

  ';

  files info: './usr/bin/mylibapp: ELF 64-bit LSB pie executable, x86-64,
  version 1 (SYSV), dynamically linked, interpreter
  /lib64/ld-linux-x86-64.so.2,
  BuildID[sha1]=a68c95968e5e6a62c1bffab7e88247881fe86db5, for GNU/Linux
  3.2.0, with debug_info, not stripped

  ;./usr/bin/mylibapp3: ELF 64-bit LSB pie executable, x86-64, version 1
  (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2,
  BuildID[sha1]=bc7b97d6b5a2f0a45b5ed7835f6fcb609978c811, for GNU/Linux
  3.2.0, with debug_info, not stripped

  ;./usr/bin/symtest: symbolic link to mylibapp

  ';

  binary files: './usr/bin/mylibapp;./usr/bin/mylibapp3'
Call Stack (most recent call first):
  /__w/nightly-builds/nightly-builds/Modules/Internal/CPack/CPackDeb.cmake:885 (cpack_deb_prepare_package_vars)


CPack Error: Error while execution CPackDeb.cmake
CPack Error: Error while execution CPackDeb.cmake
CPack Error: Error while execution CPackDeb.cmake
CPack Error: Problem compressing the directory
CPack Error: Error when generating package: MyLib

Status: passed
Loading...