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

[cppgraphqlgen] Build error on x64-linux #38672

Open
tskarthikus opened this issue May 10, 2024 · 1 comment
Open

[cppgraphqlgen] Build error on x64-linux #38672

tskarthikus opened this issue May 10, 2024 · 1 comment
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@tskarthikus
Copy link

Package: cppgraphqlgen[core,rapidjson]:x64-linux@4.5.5

Host Environment

  • Host: x64-linux
  • Compiler: GNU 13.2.0
  • vcpkg-tool version: 2024-04-23-d6945642ee5c3076addd1a42c331bbf4cfc97457
    vcpkg-scripts version: cbf4a66 2024-05-09 (8 hours ago)

To Reproduce

vcpkg install cppgraphqlgen

Failure logs

-- Downloading https://github.com/microsoft/cppgraphqlgen/archive/v4.5.5.tar.gz -> microsoft-cppgraphqlgen-v4.5.5.tar.gz...
-- Extracting source /root/vcpkg/downloads/microsoft-cppgraphqlgen-v4.5.5.tar.gz
-- Using source at /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean
-- Configuring x64-linux
-- Building x64-linux-dbg
-- Building x64-linux-rel
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: /root/vcpkg/downloads/tools/cmake-3.29.2-linux/cmake-3.29.2-linux-x86_64/bin/cmake --build . --config Release --target install -- -v -j25
    Working Directory: /root/vcpkg/buildtrees/cppgraphqlgen/x64-linux-rel
    See logs for more information:
      /root/vcpkg/buildtrees/cppgraphqlgen/install-x64-linux-rel-out.log

Call Stack (most recent call first):
  installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/cppgraphqlgen/portfile.cmake:31 (vcpkg_cmake_install)
  scripts/ports.cmake:175 (include)



/root/vcpkg/buildtrees/cppgraphqlgen/install-x64-linux-rel-out.log
Change Dir: '/root/vcpkg/buildtrees/cppgraphqlgen/x64-linux-rel'

Run Build Command(s): /root/vcpkg/downloads/tools/ninja/1.10.2-linux/ninja -v -v -j25 install
[1/31] /usr/bin/c++  -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../include -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../PEGTL/include -isystem /root/vcpkg/installed/x64-linux/include -fPIC -O3 -DNDEBUG -std=gnu++20 -Wall -Wextra -pedantic -Werror -MD -MT src/CMakeFiles/generator_util.dir/GeneratorUtil.cpp.o -MF src/CMakeFiles/generator_util.dir/GeneratorUtil.cpp.o.d -o src/CMakeFiles/generator_util.dir/GeneratorUtil.cpp.o -c /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/GeneratorUtil.cpp
[2/31] /usr/bin/c++  -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../include -fPIC -O3 -DNDEBUG -std=gnu++20 -Wall -Wextra -pedantic -Werror -MD -MT src/CMakeFiles/graphqlresponse.dir/Base64.cpp.o -MF src/CMakeFiles/graphqlresponse.dir/Base64.cpp.o.d -o src/CMakeFiles/graphqlresponse.dir/Base64.cpp.o -c /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/Base64.cpp
[3/31] /usr/bin/c++  -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../include -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../PEGTL/include -isystem /root/vcpkg/installed/x64-linux/include -fPIC -O3 -DNDEBUG -std=gnu++20 -Wall -Wextra -pedantic -Werror -MD -MT src/CMakeFiles/graphqlclient.dir/GraphQLClient.cpp.o -MF src/CMakeFiles/graphqlclient.dir/GraphQLClient.cpp.o.d -o src/CMakeFiles/graphqlclient.dir/GraphQLClient.cpp.o -c /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/GraphQLClient.cpp
[4/31] /usr/bin/c++  -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../include -isystem /root/vcpkg/installed/x64-linux/share/rapidjson/../../include -fPIC -O3 -DNDEBUG -std=gnu++20 -Wall -Wextra -pedantic -Werror -MD -MT src/CMakeFiles/graphqljson.dir/JSONResponse.cpp.o -MF src/CMakeFiles/graphqljson.dir/JSONResponse.cpp.o.d -o src/CMakeFiles/graphqljson.dir/JSONResponse.cpp.o -c /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/JSONResponse.cpp
[5/31] /usr/bin/c++  -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../include -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../PEGTL/include -isystem /root/vcpkg/installed/x64-linux/include -fPIC -O3 -DNDEBUG -std=gnu++20 -Wall -Wextra -pedantic -Werror -MD -MT src/CMakeFiles/graphqlservice.dir/Introspection.cpp.o -MF src/CMakeFiles/graphqlservice.dir/Introspection.cpp.o.d -o src/CMakeFiles/graphqlservice.dir/Introspection.cpp.o -c /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/Introspection.cpp
[6/31] /usr/bin/c++  -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../include -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../PEGTL/include -isystem /root/vcpkg/installed/x64-linux/include -fPIC -O3 -DNDEBUG -std=gnu++20 -Wall -Wextra -pedantic -Werror -MD -MT src/CMakeFiles/graphqlservice.dir/Schema.cpp.o -MF src/CMakeFiles/graphqlservice.dir/Schema.cpp.o.d -o src/CMakeFiles/graphqlservice.dir/Schema.cpp.o -c /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/Schema.cpp
[7/31] /usr/bin/c++  -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../include -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../PEGTL/include -isystem /root/vcpkg/installed/x64-linux/include -fPIC -O3 -DNDEBUG -std=gnu++20 -Wall -Wextra -pedantic -Werror -MD -MT src/CMakeFiles/graphqlservice.dir/introspection/IntrospectionSchema.cpp.o -MF src/CMakeFiles/graphqlservice.dir/introspection/IntrospectionSchema.cpp.o.d -o src/CMakeFiles/graphqlservice.dir/introspection/IntrospectionSchema.cpp.o -c /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/introspection/IntrospectionSchema.cpp
[8/31] /usr/bin/c++  -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../include -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../PEGTL/include -isystem /root/vcpkg/installed/x64-linux/include -fPIC -O3 -DNDEBUG -std=gnu++20 -Wall -Wextra -pedantic -Werror -MD -MT src/CMakeFiles/graphqlservice.dir/introspection/EnumValueObject.cpp.o -MF src/CMakeFiles/graphqlservice.dir/introspection/EnumValueObject.cpp.o.d -o src/CMakeFiles/graphqlservice.dir/introspection/EnumValueObject.cpp.o -c /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/introspection/EnumValueObject.cpp
[9/31] /usr/bin/c++  -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../include -fPIC -O3 -DNDEBUG -std=gnu++20 -Wall -Wextra -pedantic -Werror -MD -MT src/CMakeFiles/graphqlresponse.dir/GraphQLResponse.cpp.o -MF src/CMakeFiles/graphqlresponse.dir/GraphQLResponse.cpp.o.d -o src/CMakeFiles/graphqlresponse.dir/GraphQLResponse.cpp.o -c /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/GraphQLResponse.cpp
FAILED: src/CMakeFiles/graphqlresponse.dir/GraphQLResponse.cpp.o 
/usr/bin/c++  -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../include -fPIC -O3 -DNDEBUG -std=gnu++20 -Wall -Wextra -pedantic -Werror -MD -MT src/CMakeFiles/graphqlresponse.dir/GraphQLResponse.cpp.o -MF src/CMakeFiles/graphqlresponse.dir/GraphQLResponse.cpp.o.d -o src/CMakeFiles/graphqlresponse.dir/GraphQLResponse.cpp.o -c /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/GraphQLResponse.cpp
In file included from /usr/include/c++/13/bits/shared_ptr_base.h:59,
                 from /usr/include/c++/13/bits/shared_ptr.h:53,
                 from /usr/include/c++/13/condition_variable:45,
                 from /usr/include/c++/13/future:41,
                 from /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../include/graphqlservice/internal/Awaitable.h:19,
                 from /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../include/graphqlservice/GraphQLResponse.h:21,
                 from /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/GraphQLResponse.cpp:4:
In member function ‘void std::default_delete<_Tp>::operator()(_Tp*) const [with _Tp = graphql::response::Value]’,
    inlined from ‘std::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = graphql::response::Value; _Dp = std::default_delete<graphql::response::Value>]’ at /usr/include/c++/13/bits/unique_ptr.h:404:17,
    inlined from ‘graphql::response::Value::ScalarData::~ScalarData()’ at /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../include/graphqlservice/GraphQLResponse.h:323:51,
    inlined from ‘constexpr void std::destroy_at(_Tp*) [with _Tp = graphql::response::Value::ScalarData]’ at /usr/include/c++/13/bits/stl_construct.h:88:18,
    inlined from ‘constexpr void std::_Destroy(_Tp*) [with _Tp = graphql::response::Value::ScalarData]’ at /usr/include/c++/13/bits/stl_construct.h:149:22,
    inlined from ‘std::__detail::__variant::_Variant_storage<false, graphql::response::Value::MapData, std::vector<graphql::response::Value, std::allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, std::shared_ptr<const graphql::response::Value> >::_M_reset()::<lambda(auto:17&&)> mutable [with auto:17 = graphql::response::Value::ScalarData&]’ at /usr/include/c++/13/variant:498:19,
    inlined from ‘constexpr _Res std::__invoke_impl(__invoke_other, _Fn&&, _Args&& ...) [with _Res = void; _Fn = __detail::__variant::_Variant_storage<false, graphql::response::Value::MapData, vector<graphql::response::Value, allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, __cxx11::basic_string<char, char_traits<char>, allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, shared_ptr<const graphql::response::Value> >::_M_reset()::<lambda(auto:17&&)>; _Args = {graphql::response::Value::ScalarData&}]’ at /usr/include/c++/13/bits/invoke.h:61:36,
    inlined from ‘constexpr std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> std::__invoke_r(_Callable&&, _Args&& ...) [with _Res = void; _Callable = __detail::__variant::_Variant_storage<false, graphql::response::Value::MapData, vector<graphql::response::Value, allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, __cxx11::basic_string<char, char_traits<char>, allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, shared_ptr<const graphql::response::Value> >::_M_reset()::<lambda(auto:17&&)>; _Args = {graphql::response::Value::ScalarData&}]’ at /usr/include/c++/13/bits/invoke.h:111:28,
    inlined from ‘static constexpr decltype(auto) std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<_Result_type (*)(_Visitor, _Variants ...)>, std::integer_sequence<long unsigned int, __indices ...> >::__visit_invoke(_Visitor&&, _Variants ...) [with _Result_type = void; _Visitor = std::__detail::__variant::_Variant_storage<false, graphql::response::Value::MapData, std::vector<graphql::response::Value, std::allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, std::shared_ptr<const graphql::response::Value> >::_M_reset()::<lambda(auto:17&&)>&&; _Variants = {std::variant<graphql::response::Value::MapData, std::vector<graphql::response::Value, std::allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, std::shared_ptr<const graphql::response::Value> >&}; long unsigned int ...__indices = {9}]’ at /usr/include/c++/13/variant:1064:40,
    inlined from ‘constexpr decltype(auto) std::__do_visit(_Visitor&&, _Variants&& ...) [with _Result_type = void; _Visitor = __detail::__variant::_Variant_storage<false, graphql::response::Value::MapData, vector<graphql::response::Value, allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, __cxx11::basic_string<char, char_traits<char>, allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, shared_ptr<const graphql::response::Value> >::_M_reset()::<lambda(auto:17&&)>; _Variants = {variant<graphql::response::Value::MapData, vector<graphql::response::Value, allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, __cxx11::basic_string<char, char_traits<char>, allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, shared_ptr<const graphql::response::Value> >&}]’ at /usr/include/c++/13/variant:1824:5,
    inlined from ‘constexpr void std::__detail::__variant::_Variant_storage<false, _Types ...>::_M_reset() [with _Types = {graphql::response::Value::MapData, std::vector<graphql::response::Value, std::allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, std::shared_ptr<const graphql::response::Value>}]’ at /usr/include/c++/13/variant:496:23,
    inlined from ‘constexpr std::__detail::__variant::_Variant_storage<false, _Types ...>::~_Variant_storage() [with _Types = {graphql::response::Value::MapData, std::vector<graphql::response::Value, std::allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, std::shared_ptr<const graphql::response::Value>}]’ at /usr/include/c++/13/variant:506:17,
    inlined from ‘constexpr std::__detail::__variant::_Copy_ctor_base<false, graphql::response::Value::MapData, std::vector<graphql::response::Value, std::allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, std::shared_ptr<const graphql::response::Value> >::~_Copy_ctor_base()’ at /usr/include/c++/13/variant:581:12,
    inlined from ‘constexpr std::__detail::__variant::_Move_ctor_base<false, graphql::response::Value::MapData, std::vector<graphql::response::Value, std::allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, std::shared_ptr<const graphql::response::Value> >::~_Move_ctor_base()’ at /usr/include/c++/13/variant:618:12,
    inlined from ‘constexpr std::__detail::__variant::_Copy_assign_base<false, graphql::response::Value::MapData, std::vector<graphql::response::Value, std::allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, std::shared_ptr<const graphql::response::Value> >::~_Copy_assign_base()’ at /usr/include/c++/13/variant:656:12,
    inlined from ‘constexpr std::__detail::__variant::_Move_assign_base<false, graphql::response::Value::MapData, std::vector<graphql::response::Value, std::allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, std::shared_ptr<const graphql::response::Value> >::~_Move_assign_base()’ at /usr/include/c++/13/variant:708:12,
    inlined from ‘constexpr std::__detail::__variant::_Variant_base<graphql::response::Value::MapData, std::vector<graphql::response::Value, std::allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, std::shared_ptr<const graphql::response::Value> >::~_Variant_base()’ at /usr/include/c++/13/variant:762:12,
    inlined from ‘constexpr std::variant<_Types>::~variant() [with _Types = {graphql::response::Value::MapData, std::vector<graphql::response::Value, std::allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, std::shared_ptr<const graphql::response::Value>}]’ at /usr/include/c++/13/variant:1432:28,
    inlined from ‘graphql::response::Value::Value(graphql::response::Type)’ at /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/GraphQLResponse.cpp:911:28:
/usr/include/c++/13/bits/unique_ptr.h:99:9: error: ‘void operator delete(void*, std::size_t)’ called on unallocated object ‘<anonymous>’ [-Werror=free-nonheap-object]
   99 |         delete __ptr;
      |         ^~~~~~~~~~~~
/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/GraphQLResponse.cpp: In constructor ‘graphql::response::Value::Value(graphql::response::Type)’:
/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/GraphQLResponse.cpp:911:49: note: declared here
  911 |                         _data = { StringData {} };
      |                                                 ^
In member function ‘void std::default_delete<_Tp>::operator()(_Tp*) const [with _Tp = graphql::response::Value]’,
    inlined from ‘std::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = graphql::response::Value; _Dp = std::default_delete<graphql::response::Value>]’ at /usr/include/c++/13/bits/unique_ptr.h:404:17,
    inlined from ‘graphql::response::Value::ScalarData::~ScalarData()’ at /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../include/graphqlservice/GraphQLResponse.h:323:51,
    inlined from ‘constexpr void std::destroy_at(_Tp*) [with _Tp = graphql::response::Value::ScalarData]’ at /usr/include/c++/13/bits/stl_construct.h:88:18,
    inlined from ‘constexpr void std::_Destroy(_Tp*) [with _Tp = graphql::response::Value::ScalarData]’ at /usr/include/c++/13/bits/stl_construct.h:149:22,
    inlined from ‘std::__detail::__variant::_Variant_storage<false, graphql::response::Value::MapData, std::vector<graphql::response::Value, std::allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, std::shared_ptr<const graphql::response::Value> >::_M_reset()::<lambda(auto:17&&)> mutable [with auto:17 = graphql::response::Value::ScalarData&]’ at /usr/include/c++/13/variant:498:19,
    inlined from ‘constexpr _Res std::__invoke_impl(__invoke_other, _Fn&&, _Args&& ...) [with _Res = void; _Fn = __detail::__variant::_Variant_storage<false, graphql::response::Value::MapData, vector<graphql::response::Value, allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, __cxx11::basic_string<char, char_traits<char>, allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, shared_ptr<const graphql::response::Value> >::_M_reset()::<lambda(auto:17&&)>; _Args = {graphql::response::Value::ScalarData&}]’ at /usr/include/c++/13/bits/invoke.h:61:36,
    inlined from ‘constexpr std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> std::__invoke_r(_Callable&&, _Args&& ...) [with _Res = void; _Callable = __detail::__variant::_Variant_storage<false, graphql::response::Value::MapData, vector<graphql::response::Value, allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, __cxx11::basic_string<char, char_traits<char>, allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, shared_ptr<const graphql::response::Value> >::_M_reset()::<lambda(auto:17&&)>; _Args = {graphql::response::Value::ScalarData&}]’ at /usr/include/c++/13/bits/invoke.h:111:28,
    inlined from ‘static constexpr decltype(auto) std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<_Result_type (*)(_Visitor, _Variants ...)>, std::integer_sequence<long unsigned int, __indices ...> >::__visit_invoke(_Visitor&&, _Variants ...) [with _Result_type = void; _Visitor = std::__detail::__variant::_Variant_storage<false, graphql::response::Value::MapData, std::vector<graphql::response::Value, std::allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, std::shared_ptr<const graphql::response::Value> >::_M_reset()::<lambda(auto:17&&)>&&; _Variants = {std::variant<graphql::response::Value::MapData, std::vector<graphql::response::Value, std::allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, std::shared_ptr<const graphql::response::Value> >&}; long unsigned int ...__indices = {9}]’ at /usr/include/c++/13/variant:1064:40,
    inlined from ‘constexpr decltype(auto) std::__do_visit(_Visitor&&, _Variants&& ...) [with _Result_type = void; _Visitor = __detail::__variant::_Variant_storage<false, graphql::response::Value::MapData, vector<graphql::response::Value, allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, __cxx11::basic_string<char, char_traits<char>, allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, shared_ptr<const graphql::response::Value> >::_M_reset()::<lambda(auto:17&&)>; _Variants = {variant<graphql::response::Value::MapData, vector<graphql::response::Value, allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, __cxx11::basic_string<char, char_traits<char>, allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, shared_ptr<const graphql::response::Value> >&}]’ at /usr/include/c++/13/variant:1824:5,
    inlined from ‘constexpr void std::__detail::__variant::_Variant_storage<false, _Types ...>::_M_reset() [with _Types = {graphql::response::Value::MapData, std::vector<graphql::response::Value, std::allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, std::shared_ptr<const graphql::response::Value>}]’ at /usr/include/c++/13/variant:496:23,
    inlined from ‘constexpr std::__detail::__variant::_Variant_storage<false, _Types ...>::~_Variant_storage() [with _Types = {graphql::response::Value::MapData, std::vector<graphql::response::Value, std::allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, std::shared_ptr<const graphql::response::Value>}]’ at /usr/include/c++/13/variant:506:17,
    inlined from ‘constexpr std::__detail::__variant::_Copy_ctor_base<false, graphql::response::Value::MapData, std::vector<graphql::response::Value, std::allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, std::shared_ptr<const graphql::response::Value> >::~_Copy_ctor_base()’ at /usr/include/c++/13/variant:581:12,
    inlined from ‘constexpr std::__detail::__variant::_Move_ctor_base<false, graphql::response::Value::MapData, std::vector<graphql::response::Value, std::allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, std::shared_ptr<const graphql::response::Value> >::~_Move_ctor_base()’ at /usr/include/c++/13/variant:618:12,
    inlined from ‘constexpr std::__detail::__variant::_Copy_assign_base<false, graphql::response::Value::MapData, std::vector<graphql::response::Value, std::allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, std::shared_ptr<const graphql::response::Value> >::~_Copy_assign_base()’ at /usr/include/c++/13/variant:656:12,
    inlined from ‘constexpr std::__detail::__variant::_Move_assign_base<false, graphql::response::Value::MapData, std::vector<graphql::response::Value, std::allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, std::shared_ptr<const graphql::response::Value> >::~_Move_assign_base()’ at /usr/include/c++/13/variant:708:12,
    inlined from ‘constexpr std::__detail::__variant::_Variant_base<graphql::response::Value::MapData, std::vector<graphql::response::Value, std::allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, std::shared_ptr<const graphql::response::Value> >::~_Variant_base()’ at /usr/include/c++/13/variant:762:12,
    inlined from ‘constexpr std::variant<_Types>::~variant() [with _Types = {graphql::response::Value::MapData, std::vector<graphql::response::Value, std::allocator<graphql::response::Value> >, graphql::response::Value::StringData, graphql::response::Value::NullData, bool, int, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, graphql::response::IdType, graphql::response::Value::ScalarData, std::shared_ptr<const graphql::response::Value>}]’ at /usr/include/c++/13/variant:1432:28,
    inlined from ‘graphql::response::Value::Value(graphql::response::Type)’ at /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/GraphQLResponse.cpp:931:26:
/usr/include/c++/13/bits/unique_ptr.h:99:9: error: ‘void operator delete(void*, std::size_t)’ called on unallocated object ‘<anonymous>’ [-Werror=free-nonheap-object]
   99 |         delete __ptr;
      |         ^~~~~~~~~~~~
/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/GraphQLResponse.cpp: In constructor ‘graphql::response::Value::Value(graphql::response::Type)’:
/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/GraphQLResponse.cpp:931:47: note: declared here
  931 |                         _data = { EnumData {} };
      |                                               ^
cc1plus: all warnings being treated as errors
[10/31] /usr/bin/c++  -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../include -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../PEGTL/include -isystem /root/vcpkg/installed/x64-linux/include -fPIC -O3 -DNDEBUG -std=gnu++20 -Wall -Wextra -pedantic -Werror -MD -MT src/CMakeFiles/generator_util.dir/GeneratorLoader.cpp.o -MF src/CMakeFiles/generator_util.dir/GeneratorLoader.cpp.o.d -o src/CMakeFiles/generator_util.dir/GeneratorLoader.cpp.o -c /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/GeneratorLoader.cpp
[11/31] /usr/bin/c++  -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../include -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../PEGTL/include -isystem /root/vcpkg/installed/x64-linux/include -fPIC -O3 -DNDEBUG -std=gnu++20 -Wall -Wextra -pedantic -Werror -MD -MT src/CMakeFiles/graphqlservice.dir/introspection/InputValueObject.cpp.o -MF src/CMakeFiles/graphqlservice.dir/introspection/InputValueObject.cpp.o.d -o src/CMakeFiles/graphqlservice.dir/introspection/InputValueObject.cpp.o -c /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/introspection/InputValueObject.cpp
[12/31] /usr/bin/c++  -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../include -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../PEGTL/include -isystem /root/vcpkg/installed/x64-linux/include -fPIC -O3 -DNDEBUG -std=gnu++20 -Wall -Wextra -pedantic -Werror -MD -MT src/CMakeFiles/graphqlservice.dir/introspection/FieldObject.cpp.o -MF src/CMakeFiles/graphqlservice.dir/introspection/FieldObject.cpp.o.d -o src/CMakeFiles/graphqlservice.dir/introspection/FieldObject.cpp.o -c /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/introspection/FieldObject.cpp
[13/31] /usr/bin/c++  -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../include -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../PEGTL/include -isystem /root/vcpkg/installed/x64-linux/include -fPIC -O3 -DNDEBUG -std=gnu++20 -Wall -Wextra -pedantic -Werror -MD -MT src/CMakeFiles/graphqlservice.dir/introspection/SchemaObject.cpp.o -MF src/CMakeFiles/graphqlservice.dir/introspection/SchemaObject.cpp.o.d -o src/CMakeFiles/graphqlservice.dir/introspection/SchemaObject.cpp.o -c /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/introspection/SchemaObject.cpp
[14/31] /usr/bin/c++  -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../include -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../PEGTL/include -isystem /root/vcpkg/installed/x64-linux/include -fPIC -O3 -DNDEBUG -std=gnu++20 -Wall -Wextra -pedantic -Werror -MD -MT src/CMakeFiles/graphqlservice.dir/introspection/DirectiveObject.cpp.o -MF src/CMakeFiles/graphqlservice.dir/introspection/DirectiveObject.cpp.o.d -o src/CMakeFiles/graphqlservice.dir/introspection/DirectiveObject.cpp.o -c /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/introspection/DirectiveObject.cpp
[15/31] /usr/bin/c++  -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../include -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../PEGTL/include -isystem /root/vcpkg/installed/x64-linux/include -fPIC -O3 -DNDEBUG -std=gnu++20 -Wall -Wextra -pedantic -Werror -MD -MT src/CMakeFiles/graphqlservice.dir/introspection/TypeObject.cpp.o -MF src/CMakeFiles/graphqlservice.dir/introspection/TypeObject.cpp.o.d -o src/CMakeFiles/graphqlservice.dir/introspection/TypeObject.cpp.o -c /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/introspection/TypeObject.cpp
[16/31] /usr/bin/c++ -DBOOST_CONTAINER_NO_LIB -DBOOST_CONTAINER_STATIC_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DBOOST_PROGRAM_OPTIONS_STATIC_LINK -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../include -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../PEGTL/include -isystem /root/vcpkg/installed/x64-linux/include -fPIC -O3 -DNDEBUG -std=gnu++20 -Wall -Wextra -pedantic -Werror -MD -MT src/CMakeFiles/clientgen.dir/ClientGenerator.cpp.o -MF src/CMakeFiles/clientgen.dir/ClientGenerator.cpp.o.d -o src/CMakeFiles/clientgen.dir/ClientGenerator.cpp.o -c /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/ClientGenerator.cpp
[17/31] /usr/bin/c++ -DBOOST_CONTAINER_NO_LIB -DBOOST_CONTAINER_STATIC_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DBOOST_PROGRAM_OPTIONS_STATIC_LINK -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../include -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../PEGTL/include -isystem /root/vcpkg/installed/x64-linux/include -fPIC -O3 -DNDEBUG -std=gnu++20 -Wall -Wextra -pedantic -Werror -MD -MT src/CMakeFiles/schemagen.dir/SchemaGenerator.cpp.o -MF src/CMakeFiles/schemagen.dir/SchemaGenerator.cpp.o.d -o src/CMakeFiles/schemagen.dir/SchemaGenerator.cpp.o -c /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/SchemaGenerator.cpp
[18/31] /usr/bin/c++ -DBOOST_CONTAINER_NO_LIB -DBOOST_CONTAINER_STATIC_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DBOOST_PROGRAM_OPTIONS_STATIC_LINK -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../include -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../PEGTL/include -isystem /root/vcpkg/installed/x64-linux/include -fPIC -O3 -DNDEBUG -std=gnu++20 -Wall -Wextra -pedantic -Werror -MD -MT src/CMakeFiles/clientgen.dir/RequestLoader.cpp.o -MF src/CMakeFiles/clientgen.dir/RequestLoader.cpp.o.d -o src/CMakeFiles/clientgen.dir/RequestLoader.cpp.o -c /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/RequestLoader.cpp
[19/31] /usr/bin/c++  -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../include -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../PEGTL/include -isystem /root/vcpkg/installed/x64-linux/include -fPIC -O3 -DNDEBUG -std=gnu++20 -Wall -Wextra -pedantic -Werror -MD -MT src/CMakeFiles/graphqlservice.dir/Validation.cpp.o -MF src/CMakeFiles/graphqlservice.dir/Validation.cpp.o.d -o src/CMakeFiles/graphqlservice.dir/Validation.cpp.o -c /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/Validation.cpp
[20/31] /usr/bin/c++  -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../include -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../PEGTL/include -isystem /root/vcpkg/installed/x64-linux/include -fPIC -O3 -DNDEBUG -std=gnu++20 -Wall -Wextra -pedantic -Werror -MD -MT src/CMakeFiles/graphqlservice.dir/GraphQLService.cpp.o -MF src/CMakeFiles/graphqlservice.dir/GraphQLService.cpp.o.d -o src/CMakeFiles/graphqlservice.dir/GraphQLService.cpp.o -c /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/GraphQLService.cpp
[21/31] /usr/bin/c++  -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../include -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../PEGTL/include -isystem /root/vcpkg/installed/x64-linux/include -fPIC -O3 -DNDEBUG -std=gnu++20 -Wall -Wextra -pedantic -Werror -MD -MT src/CMakeFiles/generator_util.dir/SchemaLoader.cpp.o -MF src/CMakeFiles/generator_util.dir/SchemaLoader.cpp.o.d -o src/CMakeFiles/generator_util.dir/SchemaLoader.cpp.o -c /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/SchemaLoader.cpp
[22/31] /usr/bin/c++  -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../include -I/root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/../PEGTL/include -isystem /root/vcpkg/installed/x64-linux/include -fPIC -O3 -DNDEBUG -std=gnu++20 -Wall -Wextra -pedantic -Werror -MD -MT src/CMakeFiles/graphqlpeg.dir/SyntaxTree.cpp.o -MF src/CMakeFiles/graphqlpeg.dir/SyntaxTree.cpp.o.d -o src/CMakeFiles/graphqlpeg.dir/SyntaxTree.cpp.o -c /root/vcpkg/buildtrees/cppgraphqlgen/src/v4.5.5-147cf636ad.clean/src/SyntaxTree.cpp
ninja: build stopped: subcommand failed.
@Cheney-W Cheney-W added the category:port-bug The issue is with a library, which is something the port should already support label May 11, 2024
@Cheney-W
Copy link
Contributor

This issue could be reproduced in the latest vcpkg version 2024-04-23-d6945642ee5c3076addd1a42c331bbf4cfc97457.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

No branches or pull requests

2 participants