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

cppserver: add v1.0.4.1, add missing transitive_headers=True #25379

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

valgur
Copy link
Contributor

@valgur valgur commented Sep 24, 2024

Summary

Changes to recipe: cppserver/1.0.4.1

Motivation

Updates the recipe to the latest version and fixes minor remaining issues on Conan v2.

chronoxor/CppServer@1.0.2.0...1.0.4.1

Details


@conan-center-bot

This comment has been minimized.

Hopefully fixes
source/server/http/http_server.cpp:23:43: error: unable to find string literal operator 'operator""_format' with 'const char [11]', 'long unsigned int' arguments
   23 |         header.SetHeader("Cache-Control", "max-age={}"_format(timespan.seconds()));
@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ❌

Failure in build 2 (fc4464d012339fd61c4bda57cff46bca21329d18):

  • cppserver/1.0.4.1:
    Didn't run or was cancelled before finishing

  • cppserver/1.0.2.0:
    Didn't run or was cancelled before finishing

  • cppserver/1.0.1.0:
    Didn't run or was cancelled before finishing

  • cppserver/1.0.0.0:
    CI failed to create some packages (All logs)

    Logs for packageID 9825546ae0760e623621c378653b5b071d57901e:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=9
    os=Linux
    [options]
    cppserver:shared=False
    
    [...]
    -- OpenSSL version: 3.3.2 /home/conan/workspace/prod-v1/bsr/100607/cdaae/.conan/data/openssl/3.3.2/_/_/package/3b92fb92d86b5880d7fcd3124cd3e37e04f7e25f/include openssl::openssl
    -- Conan: Target declared 'asio::asio'
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/conan/workspace/prod-v1/bsr/100607/cdaae/.conan/data/cppserver/1.0.0.0/_/_/build/9825546ae0760e623621c378653b5b071d57901e/build/Release
    cppserver/1.0.0.0: CMake command: cmake --build "/home/conan/workspace/prod-v1/bsr/100607/cdaae/.conan/data/cppserver/1.0.0.0/_/_/build/9825546ae0760e623621c378653b5b071d57901e/build/Release" '--' '-j3'
    
    ----Running------
    > . "/home/conan/workspace/prod-v1/bsr/100607/cdaae/.conan/data/cppserver/1.0.0.0/_/_/build/9825546ae0760e623621c378653b5b071d57901e/build/Release/generators/conanbuild.sh" && cmake --build "/home/conan/workspace/prod-v1/bsr/100607/cdaae/.conan/data/cppserver/1.0.0.0/_/_/build/9825546ae0760e623621c378653b5b071d57901e/build/Release" '--' '-j3'
    -----------------
    Scanning dependencies of target cppserver
    [  3%] Building CXX object CMakeFiles/cppserver.dir/source/server/asio/service.cpp.o
    [  6%] Building CXX object CMakeFiles/cppserver.dir/source/server/asio/ssl_client.cpp.o
    [ 10%] Building CXX object CMakeFiles/cppserver.dir/source/server/asio/ssl_context.cpp.o
    [ 13%] Building CXX object CMakeFiles/cppserver.dir/source/server/asio/ssl_server.cpp.o
    [ 17%] Building CXX object CMakeFiles/cppserver.dir/source/server/asio/ssl_session.cpp.o
    [ 20%] Building CXX object CMakeFiles/cppserver.dir/source/server/asio/tcp_client.cpp.o
    [ 24%] Building CXX object CMakeFiles/cppserver.dir/source/server/asio/tcp_resolver.cpp.o
    [ 27%] Building CXX object CMakeFiles/cppserver.dir/source/server/asio/tcp_server.cpp.o
    [ 31%] Building CXX object CMakeFiles/cppserver.dir/source/server/asio/tcp_session.cpp.o
    [ 34%] Building CXX object CMakeFiles/cppserver.dir/source/server/asio/timer.cpp.o
    [ 37%] Building CXX object CMakeFiles/cppserver.dir/source/server/asio/udp_client.cpp.o
    [ 41%] Building CXX object CMakeFiles/cppserver.dir/source/server/asio/udp_resolver.cpp.o
    [ 44%] Building CXX object CMakeFiles/cppserver.dir/source/server/asio/udp_server.cpp.o
    [ 48%] Building CXX object CMakeFiles/cppserver.dir/source/server/http/http_client.cpp.o
    [ 51%] Building CXX object CMakeFiles/cppserver.dir/source/server/http/http_request.cpp.o
    [ 55%] Building CXX object CMakeFiles/cppserver.dir/source/server/http/http_response.cpp.o
    [ 58%] Building CXX object CMakeFiles/cppserver.dir/source/server/http/http_server.cpp.o
    [ 62%] Building CXX object CMakeFiles/cppserver.dir/source/server/http/http_session.cpp.o
    [ 65%] Building CXX object CMakeFiles/cppserver.dir/source/server/http/https_client.cpp.o
    cppserver/1.0.0.0: 
    /home/conan/workspace/prod-v1/bsr/100607/cdaae/.conan/data/cppserver/1.0.0.0/_/_/build/9825546ae0760e623621c378653b5b071d57901e/src/source/server/http/http_server.cpp: In lambda function:
    /home/conan/workspace/prod-v1/bsr/100607/cdaae/.conan/data/cppserver/1.0.0.0/_/_/build/9825546ae0760e623621c378653b5b071d57901e/src/source/server/http/http_server.cpp:23:43: error: unable to find string literal operator ‘operator""_format’ with ‘const char [11]’, ‘long unsigned int’ arguments
       23 |         header.SetHeader("Cache-Control", "max-age={}"_format(timespan.seconds()));
          |                                           ^~~~~~~~~~~~~~~~~~~
    make[2]: *** [CMakeFiles/cppserver.dir/build.make:290: CMakeFiles/cppserver.dir/source/server/http/http_server.cpp.o] Error 1
    make[2]: *** Waiting for unfinished jobs....
    make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/cppserver.dir/all] Error 2
    make: *** [Makefile:149: all] Error 2
    WARN: **************************************************
    WARN: *** Conan 1 is legacy and on a deprecation path **
    WARN: *********** Please upgrade to Conan 2 ************
    WARN: **************************************************
    cppserver/1.0.0.0: 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
    cppserver/1.0.0.0: 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
    cppserver/1.0.0.0: ERROR: Package '9825546ae0760e623621c378653b5b071d57901e' build failed
    cppserver/1.0.0.0: WARN: Build folder /home/conan/workspace/prod-v1/bsr/100607/cdaae/.conan/data/cppserver/1.0.0.0/_/_/build/9825546ae0760e623621c378653b5b071d57901e/build/Release
    ERROR: cppserver/1.0.0.0: Error in build() method, line 95
    	cmake.build()
    	ConanException: Error 2 while executing cmake --build "/home/conan/workspace/prod-v1/bsr/100607/cdaae/.conan/data/cppserver/1.0.0.0/_/_/build/9825546ae0760e623621c378653b5b071d57901e/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.

Failure in build 2 (fc4464d012339fd61c4bda57cff46bca21329d18):

  • cppserver/1.0.4.1:
    Didn't run or was cancelled before finishing

  • cppserver/1.0.2.0:
    Didn't run or was cancelled before finishing

  • cppserver/1.0.1.0:
    Didn't run or was cancelled before finishing

  • cppserver/1.0.0.0:
    CI failed to create some packages (All logs)

    Logs for packageID 61fd522d9ddea7953adc360f76686059fbd3c78f:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.cppstd=17
    compiler.libcxx=libstdc++11
    compiler.version=11
    os=Linux
    [options]
    */*:shared=False
    
    [...]
    -- Conan: Including build module from '/home/conan/workspace/prod-v2/bsr/89743/ecfba/p/opens24deb19120119/p/lib/cmake/conan-official-openssl-variables.cmake'
    -- Conan: Target declared 'cppcommon::cppcommon'
    -- Conan: Component target declared 'fmt::fmt'
    -- Conan: Target declared 'libuuid::libuuid'
    -- OpenSSL version: 3.3.2 /home/conan/workspace/prod-v2/bsr/89743/ecfba/p/opens24deb19120119/p/include openssl::openssl
    -- Conan: Target declared 'asio::asio'
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/conan/workspace/prod-v2/bsr/89743/ecfba/p/b/cppse08abb5a65806b/b/build/Release
    
    cppserver/1.0.0.0: Running CMake.build()
    cppserver/1.0.0.0: RUN: cmake --build "/home/conan/workspace/prod-v2/bsr/89743/ecfba/p/b/cppse08abb5a65806b/b/build/Release" -- -j3
    Scanning dependencies of target cppserver
    [  3%] Building CXX object CMakeFiles/cppserver.dir/source/server/asio/service.cpp.o
    [  6%] Building CXX object CMakeFiles/cppserver.dir/source/server/asio/ssl_client.cpp.o
    [ 10%] Building CXX object CMakeFiles/cppserver.dir/source/server/asio/ssl_context.cpp.o
    [ 13%] Building CXX object CMakeFiles/cppserver.dir/source/server/asio/ssl_server.cpp.o
    [ 17%] Building CXX object CMakeFiles/cppserver.dir/source/server/asio/ssl_session.cpp.o
    [ 20%] Building CXX object CMakeFiles/cppserver.dir/source/server/asio/tcp_client.cpp.o
    [ 24%] Building CXX object CMakeFiles/cppserver.dir/source/server/asio/tcp_resolver.cpp.o
    [ 27%] Building CXX object CMakeFiles/cppserver.dir/source/server/asio/tcp_server.cpp.o
    [ 31%] Building CXX object CMakeFiles/cppserver.dir/source/server/asio/tcp_session.cpp.o
    [ 34%] Building CXX object CMakeFiles/cppserver.dir/source/server/asio/timer.cpp.o
    [ 37%] Building CXX object CMakeFiles/cppserver.dir/source/server/asio/udp_client.cpp.o
    [ 41%] Building CXX object CMakeFiles/cppserver.dir/source/server/asio/udp_resolver.cpp.o
    [ 44%] Building CXX object CMakeFiles/cppserver.dir/source/server/asio/udp_server.cpp.o
    [ 48%] Building CXX object CMakeFiles/cppserver.dir/source/server/http/http_client.cpp.o
    [ 51%] Building CXX object CMakeFiles/cppserver.dir/source/server/http/http_request.cpp.o
    [ 55%] Building CXX object CMakeFiles/cppserver.dir/source/server/http/http_response.cpp.o
    [ 58%] Building CXX object CMakeFiles/cppserver.dir/source/server/http/http_server.cpp.o
    [ 62%] Building CXX object CMakeFiles/cppserver.dir/source/server/http/http_session.cpp.o
    [ 65%] Building CXX object CMakeFiles/cppserver.dir/source/server/http/https_client.cpp.o
    /home/conan/workspace/prod-v2/bsr/89743/ecfba/p/b/cppse08abb5a65806b/b/src/source/server/http/http_server.cpp: In lambda function:
    /home/conan/workspace/prod-v2/bsr/89743/ecfba/p/b/cppse08abb5a65806b/b/src/source/server/http/http_server.cpp:23:43: error: unable to find string literal operator 'operator""_format' with 'const char [11]', 'long unsigned int' arguments
       23 |         header.SetHeader("Cache-Control", "max-age={}"_format(timespan.seconds()));
          |                                           ^~~~~~~~~~~~~~~~~~~
    CMakeFiles/cppserver.dir/build.make:270: recipe for target 'CMakeFiles/cppserver.dir/source/server/http/http_server.cpp.o' failed
    make[2]: *** [CMakeFiles/cppserver.dir/source/server/http/http_server.cpp.o] Error 1
    make[2]: *** Waiting for unfinished jobs....
    CMakeFiles/Makefile2:75: recipe for target 'CMakeFiles/cppserver.dir/all' failed
    make[1]: *** [CMakeFiles/cppserver.dir/all] Error 2
    Makefile:129: recipe for target 'all' failed
    make: *** [all] Error 2
    
    cppserver/1.0.0.0: ERROR: 
    Package '61fd522d9ddea7953adc360f76686059fbd3c78f' build failed
    cppserver/1.0.0.0: WARN: Build folder /home/conan/workspace/prod-v2/bsr/89743/ecfba/p/b/cppse08abb5a65806b/b/build/Release
    ERROR: cppserver/1.0.0.0: Error in build() method, line 95
    	cmake.build()
    	ConanException: Error 2 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.

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