-
Notifications
You must be signed in to change notification settings - Fork 990
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
Comments
Thanks for your report @dkoerner-festo There is something that indeed is not looking great. I see that you are using a custom
Thanks! |
I have tried to setup something to reproduce this problem: lib:
app:
profile:
Output from the successful install:
output from the failed install:
The cmake package is an internal package. It contains the officially built CMake binaries. |
Hi @dkoerner-festo, thank you for your detailed report. 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.
What our test cases differ is in the |
@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:
For now, you can also try this to address your problem:
This will propagate the conf to both host AND build contexts, which might be what is ultimately confusing Conan, thanks! |
@AbrilRBS |
The conanfile.py for cmake:
conandata.yml:
|
Thanks @dkoerner-festo for all the feedback. I have managed to reproduce and understand the root cause. |
#17033 was merged for next Conan 2.8. |
Hi @memsharded I have tested the |
Great, thanks for the feedback! |
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:The problem seems to be caused by an incomplete buildenv script.
conanbuildenv-debug-x86_64.sh without skip_binaries=False:
conanbuildenv-debug-x86_64.sh with skip_binaries=False:
Note: We need the "skip_binaries=False" for a deployer to collect the licenses of all packages.
How to reproduce it
No response
The text was updated successfully, but these errors were encountered: