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

libxml2: Add version 2.13.3 and use Meson #24739

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

Conversation

jwillikers
Copy link
Contributor

Summary

Changes to recipe: libxml2/2.13.3

Motivation

Add the latest release of libxml2, version 2.13.3, using Meson as the build system to simplify the build process.

Details

Add version 2.13.3.
Use the Meson build system.
Remove the include_utils option for simplicity.
Remove mem-debug option as there is no such named option in the meson_options.txt file.


@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ❌

Failure in build 4 (06e98e981c8ecd1e6a7e9b6a289ebf699b4250f7):

  • libxml2/2.12.5:
    Didn't run or was cancelled before finishing

  • libxml2/2.12.4:
    Didn't run or was cancelled before finishing

  • libxml2/2.12.3:
    Didn't run or was cancelled before finishing

  • libxml2/2.10.4:
    Didn't run or was cancelled before finishing

  • libxml2/2.11.4:
    Didn't run or was cancelled before finishing

  • libxml2/2.12.6:
    Didn't run or was cancelled before finishing

  • libxml2/2.10.3:
    Didn't run or was cancelled before finishing

  • libxml2/2.11.6:
    Didn't run or was cancelled before finishing

  • libxml2/2.11.8:
    Didn't run or was cancelled before finishing

  • libxml2/2.9.12:
    Didn't run or was cancelled before finishing

  • libxml2/2.12.7:
    Didn't run or was cancelled before finishing

  • libxml2/2.11.7:
    Didn't run or was cancelled before finishing

  • libxml2/2.9.14:
    Didn't run or was cancelled before finishing

  • libxml2/2.13.3:
    CI failed to create some packages (All logs)

    Logs for packageID 5a9686173f4db77dee387c5ea7d276627dd8d044:
    [settings]
    arch=armv8
    build_type=Debug
    compiler=apple-clang
    compiler.libcxx=libc++
    compiler.version=13.0
    os=Macos
    [options]
    libxml2:shared=False
    
    [...]
    ----Running------
    > cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/Users/jenkins/workspace/prod-v1/bsr/cci-d3bb7484/recipes/libxml2/meson/test_package/build/Debug/generators/conan_toolchain.cmake" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Debug" "/Users/jenkins/workspace/prod-v1/bsr/cci-d3bb7484/recipes/libxml2/meson/test_package/."
    -----------------
    -- Using Conan toolchain: /Users/jenkins/workspace/prod-v1/bsr/cci-d3bb7484/recipes/libxml2/meson/test_package/build/Debug/generators/conan_toolchain.cmake
    -- The C compiler identification is AppleClang 13.0.0.13000029
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: /Applications/conan/xcode/13.0/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Conan: Target declared 'LibXml2::LibXml2'
    -- Conan: Target declared 'ZLIB::ZLIB'
    -- Conan: Target declared 'Iconv::Iconv'
    -- Conan: Including build module from '/Users/jenkins/workspace/prod-v1/bsr/75613/afcaa/.conan/data/libxml2/2.13.3/_/_/package/5a9686173f4db77dee387c5ea7d276627dd8d044/lib/cmake/conan-official-libxml2-variables.cmake'
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /Users/jenkins/workspace/prod-v1/bsr/cci-d3bb7484/recipes/libxml2/meson/test_package/build/Debug
    libxml2/2.13.3 (test package): CMake command: cmake --build "/Users/jenkins/workspace/prod-v1/bsr/cci-d3bb7484/recipes/libxml2/meson/test_package/build/Debug" '--' '-j8'
    
    ----Running------
    > cmake --build "/Users/jenkins/workspace/prod-v1/bsr/cci-d3bb7484/recipes/libxml2/meson/test_package/build/Debug" '--' '-j8'
    -----------------
    [ 50%] Building C object CMakeFiles/test_package.dir/test_package.c.o
    [100%] Linking C executable test_package
    CMake Warning:
      Manually-specified variables were not used by the project:
    
        CMAKE_POLICY_DEFAULT_CMP0091
    
    
    Undefined symbols for architecture arm64:
      "_iconv", referenced from:
          _xmlIconvWrapper in libxml2.a(encoding.c.o)
      "_iconv_close", referenced from:
          _xmlCharEncCloseFunc in libxml2.a(encoding.c.o)
          _xmlCreateIconvHandler in libxml2.a(encoding.c.o)
      "_iconv_open", referenced from:
          _xmlCreateIconvHandler in libxml2.a(encoding.c.o)
    ld: symbol(s) not found for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[2]: *** [test_package] Error 1
    make[1]: *** [CMakeFiles/test_package.dir/all] Error 2
    make: *** [all] Error 2
    WARN: *** Conan 1 is legacy and on a deprecation path ***
    WARN: *** Please upgrade to Conan 2 ***
    libxml2/2.13.3 (test package): 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
    libxml2/2.13.3 (test package): 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
    ERROR: libxml2/2.13.3 (test package): Error in build() method, line 21
    	cmake.build()
    	ConanException: Error 2 while executing cmake --build "/Users/jenkins/workspace/prod-v1/bsr/cci-d3bb7484/recipes/libxml2/meson/test_package/build/Debug" '--' '-j8'
    
  • libxml2/2.9.10:
    Didn't run or was cancelled before finishing


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 4 (06e98e981c8ecd1e6a7e9b6a289ebf699b4250f7):

  • libxml2/2.12.7:
    Didn't run or was cancelled before finishing

  • libxml2/2.12.5:
    Didn't run or was cancelled before finishing

  • libxml2/2.12.6:
    Didn't run or was cancelled before finishing

  • libxml2/2.12.4:
    Didn't run or was cancelled before finishing

  • libxml2/2.11.8:
    Didn't run or was cancelled before finishing

  • libxml2/2.9.10:
    Didn't run or was cancelled before finishing

  • libxml2/2.11.6:
    Didn't run or was cancelled before finishing

  • libxml2/2.11.7:
    Didn't run or was cancelled before finishing

  • libxml2/2.12.3:
    Didn't run or was cancelled before finishing

  • libxml2/2.11.4:
    Didn't run or was cancelled before finishing

  • libxml2/2.10.3:
    Didn't run or was cancelled before finishing

  • libxml2/2.9.12:
    Didn't run or was cancelled before finishing

  • libxml2/2.9.14:
    Didn't run or was cancelled before finishing

  • libxml2/2.10.4:
    Didn't run or was cancelled before finishing

  • libxml2/2.13.3:
    CI failed to create some packages (All logs)

    Logs for packageID ad2e248f11145b27713d4db6fe3699a573c931f9:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=apple-clang
    compiler.cppstd=17
    compiler.libcxx=libc++
    compiler.version=13
    os=Macos
    [options]
    */*:shared=False
    
    [...]
    libxml2/2.13.3 (test package): Generated aggregated env files: ['conanrun.sh', 'conanbuild.sh']
    
    ======== Testing the package: Building ========
    libxml2/2.13.3 (test package): Calling build()
    libxml2/2.13.3 (test package): Running CMake.configure()
    libxml2/2.13.3 (test package): RUN: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/Users/jenkins/workspace/prod-v2/bsr@2/cci-c0ed4b2d/recipes/libxml2/meson/test_package" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/Users/jenkins/workspace/prod-v2/bsr@2/cci-c0ed4b2d/recipes/libxml2/meson/test_package"
    -- Using Conan toolchain: /Users/jenkins/workspace/prod-v2/bsr@2/cci-c0ed4b2d/recipes/libxml2/meson/test_package/build/apple-clang-13-x86_64-17-release/generators/conan_toolchain.cmake
    -- Conan toolchain: Defining architecture flag: -m64
    -- Conan toolchain: Defining libcxx as C++ flags: -stdlib=libc++
    -- Conan toolchain: C++ Standard 17 with extensions OFF
    -- The C compiler identification is AppleClang 13.0.0.13000029
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: /Applications/conan/xcode/13.0/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Conan: Target declared 'LibXml2::LibXml2'
    -- Conan: Target declared 'ZLIB::ZLIB'
    -- Conan: Target declared 'Iconv::Iconv'
    -- Conan: Including build module from '/Users/jenkins/workspace/prod-v2/bsr@2/68369/bcede/p/b/libxm45d5c089cf51d/p/lib/cmake/conan-official-libxml2-variables.cmake'
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /Users/jenkins/workspace/prod-v2/bsr@2/cci-c0ed4b2d/recipes/libxml2/meson/test_package/build/apple-clang-13-x86_64-17-release
    
    libxml2/2.13.3 (test package): Running CMake.build()
    libxml2/2.13.3 (test package): RUN: cmake --build "/Users/jenkins/workspace/prod-v2/bsr@2/cci-c0ed4b2d/recipes/libxml2/meson/test_package/build/apple-clang-13-x86_64-17-release" -- -j8
    [ 50%] Building C object CMakeFiles/test_package.dir/test_package.c.o
    [100%] Linking C executable test_package
    Undefined symbols for architecture x86_64:
      "_iconv", referenced from:
          _xmlIconvWrapper in libxml2.a(encoding.c.o)
          _xmlCharEncInFunc in libxml2.a(encoding.c.o)
          _xmlCharEncInput in libxml2.a(encoding.c.o)
          _xmlCharEncOutput in libxml2.a(encoding.c.o)
          _xmlCharEncOutFunc in libxml2.a(encoding.c.o)
          _xmlByteConsumed in libxml2.a(encoding.c.o)
      "_iconv_close", referenced from:
          _xmlFindExtraHandler in libxml2.a(encoding.c.o)
          _xmlCharEncCloseFunc in libxml2.a(encoding.c.o)
      "_iconv_open", referenced from:
          _xmlFindExtraHandler in libxml2.a(encoding.c.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]: *** [test_package] Error 1
    make[1]: *** [CMakeFiles/test_package.dir/all] Error 2
    make: *** [all] Error 2
    
    ERROR: libxml2/2.13.3 (test package): Error in build() method, line 21
    	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