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

vir-simd: add version 0.4.0 #25432

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

Conversation

mattkretz
Copy link
Contributor

Summary

Changes to recipe: lib/vir-simd

Motivation

Add release 0.4.0

Details

https://github.com/mattkretz/vir-simd/releases/tag/v0.4.0


@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ❌

Failure in build 1 (14fc346a13b14a3f6a9255ae688da58464223d4d):

  • vir-simd/0.4.0:
    CI failed to create some packages (All logs)

    Logs for packageID 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=7
    os=Linux
    
    [...]
             ^
    /home/conan/workspace/prod-v1/bsr/103097/afeda/.conan/data/vir-simd/0.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/vir/simd.h: In lambda function:
    /home/conan/workspace/prod-v1/bsr/103097/afeda/.conan/data/vir-simd/0.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/vir/simd.h:1274:9: error: expected ‘{’
             vir_simd_precondition(i < size(), "Subscript %d is out of range [0, %d]", i, size() - 1);
             ^
    /home/conan/workspace/prod-v1/bsr/103097/afeda/.conan/data/vir-simd/0.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/vir/simd.h: In member function ‘constexpr vir::stdx::simd<T, vir::stdx::simd_abi::scalar>::value_type vir::stdx::simd<T, vir::stdx::simd_abi::scalar>::operator[](std::size_t) const’:
    /home/conan/workspace/prod-v1/bsr/103097/afeda/.conan/data/vir-simd/0.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/vir/simd.h:1274:9: error: expected ‘;’
    /home/conan/workspace/prod-v1/bsr/103097/afeda/.conan/data/vir-simd/0.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/vir/simd.h: In member function ‘constexpr T& vir::stdx::simd<T, vir::stdx::simd_abi::fixed_size<N> >::operator[](std::size_t)’:
    /home/conan/workspace/prod-v1/bsr/103097/afeda/.conan/data/vir-simd/0.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/vir/simd.h:1594:9: error: expected identifier before ‘[’ token
             vir_simd_precondition(i < size(), "Subscript %d is out of range [0, %d]", i, size() - 1);
             ^
    /home/conan/workspace/prod-v1/bsr/103097/afeda/.conan/data/vir-simd/0.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/vir/simd.h: In lambda function:
    /home/conan/workspace/prod-v1/bsr/103097/afeda/.conan/data/vir-simd/0.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/vir/simd.h:1594:9: error: expected ‘{’
             vir_simd_precondition(i < size(), "Subscript %d is out of range [0, %d]", i, size() - 1);
             ^
    /home/conan/workspace/prod-v1/bsr/103097/afeda/.conan/data/vir-simd/0.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/vir/simd.h: In member function ‘constexpr T& vir::stdx::simd<T, vir::stdx::simd_abi::fixed_size<N> >::operator[](std::size_t)’:
    /home/conan/workspace/prod-v1/bsr/103097/afeda/.conan/data/vir-simd/0.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/vir/simd.h:1594:9: error: expected ‘;’
    /home/conan/workspace/prod-v1/bsr/103097/afeda/.conan/data/vir-simd/0.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/vir/simd.h: In member function ‘constexpr vir::stdx::simd<T, vir::stdx::simd_abi::fixed_size<N> >::value_type vir::stdx::simd<T, vir::stdx::simd_abi::fixed_size<N> >::operator[](std::size_t) const’:
    /home/conan/workspace/prod-v1/bsr/103097/afeda/.conan/data/vir-simd/0.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/vir/simd.h:1601:9: error: expected identifier before ‘[’ token
             vir_simd_precondition(i < size(), "Subscript %d is out of range [0, %d]", i, size() - 1);
             ^
    /home/conan/workspace/prod-v1/bsr/103097/afeda/.conan/data/vir-simd/0.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/vir/simd.h: In lambda function:
    /home/conan/workspace/prod-v1/bsr/103097/afeda/.conan/data/vir-simd/0.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/vir/simd.h:1601:9: error: expected ‘{’
             vir_simd_precondition(i < size(), "Subscript %d is out of range [0, %d]", i, size() - 1);
             ^
    /home/conan/workspace/prod-v1/bsr/103097/afeda/.conan/data/vir-simd/0.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/vir/simd.h: In member function ‘constexpr vir::stdx::simd<T, vir::stdx::simd_abi::fixed_size<N> >::value_type vir::stdx::simd<T, vir::stdx::simd_abi::fixed_size<N> >::operator[](std::size_t) const’:
    /home/conan/workspace/prod-v1/bsr/103097/afeda/.conan/data/vir-simd/0.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/vir/simd.h:1601:9: error: expected ‘;’
    make[2]: *** [test_package/CMakeFiles/test_package.dir/test_package.cpp.o] Error 1
    make[1]: *** [test_package/CMakeFiles/test_package.dir/all] Error 2
    make: *** [all] Error 2
    WARN: **************************************************
    WARN: *** Conan 1 is legacy and on a deprecation path **
    WARN: *********** Please upgrade to Conan 2 ************
    WARN: **************************************************
    vir-simd/0.4.0 (test package): WARN: 
         ************************************************
         The 'cmake_find_package_multi' generator is deprecated.
         Please update your code and remove it.
         *************************************************
    
    vir-simd/0.4.0 (test package): WARN: 
         ************************************************
         The 'cmake' generator is deprecated.
         Please update your code and remove it.
         *************************************************
    
    vir-simd/0.4.0 (test package): WARN: **** The 'from conans import CMake' helper is deprecated. Please update your code and remove it. ****
    ERROR: vir-simd/0.4.0 (test package): Error in build() method, line 14
    	cmake.build()
    	ConanException: Error 2 while executing cmake --build '/home/conan/workspace/prod-v1/bsr/cci-e98b1b13/recipes/vir-simd/all/test_v1_package/build/ac8e5b135bec2d2511377cc6fdda763812fc2867' '--' '-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 1 (14fc346a13b14a3f6a9255ae688da58464223d4d):

  • vir-simd/0.4.0:
    CI failed to create some packages (All logs)

    Logs for packageID da39a3ee5e6b4b0d3255bfef95601890afd80709:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=apple-clang
    compiler.cppstd=17
    compiler.libcxx=libc++
    compiler.version=13
    os=Macos
    
    [...]
          vir::detail::invoke_ub(                                                               \
                                ^
    /Users/jenkins/workspace/prod-v2/bsr/91805/edbef/p/vir-s450c75c68f9cf/p/include/vir/simd.h:1267:9: error: expected ')'
            vir_simd_precondition(i < size(), "Subscript %d is out of range [0, %d]", i, size() - 1);
            ^
    /Users/jenkins/workspace/prod-v2/bsr/91805/edbef/p/vir-s450c75c68f9cf/p/include/vir/simd.h:133:30: note: expanded from macro 'vir_simd_precondition'
            VIR_PRETTY_FUNCTION_ __VA_OPT__(,) __VA_ARGS__);                                    \
                                 ^
    /Users/jenkins/workspace/prod-v2/bsr/91805/edbef/p/vir-s450c75c68f9cf/p/include/vir/simd.h:1267:9: note: to match this '('
    /Users/jenkins/workspace/prod-v2/bsr/91805/edbef/p/vir-s450c75c68f9cf/p/include/vir/simd.h:131:29: note: expanded from macro 'vir_simd_precondition'
          vir::detail::invoke_ub(                                                               \
                                ^
    /Users/jenkins/workspace/prod-v2/bsr/91805/edbef/p/vir-s450c75c68f9cf/p/include/vir/simd.h:1274:9: error: expected ')'
            vir_simd_precondition(i < size(), "Subscript %d is out of range [0, %d]", i, size() - 1);
            ^
    /Users/jenkins/workspace/prod-v2/bsr/91805/edbef/p/vir-s450c75c68f9cf/p/include/vir/simd.h:133:30: note: expanded from macro 'vir_simd_precondition'
            VIR_PRETTY_FUNCTION_ __VA_OPT__(,) __VA_ARGS__);                                    \
                                 ^
    /Users/jenkins/workspace/prod-v2/bsr/91805/edbef/p/vir-s450c75c68f9cf/p/include/vir/simd.h:1274:9: note: to match this '('
    /Users/jenkins/workspace/prod-v2/bsr/91805/edbef/p/vir-s450c75c68f9cf/p/include/vir/simd.h:131:29: note: expanded from macro 'vir_simd_precondition'
          vir::detail::invoke_ub(                                                               \
                                ^
    /Users/jenkins/workspace/prod-v2/bsr/91805/edbef/p/vir-s450c75c68f9cf/p/include/vir/simd.h:1594:9: error: expected ')'
            vir_simd_precondition(i < size(), "Subscript %d is out of range [0, %d]", i, size() - 1);
            ^
    /Users/jenkins/workspace/prod-v2/bsr/91805/edbef/p/vir-s450c75c68f9cf/p/include/vir/simd.h:133:30: note: expanded from macro 'vir_simd_precondition'
            VIR_PRETTY_FUNCTION_ __VA_OPT__(,) __VA_ARGS__);                                    \
                                 ^
    /Users/jenkins/workspace/prod-v2/bsr/91805/edbef/p/vir-s450c75c68f9cf/p/include/vir/simd.h:1594:9: note: to match this '('
    /Users/jenkins/workspace/prod-v2/bsr/91805/edbef/p/vir-s450c75c68f9cf/p/include/vir/simd.h:131:29: note: expanded from macro 'vir_simd_precondition'
          vir::detail::invoke_ub(                                                               \
                                ^
    /Users/jenkins/workspace/prod-v2/bsr/91805/edbef/p/vir-s450c75c68f9cf/p/include/vir/simd.h:1601:9: error: expected ')'
            vir_simd_precondition(i < size(), "Subscript %d is out of range [0, %d]", i, size() - 1);
            ^
    /Users/jenkins/workspace/prod-v2/bsr/91805/edbef/p/vir-s450c75c68f9cf/p/include/vir/simd.h:133:30: note: expanded from macro 'vir_simd_precondition'
            VIR_PRETTY_FUNCTION_ __VA_OPT__(,) __VA_ARGS__);                                    \
                                 ^
    /Users/jenkins/workspace/prod-v2/bsr/91805/edbef/p/vir-s450c75c68f9cf/p/include/vir/simd.h:1601:9: note: to match this '('
    /Users/jenkins/workspace/prod-v2/bsr/91805/edbef/p/vir-s450c75c68f9cf/p/include/vir/simd.h:131:29: note: expanded from macro 'vir_simd_precondition'
          vir::detail::invoke_ub(                                                               \
                                ^
    12 errors generated.
    make[2]: *** [CMakeFiles/test_package.dir/test_package.cpp.o] Error 1
    make[1]: *** [CMakeFiles/test_package.dir/all] Error 2
    make: *** [all] Error 2
    
    ERROR: vir-simd/0.4.0 (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.

@valgur
Copy link
Contributor

valgur commented Sep 26, 2024

This version adds an externally visible /Zc:preprocessor flag for MSVC: mattkretz/vir-simd@f00bea6

You should probably add

if is_msvc(self):
    self.cpp_info.cxxflags.append("/Zc:preprocessor")

to package_info() accordingly.

@mattkretz
Copy link
Contributor Author

Thank you for the tip. But it seems there's a bigger problem with the use of __VA_OPT__, that needs to be fixed in vir-simd itself.
As soon as vir-simd 0.4.1 is released I will update this PR to 0.4.1 and skip 0.4.0 for Conan.

@ErniGH ErniGH self-assigned this Sep 27, 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.

4 participants