conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
922 stars 1.67k forks source link

[package] capnproto/1.0.1: Build of 1.0.1 fails with Visual Studio 2022 and C++20 #23476

Open demonds1 opened 3 months ago

demonds1 commented 3 months ago

Description

See Issue: https://github.com/capnproto/capnproto/issues/1801

capnproto/1.0.2 has been released which addresses this issue: https://github.com/capnproto/capnproto/releases/tag/v1.0.2

Package and Environment Details

Conan profile

[settings] arch=x86_64 build_type=RelWithDebInfo compiler=msvc compiler.cppstd=20 compiler.runtime=dynamic compiler.runtime_type=Release compiler.version=193 os=Windows

Steps to reproduce

  1. use C++ 20
  2. add capnproto/1.01 to conanfile
  3. conan install . --build=missing

Logs

Click to expand log ``` C:\Users\abcd\.conan2\p\b\capnpb72a71cfe8aef\b\src\c++\src\kj\async-inl.h(2296,20): error C2143: syntax error: missing ';' before 'function-style cast' [C:\Users\abcd\.conan2\p\b\capnpb72a71cfe8aef\b\build\c++\src\capnp\capnp.vcxproj] (compiling source file '../../../../src/c++/src/capnp/any.c++') C:\Users\abcd\.conan2\p\b\capnpb72a71cfe8aef\b\src\c++\src\kj\async-inl.h(2296,20): the template instantiation context (the oldest one first) is C:\Users\abcd\.conan2\p\b\capnpb72a71cfe8aef\b\src\c++\src\kj\async-inl.h(2286,21): while compiling class template 'kj::_::Coroutine::Awaiter' ```
elvisdukaj commented 2 months ago

I suggest to update the recipe to capnproto/1.0.2 if this is an official release then.