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

fibertaskinglib: add recipe #24289

Closed
wants to merge 2 commits into from

Conversation

toge
Copy link
Contributor

@toge toge commented Jun 11, 2024

Specify library name and version: fibertaskinglib/

https://github.com/RichieSams/FiberTaskingLib/

FiberTaskingLib provide boost_context library for internal use.
Because it seems to be modified version of upstream,
this recipe provide ftl library with boost_context library.


@conan-center-bot

This comment has been minimized.

"with_cpp17": [True, False],
}
default_options = {
"with_cpp17": False,
Copy link
Member

Choose a reason for hiding this comment

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

I see why you didn't rely in the cppstd from the compiler, but I fear this might be an antipattern, let me quickly check with the team :)

@AbrilRBS AbrilRBS self-assigned this Jun 11, 2024
@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ❌

Failure in build 4 (0aa8bee36089e80de86fe407946feae78736c14b):

  • fibertaskinglib/2.0.4:
    CI failed to create some packages (All logs)

    Logs for packageID 9bfdcfa2bb925892ecf42e2a018a3f3529826676:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=7
    os=Linux
    
    [...]
    �[01m�[K/usr/include/c++/7/atomic:1168:5:�[m�[K �[01;36m�[Knote: �[m�[Kcandidate: template<class _ITp> bool std::atomic_compare_exchange_weak(std::atomic<_ITp>*, _ITp*, _ITp)
         �[01;36m�[Katomic_compare_exchange_weak�[m�[K(atomic<_ITp>* __a,
         �[01;36m�[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~�[m�[K
    �[01m�[K/usr/include/c++/7/atomic:1168:5:�[m�[K �[01;36m�[Knote: �[m�[K  template argument deduction/substitution failed:
    �[01m�[K/home/conan/workspace/prod-v1/bsr/56179/aebad/.conan/data/fibertaskinglib/2.0.4/_/_/build/9bfdcfa2bb925892ecf42e2a018a3f3529826676/src/source/fibtex.cpp:180:63:�[m�[K �[01;36m�[Knote: �[m�[K  deduced conflicting types for parameter ‘�[01m�[K_ITp�[m�[K’ (‘�[01m�[Klong unsigned int�[m�[K’ and ‘�[01m�[Kint�[m�[K’)
        if (std::atomic_compare_exchange_weak(&m_word, &expected, 0�[01;36m�[K)�[m�[K) {
                                                                   �[01;36m�[K^�[m�[K
    In file included from �[01m�[K/home/conan/workspace/prod-v1/bsr/56179/aebad/.conan/data/fibertaskinglib/2.0.4/_/_/build/9bfdcfa2bb925892ecf42e2a018a3f3529826676/src/source/../include/ftl/fibtex.h:27:0�[m�[K,
                     from �[01m�[K/home/conan/workspace/prod-v1/bsr/56179/aebad/.conan/data/fibertaskinglib/2.0.4/_/_/build/9bfdcfa2bb925892ecf42e2a018a3f3529826676/src/source/fibtex.cpp:58�[m�[K:
    �[01m�[K/usr/include/c++/7/atomic:1178:5:�[m�[K �[01;36m�[Knote: �[m�[Kcandidate: template<class _ITp> bool std::atomic_compare_exchange_weak(volatile std::atomic<_ITp>*, _ITp*, _ITp)
         �[01;36m�[Katomic_compare_exchange_weak�[m�[K(volatile atomic<_ITp>* __a,
         �[01;36m�[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~�[m�[K
    �[01m�[K/usr/include/c++/7/atomic:1178:5:�[m�[K �[01;36m�[Knote: �[m�[K  template argument deduction/substitution failed:
    �[01m�[K/home/conan/workspace/prod-v1/bsr/56179/aebad/.conan/data/fibertaskinglib/2.0.4/_/_/build/9bfdcfa2bb925892ecf42e2a018a3f3529826676/src/source/fibtex.cpp:180:63:�[m�[K �[01;36m�[Knote: �[m�[K  deduced conflicting types for parameter ‘�[01m�[K_ITp�[m�[K’ (‘�[01m�[Klong unsigned int�[m�[K’ and ‘�[01m�[Kint�[m�[K’)
        if (std::atomic_compare_exchange_weak(&m_word, &expected, 0�[01;36m�[K)�[m�[K) {
                                                                   �[01;36m�[K^�[m�[K
    In file included from �[01m�[K/usr/include/c++/7/memory:82:0�[m�[K,
                     from �[01m�[K/home/conan/workspace/prod-v1/bsr/56179/aebad/.conan/data/fibertaskinglib/2.0.4/_/_/build/9bfdcfa2bb925892ecf42e2a018a3f3529826676/src/source/../include/ftl/wait_free_queue.h:36�[m�[K,
                     from �[01m�[K/home/conan/workspace/prod-v1/bsr/56179/aebad/.conan/data/fibertaskinglib/2.0.4/_/_/build/9bfdcfa2bb925892ecf42e2a018a3f3529826676/src/source/../include/ftl/task_scheduler.h:31�[m�[K,
                     from �[01m�[K/home/conan/workspace/prod-v1/bsr/56179/aebad/.conan/data/fibertaskinglib/2.0.4/_/_/build/9bfdcfa2bb925892ecf42e2a018a3f3529826676/src/source/fibtex.cpp:61�[m�[K:
    �[01m�[K/usr/include/c++/7/bits/shared_ptr_atomic.h:263:5:�[m�[K �[01;36m�[Knote: �[m�[Kcandidate: template<class _Tp> bool std::atomic_compare_exchange_weak(std::shared_ptr<_Tp>*, std::shared_ptr<_Tp>*, std::shared_ptr<_Tp>)
         �[01;36m�[Katomic_compare_exchange_weak�[m�[K(shared_ptr<_Tp>* __p, shared_ptr<_Tp>* __v,
         �[01;36m�[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~�[m�[K
    �[01m�[K/usr/include/c++/7/bits/shared_ptr_atomic.h:263:5:�[m�[K �[01;36m�[Knote: �[m�[K  template argument deduction/substitution failed:
    �[01m�[K/home/conan/workspace/prod-v1/bsr/56179/aebad/.conan/data/fibertaskinglib/2.0.4/_/_/build/9bfdcfa2bb925892ecf42e2a018a3f3529826676/src/source/fibtex.cpp:180:63:�[m�[K �[01;36m�[Knote: �[m�[K  ‘�[01m�[Kstd::atomic<long unsigned int>�[m�[K’ is not derived from ‘�[01m�[Kstd::shared_ptr<_Tp>�[m�[K’
        if (std::atomic_compare_exchange_weak(&m_word, &expected, 0�[01;36m�[K)�[m�[K) {
                                                                   �[01;36m�[K^�[m�[K
    In file included from �[01m�[K/usr/include/c++/7/memory:82:0�[m�[K,
                     from �[01m�[K/home/conan/workspace/prod-v1/bsr/56179/aebad/.conan/data/fibertaskinglib/2.0.4/_/_/build/9bfdcfa2bb925892ecf42e2a018a3f3529826676/src/source/../include/ftl/wait_free_queue.h:36�[m�[K,
                     from �[01m�[K/home/conan/workspace/prod-v1/bsr/56179/aebad/.conan/data/fibertaskinglib/2.0.4/_/_/build/9bfdcfa2bb925892ecf42e2a018a3f3529826676/src/source/../include/ftl/task_scheduler.h:31�[m�[K,
                     from �[01m�[K/home/conan/workspace/prod-v1/bsr/56179/aebad/.conan/data/fibertaskinglib/2.0.4/_/_/build/9bfdcfa2bb925892ecf42e2a018a3f3529826676/src/source/fibtex.cpp:61�[m�[K:
    �[01m�[K/usr/include/c++/7/bits/shared_ptr_atomic.h:316:5:�[m�[K �[01;36m�[Knote: �[m�[Kcandidate: template<class _Tp, __gnu_cxx::_Lock_policy _Lp> bool std::atomic_compare_exchange_weak(std::__shared_ptr<_Tp, _Lp>*, std::__shared_ptr<_Tp, _Lp>*, std::__shared_ptr<_Tp, _Lp>)
         �[01;36m�[Katomic_compare_exchange_weak�[m�[K(__shared_ptr<_Tp, _Lp>* __p,
         �[01;36m�[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~�[m�[K
    �[01m�[K/usr/include/c++/7/bits/shared_ptr_atomic.h:316:5:�[m�[K �[01;36m�[Knote: �[m�[K  template argument deduction/substitution failed:
    �[01m�[K/home/conan/workspace/prod-v1/bsr/56179/aebad/.conan/data/fibertaskinglib/2.0.4/_/_/build/9bfdcfa2bb925892ecf42e2a018a3f3529826676/src/source/fibtex.cpp:180:63:�[m�[K �[01;36m�[Knote: �[m�[K  ‘�[01m�[Kstd::atomic<long unsigned int>�[m�[K’ is not derived from ‘�[01m�[Kstd::__shared_ptr<_Tp, _Lp>�[m�[K’
        if (std::atomic_compare_exchange_weak(&m_word, &expected, 0�[01;36m�[K)�[m�[K) {
                                                                   �[01;36m�[K^�[m�[K
    make[2]: *** [source/CMakeFiles/ftl.dir/fibtex.cpp.o] Error 1
    make[2]: *** Waiting for unfinished jobs....
    make[1]: *** [source/CMakeFiles/ftl.dir/all] Error 2
    make: *** [all] Error 2
    WARN: *** Conan 1 is legacy and on a deprecation path ***
    WARN: *** Please upgrade to Conan 2 ***
    fibertaskinglib/2.0.4: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    fibertaskinglib/2.0.4: ERROR: Package '9bfdcfa2bb925892ecf42e2a018a3f3529826676' build failed
    fibertaskinglib/2.0.4: WARN: Build folder /home/conan/workspace/prod-v1/bsr/56179/aebad/.conan/data/fibertaskinglib/2.0.4/_/_/build/9bfdcfa2bb925892ecf42e2a018a3f3529826676/build/Release
    ERROR: fibertaskinglib/2.0.4: Error in build() method, line 81
    	cmake.build()
    	ConanException: Error 2 while executing cmake --build "/home/conan/workspace/prod-v1/bsr/56179/aebad/.conan/data/fibertaskinglib/2.0.4/_/_/build/9bfdcfa2bb925892ecf42e2a018a3f3529826676/build/Release" '--' '-j3'
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.


Conan v2 pipeline ❌

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

The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping @conan-io/barbarians on the PR and we will help you.

See details:

Failure in build 4 (0aa8bee36089e80de86fe407946feae78736c14b):

  • fibertaskinglib/2.0.4:
    CI failed to create some packages (All logs)

    Logs for packageID b2e4d90c289fe82ea4d416be7276bd6f2fc70370:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=apple-clang
    compiler.cppstd=17
    compiler.libcxx=libc++
    compiler.version=13
    os=Macos
    [options]
    */*:shared=False
    
    [...]
    fibertaskinglib/2.0.4: Building your package in /Users/jenkins/workspace/prod-v2/bsr/50202/cdffe/p/b/fibere82ddad56f740/b
    fibertaskinglib/2.0.4: Calling generate()
    fibertaskinglib/2.0.4: Generators folder: /Users/jenkins/workspace/prod-v2/bsr/50202/cdffe/p/b/fibere82ddad56f740/b/build/Release/generators
    fibertaskinglib/2.0.4: CMakeToolchain generated: conan_toolchain.cmake
    fibertaskinglib/2.0.4: CMakeToolchain generated: /Users/jenkins/workspace/prod-v2/bsr/50202/cdffe/p/b/fibere82ddad56f740/b/build/Release/generators/CMakePresets.json
    fibertaskinglib/2.0.4: CMakeToolchain generated: /Users/jenkins/workspace/prod-v2/bsr/50202/cdffe/p/b/fibere82ddad56f740/b/src/CMakeUserPresets.json
    fibertaskinglib/2.0.4: Generating aggregated env files
    fibertaskinglib/2.0.4: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
    fibertaskinglib/2.0.4: Calling build()
    fibertaskinglib/2.0.4: Apply patch (conan): use cci's package
    fibertaskinglib/2.0.4: Apply patch (portability): add installer
    fibertaskinglib/2.0.4: Running CMake.configure()
    fibertaskinglib/2.0.4: RUN: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/Users/jenkins/workspace/prod-v2/bsr/50202/cdffe/p/b/fibere82ddad56f740/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/Users/jenkins/workspace/prod-v2/bsr/50202/cdffe/p/b/fibere82ddad56f740/b/src"
    -- Using Conan toolchain: /Users/jenkins/workspace/prod-v2/bsr/50202/cdffe/p/b/fibere82ddad56f740/b/build/Release/generators/conan_toolchain.cmake
    -- Conan toolchain: C++ Standard 17 with extensions OFF
    -- The CXX compiler identification is AppleClang 13.0.0.13000029
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /Applications/conan/xcode/13.0/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- The ASM compiler identification is AppleClang
    -- Found assembler: /Applications/conan/xcode/13.0/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
    -- -- System processor: x86_64
    -- -- Target processor: x86_64
    -- -- Target asm      : x86_64_sysv_macho_gas.S
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
    -- Looking for pthread_create in pthreads
    -- Looking for pthread_create in pthreads - not found
    -- Looking for pthread_create in pthread
    -- Looking for pthread_create in pthread - not found
    -- Check if compiler accepts -pthread
    -- Check if compiler accepts -pthread - no
    CMake Error at /Users/jenkins/workspace/prod-v2/bsr/50202/cdffe/p/cmake0979532776192/p/CMake.app/Contents/share/cmake-3.29/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
      Could NOT find Threads (missing: Threads_FOUND)
    Call Stack (most recent call first):
      /Users/jenkins/workspace/prod-v2/bsr/50202/cdffe/p/cmake0979532776192/p/CMake.app/Contents/share/cmake-3.29/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
      /Users/jenkins/workspace/prod-v2/bsr/50202/cdffe/p/cmake0979532776192/p/CMake.app/Contents/share/cmake-3.29/Modules/FindThreads.cmake:226 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
      source/CMakeLists.txt:30 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    
    fibertaskinglib/2.0.4: ERROR: 
    Package 'b2e4d90c289fe82ea4d416be7276bd6f2fc70370' build failed
    fibertaskinglib/2.0.4: WARN: Build folder /Users/jenkins/workspace/prod-v2/bsr/50202/cdffe/p/b/fibere82ddad56f740/b/build/Release
    ERROR: fibertaskinglib/2.0.4: Error in build() method, line 80
    	cmake.configure()
    	ConanException: Error 1 while executing
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

@AbrilRBS
Copy link
Member

@toge ping me if you need help solving the compilation issues :)

@toge toge closed this Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants