Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] tools.graph:skip_binaries=False generates incomplete buildenv scripts #16957

Open
dkoerner-festo opened this issue Sep 9, 2024 · 6 comments
Assignees
Milestone

Comments

@dkoerner-festo
Copy link

Describe the bug

OS: Linux
Conan: 2.7.0

We have a package with a test_require of gtest. When running conan install . -pr:h=profiles/Linux_Debug --build=missing everything works fine and the gtest libs are build.

When running conan install . -pr:h=profiles/Linux_Debug --build=missing -c tools.graph:skip_binaries=False the gtest libs cannot be built:

-------- Installing package gtest/1.14.0@festo (9 of 10) --------
gtest/1.14.0@user: Building from source
gtest/1.14.0@user: Package gtest/1.14.0@festo:b994553d10a57a7e46cb74ab6746a4026a031b15
gtest/1.14.0@user: Copying sources to build folder
gtest/1.14.0@user: Building your package in /root/.conan2/p/b/gteste8ad4c1167ce4/b
gtest/1.14.0@user: Calling generate()
gtest/1.14.0@user: Generators folder: /root/.conan2/p/b/gteste8ad4c1167ce4/b/build/Debug/generators
gtest/1.14.0@user: CMakeToolchain generated: conan_toolchain.cmake
gtest/1.14.0@user: CMakeToolchain generated: /root/.conan2/p/b/gteste8ad4c1167ce4/b/build/Debug/generators/CMakePresets.json
gtest/1.14.0@user: CMakeToolchain generated: /root/.conan2/p/b/gteste8ad4c1167ce4/b/src/CMakeUserPresets.json
gtest/1.14.0@user: Generating aggregated env files
gtest/1.14.0@user: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
gtest/1.14.0@user: Calling build()
gtest/1.14.0@user: Running CMake.configure()
gtest/1.14.0@user: RUN: cmake -G "Ninja" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/root/.conan2/p/b/gteste8ad4c1167ce4/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Debug" "/root/.conan2/p/b/gteste8ad4c1167ce4/b/src"
/bin/sh: 1: cmake: not found

gtest/1.14.0@user: ERROR: 
Package 'b994553d10a57a7e46cb74ab6746a4026a031b15' build failed
gtest/1.14.0@user: WARN: Build folder /root/.conan2/p/b/gteste8ad4c1167ce4/b/build/Debug
ERROR: gtest/1.14.0@user: Error in build() method, line 139
        cmake.configure()
        ConanException: Error 127 while executing

The problem seems to be caused by an incomplete buildenv script.

conanbuildenv-debug-x86_64.sh without skip_binaries=False:

script_folder="/root/.conan2/p/b/gtestb79ec724c3a3a/b/build/Debug/generators"
echo "echo Restoring environment" > "$script_folder/deactivate_conanbuildenv-debug-x86_64.sh"
for v in PATH LD_LIBRARY_PATH DYLD_LIBRARY_PATH
do
    is_defined="true"
    value=$(printenv $v) || is_defined="" || true
    if [ -n "$value" ] || [ -n "$is_defined" ]
    then
        echo export "$v='$value'" >> "$script_folder/deactivate_conanbuildenv-debug-x86_64.sh"
    else
        echo unset $v >> "$script_folder/deactivate_conanbuildenv-debug-x86_64.sh"
    fi
done


export PATH="/root/.conan2/p/bulls1fd4f71062975/p/bin:/root/.conan2/p/cppte6f25abdbc920b/p/cpptest:/root/.conan2/p/cmakea3966d2199e09/p/bin:/root/.conan2/p/graph068d2690700ae/p/bin:/root/.conan2/p/doxygdd5c4891ae1d3/p/./:/root/.conan2/p/ninja315e492167f38/p/bin:/root/.conan2/p/llvm88d0613a8b612/p/bin:$PATH"
export LD_LIBRARY_PATH="/root/.conan2/p/bulls1fd4f71062975/p/lib:/root/.conan2/p/llvm88d0613a8b612/p/lib:$LD_LIBRARY_PATH"
export DYLD_LIBRARY_PATH="/root/.conan2/p/bulls1fd4f71062975/p/lib:/root/.conan2/p/llvm88d0613a8b612/p/lib:$DYLD_LIBRARY_PATH"

conanbuildenv-debug-x86_64.sh with skip_binaries=False:

script_folder="/root/.conan2/p/b/gtestc422d8e57504f/b/build/Debug/generators"
echo "echo Restoring environment" > "$script_folder/deactivate_conanbuildenv-debug-x86_64.sh"
for v in 
do
    is_defined="true"
    value=$(printenv $v) || is_defined="" || true
    if [ -n "$value" ] || [ -n "$is_defined" ]
    then
        echo export "$v='$value'" >> "$script_folder/deactivate_conanbuildenv-debug-x86_64.sh"
    else
        echo unset $v >> "$script_folder/deactivate_conanbuildenv-debug-x86_64.sh"
    fi
done

Note: We need the "skip_binaries=False" for a deployer to collect the licenses of all packages.

How to reproduce it

No response

@memsharded memsharded self-assigned this Sep 9, 2024
@memsharded memsharded added this to the 2.8.0 milestone Sep 9, 2024
@memsharded
Copy link
Member

Thanks for your report @dkoerner-festo

There is something that indeed is not looking great. I see that you are using a custom gtest/version@user package, and it seems that cmake is being injected as a tool_requires somewhere. Can you please add the following information to help reproducing:

  • The gtest conanfile.py, if it is different from the one in ConanCenter (or is it only the @user that changes?)
  • The profile you are applying
  • A simple consumer conanfile.py that does the test_requires, to make sure
  • The full output of the working and failing conan install commands.

Thanks!

@dkoerner-festo
Copy link
Author

I have tried to setup something to reproduce this problem:

lib:
conanfile.py:

from conan import ConanFile
from conan.tools.cmake import CMakeToolchain, CMake, cmake_layout, CMakeDeps


class lib1Recipe(ConanFile):
    name = "lib"
    version = "1.0.0"
    user = "company"
    package_type = "static-library"
    settings = "os", "compiler", "build_type", "arch"
    options = None
    generators = "CMakeDeps"

    def build_requirements(self):
        if self.settings.os in ["Windows", "Linux"]:
            self.test_requires("gtest/1.14.0")

app:
conanfile.py:

from conan import ConanFile
from conan.tools.cmake import CMakeToolchain, CMake, cmake_layout, CMakeDeps


class app1Recipe(ConanFile):
    name = "app"
    version = "1.0.0"
    user = "company"
    package_type = "static-library"
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps"

    def requirements(self):
        self.requires("lib/1.0.0@company")

profile:

[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=12
os=Linux

[tool_requires]
cmake/[>3.20]@festo
  1. Export the lib: conan export .
  2. Install for the app: conan install . -pr profile --build missing -c tools.graph:skip_binaries=False
    -> this works
  3. Remove the gtest package from the cache: conan remove gtest -c
  4. Install again: conan install . -pr profile --build missing -c tools.graph:skip_binaries=False
    -> this fails with "cmake: not found"

Output from the successful install:


======== Input profiles ========
Profile host:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=12
os=Linux
[tool_requires]
*: cmake/[>3.20]@festo
[conf]
tools.build:skip_test=False
tools.graph:skip_binaries=False
user.festo.build:run_cpptest=False

Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=12
os=Linux
[conf]
tools.build:skip_test=False
user.festo.build:run_cpptest=False


======== Computing dependency graph ========
gtest/1.14.0: Not found in local cache, looking in remotes...
gtest/1.14.0: Checking remote: conan-prod
gtest/1.14.0: Downloaded recipe revision 25e2a474b4d1aecf5ff4f0555dcdf72c
Graph root
    conanfile.py (app/1.0.0@company): /home/dkrn/xx_test_projects/conan-app/conanfile.py
Requirements
    lib/1.0.0@company#f9fd1b2caf5274d16de6d2d554041094 - Cache
Test requirements
    gtest/1.14.0#25e2a474b4d1aecf5ff4f0555dcdf72c - Downloaded (conan-prod)
Build requirements
    cmake/3.28.1@festo#a63744890c6a0362057945cf258e2643 - Cache
Resolved version ranges
    cmake/[>3.20]@festo: cmake/3.28.1@festo

======== Computing necessary packages ========
lib/1.0.0@company: Compatible package ID f25c077f6d57a1b97b973e5b5d940be33a5cdc41 equal to the default package ID: Skipping it.
lib/1.0.0@company: Checking 11 compatible configurations
lib/1.0.0@company: Compatible configurations not found in cache, checking servers
lib/1.0.0@company: '3b5fed276e0fead15560951f65061c1acf4f6a55': compiler.cppstd=98
lib/1.0.0@company: '49310d64cd180b80fa5a10c18d1f417e5789bf1f': compiler.cppstd=gnu98
lib/1.0.0@company: '3c9c1cf07116d65f9ee64464eeb9442392c4b302': compiler.cppstd=11
lib/1.0.0@company: '651a2eb22827acf5f7453b1c3de4dbcb9576742c': compiler.cppstd=gnu11
lib/1.0.0@company: '28c0c729f95b9d67c3b045ba1790c0919f3fe62a': compiler.cppstd=14
lib/1.0.0@company: 'd433170f40de2f0853458f4f51a1464d7259468a': compiler.cppstd=gnu14
lib/1.0.0@company: '46a24abfc14780e699fe99991ad27fe920bfe2af': compiler.cppstd=17
lib/1.0.0@company: 'a2050644a7748e0f1b3d4c682f0f558c632c74b9': compiler.cppstd=20
lib/1.0.0@company: '7d9166fa539620ed91716da5061bc85180b619e6': compiler.cppstd=gnu20
lib/1.0.0@company: '9ef83e8da5b2738660ae05a88730ea50e2410e6d': compiler.cppstd=23
lib/1.0.0@company: 'b58d4f75c882ef98e83f14a60ad7935fa4867c6b': compiler.cppstd=gnu23
Requirements
    lib/1.0.0@company#f9fd1b2caf5274d16de6d2d554041094:f25c077f6d57a1b97b973e5b5d940be33a5cdc41 - Build
Test requirements
    gtest/1.14.0#25e2a474b4d1aecf5ff4f0555dcdf72c:6abc5cf15a93a0fe69ba9f89fd240c425083b2a7 - Build
Build requirements
    cmake/3.28.1@festo#a63744890c6a0362057945cf258e2643:9a4eb3c8701508aa9458b1a73d0633783ecc2270#c20e9aaa1e21858fb9177164e8723464 - Cache

======== Installing packages ========
cmake/3.28.1@festo: Already installed! (1 of 3)
gtest/1.14.0: Sources downloaded from 'conan-prod'
gtest/1.14.0: Calling source() in /home/dkrn/.conan2/p/gtest4ca9d6e5f6c08/s/src

-------- Installing package gtest/1.14.0 (2 of 3) --------
gtest/1.14.0: Building from source
gtest/1.14.0: Package gtest/1.14.0:6abc5cf15a93a0fe69ba9f89fd240c425083b2a7
gtest/1.14.0: Copying sources to build folder
gtest/1.14.0: Building your package in /home/dkrn/.conan2/p/b/gtestb8175706892af/b
gtest/1.14.0: Calling generate()
gtest/1.14.0: Generators folder: /home/dkrn/.conan2/p/b/gtestb8175706892af/b/build/Release/generators
gtest/1.14.0: CMakeToolchain generated: conan_toolchain.cmake
gtest/1.14.0: CMakeToolchain generated: /home/dkrn/.conan2/p/b/gtestb8175706892af/b/build/Release/generators/CMakePresets.json
gtest/1.14.0: CMakeToolchain generated: /home/dkrn/.conan2/p/b/gtestb8175706892af/b/src/CMakeUserPresets.json
gtest/1.14.0: Generating aggregated env files
gtest/1.14.0: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
gtest/1.14.0: Calling build()
gtest/1.14.0: apply_conandata_patches(): No patches defined in conandata
gtest/1.14.0: Running CMake.configure()
gtest/1.14.0: RUN: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/home/dkrn/.conan2/p/b/gtestb8175706892af/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/home/dkrn/.conan2/p/b/gtestb8175706892af/b/src"
-- Using Conan toolchain: /home/dkrn/.conan2/p/b/gtestb8175706892af/b/build/Release/generators/conan_toolchain.cmake
-- Conan toolchain: Setting CMAKE_POSITION_INDEPENDENT_CODE=ON (options.fPIC)
-- Conan toolchain: C++ Standard 17 with extensions ON
-- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.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
-- Found Python3: /home/dkrn/.venv/bin/python3.11 (found version "3.11.2") found components: Interpreter 
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Configuring done (5.7s)
-- Generating done (0.0s)
-- Build files have been written to: /home/dkrn/.conan2/p/b/gtestb8175706892af/b/build/Release

gtest/1.14.0: Running CMake.build()
gtest/1.14.0: RUN: cmake --build "/home/dkrn/.conan2/p/b/gtestb8175706892af/b/build/Release" -- -j16
[ 12%] Building CXX object googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
[ 25%] Linking CXX static library ../lib/libgtest.a
[ 25%] Built target gtest
[ 37%] Building CXX object googlemock/CMakeFiles/gmock.dir/src/gmock-all.cc.o
[ 50%] Building CXX object googletest/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
[ 62%] Linking CXX static library ../lib/libgtest_main.a
[ 62%] Built target gtest_main
[ 75%] Linking CXX static library ../lib/libgmock.a
[ 75%] Built target gmock
[ 87%] Building CXX object googlemock/CMakeFiles/gmock_main.dir/src/gmock_main.cc.o
[100%] Linking CXX static library ../lib/libgmock_main.a
[100%] Built target gmock_main

gtest/1.14.0: Package '6abc5cf15a93a0fe69ba9f89fd240c425083b2a7' built
gtest/1.14.0: Build folder /home/dkrn/.conan2/p/b/gtestb8175706892af/b/build/Release
gtest/1.14.0: Generating the package
gtest/1.14.0: Packaging in folder /home/dkrn/.conan2/p/b/gtestb8175706892af/p
gtest/1.14.0: Calling package()
gtest/1.14.0: Running CMake.install()
gtest/1.14.0: RUN: cmake --install "/home/dkrn/.conan2/p/b/gtestb8175706892af/b/build/Release" --prefix "/home/dkrn/.conan2/p/b/gtestb8175706892af/p"
-- Install configuration: "Release"
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gmock
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gmock/gmock-matchers.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gmock/internal
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gmock/internal/custom
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gmock/internal/custom/gmock-matchers.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gmock/internal/custom/gmock-generated-actions.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gmock/internal/custom/gmock-port.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gmock/internal/custom/README.md
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gmock/internal/gmock-pp.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gmock/internal/gmock-port.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gmock/internal/gmock-internal-utils.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gmock/gmock-cardinalities.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gmock/gmock-actions.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gmock/gmock-spec-builders.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gmock/gmock-function-mocker.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gmock/gmock.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gmock/gmock-nice-strict.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gmock/gmock-more-matchers.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gmock/gmock-more-actions.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/lib/libgmock.a
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/lib/libgmock_main.a
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/lib/pkgconfig/gmock.pc
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/lib/pkgconfig/gmock_main.pc
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/lib/cmake/GTest/GTestTargets.cmake
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/lib/cmake/GTest/GTestTargets-release.cmake
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/lib/cmake/GTest/GTestConfigVersion.cmake
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/lib/cmake/GTest/GTestConfig.cmake
-- Up-to-date: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gtest
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gtest/gtest-message.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gtest/internal
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gtest/internal/custom
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gtest/internal/custom/gtest-printers.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gtest/internal/custom/README.md
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gtest/internal/custom/gtest-port.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gtest/internal/custom/gtest.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gtest/internal/gtest-type-util.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gtest/internal/gtest-string.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gtest/internal/gtest-filepath.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gtest/internal/gtest-param-util.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gtest/internal/gtest-internal.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gtest/internal/gtest-port.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gtest/internal/gtest-port-arch.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gtest/internal/gtest-death-test-internal.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gtest/gtest-death-test.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gtest/gtest-typed-test.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gtest/gtest-param-test.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gtest/gtest-printers.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gtest/gtest-assertion-result.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gtest/gtest_prod.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gtest/gtest-matchers.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gtest/gtest-spi.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gtest/gtest-test-part.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gtest/gtest_pred_impl.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/include/gtest/gtest.h
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/lib/libgtest.a
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/lib/libgtest_main.a
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/lib/pkgconfig/gtest.pc
-- Installing: /home/dkrn/.conan2/p/b/gtestb8175706892af/p/lib/pkgconfig/gtest_main.pc

gtest/1.14.0: package(): Packaged 38 '.h' files
gtest/1.14.0: package(): Packaged 2 '.md' files: README.md, README.md
gtest/1.14.0: package(): Packaged 1 file: LICENSE
gtest/1.14.0: package(): Packaged 4 '.a' files: libgmock_main.a, libgtest_main.a, libgmock.a, libgtest.a
gtest/1.14.0: Created package revision e9450dbc88ea690cc8179642a3bea38e
gtest/1.14.0: Package '6abc5cf15a93a0fe69ba9f89fd240c425083b2a7' created
gtest/1.14.0: Full package reference: gtest/1.14.0#25e2a474b4d1aecf5ff4f0555dcdf72c:6abc5cf15a93a0fe69ba9f89fd240c425083b2a7#e9450dbc88ea690cc8179642a3bea38e
gtest/1.14.0: Package folder /home/dkrn/.conan2/p/b/gtestb8175706892af/p

-------- Installing package lib/1.0.0@company (3 of 3) --------
lib/1.0.0@company: Building from source
lib/1.0.0@company: Package lib/1.0.0@company:f25c077f6d57a1b97b973e5b5d940be33a5cdc41
lib/1.0.0@company: Copying sources to build folder
lib/1.0.0@company: Building your package in /home/dkrn/.conan2/p/b/lib26f4e83231c51/b
lib/1.0.0@company: Writing generators to /home/dkrn/.conan2/p/b/lib26f4e83231c51/b
lib/1.0.0@company: Generator 'CMakeDeps' calling 'generate()'
lib/1.0.0@company: Generating aggregated env files
lib/1.0.0@company: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
lib/1.0.0@company: Package 'f25c077f6d57a1b97b973e5b5d940be33a5cdc41' built
lib/1.0.0@company: Build folder /home/dkrn/.conan2/p/b/lib26f4e83231c51/b
lib/1.0.0@company: Generating the package
lib/1.0.0@company: Packaging in folder /home/dkrn/.conan2/p/b/lib26f4e83231c51/p
lib/1.0.0@company: package(): WARN: No files in this package!
lib/1.0.0@company: Created package revision d70d39ed2af989acf0378f4c8327734d
lib/1.0.0@company: Package 'f25c077f6d57a1b97b973e5b5d940be33a5cdc41' created
lib/1.0.0@company: Full package reference: lib/1.0.0@company#f9fd1b2caf5274d16de6d2d554041094:f25c077f6d57a1b97b973e5b5d940be33a5cdc41#d70d39ed2af989acf0378f4c8327734d
lib/1.0.0@company: Package folder /home/dkrn/.conan2/p/b/lib26f4e83231c51/p
WARN: deprecated: Usage of deprecated Conan 1.X features that will be removed in Conan 2.X:
WARN: deprecated:     'cpp_info.names' used in: gtest/1.14.0

======== Finalizing install (deploy, generators) ========
conanfile.py (app/1.0.0@company): Writing generators to /home/dkrn/xx_test_projects/conan-app
conanfile.py (app/1.0.0@company): Generator 'CMakeDeps' calling 'generate()'
conanfile.py (app/1.0.0@company): CMakeDeps necessary find_package() and targets for your CMakeLists.txt
    find_package(lib)
    target_link_libraries(... lib::lib)
conanfile.py (app/1.0.0@company): Generating aggregated env files
conanfile.py (app/1.0.0@company): Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
Install finished successfully

output from the failed install:


======== Input profiles ========
Profile host:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=12
os=Linux
[tool_requires]
*: cmake/[>3.20]@festo
[conf]
tools.build:skip_test=False
tools.graph:skip_binaries=False
user.festo.build:run_cpptest=False

Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=12
os=Linux
[conf]
tools.build:skip_test=False
user.festo.build:run_cpptest=False


======== Computing dependency graph ========
gtest/1.14.0: Not found in local cache, looking in remotes...
gtest/1.14.0: Checking remote: conan-prod
gtest/1.14.0: Downloaded recipe revision 25e2a474b4d1aecf5ff4f0555dcdf72c
Graph root
    conanfile.py (app/1.0.0@company): /home/dkrn/xx_test_projects/conan-app/conanfile.py
Requirements
    lib/1.0.0@company#f9fd1b2caf5274d16de6d2d554041094 - Cache
Test requirements
    gtest/1.14.0#25e2a474b4d1aecf5ff4f0555dcdf72c - Downloaded (conan-prod)
Build requirements
    cmake/3.28.1@festo#a63744890c6a0362057945cf258e2643 - Cache
Resolved version ranges
    cmake/[>3.20]@festo: cmake/3.28.1@festo

======== Computing necessary packages ========
Requirements
    lib/1.0.0@company#f9fd1b2caf5274d16de6d2d554041094:f25c077f6d57a1b97b973e5b5d940be33a5cdc41#d70d39ed2af989acf0378f4c8327734d - Cache
Test requirements
    gtest/1.14.0#25e2a474b4d1aecf5ff4f0555dcdf72c:6abc5cf15a93a0fe69ba9f89fd240c425083b2a7 - Build
Build requirements
    cmake/3.28.1@festo#a63744890c6a0362057945cf258e2643:9a4eb3c8701508aa9458b1a73d0633783ecc2270#c20e9aaa1e21858fb9177164e8723464 - Cache

======== Installing packages ========
cmake/3.28.1@festo: Already installed! (1 of 3)
gtest/1.14.0: Sources downloaded from 'conan-prod'
gtest/1.14.0: Calling source() in /home/dkrn/.conan2/p/gtest4ca9d6e5f6c08/s/src

-------- Installing package gtest/1.14.0 (2 of 3) --------
gtest/1.14.0: Building from source
gtest/1.14.0: Package gtest/1.14.0:6abc5cf15a93a0fe69ba9f89fd240c425083b2a7
gtest/1.14.0: Copying sources to build folder
gtest/1.14.0: Building your package in /home/dkrn/.conan2/p/b/gtest45c10ef9955b9/b
gtest/1.14.0: Calling generate()
gtest/1.14.0: Generators folder: /home/dkrn/.conan2/p/b/gtest45c10ef9955b9/b/build/Release/generators
gtest/1.14.0: CMakeToolchain generated: conan_toolchain.cmake
gtest/1.14.0: CMakeToolchain generated: /home/dkrn/.conan2/p/b/gtest45c10ef9955b9/b/build/Release/generators/CMakePresets.json
gtest/1.14.0: CMakeToolchain generated: /home/dkrn/.conan2/p/b/gtest45c10ef9955b9/b/src/CMakeUserPresets.json
gtest/1.14.0: Generating aggregated env files
gtest/1.14.0: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
gtest/1.14.0: Calling build()
gtest/1.14.0: apply_conandata_patches(): No patches defined in conandata
gtest/1.14.0: Running CMake.configure()
gtest/1.14.0: RUN: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/home/dkrn/.conan2/p/b/gtest45c10ef9955b9/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/home/dkrn/.conan2/p/b/gtest45c10ef9955b9/b/src"
/bin/sh: 1: cmake: not found

gtest/1.14.0: ERROR: 
Package '6abc5cf15a93a0fe69ba9f89fd240c425083b2a7' build failed
gtest/1.14.0: WARN: Build folder /home/dkrn/.conan2/p/b/gtest45c10ef9955b9/b/build/Release
ERROR: gtest/1.14.0: Error in build() method, line 139
        cmake.configure()
        ConanException: Error 127 while executing

The cmake package is an internal package. It contains the officially built CMake binaries.

@perseoGI
Copy link
Contributor

Hi @dkoerner-festo, thank you for your detailed report.
I've tried to reproduce this behavior several times in different OS and environments without succeed.

Here are my complete logs in an Ubuntu 22.04:

root@193fe930ae53:/cci# conan export lib

======== Exporting recipe to the cache ========
lib/1.0.0@company: Exporting package recipe: /cci/lib/conanfile.py
lib/1.0.0@company: Copied 1 '.py' file: conanfile.py
lib/1.0.0@company: Exported to cache folder: /root/.conan2/p/lib6ed490f0789c8/e
lib/1.0.0@company: Exported: lib/1.0.0@company#5c9e3520d8eb1ac2e48b56a1a7df2093 (2024-09-11 08:01:00 UTC)
root@193fe930ae53:/cci# cd app
root@193fe930ae53:/cci/app# conan install . -pr ../profile-linux --build missing -c tools.graph:skip_binaries=False --output-folder=build

======== Input profiles ========
Profile host:
[settings]
arch=armv8
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=13
os=Linux
[tool_requires]
*: cmake/[>3.20]
[conf]
tools.build:skip_test=False
tools.graph:skip_binaries=False
user.root.build:run_cpptest=False

Profile build:
[settings]
arch=armv8
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=13
os=Linux
[conf]
tools.build:skip_test=False
user.root.build:run_cpptest=False


======== Computing dependency graph ========
gtest/1.14.0: Not found in local cache, looking in remotes...
gtest/1.14.0: Checking remote: conancenter
gtest/1.14.0: Downloaded recipe revision 25e2a474b4d1aecf5ff4f0555dcdf72c
cmake/3.30.1: Not found in local cache, looking in remotes...
cmake/3.30.1: Checking remote: conancenter
cmake/3.30.1: Downloaded recipe revision 6d832cf2d46f6ec969ca5ed5b41f91eb
Graph root
    conanfile.py (app/1.0.0@company): /cci/app/conanfile.py
Requirements
    lib/1.0.0@company#5c9e3520d8eb1ac2e48b56a1a7df2093 - Cache
Test requirements
    gtest/1.14.0#25e2a474b4d1aecf5ff4f0555dcdf72c - Downloaded (conancenter)
Build requirements
    cmake/3.30.1#6d832cf2d46f6ec969ca5ed5b41f91eb - Downloaded (conancenter)
Resolved version ranges
    cmake/[>3.20]: cmake/3.30.1

======== Computing necessary packages ========
lib/1.0.0@company: Compatible package ID 7e86c4b3602206723f284fdfdde6a34cf597348b equal to the default package ID: Skipping it.
lib/1.0.0@company: Checking 11 compatible configurations
lib/1.0.0@company: Compatible configurations not found in cache, checking servers
lib/1.0.0@company: '8aaaffb6879050f7935d3eb75886df5c364ef04d': compiler.cppstd=98
lib/1.0.0@company: '98c5b5e12c29fd04618c3271f52eb5cc86525ac0': compiler.cppstd=gnu98
lib/1.0.0@company: '2f963acd1db98563cdd4cb8c668c074ccb2f6a0e': compiler.cppstd=11
lib/1.0.0@company: '095cbcae727f77a229cd27f333336466c57fb945': compiler.cppstd=gnu11
lib/1.0.0@company: 'c3c1c9c37a8b7a1bf5fe9560f790b4db9fbef4e7': compiler.cppstd=14
lib/1.0.0@company: 'ad16df6c61867c7bce3d99cac8156bbc0f4c35fa': compiler.cppstd=gnu14
lib/1.0.0@company: 'fbfc70eb56ad38e231d8c02e8588785062b4605c': compiler.cppstd=17
lib/1.0.0@company: '40e4da6a63e5ecc66fe5cb1eefd3e01a64401d4e': compiler.cppstd=20
lib/1.0.0@company: '9f9ec3b60ea1e556cd8b4c1526d1f0a232742c36': compiler.cppstd=gnu20
lib/1.0.0@company: 'c06a3ccc19b7b3dbbcf4c95b073c5adf7b0b066b': compiler.cppstd=23
lib/1.0.0@company: 'dc4a3934e08b94e0d9da65b7303adf4b1921e2ce': compiler.cppstd=gnu23
Requirements
    lib/1.0.0@company#5c9e3520d8eb1ac2e48b56a1a7df2093:7e86c4b3602206723f284fdfdde6a34cf597348b - Build
Test requirements
    gtest/1.14.0#25e2a474b4d1aecf5ff4f0555dcdf72c:661e28c1ca74480dd0c8cdfc49f726eb5e92cb1f - Build
Build requirements
    cmake/3.30.1#6d832cf2d46f6ec969ca5ed5b41f91eb:c93719558cf197f1df5a7f1d071093e26f0e44a0 - Build

======== Installing packages ========

-------- Installing package cmake/3.30.1 (1 of 3) --------
cmake/3.30.1: Building from source
cmake/3.30.1: Package cmake/3.30.1:c93719558cf197f1df5a7f1d071093e26f0e44a0
cmake/3.30.1: Copying sources to build folder
cmake/3.30.1: Building your package in /root/.conan2/p/b/cmake21b1a2c270ba9/b
cmake/3.30.1: Generating aggregated env files
cmake/3.30.1: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
cmake/3.30.1: Calling build()
cmake/3.30.1: Downloading 54.9MB cmake-3.30.1-linux-aarch64.tar.gz
cmake/3.30.1: Unzipping cmake-3.30.1-linux-aarch64.tar.gz to /root/.conan2/p/b/cmake21b1a2c270ba9/b
cmake/3.30.1: Package 'c93719558cf197f1df5a7f1d071093e26f0e44a0' built
cmake/3.30.1: Build folder /root/.conan2/p/b/cmake21b1a2c270ba9/b
cmake/3.30.1: Generating the package
cmake/3.30.1: Packaging in folder /root/.conan2/p/b/cmake21b1a2c270ba9/p
cmake/3.30.1: Calling package()
cmake/3.30.1: package(): Packaged 8 '.sh' files
cmake/3.30.1: package(): Packaged 10 files
cmake/3.30.1: package(): Packaged 73 '.txt' files
cmake/3.30.1: package(): Packaged 1 '.desktop' file: cmake-gui.desktop
cmake/3.30.1: package(): Packaged 1 '.m4' file: cmake.m4
cmake/3.30.1: package(): Packaged 4 '.h' files: cmCPluginAPI.h, CMakeCompilerABI.h, CMakeCompilerCUDAArch.h, CXX-DetectStdlib.h
cmake/3.30.1: package(): Packaged 1 '.hip' file: CMakeHIPCompilerABI.hip
cmake/3.30.1: package(): Packaged 1076 '.cmake' files
cmake/3.30.1: package(): Packaged 105 '.in' files
cmake/3.30.1: package(): Packaged 2 '.bat' files: Squish4RunTestCase.bat, SquishRunTestCase.bat
cmake/3.30.1: package(): Packaged 15 '.c' files
cmake/3.30.1: package(): Packaged 6 '.cxx' files
cmake/3.30.1: package(): Packaged 3 '.cpp' files: CMakeCXXCompilerABI.cpp, main.cpp, foo.cpp
cmake/3.30.1: package(): Packaged 1 '.ispc' file: CMakeISPCCompilerABI.ispc
cmake/3.30.1: package(): Packaged 1 '.m' file: CMakeOBJCCompilerABI.m
cmake/3.30.1: package(): Packaged 1 '.F90' file: CMakeFortranCompilerABI.F90
cmake/3.30.1: package(): Packaged 1 '.cu' file: CMakeCUDACompilerABI.cu
cmake/3.30.1: package(): Packaged 1 '.mm' file: CMakeOBJCXXCompilerABI.mm
cmake/3.30.1: package(): Packaged 2 '.F' files: CMakeFortranCompilerABI.F, main.F
cmake/3.30.1: package(): Packaged 7 '.f' files
cmake/3.30.1: package(): Packaged 3 '.f90' files: mymodule.f90, my_module.f90, call_mod.f90
cmake/3.30.1: package(): Packaged 1 '.pas' file: ISComponents.pas
cmake/3.30.1: package(): Packaged 2041 '.rst' files
cmake/3.30.1: package(): Packaged 1 '.make' file: CTEST_EXAMPLE_MAKEFILE_JOB_SERVER.make
cmake/3.30.1: package(): Packaged 39 '.json' files
cmake/3.30.1: package(): Packaged 2 '.vsmacros' files: CMakeVSMacros2.vsmacros, CMakeVSMacros1.vsmacros
cmake/3.30.1: package(): Packaged 1 '.plist' file: AppleInfo.plist
cmake/3.30.1: package(): Packaged 2 '.targets' files: nasm.targets, CustomBuildDepFile.targets
cmake/3.30.1: package(): Packaged 2 '.xml' files: nasm.xml, cmakecache.xml
cmake/3.30.1: package(): Packaged 8 '.png' files
cmake/3.30.1: package(): Packaged 1 '.pfx' file: Windows_TemporaryKey.pfx
cmake/3.30.1: package(): Packaged 1 '.el' file: cmake-mode.el
cmake/3.30.1: package(): Packaged 2 '.vim' files: cmake.vim, cmake.vim
cmake/3.30.1: Created package revision 3db06a1d7f44261ee68d30d8574a8bd3
cmake/3.30.1: Package 'c93719558cf197f1df5a7f1d071093e26f0e44a0' created
cmake/3.30.1: Full package reference: cmake/3.30.1#6d832cf2d46f6ec969ca5ed5b41f91eb:c93719558cf197f1df5a7f1d071093e26f0e44a0#3db06a1d7f44261ee68d30d8574a8bd3
cmake/3.30.1: Package folder /root/.conan2/p/b/cmake21b1a2c270ba9/p
cmake/3.30.1: Appending PATH environment variable: /root/.conan2/p/b/cmake21b1a2c270ba9/p/bin
cmake/3.30.1: Appending PATH environment variable: /root/.conan2/p/b/cmake21b1a2c270ba9/p/bin
cmake/3.30.1: Appending PATH environment variable: /root/.conan2/p/b/cmake21b1a2c270ba9/p/bin
gtest/1.14.0: Sources downloaded from 'conancenter'
gtest/1.14.0: Calling source() in /root/.conan2/p/gtest4ca9d6e5f6c08/s/src
gtest/1.14.0: Unzipping v1.14.0.tar.gz to .

-------- Installing package gtest/1.14.0 (2 of 3) --------
gtest/1.14.0: Building from source
gtest/1.14.0: Package gtest/1.14.0:661e28c1ca74480dd0c8cdfc49f726eb5e92cb1f
gtest/1.14.0: Copying sources to build folder
gtest/1.14.0: Building your package in /root/.conan2/p/b/gtestf3be260c6f4cd/b
gtest/1.14.0: Calling generate()
gtest/1.14.0: Generators folder: /root/.conan2/p/b/gtestf3be260c6f4cd/b/build/Release/generators
gtest/1.14.0: CMakeToolchain generated: conan_toolchain.cmake
gtest/1.14.0: CMakeToolchain generated: /root/.conan2/p/b/gtestf3be260c6f4cd/b/build/Release/generators/CMakePresets.json
gtest/1.14.0: CMakeToolchain generated: /root/.conan2/p/b/gtestf3be260c6f4cd/b/src/CMakeUserPresets.json
gtest/1.14.0: Generating aggregated env files
gtest/1.14.0: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
gtest/1.14.0: Calling build()
gtest/1.14.0: apply_conandata_patches(): No patches defined in conandata
gtest/1.14.0: Running CMake.configure()
gtest/1.14.0: RUN: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/root/.conan2/p/b/gtestf3be260c6f4cd/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/root/.conan2/p/b/gtestf3be260c6f4cd/b/src"
-- Using Conan toolchain: /root/.conan2/p/b/gtestf3be260c6f4cd/b/build/Release/generators/conan_toolchain.cmake
-- Conan toolchain: Setting CMAKE_POSITION_INDEPENDENT_CODE=ON (options.fPIC)
-- Conan toolchain: C++ Standard 17 with extensions ON
-- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.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
-- Found Python3: /usr/bin/python3.12 (found version "3.12.3") found components: Interpreter
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Configuring done (0.2s)
-- Generating done (0.0s)
-- Build files have been written to: /root/.conan2/p/b/gtestf3be260c6f4cd/b/build/Release

gtest/1.14.0: Running CMake.build()
gtest/1.14.0: RUN: cmake --build "/root/.conan2/p/b/gtestf3be260c6f4cd/b/build/Release" -- -j6
[ 12%] Building CXX object googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
[ 25%] Linking CXX static library ../lib/libgtest.a
[ 25%] Built target gtest
[ 37%] Building CXX object googlemock/CMakeFiles/gmock.dir/src/gmock-all.cc.o
[ 50%] Building CXX object googletest/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
[ 62%] Linking CXX static library ../lib/libgtest_main.a
[ 62%] Built target gtest_main
[ 75%] Linking CXX static library ../lib/libgmock.a
[ 75%] Built target gmock
[ 87%] Building CXX object googlemock/CMakeFiles/gmock_main.dir/src/gmock_main.cc.o
[100%] Linking CXX static library ../lib/libgmock_main.a
[100%] Built target gmock_main

gtest/1.14.0: Package '661e28c1ca74480dd0c8cdfc49f726eb5e92cb1f' built
gtest/1.14.0: Build folder /root/.conan2/p/b/gtestf3be260c6f4cd/b/build/Release
gtest/1.14.0: Generating the package
gtest/1.14.0: Packaging in folder /root/.conan2/p/b/gtestf3be260c6f4cd/p
gtest/1.14.0: Calling package()
gtest/1.14.0: Running CMake.install()
gtest/1.14.0: RUN: cmake --install "/root/.conan2/p/b/gtestf3be260c6f4cd/b/build/Release" --prefix "/root/.conan2/p/b/gtestf3be260c6f4cd/p"
-- Install configuration: "Release"
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gmock
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gmock/gmock-nice-strict.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gmock/gmock-cardinalities.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gmock/gmock-more-matchers.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gmock/internal
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gmock/internal/gmock-internal-utils.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gmock/internal/gmock-port.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gmock/internal/gmock-pp.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gmock/internal/custom
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gmock/internal/custom/gmock-port.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gmock/internal/custom/gmock-matchers.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gmock/internal/custom/README.md
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gmock/internal/custom/gmock-generated-actions.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gmock/gmock-matchers.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gmock/gmock.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gmock/gmock-function-mocker.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gmock/gmock-actions.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gmock/gmock-spec-builders.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gmock/gmock-more-actions.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/lib/libgmock.a
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/lib/libgmock_main.a
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/lib/pkgconfig/gmock.pc
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/lib/pkgconfig/gmock_main.pc
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/lib/cmake/GTest/GTestTargets.cmake
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/lib/cmake/GTest/GTestTargets-release.cmake
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/lib/cmake/GTest/GTestConfigVersion.cmake
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/lib/cmake/GTest/GTestConfig.cmake
-- Up-to-date: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gtest
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gtest/gtest_prod.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gtest/gtest.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gtest/internal
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gtest/internal/gtest-type-util.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gtest/internal/gtest-param-util.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gtest/internal/gtest-internal.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gtest/internal/gtest-string.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gtest/internal/custom
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gtest/internal/custom/gtest.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gtest/internal/custom/gtest-printers.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gtest/internal/custom/gtest-port.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gtest/internal/custom/README.md
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gtest/internal/gtest-port-arch.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gtest/internal/gtest-death-test-internal.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gtest/internal/gtest-port.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gtest/internal/gtest-filepath.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gtest/gtest-spi.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gtest/gtest-printers.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gtest/gtest_pred_impl.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gtest/gtest-typed-test.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gtest/gtest-test-part.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gtest/gtest-param-test.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gtest/gtest-death-test.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gtest/gtest-matchers.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gtest/gtest-message.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/include/gtest/gtest-assertion-result.h
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/lib/libgtest.a
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/lib/libgtest_main.a
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/lib/pkgconfig/gtest.pc
-- Installing: /root/.conan2/p/b/gtestf3be260c6f4cd/p/lib/pkgconfig/gtest_main.pc

gtest/1.14.0: package(): Packaged 4 '.a' files: libgmock_main.a, libgmock.a, libgtest.a, libgtest_main.a
gtest/1.14.0: package(): Packaged 38 '.h' files
gtest/1.14.0: package(): Packaged 2 '.md' files: README.md, README.md
gtest/1.14.0: package(): Packaged 1 file: LICENSE
gtest/1.14.0: Created package revision 78f9e137e1f2f4f8cb1061e6bdb17337
gtest/1.14.0: Package '661e28c1ca74480dd0c8cdfc49f726eb5e92cb1f' created
gtest/1.14.0: Full package reference: gtest/1.14.0#25e2a474b4d1aecf5ff4f0555dcdf72c:661e28c1ca74480dd0c8cdfc49f726eb5e92cb1f#78f9e137e1f2f4f8cb1061e6bdb17337
gtest/1.14.0: Package folder /root/.conan2/p/b/gtestf3be260c6f4cd/p

-------- Installing package lib/1.0.0@company (3 of 3) --------
lib/1.0.0@company: Building from source
lib/1.0.0@company: Package lib/1.0.0@company:7e86c4b3602206723f284fdfdde6a34cf597348b
lib/1.0.0@company: Copying sources to build folder
lib/1.0.0@company: Building your package in /root/.conan2/p/b/libd18aadb97e7aa/b
lib/1.0.0@company: Writing generators to /root/.conan2/p/b/libd18aadb97e7aa/b
lib/1.0.0@company: Generator 'CMakeDeps' calling 'generate()'
lib/1.0.0@company: Generating aggregated env files
lib/1.0.0@company: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
lib/1.0.0@company: Package '7e86c4b3602206723f284fdfdde6a34cf597348b' built
lib/1.0.0@company: Build folder /root/.conan2/p/b/libd18aadb97e7aa/b
lib/1.0.0@company: Generating the package
lib/1.0.0@company: Packaging in folder /root/.conan2/p/b/libd18aadb97e7aa/p
lib/1.0.0@company: package(): WARN: No files in this package!
lib/1.0.0@company: Created package revision 316d7cdb318d88edd5a4df8d88dd3968
lib/1.0.0@company: Package '7e86c4b3602206723f284fdfdde6a34cf597348b' created
lib/1.0.0@company: Full package reference: lib/1.0.0@company#5c9e3520d8eb1ac2e48b56a1a7df2093:7e86c4b3602206723f284fdfdde6a34cf597348b#316d7cdb318d88edd5a4df8d88dd3968
lib/1.0.0@company: Package folder /root/.conan2/p/b/libd18aadb97e7aa/p
WARN: deprecated: Usage of deprecated Conan 1.X features that will be removed in Conan 2.X:
WARN: deprecated:     'env_info' used in: cmake/3.30.1
WARN: deprecated:     'cpp_info.names' used in: gtest/1.14.0

======== Finalizing install (deploy, generators) ========
conanfile.py (app/1.0.0@company): Writing generators to /cci/app/build
conanfile.py (app/1.0.0@company): Generator 'CMakeDeps' calling 'generate()'
conanfile.py (app/1.0.0@company): CMakeDeps necessary find_package() and targets for your CMakeLists.txt
    find_package(lib)
    target_link_libraries(... lib::lib)
conanfile.py (app/1.0.0@company): Generating aggregated env files
conanfile.py (app/1.0.0@company): Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
Install finished successfully
root@193fe930ae53:/cci/app# conan remove gtest -c
Found 1 pkg/version recipes matching gtest in local cache
Remove summary:
Local Cache
  gtest/1.14.0#25e2a474b4d1aecf5ff4f0555dcdf72c: Removed recipe and all binaries
root@193fe930ae53:/cci/app# conan install . -pr ../profile-linux --build missing -c tools.graph:skip_binaries=False --output-folder=build

======== Input profiles ========
Profile host:
[settings]
arch=armv8
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=13
os=Linux
[tool_requires]
*: cmake/[>3.20]
[conf]
tools.build:skip_test=False
tools.graph:skip_binaries=False
user.root.build:run_cpptest=False

Profile build:
[settings]
arch=armv8
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=13
os=Linux
[conf]
tools.build:skip_test=False
user.root.build:run_cpptest=False


======== Computing dependency graph ========
gtest/1.14.0: Not found in local cache, looking in remotes...
gtest/1.14.0: Checking remote: conancenter
gtest/1.14.0: Downloaded recipe revision 25e2a474b4d1aecf5ff4f0555dcdf72c
Graph root
    conanfile.py (app/1.0.0@company): /cci/app/conanfile.py
Requirements
    lib/1.0.0@company#5c9e3520d8eb1ac2e48b56a1a7df2093 - Cache
Test requirements
    gtest/1.14.0#25e2a474b4d1aecf5ff4f0555dcdf72c - Downloaded (conancenter)
Build requirements
    cmake/3.30.1#6d832cf2d46f6ec969ca5ed5b41f91eb - Cache
Resolved version ranges
    cmake/[>3.20]: cmake/3.30.1

======== Computing necessary packages ========
Requirements
    lib/1.0.0@company#5c9e3520d8eb1ac2e48b56a1a7df2093:7e86c4b3602206723f284fdfdde6a34cf597348b#316d7cdb318d88edd5a4df8d88dd3968 - Cache
Test requirements
    gtest/1.14.0#25e2a474b4d1aecf5ff4f0555dcdf72c:661e28c1ca74480dd0c8cdfc49f726eb5e92cb1f - Build
Build requirements
    cmake/3.30.1#6d832cf2d46f6ec969ca5ed5b41f91eb:c93719558cf197f1df5a7f1d071093e26f0e44a0#3db06a1d7f44261ee68d30d8574a8bd3 - Cache

======== Installing packages ========
cmake/3.30.1: Already installed! (1 of 3)
cmake/3.30.1: Appending PATH environment variable: /root/.conan2/p/b/cmake21b1a2c270ba9/p/bin
gtest/1.14.0: Sources downloaded from 'conancenter'
gtest/1.14.0: Calling source() in /root/.conan2/p/gtest4ca9d6e5f6c08/s/src
gtest/1.14.0: Unzipping v1.14.0.tar.gz to .

-------- Installing package gtest/1.14.0 (2 of 3) --------
gtest/1.14.0: Building from source
gtest/1.14.0: Package gtest/1.14.0:661e28c1ca74480dd0c8cdfc49f726eb5e92cb1f
gtest/1.14.0: Copying sources to build folder
gtest/1.14.0: Building your package in /root/.conan2/p/b/gtest67503f4b65645/b
gtest/1.14.0: Calling generate()
gtest/1.14.0: Generators folder: /root/.conan2/p/b/gtest67503f4b65645/b/build/Release/generators
gtest/1.14.0: CMakeToolchain generated: conan_toolchain.cmake
gtest/1.14.0: CMakeToolchain generated: /root/.conan2/p/b/gtest67503f4b65645/b/build/Release/generators/CMakePresets.json
gtest/1.14.0: CMakeToolchain generated: /root/.conan2/p/b/gtest67503f4b65645/b/src/CMakeUserPresets.json
gtest/1.14.0: Generating aggregated env files
gtest/1.14.0: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
gtest/1.14.0: Calling build()
gtest/1.14.0: apply_conandata_patches(): No patches defined in conandata
gtest/1.14.0: Running CMake.configure()
gtest/1.14.0: RUN: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/root/.conan2/p/b/gtest67503f4b65645/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/root/.conan2/p/b/gtest67503f4b65645/b/src"
-- Using Conan toolchain: /root/.conan2/p/b/gtest67503f4b65645/b/build/Release/generators/conan_toolchain.cmake
-- Conan toolchain: Setting CMAKE_POSITION_INDEPENDENT_CODE=ON (options.fPIC)
-- Conan toolchain: C++ Standard 17 with extensions ON
-- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.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
-- Found Python3: /usr/bin/python3 (found version "3.12.3") found components: Interpreter
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Configuring done (0.2s)
-- Generating done (0.0s)
-- Build files have been written to: /root/.conan2/p/b/gtest67503f4b65645/b/build/Release

gtest/1.14.0: Running CMake.build()
gtest/1.14.0: RUN: cmake --build "/root/.conan2/p/b/gtest67503f4b65645/b/build/Release" -- -j6
[ 12%] Building CXX object googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
[ 25%] Linking CXX static library ../lib/libgtest.a
[ 25%] Built target gtest
[ 50%] Building CXX object googlemock/CMakeFiles/gmock.dir/src/gmock-all.cc.o
[ 50%] Building CXX object googletest/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
[ 62%] Linking CXX static library ../lib/libgtest_main.a
[ 62%] Built target gtest_main
[ 75%] Linking CXX static library ../lib/libgmock.a
[ 75%] Built target gmock
[ 87%] Building CXX object googlemock/CMakeFiles/gmock_main.dir/src/gmock_main.cc.o
[100%] Linking CXX static library ../lib/libgmock_main.a
[100%] Built target gmock_main

gtest/1.14.0: Package '661e28c1ca74480dd0c8cdfc49f726eb5e92cb1f' built
gtest/1.14.0: Build folder /root/.conan2/p/b/gtest67503f4b65645/b/build/Release
gtest/1.14.0: Generating the package
gtest/1.14.0: Packaging in folder /root/.conan2/p/b/gtest67503f4b65645/p
gtest/1.14.0: Calling package()
gtest/1.14.0: Running CMake.install()
gtest/1.14.0: RUN: cmake --install "/root/.conan2/p/b/gtest67503f4b65645/b/build/Release" --prefix "/root/.conan2/p/b/gtest67503f4b65645/p"
-- Install configuration: "Release"
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gmock
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gmock/gmock-nice-strict.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gmock/gmock-cardinalities.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gmock/gmock-more-matchers.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gmock/internal
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gmock/internal/gmock-internal-utils.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gmock/internal/gmock-port.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gmock/internal/gmock-pp.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gmock/internal/custom
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gmock/internal/custom/gmock-port.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gmock/internal/custom/gmock-matchers.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gmock/internal/custom/README.md
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gmock/internal/custom/gmock-generated-actions.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gmock/gmock-matchers.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gmock/gmock.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gmock/gmock-function-mocker.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gmock/gmock-actions.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gmock/gmock-spec-builders.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gmock/gmock-more-actions.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/lib/libgmock.a
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/lib/libgmock_main.a
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/lib/pkgconfig/gmock.pc
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/lib/pkgconfig/gmock_main.pc
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/lib/cmake/GTest/GTestTargets.cmake
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/lib/cmake/GTest/GTestTargets-release.cmake
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/lib/cmake/GTest/GTestConfigVersion.cmake
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/lib/cmake/GTest/GTestConfig.cmake
-- Up-to-date: /root/.conan2/p/b/gtest67503f4b65645/p/include
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gtest
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gtest/gtest_prod.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gtest/gtest.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gtest/internal
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gtest/internal/gtest-type-util.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gtest/internal/gtest-param-util.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gtest/internal/gtest-internal.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gtest/internal/gtest-string.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gtest/internal/custom
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gtest/internal/custom/gtest.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gtest/internal/custom/gtest-printers.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gtest/internal/custom/gtest-port.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gtest/internal/custom/README.md
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gtest/internal/gtest-port-arch.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gtest/internal/gtest-death-test-internal.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gtest/internal/gtest-port.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gtest/internal/gtest-filepath.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gtest/gtest-spi.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gtest/gtest-printers.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gtest/gtest_pred_impl.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gtest/gtest-typed-test.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gtest/gtest-test-part.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gtest/gtest-param-test.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gtest/gtest-death-test.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gtest/gtest-matchers.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gtest/gtest-message.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/include/gtest/gtest-assertion-result.h
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/lib/libgtest.a
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/lib/libgtest_main.a
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/lib/pkgconfig/gtest.pc
-- Installing: /root/.conan2/p/b/gtest67503f4b65645/p/lib/pkgconfig/gtest_main.pc

gtest/1.14.0: package(): Packaged 4 '.a' files: libgmock_main.a, libgmock.a, libgtest.a, libgtest_main.a
gtest/1.14.0: package(): Packaged 38 '.h' files
gtest/1.14.0: package(): Packaged 2 '.md' files: README.md, README.md
gtest/1.14.0: package(): Packaged 1 file: LICENSE
gtest/1.14.0: Created package revision 0504711250d625a2c89f7467ab66cb98
gtest/1.14.0: Package '661e28c1ca74480dd0c8cdfc49f726eb5e92cb1f' created
gtest/1.14.0: Full package reference: gtest/1.14.0#25e2a474b4d1aecf5ff4f0555dcdf72c:661e28c1ca74480dd0c8cdfc49f726eb5e92cb1f#0504711250d625a2c89f7467ab66cb98
gtest/1.14.0: Package folder /root/.conan2/p/b/gtest67503f4b65645/p
lib/1.0.0@company: Already installed! (3 of 3)
WARN: deprecated: Usage of deprecated Conan 1.X features that will be removed in Conan 2.X:
WARN: deprecated:     'env_info' used in: cmake/3.30.1
WARN: deprecated:     'cpp_info.names' used in: gtest/1.14.0

======== Finalizing install (deploy, generators) ========
conanfile.py (app/1.0.0@company): Writing generators to /cci/app/build
conanfile.py (app/1.0.0@company): Generator 'CMakeDeps' calling 'generate()'
conanfile.py (app/1.0.0@company): CMakeDeps necessary find_package() and targets for your CMakeLists.txt
    find_package(lib)
    target_link_libraries(... lib::lib)
conanfile.py (app/1.0.0@company): Generating aggregated env files
conanfile.py (app/1.0.0@company): Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
Install finished successfully

I've run this test in an isolated docker environment with a clear conan cache.
Also, I've added your custom settings to my profile:

[conf]
tools.build:skip_test=False
user.root.build:run_cpptest=False

What our test cases differ is in the cmake package you are using. I'm using the oficial conan-center one.
Could you provide a basic conanfile of your cmake package?

@AbrilRBS
Copy link
Member

AbrilRBS commented Sep 11, 2024

@dkoerner-festo thanks a lot for your question! We're still looking into the path issues you reported.

While we fix the underlying problem, could you try running:

  • The same conan install command, but substituting conan install with conan graph info. That output might shed some light as to why you're seeing an skipped binary which we would not expect

For now, you can also try this to address your problem:

  • Run your same install commands, but replacing -c tools.graph:skip_binaries=False with -c:a tools.graph:skip_binaries=False (Note the -c:a).

This will propagate the conf to both host AND build contexts, which might be what is ultimately confusing Conan, thanks!

@dkoerner-festo
Copy link
Author

@AbrilRBS -c:a solves the problem

@dkoerner-festo
Copy link
Author

@perseoGI

The conanfile.py for cmake:

import os
import re
import getpass

from conan import ConanFile
from conan.tools.files import copy, get, rmdir


class CmakeConan(ConanFile):
    name = "cmake"
    user = "festo"
    author = "Kitware"
    package_type = "application"
    license = "BSD-3-Clause"
    settings = "os"
    options = None
    description = "CMake is an open-source, cross-platform family of tools designed to build, test and package software."
    homepage = "https://github.com/Kitware/CMake"
    topics = ("tool", "Kitware", "software build system")
    exports = "version.txt"
    no_copy_source = True
    _source_version = ""

    def set_version(self):
        """Set version based on version.txt"""

        if not self.version:
            with open(os.path.join(self.recipe_folder, "version.txt"), encoding="UTF-8") as f:
                self.version = f.readline().rstrip() + "+local." + re.sub(r"[^a-zA-Z0-9]", "", getpass.getuser().lower())

    def generate(self):
        with open(os.path.join(self.recipe_folder, "version.txt"), encoding="UTF-8") as f:
            self._source_version = f.readline().rstrip()

    def layout(self):
        self.folders.build = os.path.join("build", str(self.settings.os))
        self.folders.generators = os.path.join(self.folders.build, "generators")

    def build(self):

        if self.settings.os == "Windows":
            get(
                self,
                **self.conan_data["sources_windows"][self._source_version],
                strip_root=True,
            )
        else:
            get(self, **self.conan_data["sources_linux"][self._source_version], strip_root=True, keep_permissions=True)

    def package(self):
        copy(
            self,
            "*",
            src=self.build_folder,
            dst=self.package_folder,
            excludes="generators",
        )

        copy(
            self,
            "Copyright.txt",
            src=os.path.join(self.build_folder, "doc", "cmake"),
            dst=os.path.join(self.package_folder, "licenses"),
            keep_path=False,
        )

        # Remove unneeded folders (also cause long paths on Windows)
        rmdir(self, os.path.join(self.package_folder, "doc"))
        rmdir(self, os.path.join(self.package_folder, "man"))

    def package_info(self):
        self.cpp_info.includedirs = []
        self.cpp_info.libdirs = []

conandata.yml:

sources_windows:
  "3.25.2":
    url: "https://adeartifactoryxxxxxxxxxxx/Kitware/CMake/releases/download/v3.25.2/cmake-3.25.2-windows-x86_64.zip"
    sha256: "0db9d3cebf894f64751141253fb9d9e310f325e2e03044f61249a359d6adf301"
  "3.28.1":
    url: "https:/adeartifactoryxxxxxxxxxxx/Kitware/CMake/releases/download/v3.28.1/cmake-3.28.1-windows-x86_64.zip"
    sha256: "671332249bc7cc7424523d6c2b5edd3e3de90a43b8b82e8782f42da4fe4c562d"
  "3.30.0":
    url: "https://adeartifactoryxxxxxxxxxxx/Kitware/CMake/releases/download/v3.30.0/cmake-3.30.0-windows-x86_64.zip"
    sha256: "f8d2da0eaf3bab9cf065e97bd6d8e1819886f8671d3d4c7bb93cb774123fa448"
sources_linux:
  "3.25.2":
    url: "https://adeartifactoryxxxxxxxxxxx/Kitware/CMake/releases/download/v3.25.2/cmake-3.25.2-linux-x86_64.tar.gz"
    sha256: "783da74f132fd1fea91b8236d267efa4df5b91c5eec1dea0a87f0cf233748d99"
  "3.28.1":
    url: "https://adeartifactoryxxxxxxxxxxx/Kitware/CMake/releases/download/v3.28.1/cmake-3.28.1-linux-x86_64.tar.gz"
    sha256: "f76398c24362ad87bad1a3d6f1e8f4377632b5b1c360c4ba1fd7cd205fd9d8d4"
  "3.30.0":
    url: "https://adeartifactoryxxxxxxxxxxx/Kitware/CMake/releases/download/v3.30.0/cmake-3.30.0-linux-x86_64.tar.gz"
    sha256: "09846a3858583f38189b59177586adf125a08c15f3cddcaf7d7d7081ac86969f"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants