Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Cannot build anbox due to missing field initializers #1124

Closed
marmistrz opened this issue Apr 30, 2019 · 3 comments
Closed

Cannot build anbox due to missing field initializers #1124

marmistrz opened this issue Apr 30, 2019 · 3 comments
Labels

Comments

@marmistrz
Copy link

I used the AUR package anbox-git

In file included from /home/marcin/.cache/yay/anbox-git/src/anbox/src/anbox/dbus/skeleton/application_manager.cpp:20:
/home/marcin/.cache/yay/anbox-git/src/anbox/src/anbox/dbus/sd_bus_helpers.h: In function ‘constexpr sd_bus_vtable anbox::dbus::sdbus::vtable::start(uint64_t)’:
/home/marcin/.cache/yay/anbox-git/src/anbox/src/anbox/dbus/sd_bus_helpers.h:33:56: error: missing initializer for member ‘sd_bus_vtable::<unnamed union>::<unnamed struct>::features’ [-Werror=missing-field-initializers]
   v.x.start = decltype(v.x.start){sizeof(sd_bus_vtable)};
                                                        ^
/home/marcin/.cache/yay/anbox-git/src/anbox/src/anbox/dbus/sd_bus_helpers.h:33:56: error: missing initializer for member ‘sd_bus_vtable::<unnamed union>::<unnamed struct>::vtable_format_reference’ [-Werror=missing-field-initializers]
/home/marcin/.cache/yay/anbox-git/src/anbox/src/anbox/dbus/sd_bus_helpers.h: In function ‘constexpr sd_bus_vtable anbox::dbus::sdbus::vtable::method_o(const char*, const char*, const char*, sd_bus_message_handler_t, size_t, uint64_t)’:
/home/marcin/.cache/yay/anbox-git/src/anbox/src/anbox/dbus/sd_bus_helpers.h:52:79: error: missing initializer for member ‘sd_bus_vtable::<unnamed union>::<unnamed struct>::names’ [-Werror=missing-field-initializers]
   v.x.method = decltype(v.x.method){member, signature, result, handler, offset};
                                                                               ^
/home/marcin/.cache/yay/anbox-git/src/anbox/src/anbox/dbus/sd_bus_helpers.h: In function ‘constexpr sd_bus_vtable anbox::dbus::sdbus::vtable::signal(const char*, const char*, uint64_t)’:
/home/marcin/.cache/yay/anbox-git/src/anbox/src/anbox/dbus/sd_bus_helpers.h:67:54: error: missing initializer for member ‘sd_bus_vtable::<unnamed union>::<unnamed struct>::names’ [-Werror=missing-field-initializers]
   v.x.signal = decltype(v.x.signal){member, signature};
                                                      ^
/home/marcin/.cache/yay/anbox-git/src/anbox/src/anbox/dbus/stub/application_manager.cpp: In member function ‘virtual void anbox::dbus::stub::ApplicationManager::launch(const anbox::android::Intent&, const anbox::graphics::Rect&, const anbox::wm::Stack::Id&)’:
/home/marcin/.cache/yay/anbox-git/src/anbox/src/anbox/dbus/stub/application_manager.cpp:119:34: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas]
   #pragma GCC diagnostic warning "-Wc99-extensions"
                                  ^~~~~~~~~~~~~~~~~~
[ 60%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/buffered_io_stream.cpp.o
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/anbox-core.dir/build.make:466: src/CMakeFiles/anbox-core.dir/anbox/dbus/skeleton/application_manager.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:1859: src/CMakeFiles/anbox-core.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
@doublegrey
Copy link

Hello, Marcin!
I suggest you to read comments: https://aur.archlinux.org/packages/anbox-git/

You should add -Wno-error=missing-field-initializers to DCMAKE_CXX_FLAGS in PKGBUILD

@marmistrz
Copy link
Author

@doublegrey the comment you mention was added the day after I reported this issue ;)
Anyway, it doesn't look as if the missing initializers are intended. If it is, feel free to close this issue.

bendlas added a commit to NixOS/nixpkgs that referenced this issue Jul 31, 2019
@stale
Copy link

stale bot commented Aug 30, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the decaying label Aug 30, 2019
@stale stale bot closed this as completed Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants