pdidev / pdi

The PDI Data Interface
https://pdi.dev
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

set_value plugin not working properly #429

Closed jbigot closed 2 months ago

jbigot commented 2 years ago

In GitLab by @Yushan-Wang on Sep 2, 2022, 15:22

What I want to achieve:

Error I got:

io_root.yml

jbigot commented 2 years ago

I tried with the following yaml and didn't get an error:

  metadata:
    my_value: int
  data:
  plugins:
    set_value:
      on_init:
        - expose:
          - my_value: 1
jbigot commented 2 years ago

In GitLab by @Yushan-Wang on Sep 5, 2022, 15:34

I am using a MAC. So strange things can happen... I got some warnings during the set_value plugin installation phase.


ld: warning: direct access in function 'PDI::Config_error::Config_error<char [22], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(PC_tree_s, char const (&) [22], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)' from file 'CMakeFiles/pdi_set_value_plugin.dir/trigger.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 500ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'PDI::Config_error::Config_error<char [22], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(PC_tree_s, char const (&) [22], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)' from file 'CMakeFiles/pdi_set_value_plugin.dir/trigger.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 500ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'PDI::Config_error::Config_error<char [37]>(PC_tree_s, char const (&) [37])' from file 'CMakeFiles/pdi_set_value_plugin.dir/trigger.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 500ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'PDI::Config_error::Config_error<char [37]>(PC_tree_s, char const (&) [37])' from file 'CMakeFiles/pdi_set_value_plugin.dir/trigger.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 500ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'set_value::Logger_operation::execute()' from file 'CMakeFiles/pdi_set_value_plugin.dir/logger_operation.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'set_value::Logger_operation::execute()' from file 'CMakeFiles/pdi_set_value_plugin.dir/logger_operation.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'PDI::Value_error::Value_error<char [88], unsigned long, unsigned long>(char const (&) [88], unsigned long&&, unsigned long&&)' from file 'CMakeFiles/pdi_set_value_plugin.dir/set_operation.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 500ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'set_value::Set_operation::Set_operation(PDI::Context&, PC_tree_s)' from file 'CMakeFiles/pdi_set_value_plugin.dir/set_operation.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'set_value::Set_operation::Set_operation(PDI::Context&, PC_tree_s)' from file 'CMakeFiles/pdi_set_value_plugin.dir/set_operation.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'PDI::Right_error::Right_error<char [39]>(char const (&) [39])' from file 'CMakeFiles/pdi_set_value_plugin.dir/set_operation.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 500ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'PDI::Right_error::Right_error<char [47], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(char const (&) [47], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)' from file 'CMakeFiles/pdi_set_value_plugin.dir/set_operation.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 500ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'set_value::Set_operation::execute()' from file 'CMakeFiles/pdi_set_value_plugin.dir/set_operation.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'set_value::Share_operation::execute()' from file 'CMakeFiles/pdi_set_value_plugin.dir/share_operation.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'set_value::Share_operation::Share_operation(PDI::Context&, PC_tree_s)' from file 'CMakeFiles/pdi_set_value_plugin.dir/share_operation.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'set_value::Share_operation::Share_operation(PDI::Context&, PC_tree_s)' from file 'CMakeFiles/pdi_set_value_plugin.dir/share_operation.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'set_value::Expose_operation::execute()' from file 'CMakeFiles/pdi_set_value_plugin.dir/expose_operation.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'set_value::Expose_operation::Expose_operation(PDI::Context&, PC_tree_s)' from file 'CMakeFiles/pdi_set_value_plugin.dir/expose_operation.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'set_value::Expose_operation::Expose_operation(PDI::Context&, PC_tree_s)' from file 'CMakeFiles/pdi_set_value_plugin.dir/expose_operation.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'void spdlog::logger::log<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(spdlog::source_loc, spdlog::level::level_enum, fmt::v6::basic_string_view<char>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' from file 'CMakeFiles/pdi_set_value_plugin.dir/event_operation.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'void spdlog::logger::log<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(spdlog::source_loc, spdlog::level::level_enum, fmt::v6::basic_string_view<char>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' from file 'CMakeFiles/pdi_set_value_plugin.dir/event_operation.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'set_value::Release_operation::Release_operation(PDI::Context&, PC_tree_s)' from file 'CMakeFiles/pdi_set_value_plugin.dir/release_operation.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'set_value::Release_operation::Release_operation(PDI::Context&, PC_tree_s)' from file 'CMakeFiles/pdi_set_value_plugin.dir/release_operation.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'set_value::Set_operation::Set_operation(PDI::Context&, PC_tree_s) [clone .cold]' from file 'CMakeFiles/pdi_set_value_plugin.dir/set_operation.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'set_value::Set_operation::Set_operation(PDI::Context&, PC_tree_s) [clone .cold]' from file 'CMakeFiles/pdi_set_value_plugin.dir/set_operation.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'set_value::Set_operation::execute() [clone .cold]' from file 'CMakeFiles/pdi_set_value_plugin.dir/set_operation.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'set_value::Share_operation::execute() [clone .cold]' from file 'CMakeFiles/pdi_set_value_plugin.dir/share_operation.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'set_value::Share_operation::Share_operation(PDI::Context&, PC_tree_s) [clone .cold]' from file 'CMakeFiles/pdi_set_value_plugin.dir/share_operation.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'set_value::Share_operation::Share_operation(PDI::Context&, PC_tree_s) [clone .cold]' from file 'CMakeFiles/pdi_set_value_plugin.dir/share_operation.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'set_value::Expose_operation::execute() [clone .cold]' from file 'CMakeFiles/pdi_set_value_plugin.dir/expose_operation.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'set_value::Expose_operation::Expose_operation(PDI::Context&, PC_tree_s) [clone .cold]' from file 'CMakeFiles/pdi_set_value_plugin.dir/expose_operation.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'set_value::Expose_operation::Expose_operation(PDI::Context&, PC_tree_s) [clone .cold]' from file 'CMakeFiles/pdi_set_value_plugin.dir/expose_operation.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'set_value::Release_operation::Release_operation(PDI::Context&, PC_tree_s) [clone .cold]' from file 'CMakeFiles/pdi_set_value_plugin.dir/release_operation.cxx.o' to global weak symbol 'vtable for fmt::v6::basic_memory_buffer<char, 250ul, std::allocator<char> >' from file '/Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
[100%] Built target pdi_set_value_plugin
[ 70%] Performing install step for 'SET_VALUE_PLUGIN_pkg'
Consolidate compiler generated dependencies of target pdi_set_value_plugin
[100%] Built target pdi_set_value_plugin
Install the project...
-- Install configuration: "Release"
-- Installing: /Users/yushan/Work/grand-challenge/pdi-master/build/staging/lib/pdi/plugins_1.6.0/libpdi_set_value_plugin.so
[ 72%] Completed 'SET_VALUE_PLUGIN_pkg'
[ 72%] Built target SET_VALUE_PLUGIN_pkg