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

Build error for Enum type in aserver.hpp #94

Open
jagpalgill opened this issue Apr 2, 2024 · 0 comments
Open

Build error for Enum type in aserver.hpp #94

jagpalgill opened this issue Apr 2, 2024 · 0 comments

Comments

@jagpalgill
Copy link
Contributor

The enum type in aserver.hpp generated code uses full path which should be replaced by typeName only.

In file included from ../software_manager.hpp:7,
from ../software_manager.cpp:1:
subprojects/phosphor-dbus-interfaces/gen/xyz/openbmc_project/Software/Update/aserver.hpp:80:119: error: template argument 2 is invalid
80 | using value_types = std::tuple<sdbusplus::message::unix_fd, xyz::openbmc_project::software::Update::ApplyTimes>;
| ^
subprojects/phosphor-dbus-interfaces/gen/xyz/openbmc_project/Software/Update/aserver.hpp:80:34: error: '' in namespace 'std' does not name a type
80 | using value_types = std::tuple<sdbusplus::message::unix_fd, xyz::openbmc_project::software::Update::ApplyTimes>;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
subprojects/phosphor-dbus-interfaces/gen/xyz/openbmc_project/Software/Update/aserver.hpp:168:49: error: parse error in template argument list
168 | utility::tuple_to_array(message::types::type_id<sdbusplus::message::unix_fd, xyz::openbmc_project::software::Update::ApplyTimes>());
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
subprojects/phosphor-dbus-interfaces/gen/xyz/openbmc_project/Software/Update/aserver.hpp:218:35: error: wrong number of template arguments (1, should be at least 2)
218 | requires (server_details::has_method<
| ^~~~~~~~~~
In file included from subprojects/phosphor-dbus-interfaces/gen/xyz/openbmc_project/Software/Update/aserver.hpp:2:
/usr/local/include/sdbusplus/async/server.hpp:111:9: note: provided for 'template<class Tag, class Instance, class ... Args> concept sdbusplus::async::server::details::has_method'
111 | concept has_method = has_method_nomsg<Tag, Instance, Args...> ||
| ^~~~~~~~~~
subprojects/phosphor-dbus-interfaces/gen/xyz/openbmc_project/Software/Update/aserver.hpp:219:134: error: template argument 4 is invalid
219 | start_update_t, Instance, sdbusplus::message::unix_fd, xyz::openbmc_project::software::Update::ApplyTimes>)
| ^
subprojects/phosphor-dbus-interfaces/gen/xyz/openbmc_project/Software/Update/aserver.hpp:218:45: error: missing template arguments before '<' token
218 | requires (server_details::has_method<
| ^
subprojects/phosphor-dbus-interfaces/gen/xyz/openbmc_project/Software/Update/aserver.hpp:219:43: error: expected primary-expression before ',' token
219 | start_update_t, Instance, sdbusplus::message::unix_fd, xyz::openbmc_project::software::Update::ApplyTimes>)
| ^
subprojects/phosphor-dbus-interfaces/gen/xyz/openbmc_project/Software/Update/aserver.hpp:219:53: error: expected primary-expression before ',' token
219 | start_update_t, Instance, sdbusplus::message::unix_fd, xyz::openbmc_project::software::Update::ApplyTimes>)
| ^
subprojects/phosphor-dbus-interfaces/gen/xyz/openbmc_project/Software/Update/aserver.hpp:219:82: error: expected primary-expression before ',' token
219 | start_update_t, Instance, sdbusplus::message::unix_fd, xyz::openbmc_project::software::Update::ApplyTimes>)
| ^
subprojects/phosphor-dbus-interfaces/gen/xyz/openbmc_project/Software/Update/aserver.hpp:219:116: error: 'template<class Instance, class Server> struct sdbusplus::aserver::xyz::openbmc_project::software::Update' used without template arguments
219 | start_update_t, Instance, sdbusplus::message::unix_fd, xyz::openbmc_project::software::Update::ApplyTimes>)
| ^~~~~~
subprojects/phosphor-dbus-interfaces/gen/xyz/openbmc_project/Software/Update/aserver.hpp:219:135: error: expected primary-expression before ')' token
219 | start_update_t, Instance, sdbusplus::message::unix_fd, xyz::openbmc_project::software::Update::ApplyTimes>)
| ^
subprojects/phosphor-dbus-interfaces/gen/xyz/openbmc_project/Software/Update/aserver.hpp: In static member function 'static int sdbusplus::aserver::xyz::openbmc_project::software::details::Update<Instance, Server>::_callback_m_start_update(sd_bus_message*, void*, sd_bus_error*) requires ':
subprojects/phosphor-dbus-interfaces/gen/xyz/openbmc_project/Software/Update/aserver.hpp:227:41: error: parse error in template argument list
227 | auto [image, applyTime] = m.unpack<sdbusplus::message::unix_fd, xyz::openbmc_project::software::Update::ApplyTimes>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
subprojects/phosphor-dbus-interfaces/gen/xyz/openbmc_project/Software/Update/aserver.hpp:230:33: error: parse error in template argument list
230 | server_details::has_method_msg<
| ^~~~~~~~~~~~~~~
231 | start_update_t, Instance, sdbusplus::message::unix_fd, xyz::openbmc_project::software::Update::ApplyTimes>;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@jagpalgill jagpalgill changed the title Build error for Enum type name in aserver.hpp Build error for Enum type in aserver.hpp Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant