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

cpptrace: Conanfile tidying #23821

Merged

Conversation

jeremy-rifkin
Copy link
Contributor

@jeremy-rifkin jeremy-rifkin commented Apr 30, 2024

Specify library name and version: cpptrace/all

I'm the author. This PR aims to remove warnings about deprecated Conan 1.X features and support a notable configuration for cpptrace, closes jeremy-rifkin/cpptrace#110.


@jeremy-rifkin jeremy-rifkin changed the title Try to remove cpp_info.names/.filenames cpptrace and libassert: Conanfile tidying Apr 30, 2024
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@jeremy-rifkin jeremy-rifkin changed the title cpptrace and libassert: Conanfile tidying cpptrace: Conanfile tidying Apr 30, 2024
@conan-center-bot

This comment has been minimized.

@ghost
Copy link

ghost commented Apr 30, 2024

I detected other pull requests that are modifying cpptrace/all recipe:

This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there.

@ghost ghost mentioned this pull request Apr 30, 2024
3 tasks
Copy link
Member

@AbrilRBS AbrilRBS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot Jeremy! I have some comments, but I like the option idea :)

recipes/cpptrace/all/conanfile.py Outdated Show resolved Hide resolved
recipes/cpptrace/all/conanfile.py Outdated Show resolved Hide resolved
@AbrilRBS AbrilRBS self-assigned this Apr 30, 2024
@jeremy-rifkin
Copy link
Contributor Author

Thank you! I've updated the PR

@conan-center-bot

This comment has been minimized.

@conan-center-bot conan-center-bot requested a review from jcar87 May 3, 2024 11:41
@ghost ghost mentioned this pull request May 4, 2024
3 tasks
Copy link
Member

@AbrilRBS AbrilRBS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@AbrilRBS AbrilRBS removed the request for review from jcar87 May 4, 2024 23:32
Copy link
Member

@AbrilRBS AbrilRBS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have some issues compiling in Linux with libunwind and *:shared=True, could you please take a look @jeremy-rifkin? Thanks :)

The error seems to be in the test package, some missing symbols seems to be the main issue:

# conan create . --version=0.5.4 -b=missing -o="unwind=libunwind" -o="*:shared=True"

======== Exporting recipe to the cache ========
cpptrace/0.5.4: Exporting package recipe: /cpptrace/conanfile.py
cpptrace/0.5.4: exports: File 'conandata.yml' found. Exporting it...
cpptrace/0.5.4: Calling export_sources()
cpptrace/0.5.4: Copied 1 '.yml' file: conandata.yml
cpptrace/0.5.4: Copied 1 '.py' file: conanfile.py
cpptrace/0.5.4: Exported to cache folder: /root/.conan2/p/cpptr466431496c4c6/e
cpptrace/0.5.4: Exported: cpptrace/0.5.4#2c7f75faefb5c7a7941a8038a88eb3d7 (2024-05-04 23:38:09 UTC)

======== Input profiles ========
Profile host:
[settings]
arch=armv8
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=11
os=Linux
[options]
unwind=libunwind
*:shared=True
[platform_tool_requires]
cmake/*: cmake/3.28.1
[conf]
tools.files.download:verify=False
tools.system.package_manager:mode=install

Profile build:
[settings]
arch=armv8
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=11
os=Linux
[platform_tool_requires]
cmake/*: cmake/3.28.1
[conf]
tools.files.download:verify=False
tools.system.package_manager:mode=install


======== Computing dependency graph ========
Graph root
    cli
Requirements
    cpptrace/0.5.4#2c7f75faefb5c7a7941a8038a88eb3d7 - Cache
    libdwarf/0.9.1#74f3c2940c7dca2ec082aa9a35496242 - Cache
    libunwind/1.8.0#045502d366b4ce2bc52a492648e62d2b - Cache
    xz_utils/5.4.5#51e5a6e6564f4ea3afd79def01f035ad - Cache
    zlib/1.3.1#f52e03ae3d251dec704634230cd806a2 - Cache
    zstd/1.5.5#e03fb7b37b87f0174e9db4a8407e3f4d - Cache
Resolved version ranges
    zlib/[>=1.2.11 <2]: zlib/1.3.1

======== Computing necessary packages ========
Requirements
    cpptrace/0.5.4#2c7f75faefb5c7a7941a8038a88eb3d7:3b611c2e977f189280281bc0a74f169f7e091b0a#532179b1e04bcb3a27af0cee97db0db4 - Cache
    libdwarf/0.9.1#74f3c2940c7dca2ec082aa9a35496242:4ebf043fd3e985871e510465ff0c67e1c560f73f#70443a7d30409a246b5d695eb3b5f766 - Cache
    libunwind/1.8.0#045502d366b4ce2bc52a492648e62d2b:b8bd2935d210ef4550788af9f6c3d297fb0568cc#44da7e919d1e8c41a2357174679814bd - Cache
    xz_utils/5.4.5#51e5a6e6564f4ea3afd79def01f035ad:9ca935e275f8163bfe39bdba58089b51be96e3b9#57ca9fd6cff7d5ede9b505f1d9c2d41d - Cache
    zlib/1.3.1#f52e03ae3d251dec704634230cd806a2:9ca935e275f8163bfe39bdba58089b51be96e3b9#993ba7a01eadde7b8d1e3ecba3aeac18 - Cache
    zstd/1.5.5#e03fb7b37b87f0174e9db4a8407e3f4d:e9ecd2d14baf28fa594c5dff5a85fa53ed05db21#f24a44df80ac516dcda5d1316a252f42 - Cache

======== Installing packages ========
xz_utils/5.4.5: Already installed! (1 of 6)
zlib/1.3.1: Already installed! (2 of 6)
zstd/1.5.5: Already installed! (3 of 6)
libdwarf/0.9.1: Already installed! (4 of 6)
libunwind/1.8.0: Already installed! (5 of 6)
cpptrace/0.5.4: Already installed! (6 of 6)
WARN: deprecated: Usage of deprecated Conan 1.X features that will be removed in Conan 2.X:
WARN: deprecated:     'cpp_info.names' used in: xz_utils/5.4.5, zstd/1.5.5, zlib/1.3.1, cpptrace/0.5.4
WARN: deprecated:     'cpp_info.build_modules' used in: xz_utils/5.4.5
WARN: deprecated:     'env_info' used in: zstd/1.5.5
WARN: deprecated:     'cpp_info.filenames' used in: cpptrace/0.5.4

======== Launching test_package ========

======== Computing dependency graph ========
Graph root
    cpptrace/0.5.4 (test package): /cpptrace/test_package/conanfile.py
Requirements
    cpptrace/0.5.4#2c7f75faefb5c7a7941a8038a88eb3d7 - Cache
    libdwarf/0.9.1#74f3c2940c7dca2ec082aa9a35496242 - Cache
    libunwind/1.8.0#045502d366b4ce2bc52a492648e62d2b - Cache
    xz_utils/5.4.5#51e5a6e6564f4ea3afd79def01f035ad - Cache
    zlib/1.3.1#f52e03ae3d251dec704634230cd806a2 - Cache
    zstd/1.5.5#e03fb7b37b87f0174e9db4a8407e3f4d - Cache

======== Computing necessary packages ========
Requirements
    cpptrace/0.5.4#2c7f75faefb5c7a7941a8038a88eb3d7:3b611c2e977f189280281bc0a74f169f7e091b0a#532179b1e04bcb3a27af0cee97db0db4 - Cache
    libdwarf/0.9.1#74f3c2940c7dca2ec082aa9a35496242:4ebf043fd3e985871e510465ff0c67e1c560f73f#70443a7d30409a246b5d695eb3b5f766 - Cache
    libunwind/1.8.0#045502d366b4ce2bc52a492648e62d2b:b8bd2935d210ef4550788af9f6c3d297fb0568cc#44da7e919d1e8c41a2357174679814bd - Cache
    xz_utils/5.4.5#51e5a6e6564f4ea3afd79def01f035ad:9ca935e275f8163bfe39bdba58089b51be96e3b9#57ca9fd6cff7d5ede9b505f1d9c2d41d - Cache
    zlib/1.3.1#f52e03ae3d251dec704634230cd806a2:9ca935e275f8163bfe39bdba58089b51be96e3b9#993ba7a01eadde7b8d1e3ecba3aeac18 - Cache
    zstd/1.5.5#e03fb7b37b87f0174e9db4a8407e3f4d:e9ecd2d14baf28fa594c5dff5a85fa53ed05db21#f24a44df80ac516dcda5d1316a252f42 - Cache

======== Installing packages ========
xz_utils/5.4.5: Already installed! (1 of 6)
zlib/1.3.1: Already installed! (2 of 6)
zstd/1.5.5: Already installed! (3 of 6)
libdwarf/0.9.1: Already installed! (4 of 6)
libunwind/1.8.0: Already installed! (5 of 6)
cpptrace/0.5.4: Already installed! (6 of 6)
WARN: deprecated: Usage of deprecated Conan 1.X features that will be removed in Conan 2.X:
WARN: deprecated:     'cpp_info.names' used in: xz_utils/5.4.5, zstd/1.5.5, zlib/1.3.1, cpptrace/0.5.4
WARN: deprecated:     'cpp_info.build_modules' used in: xz_utils/5.4.5
WARN: deprecated:     'env_info' used in: zstd/1.5.5
WARN: deprecated:     'cpp_info.filenames' used in: cpptrace/0.5.4

======== Testing the package ========
Removing previously existing 'test_package' build folder: /cpptrace/test_package/build/gcc-11-armv8-gnu17-release
cpptrace/0.5.4 (test package): Test package build: build/gcc-11-armv8-gnu17-release
cpptrace/0.5.4 (test package): Test package build folder: /cpptrace/test_package/build/gcc-11-armv8-gnu17-release
cpptrace/0.5.4 (test package): Writing generators to /cpptrace/test_package/build/gcc-11-armv8-gnu17-release/generators
cpptrace/0.5.4 (test package): Generator 'CMakeDeps' calling 'generate()'
cpptrace/0.5.4 (test package): CMakeDeps necessary find_package() and targets for your CMakeLists.txt
    find_package(cpptrace)
    target_link_libraries(... cpptrace::cpptrace)
cpptrace/0.5.4 (test package): Generator 'CMakeToolchain' calling 'generate()'
cpptrace/0.5.4 (test package): CMakeToolchain generated: conan_toolchain.cmake
cpptrace/0.5.4 (test package): CMakeToolchain generated: CMakePresets.json
cpptrace/0.5.4 (test package): CMakeToolchain generated: ../../../CMakeUserPresets.json
cpptrace/0.5.4 (test package): Generator 'VirtualRunEnv' calling 'generate()'
cpptrace/0.5.4 (test package): Generating aggregated env files
cpptrace/0.5.4 (test package): Generated aggregated env files: ['conanrun.sh', 'conanbuild.sh']

======== Testing the package: Building ========
cpptrace/0.5.4 (test package): Calling build()
cpptrace/0.5.4 (test package): Running CMake.configure()
cpptrace/0.5.4 (test package): RUN: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/cpptrace/test_package/build/gcc-11-armv8-gnu17-release/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/cpptrace/test_package" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/cpptrace/test_package"
-- Using Conan toolchain: /cpptrace/test_package/build/gcc-11-armv8-gnu17-release/generators/conan_toolchain.cmake
-- Conan toolchain: C++ Standard 17 with extensions ON
-- The CXX compiler identification is GNU 11.4.0
-- 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
-- Conan: Target declared 'cpptrace::cpptrace'
-- Conan: Target declared 'libdwarf::libdwarf'
-- Conan: Component target declared 'zstd::libzstd_shared'
-- Conan: Target declared 'ZLIB::ZLIB'
-- Conan: Component target declared 'libunwind::unwind'
-- Conan: Component target declared 'libunwind::generic'
-- Conan: Component target declared 'libunwind::ptrace'
-- Conan: Component target declared 'libunwind::setjmp'
-- Conan: Component target declared 'libunwind::coredump'
-- Conan: Target declared 'libunwind::libunwind'
-- Conan: Target declared 'LibLZMA::LibLZMA'
-- Conan: Including build module from '/root/.conan2/p/b/xz_ut8f51a21b6eda3/p/lib/cmake/conan-official-xz_utils-variables.cmake'
-- Configuring done
-- Generating done
-- Build files have been written to: /cpptrace/test_package/build/gcc-11-armv8-gnu17-release

cpptrace/0.5.4 (test package): Running CMake.build()
cpptrace/0.5.4 (test package): RUN: cmake --build "/cpptrace/test_package/build/gcc-11-armv8-gnu17-release" -- -j12
[ 50%] Building CXX object CMakeFiles/test_package.dir/test_package.cpp.o
[100%] Linking CXX executable test_package
/usr/bin/ld: /root/.conan2/p/b/cpptrc6811159a7cb9/p/lib/libcpptrace.so: undefined reference to `_ULaarch64_init_local'
/usr/bin/ld: /root/.conan2/p/b/cpptrc6811159a7cb9/p/lib/libcpptrace.so: undefined reference to `_ULaarch64_get_reg'
/usr/bin/ld: /root/.conan2/p/b/cpptrc6811159a7cb9/p/lib/libcpptrace.so: undefined reference to `_ULaarch64_step'
collect2: error: ld returned 1 exit status
gmake[2]: *** [CMakeFiles/test_package.dir/build.make:98: test_package] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/test_package.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2

ERROR: cpptrace/0.5.4 (test package): Error in build() method, line 21
	cmake.build()
	ConanException: Error 2 while executing

Note that this compiles fine without setting the shared option (i.e static flavour)

@conan-center-bot

This comment has been minimized.

@jeremy-rifkin
Copy link
Contributor Author

Hi @RubenRBS, thanks for noticing that. I tried running conan create all/conanfile.py --version 0.5.4 --build=missing -o="unwind=libunwind" -o="*:shared=True" locally and I didn't run into issues on a x86-64 machine, static or shared. My guesses would be either a problem with the libunwind recipe that is aarch64-specific or an issue with cpptrace's config-cmake.in, but I'm not sure why either would affect shared and not static.

@AbrilRBS
Copy link
Member

AbrilRBS commented May 6, 2024

Fixed! We were missing a transitive declaration for libunwind's symbols

My successful compilation logs:

``` conan create . --version=0.5.4 -b=missing -o="unwind=libunwind" -o="*:shared=True"

======== Exporting recipe to the cache ========
cpptrace/0.5.4: Exporting package recipe: /cpptrace/conanfile.py
cpptrace/0.5.4: exports: File 'conandata.yml' found. Exporting it...
cpptrace/0.5.4: Calling export_sources()
cpptrace/0.5.4: Copied 1 '.yml' file: conandata.yml
cpptrace/0.5.4: Copied 1 '.py' file: conanfile.py
cpptrace/0.5.4: Exported to cache folder: /root/.conan2/p/cpptr48f33e699dc89/e
cpptrace/0.5.4: Exported: cpptrace/0.5.4#2bc0b89b7a44b116a569dd116e9518fd (2024-05-06 12:47:37 UTC)

======== Input profiles ========
Profile host:
[settings]
arch=armv8
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=11
os=Linux
[options]
unwind=libunwind
:shared=True
[platform_tool_requires]
cmake/
: cmake/3.28.1
[conf]
tools.files.download:verify=False
tools.system.package_manager:mode=install

Profile build:
[settings]
arch=armv8
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=11
os=Linux
[platform_tool_requires]
cmake/*: cmake/3.28.1
[conf]
tools.files.download:verify=False
tools.system.package_manager:mode=install

======== Computing dependency graph ========
Graph root
cli
Requirements
cpptrace/0.5.4#2bc0b89b7a44b116a569dd116e9518fd - Cache
libdwarf/0.9.1#74f3c2940c7dca2ec082aa9a35496242 - Cache
libunwind/1.8.0#045502d366b4ce2bc52a492648e62d2b - Cache
xz_utils/5.4.5#51e5a6e6564f4ea3afd79def01f035ad - Cache
zlib/1.3.1#f52e03ae3d251dec704634230cd806a2 - Cache
zstd/1.5.5#e03fb7b37b87f0174e9db4a8407e3f4d - Cache
Resolved version ranges
zlib/[>=1.2.11 <2]: zlib/1.3.1

======== Computing necessary packages ========
cpptrace/0.5.4: Checking 9 compatible configurations
cpptrace/0.5.4: Compatible configurations not found in cache, checking servers
cpptrace/0.5.4: '5cc3125babff8a291d8d3bfe6699cde1f312e83a': compiler.cppstd=11
cpptrace/0.5.4: '2424b4271adb1bec4eb519b548c7628a053ea69a': compiler.cppstd=gnu11
cpptrace/0.5.4: 'a34a9f7137c27575861d52ba951780a73edc90f2': compiler.cppstd=14
cpptrace/0.5.4: 'aade57efcea24b9b7d2f7d6f0f570a01abcbd420': compiler.cppstd=gnu14
cpptrace/0.5.4: '18bb98ac1e9447610b3e8575d30c2071488f5a30': compiler.cppstd=17
cpptrace/0.5.4: 'e60f030897f935dd438093b66fe50280637e9922': compiler.cppstd=20
cpptrace/0.5.4: '757b98fe01e1e73a1da25c5bf30e616843ab1c6c': compiler.cppstd=gnu20
cpptrace/0.5.4: '19a755fa0f926616f19017705ee1c694b760c997': compiler.cppstd=23
cpptrace/0.5.4: '2dd97ab041159a071f0168cd2876b82a31c44ed9': compiler.cppstd=gnu23
Requirements
cpptrace/0.5.4#2bc0b89b7a44b116a569dd116e9518fd:3b611c2e977f189280281bc0a74f169f7e091b0a - Build
libdwarf/0.9.1#74f3c2940c7dca2ec082aa9a35496242:4ebf043fd3e985871e510465ff0c67e1c560f73f#70443a7d30409a246b5d695eb3b5f766 - Cache
libunwind/1.8.0#045502d366b4ce2bc52a492648e62d2b:b8bd2935d210ef4550788af9f6c3d297fb0568cc#44da7e919d1e8c41a2357174679814bd - Cache
xz_utils/5.4.5#51e5a6e6564f4ea3afd79def01f035ad:9ca935e275f8163bfe39bdba58089b51be96e3b9#57ca9fd6cff7d5ede9b505f1d9c2d41d - Cache
zlib/1.3.1#f52e03ae3d251dec704634230cd806a2:9ca935e275f8163bfe39bdba58089b51be96e3b9#993ba7a01eadde7b8d1e3ecba3aeac18 - Cache
zstd/1.5.5#e03fb7b37b87f0174e9db4a8407e3f4d:e9ecd2d14baf28fa594c5dff5a85fa53ed05db21#f24a44df80ac516dcda5d1316a252f42 - Cache

======== Installing packages ========
xz_utils/5.4.5: Already installed! (1 of 6)
zlib/1.3.1: Already installed! (2 of 6)
zstd/1.5.5: Already installed! (3 of 6)
libdwarf/0.9.1: Already installed! (4 of 6)
libunwind/1.8.0: Already installed! (5 of 6)
cpptrace/0.5.4: Calling source() in /root/.conan2/p/cpptr48f33e699dc89/s/src
cpptrace/0.5.4: Source ['https://github.com/jeremy-rifkin/cpptrace/archive/refs/tags/v0.5.4.tar.gz'] retrieved from local download cache

-------- Installing package cpptrace/0.5.4 (6 of 6) --------
cpptrace/0.5.4: Building from source
cpptrace/0.5.4: Package cpptrace/0.5.4:3b611c2e977f189280281bc0a74f169f7e091b0a
cpptrace/0.5.4: Copying sources to build folder
cpptrace/0.5.4: Building your package in /root/.conan2/p/b/cpptr0b0dea14ca35d/b
cpptrace/0.5.4: Calling generate()
cpptrace/0.5.4: Generators folder: /root/.conan2/p/b/cpptr0b0dea14ca35d/b/build/Release/generators
cpptrace/0.5.4: CMakeToolchain generated: conan_toolchain.cmake
cpptrace/0.5.4: CMakeToolchain generated: CMakePresets.json
cpptrace/0.5.4: CMakeToolchain generated: ../../../src/CMakeUserPresets.json
cpptrace/0.5.4: CMakeDeps necessary find_package() and targets for your CMakeLists.txt
find_package(libdwarf)
find_package(libunwind)
target_link_libraries(... libdwarf::libdwarf libunwind::libunwind)
cpptrace/0.5.4: Generating aggregated env files
cpptrace/0.5.4: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
cpptrace/0.5.4: Calling build()
cpptrace/0.5.4: Running CMake.configure()
cpptrace/0.5.4: RUN: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/root/.conan2/p/b/cpptr0b0dea14ca35d/b/build/Release/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/root/.conan2/p/b/cpptr0b0dea14ca35d/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/root/.conan2/p/b/cpptr0b0dea14ca35d/b/src"
-- Using Conan toolchain: /root/.conan2/p/b/cpptr0b0dea14ca35d/b/build/Release/generators/conan_toolchain.cmake
-- Conan toolchain: C++ Standard 17 with extensions ON
-- Conan toolchain: Setting BUILD_SHARED_LIBS = ON
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.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
-- Performing Test HAS_CXXABI
-- Performing Test HAS_CXXABI - Success
-- Performing Test HAS_UNWIND
-- Performing Test HAS_UNWIND - Success
-- Performing Test HAS_EXECINFO
-- Performing Test HAS_EXECINFO - Success
-- Performing Test HAS_BACKTRACE
-- Performing Test HAS_BACKTRACE - Success
-- Performing Test HAS_CXX_EXCEPTION_TYPE
-- Performing Test HAS_CXX_EXCEPTION_TYPE - Success
-- Performing Test HAS_DL_FIND_OBJECT
-- Performing Test HAS_DL_FIND_OBJECT - Success
-- Cpptrace auto config: Using libdwarf for symbols
-- Cpptrace auto config: Using cxxabi for demangling
-- Conan: Target declared 'libdwarf::libdwarf'
-- Conan: Component target declared 'zstd::libzstd_shared'
-- Conan: Target declared 'ZLIB::ZLIB'
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Configuring done
-- Generating done
-- Build files have been written to: /root/.conan2/p/b/cpptr0b0dea14ca35d/b/build/Release

cpptrace/0.5.4: Running CMake.build()
cpptrace/0.5.4: RUN: cmake --build "/root/.conan2/p/b/cpptr0b0dea14ca35d/b/build/Release" -- -j12
[ 5%] Building CXX object CMakeFiles/cpptrace-lib.dir/src/cpptrace.cpp.o
[ 10%] Building CXX object CMakeFiles/cpptrace-lib.dir/src/ctrace.cpp.o
[ 15%] Building CXX object CMakeFiles/cpptrace-lib.dir/src/demangle/demangle_with_cxxabi.cpp.o
[ 20%] Building CXX object CMakeFiles/cpptrace-lib.dir/src/symbols/symbols_with_addr2line.cpp.o
[ 25%] Building CXX object CMakeFiles/cpptrace-lib.dir/src/demangle/demangle_with_nothing.cpp.o
[ 30%] Building CXX object CMakeFiles/cpptrace-lib.dir/src/demangle/demangle_with_winapi.cpp.o
[ 35%] Building CXX object CMakeFiles/cpptrace-lib.dir/src/symbols/symbols_with_dbghelp.cpp.o
[ 40%] Building CXX object CMakeFiles/cpptrace-lib.dir/src/symbols/symbols_with_dl.cpp.o
[ 45%] Building CXX object CMakeFiles/cpptrace-lib.dir/src/symbols/symbols_with_libbacktrace.cpp.o
[ 50%] Building CXX object CMakeFiles/cpptrace-lib.dir/src/symbols/symbols_with_libdwarf.cpp.o
[ 55%] Building CXX object CMakeFiles/cpptrace-lib.dir/src/symbols/symbols_core.cpp.o
[ 60%] Building CXX object CMakeFiles/cpptrace-lib.dir/src/symbols/symbols_with_nothing.cpp.o
[ 65%] Building CXX object CMakeFiles/cpptrace-lib.dir/src/unwind/unwind_with_libunwind.cpp.o
[ 70%] Building CXX object CMakeFiles/cpptrace-lib.dir/src/unwind/unwind_with_execinfo.cpp.o
[ 75%] Building CXX object CMakeFiles/cpptrace-lib.dir/src/unwind/unwind_with_nothing.cpp.o
[ 80%] Building CXX object CMakeFiles/cpptrace-lib.dir/src/unwind/unwind_with_unwind.cpp.o
[ 85%] Building CXX object CMakeFiles/cpptrace-lib.dir/src/unwind/unwind_with_winapi.cpp.o
[ 90%] Building CXX object CMakeFiles/cpptrace-lib.dir/src/unwind/unwind_with_dbghelp.cpp.o
[ 95%] Building CXX object CMakeFiles/cpptrace-lib.dir/src/snippets/snippet.cpp.o
[100%] Linking CXX shared library libcpptrace.so
[100%] Built target cpptrace-lib

cpptrace/0.5.4: Package '3b611c2e977f189280281bc0a74f169f7e091b0a' built
cpptrace/0.5.4: Build folder /root/.conan2/p/b/cpptr0b0dea14ca35d/b/build/Release
cpptrace/0.5.4: Generating the package
cpptrace/0.5.4: Packaging in folder /root/.conan2/p/b/cpptr0b0dea14ca35d/p
cpptrace/0.5.4: Calling package()
cpptrace/0.5.4: Running CMake.install()
cpptrace/0.5.4: RUN: cmake --install "/root/.conan2/p/b/cpptr0b0dea14ca35d/b/build/Release" --prefix "/root/.conan2/p/b/cpptr0b0dea14ca35d/p"
-- Install configuration: "Release"
-- Installing: /root/.conan2/p/b/cpptr0b0dea14ca35d/p/include
-- Installing: /root/.conan2/p/b/cpptr0b0dea14ca35d/p/include/ctrace
-- Installing: /root/.conan2/p/b/cpptr0b0dea14ca35d/p/include/ctrace/ctrace.h
-- Installing: /root/.conan2/p/b/cpptr0b0dea14ca35d/p/include/cpptrace
-- Installing: /root/.conan2/p/b/cpptr0b0dea14ca35d/p/include/cpptrace/cpptrace.hpp
-- Installing: /root/.conan2/p/b/cpptr0b0dea14ca35d/p/lib/libcpptrace.so.0.5.4
-- Installing: /root/.conan2/p/b/cpptr0b0dea14ca35d/p/lib/libcpptrace.so.0
-- Set runtime path of "/root/.conan2/p/b/cpptr0b0dea14ca35d/p/lib/libcpptrace.so.0.5.4" to ""
-- Installing: /root/.conan2/p/b/cpptr0b0dea14ca35d/p/lib/libcpptrace.so
-- Installing: /root/.conan2/p/b/cpptr0b0dea14ca35d/p/lib/cmake/cpptrace/cpptrace-config.cmake
-- Installing: /root/.conan2/p/b/cpptr0b0dea14ca35d/p/lib/cmake/cpptrace/cpptrace-config-version.cmake
-- Installing: /root/.conan2/p/b/cpptr0b0dea14ca35d/p/lib/cmake/cpptrace/cpptrace-targets.cmake
-- Installing: /root/.conan2/p/b/cpptr0b0dea14ca35d/p/lib/cmake/cpptrace/cpptrace-targets-release.cmake
-- Installing: /root/.conan2/p/b/cpptr0b0dea14ca35d/p/lib/cmake/cpptrace/Findzstd.cmake

cpptrace/0.5.4: package(): Packaged 1 '.h' file: ctrace.h
cpptrace/0.5.4: package(): Packaged 1 '.hpp' file: cpptrace.hpp
cpptrace/0.5.4: package(): Packaged 1 file: LICENSE
cpptrace/0.5.4: package(): Packaged 1 '.4' file: libcpptrace.so.0.5.4
cpptrace/0.5.4: package(): Packaged 1 '.0' file: libcpptrace.so.0
cpptrace/0.5.4: package(): Packaged 1 '.so' file: libcpptrace.so
cpptrace/0.5.4: Created package revision 881139a4d8619fdaaef73cd4bb16cfdc
cpptrace/0.5.4: Package '3b611c2e977f189280281bc0a74f169f7e091b0a' created
cpptrace/0.5.4: Full package reference: cpptrace/0.5.4#2bc0b89b7a44b116a569dd116e9518fd:3b611c2e977f189280281bc0a74f169f7e091b0a#881139a4d8619fdaaef73cd4bb16cfdc
cpptrace/0.5.4: Package folder /root/.conan2/p/b/cpptr0b0dea14ca35d/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: cpptrace/0.5.4, zstd/1.5.5, xz_utils/5.4.5, zlib/1.3.1
WARN: deprecated: 'cpp_info.build_modules' used in: xz_utils/5.4.5
WARN: deprecated: 'env_info' used in: zstd/1.5.5
WARN: deprecated: 'cpp_info.filenames' used in: cpptrace/0.5.4

======== Launching test_package ========

======== Computing dependency graph ========
Graph root
cpptrace/0.5.4 (test package): /cpptrace/test_package/conanfile.py
Requirements
cpptrace/0.5.4#2bc0b89b7a44b116a569dd116e9518fd - Cache
libdwarf/0.9.1#74f3c2940c7dca2ec082aa9a35496242 - Cache
libunwind/1.8.0#045502d366b4ce2bc52a492648e62d2b - Cache
xz_utils/5.4.5#51e5a6e6564f4ea3afd79def01f035ad - Cache
zlib/1.3.1#f52e03ae3d251dec704634230cd806a2 - Cache
zstd/1.5.5#e03fb7b37b87f0174e9db4a8407e3f4d - Cache

======== Computing necessary packages ========
Requirements
cpptrace/0.5.4#2bc0b89b7a44b116a569dd116e9518fd:3b611c2e977f189280281bc0a74f169f7e091b0a#881139a4d8619fdaaef73cd4bb16cfdc - Cache
libdwarf/0.9.1#74f3c2940c7dca2ec082aa9a35496242:4ebf043fd3e985871e510465ff0c67e1c560f73f#70443a7d30409a246b5d695eb3b5f766 - Cache
libunwind/1.8.0#045502d366b4ce2bc52a492648e62d2b:b8bd2935d210ef4550788af9f6c3d297fb0568cc#44da7e919d1e8c41a2357174679814bd - Cache
xz_utils/5.4.5#51e5a6e6564f4ea3afd79def01f035ad:9ca935e275f8163bfe39bdba58089b51be96e3b9#57ca9fd6cff7d5ede9b505f1d9c2d41d - Cache
zlib/1.3.1#f52e03ae3d251dec704634230cd806a2:9ca935e275f8163bfe39bdba58089b51be96e3b9#993ba7a01eadde7b8d1e3ecba3aeac18 - Cache
zstd/1.5.5#e03fb7b37b87f0174e9db4a8407e3f4d:e9ecd2d14baf28fa594c5dff5a85fa53ed05db21#f24a44df80ac516dcda5d1316a252f42 - Cache

======== Installing packages ========
xz_utils/5.4.5: Already installed! (1 of 6)
zlib/1.3.1: Already installed! (2 of 6)
zstd/1.5.5: Already installed! (3 of 6)
libdwarf/0.9.1: Already installed! (4 of 6)
libunwind/1.8.0: Already installed! (5 of 6)
cpptrace/0.5.4: Already installed! (6 of 6)
WARN: deprecated: Usage of deprecated Conan 1.X features that will be removed in Conan 2.X:
WARN: deprecated: 'cpp_info.names' used in: cpptrace/0.5.4, zstd/1.5.5, xz_utils/5.4.5, zlib/1.3.1
WARN: deprecated: 'cpp_info.build_modules' used in: xz_utils/5.4.5
WARN: deprecated: 'env_info' used in: zstd/1.5.5
WARN: deprecated: 'cpp_info.filenames' used in: cpptrace/0.5.4

======== Testing the package ========
Removing previously existing 'test_package' build folder: /cpptrace/test_package/build/gcc-11-armv8-gnu17-release
cpptrace/0.5.4 (test package): Test package build: build/gcc-11-armv8-gnu17-release
cpptrace/0.5.4 (test package): Test package build folder: /cpptrace/test_package/build/gcc-11-armv8-gnu17-release
cpptrace/0.5.4 (test package): Writing generators to /cpptrace/test_package/build/gcc-11-armv8-gnu17-release/generators
cpptrace/0.5.4 (test package): Generator 'CMakeDeps' calling 'generate()'
cpptrace/0.5.4 (test package): CMakeDeps necessary find_package() and targets for your CMakeLists.txt
find_package(cpptrace)
target_link_libraries(... cpptrace::cpptrace)
cpptrace/0.5.4 (test package): Generator 'CMakeToolchain' calling 'generate()'
cpptrace/0.5.4 (test package): CMakeToolchain generated: conan_toolchain.cmake
cpptrace/0.5.4 (test package): CMakeToolchain generated: CMakePresets.json
cpptrace/0.5.4 (test package): CMakeToolchain generated: ../../../CMakeUserPresets.json
cpptrace/0.5.4 (test package): Generator 'VirtualRunEnv' calling 'generate()'
cpptrace/0.5.4 (test package): Generating aggregated env files
cpptrace/0.5.4 (test package): Generated aggregated env files: ['conanrun.sh', 'conanbuild.sh']

======== Testing the package: Building ========
cpptrace/0.5.4 (test package): Calling build()
cpptrace/0.5.4 (test package): Running CMake.configure()
cpptrace/0.5.4 (test package): RUN: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/cpptrace/test_package/build/gcc-11-armv8-gnu17-release/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/cpptrace/test_package" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/cpptrace/test_package"
-- Using Conan toolchain: /cpptrace/test_package/build/gcc-11-armv8-gnu17-release/generators/conan_toolchain.cmake
-- Conan toolchain: C++ Standard 17 with extensions ON
-- The CXX compiler identification is GNU 11.4.0
-- 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
-- Conan: Target declared 'cpptrace::cpptrace'
-- Conan: Target declared 'libdwarf::libdwarf'
-- Conan: Component target declared 'zstd::libzstd_shared'
-- Conan: Target declared 'ZLIB::ZLIB'
-- Conan: Component target declared 'libunwind::unwind'
-- Conan: Component target declared 'libunwind::generic'
-- Conan: Component target declared 'libunwind::ptrace'
-- Conan: Component target declared 'libunwind::setjmp'
-- Conan: Component target declared 'libunwind::coredump'
-- Conan: Target declared 'libunwind::libunwind'
-- Conan: Target declared 'LibLZMA::LibLZMA'
-- Conan: Including build module from '/root/.conan2/p/b/xz_ut8f51a21b6eda3/p/lib/cmake/conan-official-xz_utils-variables.cmake'
-- Configuring done
-- Generating done
-- Build files have been written to: /cpptrace/test_package/build/gcc-11-armv8-gnu17-release

cpptrace/0.5.4 (test package): Running CMake.build()
cpptrace/0.5.4 (test package): RUN: cmake --build "/cpptrace/test_package/build/gcc-11-armv8-gnu17-release" -- -j12
[ 50%] Building CXX object CMakeFiles/test_package.dir/test_package.cpp.o
[100%] Linking CXX executable test_package
[100%] Built target test_package

======== Testing the package: Executing test ========
cpptrace/0.5.4 (test package): Running test()
cpptrace/0.5.4 (test package): RUN: ./test_package
Stack trace (most recent call first):
#0 0xaaaadd700bef0000 at /cpptrace/test_package/build/gcc-11-armv8-gnu17-release/test_package
#1 0xffff801573fb0000 at /lib/aarch64-linux-gnu/libc.so.6
#2 0xffff801574cb0000 at /lib/aarch64-linux-gnu/libc.so.6

</details>

Copy link
Member

@AbrilRBS AbrilRBS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your patience with this one Jeremy! :)

@jeremy-rifkin
Copy link
Contributor Author

Oh awesome thank you so much!

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 8 (2a328cee4291e902f21a1c0181186c2b78dd98f4):

  • cpptrace/0.5.4:
    All packages built successfully! (All logs)

  • cpptrace/0.5.3:
    All packages built successfully! (All logs)

  • cpptrace/0.5.2:
    All packages built successfully! (All logs)

  • cpptrace/0.5.1:
    All packages built successfully! (All logs)

  • cpptrace/0.4.1:
    All packages built successfully! (All logs)

  • cpptrace/0.4.0:
    All packages built successfully! (All logs)

  • cpptrace/0.3.1:
    All packages built successfully! (All logs)

  • cpptrace/0.3.0:
    All packages built successfully! (All logs)

  • cpptrace/0.5.0:
    All packages built successfully! (All logs)

  • cpptrace/0.2.1:
    All packages built successfully! (All logs)


Conan v2 pipeline ✔️

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

All green in build 8 (2a328cee4291e902f21a1c0181186c2b78dd98f4):

  • cpptrace/0.5.4:
    All packages built successfully! (All logs)

  • cpptrace/0.5.2:
    All packages built successfully! (All logs)

  • cpptrace/0.5.3:
    All packages built successfully! (All logs)

  • cpptrace/0.5.1:
    All packages built successfully! (All logs)

  • cpptrace/0.5.0:
    All packages built successfully! (All logs)

  • cpptrace/0.4.1:
    All packages built successfully! (All logs)

  • cpptrace/0.3.0:
    All packages built successfully! (All logs)

  • cpptrace/0.3.1:
    All packages built successfully! (All logs)

  • cpptrace/0.2.1:
    All packages built successfully! (All logs)

  • cpptrace/0.4.0:
    All packages built successfully! (All logs)

@conan-center-bot conan-center-bot merged commit 2b836e1 into conan-io:master May 6, 2024
58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add capability to choose libunwind as a setting in Conanfile
5 participants