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

libprotobuf-mutator: migrate to Conan v2 #18796

Closed
wants to merge 14 commits into from

Conversation

valgur
Copy link
Contributor

@valgur valgur commented Jul 22, 2023

.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@valgur
Copy link
Contributor Author

valgur commented Jul 26, 2023

Closing temporarily to avoid unnecessary load on the CI. Will reopen when I'm actively working on the PR again.

@conan-center-bot

This comment has been minimized.

@stale
Copy link

stale bot commented Sep 17, 2023

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Sep 17, 2023
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@valgur valgur force-pushed the migrate/libprotobuf-mutator branch from 0e23c24 to 05c87ea Compare November 4, 2023 14:37
@conan-center-bot

This comment has been minimized.

@valgur valgur force-pushed the migrate/libprotobuf-mutator branch from 3fd0b4b to e91ac84 Compare November 6, 2023 10:48
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@valgur valgur force-pushed the migrate/libprotobuf-mutator branch from f5fadda to ebcea24 Compare January 20, 2024 10:52
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

Copy link
Contributor

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ❌

Failure in build 1 (75cc74612ef8996d22753a67c217020fd0a84934):

  • libprotobuf-mutator/1.3:
    CI failed to create some packages (All logs)

    Logs for packageID d57cce5de2ac7417157d4464af100e945454e08c:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=9
    os=Linux
    [options]
    libprotobuf-mutator:shared=False
    
    [...]
    > . "/home/conan/workspace/prod-v1/bsr/51485/adbee/.conan/data/libprotobuf-mutator/1.3/_/_/build/d57cce5de2ac7417157d4464af100e945454e08c/build/Release/generators/conanbuild.sh" && cmake --install "/home/conan/workspace/prod-v1/bsr/51485/adbee/.conan/data/libprotobuf-mutator/1.3/_/_/build/d57cce5de2ac7417157d4464af100e945454e08c/build/Release" --prefix "/home/conan/workspace/prod-v1/bsr/51485/adbee/.conan/data/libprotobuf-mutator/1.3/_/_/package/d57cce5de2ac7417157d4464af100e945454e08c"
    -----------------
    -- Install configuration: "Release"
    -- Installing: /home/conan/workspace/prod-v1/bsr/51485/adbee/.conan/data/libprotobuf-mutator/1.3/_/_/package/d57cce5de2ac7417157d4464af100e945454e08c/lib/libprotobuf-mutator-libfuzzer.a
    -- Installing: /home/conan/workspace/prod-v1/bsr/51485/adbee/.conan/data/libprotobuf-mutator/1.3/_/_/package/d57cce5de2ac7417157d4464af100e945454e08c/lib/libprotobuf-mutator.a
    -- Installing: /home/conan/workspace/prod-v1/bsr/51485/adbee/.conan/data/libprotobuf-mutator/1.3/_/_/package/d57cce5de2ac7417157d4464af100e945454e08c/lib/cmake/libprotobuf-mutator/libprotobuf-mutatorTargets.cmake
    -- Installing: /home/conan/workspace/prod-v1/bsr/51485/adbee/.conan/data/libprotobuf-mutator/1.3/_/_/package/d57cce5de2ac7417157d4464af100e945454e08c/lib/cmake/libprotobuf-mutator/libprotobuf-mutatorTargets-release.cmake
    -- Installing: /home/conan/workspace/prod-v1/bsr/51485/adbee/.conan/data/libprotobuf-mutator/1.3/_/_/package/d57cce5de2ac7417157d4464af100e945454e08c/lib/cmake/libprotobuf-mutator/libprotobuf-mutatorConfig.cmake
    -- Installing: /home/conan/workspace/prod-v1/bsr/51485/adbee/.conan/data/libprotobuf-mutator/1.3/_/_/package/d57cce5de2ac7417157d4464af100e945454e08c/OFF/libprotobuf-mutator.pc
    -- Installing: /home/conan/workspace/prod-v1/bsr/51485/adbee/.conan/data/libprotobuf-mutator/1.3/_/_/package/d57cce5de2ac7417157d4464af100e945454e08c/include/libprotobuf-mutator/port
    -- Installing: /home/conan/workspace/prod-v1/bsr/51485/adbee/.conan/data/libprotobuf-mutator/1.3/_/_/package/d57cce5de2ac7417157d4464af100e945454e08c/include/libprotobuf-mutator/port/protobuf.h
    -- Installing: /home/conan/workspace/prod-v1/bsr/51485/adbee/.conan/data/libprotobuf-mutator/1.3/_/_/package/d57cce5de2ac7417157d4464af100e945454e08c/include/libprotobuf-mutator/port/gtest.h
    -- Installing: /home/conan/workspace/prod-v1/bsr/51485/adbee/.conan/data/libprotobuf-mutator/1.3/_/_/package/d57cce5de2ac7417157d4464af100e945454e08c/include/libprotobuf-mutator/src
    -- Installing: /home/conan/workspace/prod-v1/bsr/51485/adbee/.conan/data/libprotobuf-mutator/1.3/_/_/package/d57cce5de2ac7417157d4464af100e945454e08c/include/libprotobuf-mutator/src/text_format.h
    -- Installing: /home/conan/workspace/prod-v1/bsr/51485/adbee/.conan/data/libprotobuf-mutator/1.3/_/_/package/d57cce5de2ac7417157d4464af100e945454e08c/include/libprotobuf-mutator/src/field_instance.h
    -- Installing: /home/conan/workspace/prod-v1/bsr/51485/adbee/.conan/data/libprotobuf-mutator/1.3/_/_/package/d57cce5de2ac7417157d4464af100e945454e08c/include/libprotobuf-mutator/src/random.h
    -- Installing: /home/conan/workspace/prod-v1/bsr/51485/adbee/.conan/data/libprotobuf-mutator/1.3/_/_/package/d57cce5de2ac7417157d4464af100e945454e08c/include/libprotobuf-mutator/src/binary_format.h
    -- Installing: /home/conan/workspace/prod-v1/bsr/51485/adbee/.conan/data/libprotobuf-mutator/1.3/_/_/package/d57cce5de2ac7417157d4464af100e945454e08c/include/libprotobuf-mutator/src/weighted_reservoir_sampler.h
    -- Installing: /home/conan/workspace/prod-v1/bsr/51485/adbee/.conan/data/libprotobuf-mutator/1.3/_/_/package/d57cce5de2ac7417157d4464af100e945454e08c/include/libprotobuf-mutator/src/mutator.h
    -- Installing: /home/conan/workspace/prod-v1/bsr/51485/adbee/.conan/data/libprotobuf-mutator/1.3/_/_/package/d57cce5de2ac7417157d4464af100e945454e08c/include/libprotobuf-mutator/src/utf8_fix.h
    -- Installing: /home/conan/workspace/prod-v1/bsr/51485/adbee/.conan/data/libprotobuf-mutator/1.3/_/_/package/d57cce5de2ac7417157d4464af100e945454e08c/include/libprotobuf-mutator/src/libfuzzer
    -- Installing: /home/conan/workspace/prod-v1/bsr/51485/adbee/.conan/data/libprotobuf-mutator/1.3/_/_/package/d57cce5de2ac7417157d4464af100e945454e08c/include/libprotobuf-mutator/src/libfuzzer/libfuzzer_mutator.h
    -- Installing: /home/conan/workspace/prod-v1/bsr/51485/adbee/.conan/data/libprotobuf-mutator/1.3/_/_/package/d57cce5de2ac7417157d4464af100e945454e08c/include/libprotobuf-mutator/src/libfuzzer/libfuzzer_macro.h
    [HOOK - conan-center.py] post_package(): [PACKAGE LICENSE (KB-H012)] OK
    [HOOK - conan-center.py] post_package(): [DEFAULT PACKAGE LAYOUT (KB-H013)] If you are trying to package a tool put all the contents under the 'bin' folder
    [HOOK - conan-center.py] post_package(): [MATCHING CONFIGURATION (KB-H014)] OK
    [HOOK - conan-center.py] post_package(): [SHARED ARTIFACTS (KB-H015)] OK
    [HOOK - conan-center.py] post_package(): [STATIC ARTIFACTS (KB-H074)] OK
    [HOOK - conan-center.py] post_package(): [EITHER STATIC OR SHARED OF EACH LIB (KB-H076)] OK
    [HOOK - conan-center.py] post_package(): [CMAKE-MODULES-CONFIG-FILES (KB-H016)] OK
    [HOOK - conan-center.py] post_package(): [PDB FILES NOT ALLOWED (KB-H017)] OK
    [HOOK - conan-center.py] post_package(): [LIBTOOL FILES PRESENCE (KB-H018)] OK
    [HOOK - conan-center.py] post_package(): [MS RUNTIME FILES (KB-H021)] OK
    [HOOK - conan-center.py] post_package(): [SHORT_PATHS USAGE (KB-H066)] OK
    [HOOK - conan-center.py] post_package(): [MISSING SYSTEM LIBS (KB-H043)] OK
    [HOOK - conan-center.py] post_package(): [APPLE RELOCATABLE SHARED LIBS (KB-H077)] OK
    CMake Warning:
      Manually-specified variables were not used by the project:
    
        CMAKE_POLICY_DEFAULT_CMP0091
    
    
    WARN: *** Conan 1 is legacy and on a deprecation path ***
    WARN: *** Please upgrade to Conan 2 ***
    libprotobuf-mutator/1.3: 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
    libprotobuf-mutator/1.3: 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
    [HOOK - conan-center.py] post_package(): ERROR: [DEFAULT PACKAGE LAYOUT (KB-H013)] Unknown folder 'OFF' in the package (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H013-DEFAULT-PACKAGE-LAYOUT) 
    [HOOK - conan-center.py] post_package(): ERROR: [PC-FILES (KB-H020)] The conan-center repository doesn't allow the packages to contain `pc` files. The packages have to be located using generators and the declared `cpp_info` information (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H020-PC-FILES) 
    [HOOK - conan-center.py] post_package(): ERROR: [PC-FILES (KB-H020)] Found files: ./OFF/libprotobuf-mutator.pc (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H020-PC-FILES) 
    ERROR: [HOOK - conan-center.py] post_package(): Some checks failed running the hook, check the output
    

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 (75cc74612ef8996d22753a67c217020fd0a84934):

  • libprotobuf-mutator/1.3:
    CI failed to create some packages (All logs)

    Logs for packageID 0f2916316a6e6ce66707ab82c25e38968505beb3:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=apple-clang
    compiler.cppstd=17
    compiler.libcxx=libc++
    compiler.version=13
    os=Macos
    [options]
    */*:shared=True
    
    [...]
    -- Conan: Component target declared 'absl::log_internal_message'
    -- Conan: Component target declared 'absl::log_internal_strip'
    -- Conan: Component target declared 'absl::log_flags'
    -- Conan: Component target declared 'absl::log_internal_structured'
    -- Conan: Component target declared 'absl::log_structured'
    -- Conan: Component target declared 'absl::log_internal_check_op'
    -- Conan: Component target declared 'absl::log_internal_log_impl'
    -- Conan: Component target declared 'absl::absl_log'
    -- Conan: Component target declared 'absl::log'
    -- Conan: Component target declared 'absl::log_streamer'
    -- Conan: Component target declared 'absl::log_internal_check_impl'
    -- Conan: Component target declared 'absl::absl_check'
    -- Conan: Component target declared 'absl::check'
    -- Conan: Component target declared 'absl::die_if_null'
    -- Conan: Target declared 'abseil::abseil'
    -- Conan: Including build module from '/Users/jenkins/workspace/prod-v2/bsr/45646/dacea/p/abseiedc624d55546d/p/lib/cmake/conan_trick/cxx_std.cmake'
    -- Conan: Including build module from '/Users/jenkins/workspace/prod-v2/bsr/45646/dacea/p/protod781ab020a50c/p/lib/cmake/protobuf/protobuf-generate.cmake'
    -- Conan: Including build module from '/Users/jenkins/workspace/prod-v2/bsr/45646/dacea/p/protod781ab020a50c/p/lib/cmake/protobuf/protobuf-module.cmake'
    -- Conan: Including build module from '/Users/jenkins/workspace/prod-v2/bsr/45646/dacea/p/protod781ab020a50c/p/lib/cmake/protobuf/protobuf-options.cmake'
    -- Conan: Including build module from '/Users/jenkins/workspace/prod-v2/bsr/45646/dacea/p/protod781ab020a50c/p/lib/cmake/protobuf/protobuf-conan-protoc-target.cmake'
    -- Configuring done (1.2s)
    -- Generating done (0.0s)
    -- Build files have been written to: /Users/jenkins/workspace/prod-v2/bsr/45646/dacea/p/b/libpr781c70428bb52/b/build/Release
    
    libprotobuf-mutator/1.3: Running CMake.build()
    libprotobuf-mutator/1.3: RUN: cmake --build "/Users/jenkins/workspace/prod-v2/bsr/45646/dacea/p/b/libpr781c70428bb52/b/build/Release" -- -j8
    [ 12%] Building CXX object src/CMakeFiles/protobuf-mutator.dir/binary_format.cc.o
    [ 37%] Building CXX object src/CMakeFiles/protobuf-mutator.dir/mutator.cc.o
    [ 50%] Building CXX object src/CMakeFiles/protobuf-mutator.dir/text_format.cc.o
    [ 50%] Building CXX object src/CMakeFiles/protobuf-mutator.dir/utf8_fix.cc.o
    [ 62%] Linking CXX shared library libprotobuf-mutator.dylib
    Undefined symbols for architecture x86_64:
      "_AbslInternalSpinLockWake_lts_20240116", referenced from:
          void absl::lts_20240116::base_internal::CallOnceImpl<void (*)(google::protobuf::FieldDescriptor const*), google::protobuf::FieldDescriptor const*>(std::__1::atomic<unsigned int>*, absl::lts_20240116::base_internal::SchedulingMode, void (*&&)(google::protobuf::FieldDescriptor const*), google::protobuf::FieldDescriptor const*&&) in mutator.cc.o
      "absl::lts_20240116::base_internal::SpinLockWait(std::__1::atomic<unsigned int>*, int, absl::lts_20240116::base_internal::SpinLockWaitTransition const*, absl::lts_20240116::base_internal::SchedulingMode)", referenced from:
          void absl::lts_20240116::base_internal::CallOnceImpl<void (*)(google::protobuf::FieldDescriptor const*), google::protobuf::FieldDescriptor const*>(std::__1::atomic<unsigned int>*, absl::lts_20240116::base_internal::SchedulingMode, void (*&&)(google::protobuf::FieldDescriptor const*), google::protobuf::FieldDescriptor const*&&) in mutator.cc.o
      "absl::lts_20240116::strings_internal::StringifySink::Append(std::__1::basic_string_view<char, std::__1::char_traits<char>>)", referenced from:
          protobuf_mutator::Mutator::IsInitialized(google::protobuf::Message const&) const in mutator.cc.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[2]: *** [src/libprotobuf-mutator.0.dylib] Error 1
    make[1]: *** [src/CMakeFiles/protobuf-mutator.dir/all] Error 2
    make: *** [all] Error 2
    
    libprotobuf-mutator/1.3: ERROR: 
    Package '0f2916316a6e6ce66707ab82c25e38968505beb3' build failed
    libprotobuf-mutator/1.3: WARN: Build folder /Users/jenkins/workspace/prod-v2/bsr/45646/dacea/p/b/libpr781c70428bb52/b/build/Release
    ERROR: libprotobuf-mutator/1.3: Error in build() method, line 109
    	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.

@valgur
Copy link
Contributor Author

valgur commented May 30, 2024

Did not notice #24163. I'll probably close this one in favor of it.

@valgur valgur closed this May 30, 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.

2 participants