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

hscpp: new recipe #23802

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

hscpp: new recipe #23802

wants to merge 1 commit into from

Conversation

valgur
Copy link
Contributor

@valgur valgur commented Apr 28, 2024

Adds hscpp: https://github.com/jheruty/hscpp

A library to hot-reload C++ at runtime

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ❌

Failure in build 1 (3e0fbf5489f1ced808447cd610f9e6b85a2043fb):

  • hscpp/1.0.0-alpha:
    CI failed to create some packages (All logs)

    Logs for packageID b16d29b2db331edf4e82cd0d7b301109bfc46448:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=5
    os=Linux
    [options]
    hscpp:shared=False
    
    [...]
    > cmake --build "/home/conan/workspace/prod-v1/bsr/33919/fbcdc/.conan/data/hscpp/1.0.0-alpha/_/_/build/b16d29b2db331edf4e82cd0d7b301109bfc46448/build/Release" '--' '-j3'
    -----------------
    Scanning dependencies of target hscpp-mem
    [  3%] Building CXX object src/extensions/mem/CMakeFiles/hscpp-mem.dir/src/MemoryManager.cpp.o
    Scanning dependencies of target hscpp
    [ 10%] Building CXX object src/CMakeFiles/hscpp.dir/src/compiler/Compiler.cpp.o
    [ 10%] Building CXX object src/CMakeFiles/hscpp.dir/src/compiler/CompilerCmdLine_gcc.cpp.o
    [ 14%] Linking CXX static library libhscpp-mem.a
    [ 14%] Built target hscpp-mem
    [ 17%] Building CXX object src/CMakeFiles/hscpp.dir/src/compiler/CompilerInitializeTask_gcc.cpp.o
    [ 21%] Building CXX object src/CMakeFiles/hscpp.dir/src/module/Module.cpp.o
    [ 25%] Building CXX object src/CMakeFiles/hscpp.dir/src/preprocessor/Ast.cpp.o
    [ 28%] Building CXX object src/CMakeFiles/hscpp.dir/src/preprocessor/DependencyGraph.cpp.o
    [ 32%] Building CXX object src/CMakeFiles/hscpp.dir/src/preprocessor/Interpreter.cpp.o
    [ 35%] Building CXX object src/CMakeFiles/hscpp.dir/src/preprocessor/LangError.cpp.o
    [ 39%] Building CXX object src/CMakeFiles/hscpp.dir/src/preprocessor/Lexer.cpp.o
    [ 42%] Building CXX object src/CMakeFiles/hscpp.dir/src/preprocessor/Parser.cpp.o
    [ 46%] Building CXX object src/CMakeFiles/hscpp.dir/src/preprocessor/Preprocessor.cpp.o
    [ 50%] Building CXX object src/CMakeFiles/hscpp.dir/src/preprocessor/Variant.cpp.o
    [ 53%] Building CXX object src/CMakeFiles/hscpp.dir/src/preprocessor/VarStore.cpp.o
    [ 57%] Building CXX object src/CMakeFiles/hscpp.dir/src/Config.cpp.o
    [ 60%] Building CXX object src/CMakeFiles/hscpp.dir/src/Feature.cpp.o
    [ 64%] Building CXX object src/CMakeFiles/hscpp.dir/src/FeatureManager.cpp.o
    [ 67%] Building CXX object src/CMakeFiles/hscpp.dir/src/FsPathHasher.cpp.o
    [ 71%] Building CXX object src/CMakeFiles/hscpp.dir/src/Log.cpp.o
    [ 75%] Building CXX object src/CMakeFiles/hscpp.dir/src/ModuleManager.cpp.o
    [ 78%] Building CXX object src/CMakeFiles/hscpp.dir/src/Platform.cpp.o
    [ 82%] Building CXX object src/CMakeFiles/hscpp.dir/src/ProtectedFunction.cpp.o
    [ 85%] Building CXX object src/CMakeFiles/hscpp.dir/src/Util.cpp.o
    src/CMakeFiles/hscpp.dir/build.make:328: recipe for target 'src/CMakeFiles/hscpp.dir/src/Platform.cpp.o' failed
    CMakeFiles/Makefile2:132: recipe for target 'src/CMakeFiles/hscpp.dir/all' failed
    Makefile:148: recipe for target 'all' failed
    hscpp/1.0.0-alpha: 
    In file included from /home/conan/workspace/prod-v1/bsr/33919/fbcdc/.conan/data/hscpp/1.0.0-alpha/_/_/build/b16d29b2db331edf4e82cd0d7b301109bfc46448/src/src/Platform.cpp:22:0:
    /home/conan/workspace/prod-v1/bsr/33919/fbcdc/.conan/data/hscpp/1.0.0-alpha/_/_/build/b16d29b2db331edf4e82cd0d7b301109bfc46448/src/include/hscpp/cmd-shell/CmdShell_unix.h:30:50: error: array must be initialized with a brace-enclosed initializer
             std::array<char, 512> m_ReadBuffer = { 0 };
                                                      ^
    make[2]: *** [src/CMakeFiles/hscpp.dir/src/Platform.cpp.o] Error 1
    make[2]: *** Waiting for unfinished jobs....
    make[1]: *** [src/CMakeFiles/hscpp.dir/all] Error 2
    make: *** [all] Error 2
    WARN: *** Conan 1 is legacy and on a deprecation path ***
    WARN: *** Please upgrade to Conan 2 ***
    hscpp/1.0.0-alpha: 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
    hscpp/1.0.0-alpha: 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
    hscpp/1.0.0-alpha: ERROR: Package 'b16d29b2db331edf4e82cd0d7b301109bfc46448' build failed
    hscpp/1.0.0-alpha: WARN: Build folder /home/conan/workspace/prod-v1/bsr/33919/fbcdc/.conan/data/hscpp/1.0.0-alpha/_/_/build/b16d29b2db331edf4e82cd0d7b301109bfc46448/build/Release
    ERROR: hscpp/1.0.0-alpha: Error in build() method, line 83
    	cmake.build()
    	ConanException: Error 2 while executing cmake --build "/home/conan/workspace/prod-v1/bsr/33919/fbcdc/.conan/data/hscpp/1.0.0-alpha/_/_/build/b16d29b2db331edf4e82cd0d7b301109bfc46448/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 1 (3e0fbf5489f1ced808447cd610f9e6b85a2043fb):

  • hscpp/1.0.0-alpha:
    CI failed to create some packages (All logs)

    Logs for packageID 10797922935566aded3f551407be728c9b9e8484:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.cppstd=17
    compiler.libcxx=libstdc++11
    compiler.version=11
    os=Linux
    [options]
    */*:shared=False
    
    [...]
    hscpp/1.0.0-alpha: Package hscpp/1.0.0-alpha:10797922935566aded3f551407be728c9b9e8484
    hscpp/1.0.0-alpha: Copying sources to build folder
    hscpp/1.0.0-alpha: Building your package in /home/conan/workspace/prod-v2/bsr/30491/afacb/p/b/hscpp821bc06628bcc/b
    hscpp/1.0.0-alpha: Calling generate()
    hscpp/1.0.0-alpha: Generators folder: /home/conan/workspace/prod-v2/bsr/30491/afacb/p/b/hscpp821bc06628bcc/b/build/Release/generators
    hscpp/1.0.0-alpha: CMakeToolchain generated: conan_toolchain.cmake
    hscpp/1.0.0-alpha: CMakeToolchain generated: CMakePresets.json
    hscpp/1.0.0-alpha: CMakeToolchain generated: ../../../src/CMakeUserPresets.json
    hscpp/1.0.0-alpha: CMakeDeps necessary find_package() and targets for your CMakeLists.txt
        find_package(libuuid)
        target_link_libraries(... libuuid::libuuid)
    hscpp/1.0.0-alpha: Generating aggregated env files
    hscpp/1.0.0-alpha: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
    hscpp/1.0.0-alpha: Calling build()
    hscpp/1.0.0-alpha: Running CMake.configure()
    hscpp/1.0.0-alpha: RUN: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/home/conan/workspace/prod-v2/bsr/30491/afacb/p/b/hscpp821bc06628bcc/b/build/Release/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/home/conan/workspace/prod-v2/bsr/30491/afacb/p/b/hscpp821bc06628bcc/p" -DCMAKE_POLICY_DEFAULT_CMP0077="NEW" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/home/conan/workspace/prod-v2/bsr/30491/afacb/p/b/hscpp821bc06628bcc/b"
    -- Using Conan toolchain: /home/conan/workspace/prod-v2/bsr/30491/afacb/p/b/hscpp821bc06628bcc/b/build/Release/generators/conan_toolchain.cmake
    -- Conan toolchain: Setting CMAKE_POSITION_INDEPENDENT_CODE=ON (options.fPIC)
    -- Conan toolchain: C++ Standard 17 with extensions OFF
    -- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF
    -- The CXX compiler identification is GNU 11.4.0
    -- Check for working CXX compiler: /usr/local/bin/c++
    -- Check for working CXX compiler: /usr/local/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Conan: Target declared 'libuuid::libuuid'
    CMake Error at CMakeLists.txt:6 (add_library):
      add_library cannot create ALIAS target "uuid" because target
      "libuuid::libuuid" is imported but not globally visible.
    
    
    -- The C compiler identification is GNU 11.4.0
    -- Check for working C compiler: /usr/local/bin/cc
    -- Check for working C compiler: /usr/local/bin/cc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- hscpp CMAKE_CXX_STANDARD set to 17.
    -- Configuring incomplete, errors occurred!
    See also "/home/conan/workspace/prod-v2/bsr/30491/afacb/p/b/hscpp821bc06628bcc/b/build/Release/CMakeFiles/CMakeOutput.log".
    
    hscpp/1.0.0-alpha: ERROR: 
    Package '10797922935566aded3f551407be728c9b9e8484' build failed
    hscpp/1.0.0-alpha: WARN: Build folder /home/conan/workspace/prod-v2/bsr/30491/afacb/p/b/hscpp821bc06628bcc/b/build/Release
    ERROR: hscpp/1.0.0-alpha: Error in build() method, line 82
    	cmake.configure(build_script_folder=self.source_path.parent)
    	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.

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.

2 participants