Anbox-git compile error: A failure occurred in build()

Hi,
I didn’t know where to post this so apologies if it is in the wrong place.

I am using Manjaro MATE, and trying to install Anbox following the instructions here:

But when I get to typing yay -S anbox-git anbox-modules-dkms-git anbox-image
it gets to 59% of installing anbox-git then stops and says:

==> ERROR: A failure occurred in build().
    Aborting...

I have included the full output below, (in case it says anything to a non-newbie :slight_smile: )

Thankyou, Any help is appreciated,
Eric.

[c@c-pc ~]$ yay -S anbox-git
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur: 1]  anbox-git-1:r880.69e75c9-1

  1 anbox-git                                (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> n
:: PKGBUILD up to date, Skipping (1/1): anbox-git
  1 anbox-git                                (Build Files Exist)
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> Diffs to show?
==> n
:: Parsing SRCINFO (1/1): anbox-git
==> Making package: anbox-git 1:r1063.d521e28-1 (Wed 13 Mar 2019 17:24:55 GMT)
==> Retrieving sources...
  -> Updating anbox git repo...
Fetching origin
  -> Updating anbox-modules git repo...
Fetching origin
  -> Found anbox-container-manager.service
  -> Found anbox-session-manager.service
  -> Found 99-anbox.rules
  -> Found anbox.conf
  -> Found anbox.desktop
  -> Found anbox-bridge.network
  -> Found anbox-bridge.netdev
==> Validating source files with sha256sums...
    anbox ... Skipped
    anbox-modules ... Skipped
    anbox-container-manager.service ... Passed
    anbox-session-manager.service ... Passed
    99-anbox.rules ... Passed
    anbox.conf ... Passed
    anbox.desktop ... Passed
    anbox-bridge.network ... Passed
    anbox-bridge.netdev ... Passed
==> Cleaning up...
==> Making package: anbox-git 1:r1063.d521e28-1 (Wed 13 Mar 2019 17:25:02 GMT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating anbox git repo...
Fetching origin
  -> Updating anbox-modules git repo...
Fetching origin
  -> Found anbox-container-manager.service
  -> Found anbox-session-manager.service
  -> Found 99-anbox.rules
  -> Found anbox.conf
  -> Found anbox.desktop
  -> Found anbox-bridge.network
  -> Found anbox-bridge.netdev
==> Validating source files with sha256sums...
    anbox ... Skipped
    anbox-modules ... Skipped
    anbox-container-manager.service ... Passed
    anbox-session-manager.service ... Passed
    99-anbox.rules ... Passed
    anbox.conf ... Passed
    anbox.desktop ... Passed
    anbox-bridge.network ... Passed
    anbox-bridge.netdev ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of anbox git repo...
Cloning into 'anbox'...
done.
  -> Creating working copy of anbox-modules git repo...
Cloning into 'anbox-modules'...
done.
==> Starting prepare()...
==> Starting pkgver()...
==> Sources are ready.
==> Making package: anbox-git 1:r1063.d521e28-1 (Wed 13 Mar 2019 17:25:13 GMT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Starting build()...
-- The C compiler identification is GNU 8.2.1
-- The CXX compiler identification is GNU 8.2.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Treat warnings as errors
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Boost version: 1.69.0
-- Found the following Boost libraries:
--   filesystem
--   log
--   serialization
--   system
--   thread
--   program_options
--   date_time
--   log_setup
--   regex
--   chrono
--   atomic
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.6.0") 
-- Found EGL: /usr/lib/libEGL.so  
-- Found GLESv2: /usr/lib/libGLESv2.so  
-- Found Protobuf: /usr/lib/libprotobuf.so;-lpthread (found version "3.6.1") 
-- Checking for module 'sdl2'
--   Found sdl2, version 2.0.9
-- Checking for module 'SDL2_image'
--   Found SDL2_image, version 2.0.4
-- Checking for module 'dbus-1'
--   Found dbus-1, version 1.12.12
-- Checking for module 'lxc'
--   Found lxc, version 3.1.0
-- Checking for module 'properties-cpp'
--   Found properties-cpp, version 0.0.1
-- Checking for module 'libsystemd'
--   Found libsystemd, version 241
-- LXC version: 3.1.0
-- Boost version: 1.69.0
-- Found the following Boost libraries:
--   iostreams
--   system
--   regex
-- Boost version: 1.69.0
-- Found the following Boost libraries:
--   filesystem
--   system
--   unit_test_framework
-- Found libdw: /usr/lib/libdw.so  
-- Found libbfd: /usr/lib/libbfd.so  
-- Could NOT find libdwarf (missing: LIBDWARF_LIBRARY LIBDWARF_INCLUDE_DIR) 
-- Found Backward: /home/c/.cache/yay/anbox-git/src/anbox/external/backward-cpp  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/c/.cache/yay/anbox-git/src/anbox/build
Scanning dependencies of target process-cpp
[  0%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/backtrace.cpp.o
[  1%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/child_process.cpp.o
[  1%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/exec.cpp.o
[  2%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/fork.cpp.o
[  2%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/process.cpp.o
[  3%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/process_group.cpp.o
[  3%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/signal.cpp.o
[  4%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/signalable.cpp.o
[  4%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/standard_stream.cpp.o
[  4%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/wait.cpp.o
[  5%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/this_process.cpp.o
[  5%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/linux/proc/process/oom_adj.cpp.o
[  6%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/linux/proc/process/oom_score.cpp.o
[  6%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/linux/proc/process/oom_score_adj.cpp.o
[  7%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/linux/proc/process/stat.cpp.o
[  7%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/testing/cross_process_sync.cpp.o
[  8%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/testing/fork_and_run.cpp.o
[  8%] Linking CXX static library libprocess-cpp.a
[  8%] Built target process-cpp
Scanning dependencies of target emugen
[  8%] Building CXX object external/android-emugl/host/tools/emugen/CMakeFiles/emugen.dir/ApiGen.cpp.o
[  9%] Building CXX object external/android-emugl/host/tools/emugen/CMakeFiles/emugen.dir/EntryPoint.cpp.o
[  9%] Building CXX object external/android-emugl/host/tools/emugen/CMakeFiles/emugen.dir/main.cpp.o
[ 10%] Building CXX object external/android-emugl/host/tools/emugen/CMakeFiles/emugen.dir/Parser.cpp.o
[ 10%] Building CXX object external/android-emugl/host/tools/emugen/CMakeFiles/emugen.dir/strUtils.cpp.o
[ 11%] Building CXX object external/android-emugl/host/tools/emugen/CMakeFiles/emugen.dir/TypeFactory.cpp.o
[ 11%] Linking CXX executable emugen
[ 11%] Built target emugen
Scanning dependencies of target OpenglCodecCommon
[ 11%] Building CXX object external/android-emugl/shared/OpenglCodecCommon/CMakeFiles/OpenglCodecCommon.dir/ChecksumCalculator.cpp.o
[ 13%] Building CXX object external/android-emugl/shared/OpenglCodecCommon/CMakeFiles/OpenglCodecCommon.dir/ChecksumCalculatorThreadInfo.cpp.o
[ 13%] Building CXX object external/android-emugl/shared/OpenglCodecCommon/CMakeFiles/OpenglCodecCommon.dir/glUtils.cpp.o
[ 13%] Linking CXX static library libOpenglCodecCommon.a
[ 13%] Built target OpenglCodecCommon
Scanning dependencies of target GLHeaders
Generating /home/c/.cache/yay/anbox-git/src/anbox/build/external/android-emugl/host/include/OpenGLESDispatch/RenderEGL_functions.h
Generating /home/c/.cache/yay/anbox-git/src/anbox/build/external/android-emugl/host/include/OpenGLESDispatch/RenderEGL_extensions_functions.h
Generating /home/c/.cache/yay/anbox-git/src/anbox/build/external/android-emugl/host/include/OpenGLESDispatch/gles_common_functions.h
Generating /home/c/.cache/yay/anbox-git/src/anbox/build/external/android-emugl/host/include/OpenGLESDispatch/gles_extensions_functions.h
Generating /home/c/.cache/yay/anbox-git/src/anbox/build/external/android-emugl/host/include/OpenGLESDispatch/gles1_only_functions.h
Generating /home/c/.cache/yay/anbox-git/src/anbox/build/external/android-emugl/host/include/OpenGLESDispatch/gles1_extensions_functions.h
Generating /home/c/.cache/yay/anbox-git/src/anbox/build/external/android-emugl/host/include/OpenGLESDispatch/gles2_only_functions.h
Generating /home/c/.cache/yay/anbox-git/src/anbox/build/external/android-emugl/host/include/OpenGLESDispatch/gles2_extensions_functions.h
Generating /home/c/.cache/yay/anbox-git/src/anbox/build/external/android-emugl/host/include/OpenGLESDispatch/gles3_only_functions.h
[ 13%] Built target GLHeaders
[ 13%] Generating gles1_dec.cpp, gles1_opcodes.h, gles1_server_context.cpp
Scanning dependencies of target GLESv1_dec
[ 13%] Building CXX object external/android-emugl/host/libs/GLESv1_dec/CMakeFiles/GLESv1_dec.dir/GLESv1Decoder.cpp.o
[ 14%] Building CXX object external/android-emugl/host/libs/GLESv1_dec/CMakeFiles/GLESv1_dec.dir/gles1_dec.cpp.o
[ 14%] Building CXX object external/android-emugl/host/libs/GLESv1_dec/CMakeFiles/GLESv1_dec.dir/gles1_server_context.cpp.o
[ 15%] Linking CXX static library libGLESv1_dec.a
[ 15%] Built target GLESv1_dec
[ 15%] Generating gles2_dec.cpp, gles2_opcodes.h, gles2_server_context.cpp
Scanning dependencies of target GLESv2_dec
[ 16%] Building CXX object external/android-emugl/host/libs/GLESv2_dec/CMakeFiles/GLESv2_dec.dir/GLESv2Decoder.cpp.o
[ 16%] Building CXX object external/android-emugl/host/libs/GLESv2_dec/CMakeFiles/GLESv2_dec.dir/gles2_dec.cpp.o
[ 16%] Building CXX object external/android-emugl/host/libs/GLESv2_dec/CMakeFiles/GLESv2_dec.dir/gles2_server_context.cpp.o
[ 17%] Linking CXX static library libGLESv2_dec.a
[ 17%] Built target GLESv2_dec
Scanning dependencies of target emugl_common
[ 17%] Building CXX object external/android-emugl/shared/emugl/common/CMakeFiles/emugl_common.dir/crash_reporter.cpp.o
[ 18%] Building CXX object external/android-emugl/shared/emugl/common/CMakeFiles/emugl_common.dir/id_to_object_map.cpp.o
[ 18%] Building CXX object external/android-emugl/shared/emugl/common/CMakeFiles/emugl_common.dir/lazy_instance.cpp.o
[ 19%] Building CXX object external/android-emugl/shared/emugl/common/CMakeFiles/emugl_common.dir/logging.cpp.o
[ 19%] Building CXX object external/android-emugl/shared/emugl/common/CMakeFiles/emugl_common.dir/message_channel.cpp.o
[ 20%] Building CXX object external/android-emugl/shared/emugl/common/CMakeFiles/emugl_common.dir/mutex_unittest.cpp.o
[ 20%] Building CXX object external/android-emugl/shared/emugl/common/CMakeFiles/emugl_common.dir/pod_vector.cpp.o
[ 21%] Building CXX object external/android-emugl/shared/emugl/common/CMakeFiles/emugl_common.dir/shared_library.cpp.o
[ 21%] Building CXX object external/android-emugl/shared/emugl/common/CMakeFiles/emugl_common.dir/smart_ptr.cpp.o
[ 21%] Building CXX object external/android-emugl/shared/emugl/common/CMakeFiles/emugl_common.dir/sockets.cpp.o
[ 22%] Building CXX object external/android-emugl/shared/emugl/common/CMakeFiles/emugl_common.dir/thread_pthread.cpp.o
[ 22%] Building CXX object external/android-emugl/shared/emugl/common/CMakeFiles/emugl_common.dir/thread_store.cpp.o
[ 23%] Building CXX object external/android-emugl/shared/emugl/common/CMakeFiles/emugl_common.dir/thread_unittest.cpp.o
[ 23%] Linking CXX static library libemugl_common.a
[ 23%] Built target emugl_common
Scanning dependencies of target OpenGLESDispatch
[ 23%] Building CXX object external/android-emugl/host/libs/libOpenGLESDispatch/CMakeFiles/OpenGLESDispatch.dir/EGLDispatch.cpp.o
[ 25%] Building CXX object external/android-emugl/host/libs/libOpenGLESDispatch/CMakeFiles/OpenGLESDispatch.dir/GLESv2Dispatch.cpp.o
[ 25%] Building CXX object external/android-emugl/host/libs/libOpenGLESDispatch/CMakeFiles/OpenGLESDispatch.dir/GLESv1Dispatch.cpp.o
[ 26%] Linking CXX static library libOpenGLESDispatch.a
[ 26%] Built target OpenGLESDispatch
[ 26%] Generating renderControl_dec.cpp, renderControl_server_context.cpp
Scanning dependencies of target renderControl_dec
[ 27%] Building CXX object external/android-emugl/host/libs/renderControl_dec/CMakeFiles/renderControl_dec.dir/renderControl_dec.cpp.o
[ 27%] Building CXX object external/android-emugl/host/libs/renderControl_dec/CMakeFiles/renderControl_dec.dir/renderControl_server_context.cpp.o
[ 28%] Linking CXX static library librenderControl_dec.a
[ 28%] Built target renderControl_dec
Scanning dependencies of target xdg
[ 28%] Building CXX object external/xdg/CMakeFiles/xdg.dir/xdg.cpp.o
[ 29%] Linking CXX static library libxdg.a
[ 29%] Built target xdg
Scanning dependencies of target xdg_test
[ 29%] Building CXX object external/xdg/CMakeFiles/xdg_test.dir/xdg_test.cpp.o
[ 30%] Linking CXX executable xdg_test
[ 30%] Built target xdg_test
Scanning dependencies of target backward_object
[ 30%] Building CXX object external/backward-cpp/CMakeFiles/backward_object.dir/backward.cpp.o
In file included from /home/c/.cache/yay/anbox-git/src/anbox/external/backward-cpp/backward.cpp:26:
/home/c/.cache/yay/anbox-git/src/anbox/external/backward-cpp/backward.hpp:3707: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
 #pragma clang diagnostic push
 
/home/c/.cache/yay/anbox-git/src/anbox/external/backward-cpp/backward.hpp:3708: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
 #pragma clang diagnostic ignored "-Wdisabled-macro-expansion"
 
/home/c/.cache/yay/anbox-git/src/anbox/external/backward-cpp/backward.hpp:3710: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
 #pragma clang diagnostic pop
 
In file included from /home/c/.cache/yay/anbox-git/src/anbox/external/backward-cpp/backward.cpp:26:
/home/c/.cache/yay/anbox-git/src/anbox/external/backward-cpp/backward.hpp: In member function ‘backward::ResolvedTrace backward::TraceResolverLinuxImpl<backward::trace_resolver_tag::libdw>::resolve(backward::ResolvedTrace)’:
/home/c/.cache/yay/anbox-git/src/anbox/external/backward-cpp/backward.hpp:1324:46: warning: use of old-style cast to ‘Dwarf_Addr’ {aka ‘long unsigned int’} [-Wold-style-cast]
   Dwarf_Addr trace_addr = (Dwarf_Addr) trace.addr;
                                              ^~~~
                           -----------------------
                           reinterpret_cast<Dwarf_Addr> ( trace.addr)
/home/c/.cache/yay/anbox-git/src/anbox/external/backward-cpp/backward.hpp: In member function ‘void backward::TraceResolverLinuxImpl<backward::trace_resolver_tag::libdw>::inliners_search_cb::operator()(Dwarf_Die*)’:
/home/c/.cache/yay/anbox-git/src/anbox/external/backward-cpp/backward.hpp:1507:28: warning: use of old-style cast to ‘unsigned int’ [-Wold-style-cast]
      sloc.line = (unsigned)line;
                            ^~~~
                  --------------
                  static_cast<unsigned> (line)
/home/c/.cache/yay/anbox-git/src/anbox/external/backward-cpp/backward.hpp:1508:27: warning: use of old-style cast to ‘unsigned int’ [-Wold-style-cast]
      sloc.col = (unsigned)col;
                           ^~~
                 -------------
                 static_cast<unsigned> (col)
/home/c/.cache/yay/anbox-git/src/anbox/external/backward-cpp/backward.hpp:1483:11: warning: switch missing default case [-Wswitch-default]
    switch (dwarf_tag(die)) {
           ^
/home/c/.cache/yay/anbox-git/src/anbox/external/backward-cpp/backward.hpp: In static member function ‘static Dwarf_Die* backward::TraceResolverLinuxImpl<backward::trace_resolver_tag::libdw>::find_fundie_by_pc(Dwarf_Die*, Dwarf_Addr, Dwarf_Die*)’:
/home/c/.cache/yay/anbox-git/src/anbox/external/backward-cpp/backward.hpp:1559:11: warning: switch missing default case [-Wswitch-default]
    switch (dwarf_tag(die)) {
           ^
[ 30%] Built target backward_object
Scanning dependencies of target backward
[ 30%] Building CXX object external/backward-cpp/CMakeFiles/backward.dir/backward.cpp.o
In file included from /home/c/.cache/yay/anbox-git/src/anbox/external/backward-cpp/backward.cpp:26:
/home/c/.cache/yay/anbox-git/src/anbox/external/backward-cpp/backward.hpp:3707: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
 #pragma clang diagnostic push
 
/home/c/.cache/yay/anbox-git/src/anbox/external/backward-cpp/backward.hpp:3708: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
 #pragma clang diagnostic ignored "-Wdisabled-macro-expansion"
 
/home/c/.cache/yay/anbox-git/src/anbox/external/backward-cpp/backward.hpp:3710: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
 #pragma clang diagnostic pop
 
In file included from /home/c/.cache/yay/anbox-git/src/anbox/external/backward-cpp/backward.cpp:26:
/home/c/.cache/yay/anbox-git/src/anbox/external/backward-cpp/backward.hpp: In member function ‘backward::ResolvedTrace backward::TraceResolverLinuxImpl<backward::trace_resolver_tag::libdw>::resolve(backward::ResolvedTrace)’:
/home/c/.cache/yay/anbox-git/src/anbox/external/backward-cpp/backward.hpp:1324:46: warning: use of old-style cast to ‘Dwarf_Addr’ {aka ‘long unsigned int’} [-Wold-style-cast]
   Dwarf_Addr trace_addr = (Dwarf_Addr) trace.addr;
                                              ^~~~
                           -----------------------
                           reinterpret_cast<Dwarf_Addr> ( trace.addr)
/home/c/.cache/yay/anbox-git/src/anbox/external/backward-cpp/backward.hpp: In member function ‘void backward::TraceResolverLinuxImpl<backward::trace_resolver_tag::libdw>::inliners_search_cb::operator()(Dwarf_Die*)’:
/home/c/.cache/yay/anbox-git/src/anbox/external/backward-cpp/backward.hpp:1507:28: warning: use of old-style cast to ‘unsigned int’ [-Wold-style-cast]
      sloc.line = (unsigned)line;
                            ^~~~
                  --------------
                  static_cast<unsigned> (line)
/home/c/.cache/yay/anbox-git/src/anbox/external/backward-cpp/backward.hpp:1508:27: warning: use of old-style cast to ‘unsigned int’ [-Wold-style-cast]
      sloc.col = (unsigned)col;
                           ^~~
                 -------------
                 static_cast<unsigned> (col)
/home/c/.cache/yay/anbox-git/src/anbox/external/backward-cpp/backward.hpp:1483:11: warning: switch missing default case [-Wswitch-default]
    switch (dwarf_tag(die)) {
           ^
/home/c/.cache/yay/anbox-git/src/anbox/external/backward-cpp/backward.hpp: In static member function ‘static Dwarf_Die* backward::TraceResolverLinuxImpl<backward::trace_resolver_tag::libdw>::find_fundie_by_pc(Dwarf_Die*, Dwarf_Addr, Dwarf_Die*)’:
/home/c/.cache/yay/anbox-git/src/anbox/external/backward-cpp/backward.hpp:1559:11: warning: switch missing default case [-Wswitch-default]
    switch (dwarf_tag(die)) {
           ^
[ 31%] Linking CXX static library libbackward.a
[ 31%] Built target backward
Scanning dependencies of target cpu_features
[ 32%] Building C object external/cpu_features/CMakeFiles/cpu_features.dir/src/linux_features_aggregator.c.o
[ 32%] Building C object external/cpu_features/CMakeFiles/cpu_features.dir/src/cpuid_x86_clang_gcc.c.o
[ 33%] Building C object external/cpu_features/CMakeFiles/cpu_features.dir/src/cpuid_x86_msvc.c.o
[ 33%] Building C object external/cpu_features/CMakeFiles/cpu_features.dir/src/cpuinfo_aarch64.c.o
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_aarch64.c: In function ‘GetAarch64FeaturesEnumValue’:
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_aarch64.c:100:3: warning: switch missing default case [-Wswitch-default]
   switch (value) {
   ^~~~~~
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_aarch64.c: In function ‘GetAarch64FeaturesEnumName’:
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_aarch64.c:122:3: warning: switch missing default case [-Wswitch-default]
   switch (value) {
   ^~~~~~
[ 33%] Building C object external/cpu_features/CMakeFiles/cpu_features.dir/src/cpuinfo_arm.c.o
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_arm.c: In function ‘FixErrors’:
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_arm.c:130:32: warning: overflow in conversion from ‘int’ to ‘signed char:1’ changes value from ‘1’ to ‘-1’ [-Woverflow]
         info->features.idiva = true;
                                ^~~~
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_arm.c:141:30: warning: overflow in conversion from ‘int’ to ‘signed char:1’ changes value from ‘1’ to ‘-1’ [-Woverflow]
       info->features.idiva = true;
                              ^~~~
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_arm.c:142:30: warning: overflow in conversion from ‘int’ to ‘signed char:1’ changes value from ‘1’ to ‘-1’ [-Woverflow]
       info->features.idivt = true;
                              ^~~~
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_arm.c:121:3: warning: switch missing default case [-Wswitch-default]
   switch (GetCpuId(info)) {
   ^~~~~~
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_arm.c:147:52: warning: overflow in conversion from ‘int’ to ‘signed char:1’ changes value from ‘1’ to ‘-1’ [-Woverflow]
   if (info->features.vfpv4) info->features.vfpv3 = true;
                                                    ^~~~
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_arm.c:148:51: warning: overflow in conversion from ‘int’ to ‘signed char:1’ changes value from ‘1’ to ‘-1’ [-Woverflow]
   if (info->features.neon) info->features.vfpv3 = true;
                                                   ^~~~
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_arm.c:149:50: warning: overflow in conversion from ‘int’ to ‘signed char:1’ changes value from ‘1’ to ‘-1’ [-Woverflow]
   if (info->features.vfpv3) info->features.vfp = true;
                                                  ^~~~
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_arm.c: In function ‘GetArmFeaturesEnumValue’:
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_arm.c:194:3: warning: switch missing default case [-Wswitch-default]
   switch (value) {
   ^~~~~~
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_arm.c: In function ‘GetArmFeaturesEnumName’:
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_arm.c:228:3: warning: switch missing default case [-Wswitch-default]
   switch (value) {
   ^~~~~~
[ 34%] Building C object external/cpu_features/CMakeFiles/cpu_features.dir/src/cpuinfo_mips.c.o
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_mips.c: In function ‘GetMipsFeaturesEnumValue’:
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_mips.c:77:3: warning: switch missing default case [-Wswitch-default]
   switch (value) {
   ^~~~~~
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_mips.c: In function ‘GetMipsFeaturesEnumName’:
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_mips.c:89:3: warning: switch missing default case [-Wswitch-default]
   switch (value) {
   ^~~~~~
[ 34%] Building C object external/cpu_features/CMakeFiles/cpu_features.dir/src/cpuinfo_ppc.c.o
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_ppc.c: In function ‘GetPPCFeaturesEnumValue’:
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_ppc.c:180:3: warning: switch missing default case [-Wswitch-default]
   switch (value) {
   ^~~~~~
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_ppc.c: In function ‘GetPPCFeaturesEnumName’:
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_ppc.c:271:3: warning: switch missing default case [-Wswitch-default]
   switch (value) {
   ^~~~~~
[ 35%] Building C object external/cpu_features/CMakeFiles/cpu_features.dir/src/cpuinfo_x86.c.o
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_x86.c: In function ‘GetX86FeaturesEnumValue’:
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_x86.c:264:3: warning: switch missing default case [-Wswitch-default]
   switch (value) {
   ^~~~~~
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_x86.c: In function ‘GetX86FeaturesEnumName’:
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_x86.c:332:3: warning: switch missing default case [-Wswitch-default]
   switch (value) {
   ^~~~~~
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_x86.c: In function ‘GetX86MicroarchitectureName’:
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_x86.c:400:3: warning: switch missing default case [-Wswitch-default]
   switch (uarch) {
   ^~~~~~
[ 35%] Building C object external/cpu_features/CMakeFiles/cpu_features.dir/src/filesystem.c.o
[ 36%] Building C object external/cpu_features/CMakeFiles/cpu_features.dir/src/hwcaps.c.o
[ 36%] Building C object external/cpu_features/CMakeFiles/cpu_features.dir/src/stack_line_reader.c.o
[ 36%] Building C object external/cpu_features/CMakeFiles/cpu_features.dir/src/string_view.c.o
[ 38%] Linking C static library libcpu_features.a
[ 38%] Built target cpu_features
Scanning dependencies of target list_cpu_features
[ 39%] Building C object external/cpu_features/CMakeFiles/list_cpu_features.dir/src/utils/list_cpu_features.c.o
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/utils/list_cpu_features.c: In function ‘PrintEscapedAscii’:
/home/c/.cache/yay/anbox-git/src/anbox/external/cpu_features/src/utils/list_cpu_features.c:29:5: warning: switch missing default case [-Wswitch-default]
     switch (*str) {
     ^~~~~~
[ 39%] Linking C executable list_cpu_features
[ 39%] Built target list_cpu_features
[ 40%] Running cpp protocol buffer compiler on anbox/protobuf/anbox_container.proto
[libprotobuf WARNING google/protobuf/compiler/parser.cc:562] No syntax specified for the proto file: anbox_container.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[ 41%] Running cpp protocol buffer compiler on anbox/protobuf/anbox_bridge.proto
[libprotobuf WARNING google/protobuf/compiler/parser.cc:562] No syntax specified for the proto file: anbox_bridge.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[ 41%] Running cpp protocol buffer compiler on anbox/protobuf/anbox_rpc.proto
[libprotobuf WARNING google/protobuf/compiler/parser.cc:562] No syntax specified for the proto file: anbox_rpc.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
Scanning dependencies of target anbox-protobuf
[ 41%] Building CXX object src/CMakeFiles/anbox-protobuf.dir/anbox_bridge.pb.cc.o
[ 41%] Building CXX object src/CMakeFiles/anbox-protobuf.dir/anbox_rpc.pb.cc.o
[ 42%] Building CXX object src/CMakeFiles/anbox-protobuf.dir/anbox_container.pb.cc.o
[ 42%] Building CXX object src/CMakeFiles/anbox-protobuf.dir/anbox/protobuf/google_protobuf_guard.cpp.o
[ 43%] Linking CXX static library libanbox-protobuf.a
[ 43%] Built target anbox-protobuf
Scanning dependencies of target anbox-core
[ 44%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/android/intent.cpp.o
[ 44%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/android/ip_config_builder.cpp.o
[ 45%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/application/database.cpp.o
[ 45%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/application/launcher_storage.cpp.o
[ 46%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/audio/server.cpp.o
[ 46%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/bridge/android_api_stub.cpp.o
[ 46%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/bridge/platform_api_skeleton.cpp.o
[ 47%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/bridge/platform_message_processor.cpp.o
[ 47%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/cmds/container_manager.cpp.o
[ 48%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/cmds/launch.cpp.o
[ 48%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/cmds/session_manager.cpp.o
[ 50%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/cmds/system_info.cpp.o
[ 50%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/cmds/version.cpp.o
[ 51%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/cmds/wait_ready.cpp.o
[ 51%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/cmds/check_features.cpp.o
[ 51%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/common/binary_writer.cpp.o
[ 52%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/common/dispatcher.cpp.o
[ 52%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/common/fd.cpp.o
[ 53%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/common/loop_device_allocator.cpp.o
[ 53%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/common/loop_device.cpp.o
[ 54%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/common/message_channel.cpp.o
[ 54%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/common/mount_entry.cpp.o
[ 55%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/common/wait_handle.cpp.o
[ 55%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/container/client.cpp.o
[ 55%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/container/container.cpp.o
[ 56%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/container/lxc_container.cpp.o
[ 56%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/container/management_api_message_processor.cpp.o
[ 57%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/container/management_api_skeleton.cpp.o
[ 57%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/container/management_api_stub.cpp.o
[ 58%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/container/service.cpp.o
[ 58%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/dbus/bus.cpp.o
[ 59%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/dbus/skeleton/application_manager.cpp.o
In file included from /home/c/.cache/yay/anbox-git/src/anbox/src/anbox/dbus/skeleton/application_manager.cpp:20:
/home/c/.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/c/.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/c/.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/c/.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/c/.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/c/.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};
                                                      ^
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[1]: *** [CMakeFiles/Makefile2:1970: src/CMakeFiles/anbox-core.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
Error making: anbox-git

This compiler option will make the compilation process fail whenever there is a warning. Warnings during compilation may or may not be serious, but generally you don’t want any, which is why developers turn on the “all warnings are errors” option, -Werror.

You can override this option but the better option is to have the upstream developers fix the issue.

There’s already a comment on the AUR page so this is known to the package maintainer - they can update the package if they want to override -Werror.

2 Likes

Thankyou, jonathon.
how would I override it? cause i don’t know how long it will be before the developers release a new version.
Eric.

Edit the PKGBUILD and add:

build() {
    export CXXFLAGS+=" -Wno-error=missing-field-initializers"
    ...
}

then build again, e.g. using makepkg.

Thanks,
I have done that, but it still says the same.

[ 59%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/dbus/skeleton/application_manager.cpp.o
In file included from /home/c/.cache/yay/anbox-git/src/anbox/src/anbox/dbus/skeleton/application_manager.cpp:20:
/home/c/.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/c/.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/c/.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/c/.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/c/.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/c/.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};
                                                      ^
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[1]: *** [CMakeFiles/Makefile2:1970: src/CMakeFiles/anbox-core.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
Error making: anbox-git

what have I done wrong?

Oh. I missed an export. I’ve edited the above post, try that instead.

i tried adding an export, but it still says the same thing.

Let me look at the PKGBUILD for you.

Just so you know, building a development snapshot of some software from source isn’t really a newbie-friendly thing to do, especially when you have no idea what’s involved.

OK.

Swap line 59 for:

cmake .. -DCMAKE_INSTALL_LIBDIR=/usr/lib -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_CXX_FLAGS="-Wno-error=implicit-fallthrough -Wno-error=missing-field-initializers" -DCMAKE_BUILD_TYPE=Release

and try again.

3 Likes

I had the same ERROR, I follow your recommendation and it works now, thank you!

Sincerely,

1-week Linux user:)

if someone wants anbox-git prebuilt binary
its available on this repo.
chaotic-aur

Finaly got it working

I get this error

 46%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/bridge/android_api_stub.cpp.o
/var/tmp/pamac-build-sff/anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp: In member function ‘virtual void anbox::bridge::AndroidApiStub::launch(const anbox::android::Intent&, const anbox::graphics::Rect&, const anbox::wm::Stack::Id&)’:
/var/tmp/pamac-build-sff/anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp:107:25: error: ‘NewCallback’ is not a member of ‘google::protobuf’
       google::protobuf::NewCallback(this, &AndroidApiStub::application_launched,
                         ^~~~~~~~~~~
/var/tmp/pamac-build-sff/anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp: In member function ‘void anbox::bridge::AndroidApiStub::set_focused_task(const int32_t&)’:
/var/tmp/pamac-build-sff/anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp:141:43: error: ‘NewCallback’ is not a member of ‘google::protobuf’
                         google::protobuf::NewCallback(
                                           ^~~~~~~~~~~
/var/tmp/pamac-build-sff/anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp: In member function ‘void anbox::bridge::AndroidApiStub::remove_task(const int32_t&)’:
/var/tmp/pamac-build-sff/anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp:170:43: error: ‘NewCallback’ is not a member of ‘google::protobuf’
                         google::protobuf::NewCallback(
                                           ^~~~~~~~~~~
/var/tmp/pamac-build-sff/anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp: In member function ‘void anbox::bridge::AndroidApiStub::resize_task(const int32_t&, const anbox::graphics::Rect&, const int32_t&)’:
/var/tmp/pamac-build-sff/anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp:208:43: error: ‘NewCallback’ is not a member of ‘google::protobuf’
                         google::protobuf::NewCallback(
                                           ^~~~~~~~~~~
make[2]: *** [src/CMakeFiles/anbox-core.dir/build.make:128: src/CMakeFiles/anbox-core.dir/anbox/bridge/android_api_stub.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1970: src/CMakeFiles/anbox-core.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

There is a solution for this, but i don’t know how to apply it.

i tried added this

 prepare() {
   cd "$srcdir/${_pkgname}"

+  git remote rm protobuf || true
+  git remote add -f protobuf git@github.com:Firenox89/anbox.git
+  git merge protobuf/master
+
   # Don't build tests

didn’t worked. i also tried to install a fork version https://github.com/Firenox89/anbox but I don’t know how to.
I’m supposed to do this:

$ git clone https://github.com/Firenox89/anbox.git
$ cd anbox
$ mkdir build
$ cd build
$ cmake ..
$ make

I don’t know what to do with “cmake”. i tried help, I got this
"
cmake [options]
cmake [options]
cmake [options] -S -B <path-to-build"

When trying I get another error.

What am I supposed to do to get anbox running?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by Bytemark