Skip to content

Incompatible with rapidyaml 0.11.0+ #1312

Description

@jcpunk

When built on Fedora rawhide:

FAILED: [code=1] CMakeFiles/jsonnet_obj_shared.dir/core/vm.cpp.o 
/usr/bin/g++ -DUSE_SYSTEM_RAPIDYAML -I/root/rpmbuild/BUILD/jsonnet-0.22.0-build/jsonnet-0.22.0/include -I/root/rpmbuild/BUILD/jsonnet-0.22.0-build/jsonnet-0.22.0/third_party/md5 -I/root/rpmbuild/BUILD/jsonnet-0.22.0-build/jsonnet-0.22.0/redhat-linux-build/stdlib -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -I/usr/include/nlohmann -std=c++17 -fPIC -Wall -Wextra -Wimplicit-fallthrough -pedantic -Woverloaded-virtual -MD -MT CMakeFiles/jsonnet_obj_shared.dir/core/vm.cpp.o -MF CMakeFiles/jsonnet_obj_shared.dir/core/vm.cpp.o.d -o CMakeFiles/jsonnet_obj_shared.dir/core/vm.cpp.o -c /root/rpmbuild/BUILD/jsonnet-0.22.0-build/jsonnet-0.22.0/core/vm.cpp
/root/rpmbuild/BUILD/jsonnet-0.22.0-build/jsonnet-0.22.0/core/vm.cpp: In member function ‘const jsonnet::internal::AST* jsonnet::internal::{anonymous}::Interpreter::builtinParseYaml(const jsonnet::internal::LocationRange&, const std::vector<jsonnet::internal::{anonymous}::Value>&)’:
/root/rpmbuild/BUILD/jsonnet-0.22.0-build/jsonnet-0.22.0/core/vm.cpp:1720:44: error: invalid conversion from ‘void (*)(const char*, size_t, c4::yml::Location, void*)’ {aka ‘void (*)(const char*, long unsigned int, c4::yml::Location, void*)’} to ‘c4::yml::pfn_error_basic’ {aka ‘void (*)(c4::basic_substring<const char>, const c4::yml::ErrorDataBasic&, void*)’} [-fpermissive]
 1720 |                 nullptr, nullptr, nullptr, &Interpreter::handleRapidYamlError
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                            |
      |                                            void (*)(const char*, size_t, c4::yml::Location, void*) {aka void (*)(const char*, long unsigned int, c4::yml::Location, void*)}
In file included from /usr/include/c4/yml/tree.hpp:16,
                 from /usr/include/c4/yml/yml.hpp:5,
                 from /usr/include/ryml.hpp:4,
                 from /root/rpmbuild/BUILD/jsonnet-0.22.0-build/jsonnet-0.22.0/core/vm.cpp:33:
/usr/include/c4/yml/common.hpp:527:83: note: initializing argument 4 of ‘c4::yml::Callbacks::Callbacks(void*, c4::yml::pfn_allocate, c4::yml::pfn_free, c4::yml::pfn_error_basic)’
  527 |     Callbacks(void *user_data, pfn_allocate alloc, pfn_free free, pfn_error_basic error_basic);
      |                                                                   ~~~~~~~~~~~~~~~~^~~~~~~~~~~
/root/rpmbuild/BUILD/jsonnet-0.22.0-build/jsonnet-0.22.0/core/vm.cpp:1721:13: warning: ‘c4::yml::Callbacks::Callbacks(void*, c4::yml::pfn_allocate, c4::yml::pfn_free, c4::yml::pfn_error_basic)’ is deprecated: use the default constructor, followed by the appropriate setters [-Wdeprecated-declarations]
 1721 |             }};
      |             ^
/usr/include/c4/yml/common.hpp:527:5: note: declared here
  527 |     Callbacks(void *user_data, pfn_allocate alloc, pfn_free free, pfn_error_basic error_basic);
      |     ^~~~~~~~~

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions