Closed issue by xtraeme on void-packages repository https://github.com/void-linux/void-packages/issues/12878 Description: ``` => flatbuffers-1.10.0_1: building [cmake] ... [host] cmake-3.14.5_1: found (/host/binpkgs/xbps-src-ultra-fast) => flatbuffers-1.10.0_1: installing host dependencies: cmake-3.14.5_1 ... => flatbuffers-1.10.0_1: running do-fetch hook: 00-distfiles ... => flatbuffers-1.10.0_1: running do-extract hook: 00-distfiles ... => flatbuffers-1.10.0_1: extracting distfile(s), please wait... => flatbuffers-1.10.0_1: running do-patch hook: 00-patches ... => flatbuffers-1.10.0_1: patching: install.patch. => flatbuffers-1.10.0_1: running pre-configure hook: 00-gnu-configure-asneeded ... => flatbuffers-1.10.0_1: running pre-configure hook: 01-override-config ... => flatbuffers-1.10.0_1: running pre-configure hook: 02-script-wrapper ... => flatbuffers-1.10.0_1: running do_configure ... -- The C compiler identification is GNU 9.1.0 -- The CXX compiler identification is GNU 9.1.0 -- Check for working C compiler: /usr/lib/ccache/bin/cc -- Check for working C compiler: /usr/lib/ccache/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/lib/ccache/bin/g++ -- Check for working CXX compiler: /usr/lib/ccache/bin/g++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done -- Build files have been written to: /builddir/flatbuffers-1.10.0/build => flatbuffers-1.10.0_1: running pre-build hook: 02-script-wrapper ... => flatbuffers-1.10.0_1: running do_build ... ... [ 98%] Built target flatsampletext In file included from /builddir/flatbuffers-1.10.0/tests/test_builder.cpp:1: /builddir/flatbuffers-1.10.0/tests/monster_test_generated.h: In constructor 'MyGame::Example::Vec3::Vec3()': /builddir/flatbuffers-1.10.0/tests/monster_test_generated.h:315:33: error: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct MyGame::Example::Vec3'; use assignment or value-initialization instead [-Werror=class-memaccess] 315 | memset(this, 0, sizeof(Vec3)); | ^ /builddir/flatbuffers-1.10.0/tests/monster_test_generated.h:301:41: note: 'struct MyGame::Example::Vec3' declared here 301 | FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(16) Vec3 FLATBUFFERS_FINAL_CLASS { | ^~~~ cc1plus: all warnings being treated as errors make[2]: *** [CMakeFiles/flattests.dir/build.make:171: CMakeFiles/flattests.dir/tests/test_builder.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from /builddir/flatbuffers-1.10.0/tests/test.cpp:32: /builddir/flatbuffers-1.10.0/tests/monster_test_generated.h: In constructor 'MyGame::Example::Vec3::Vec3()': /builddir/flatbuffers-1.10.0/tests/monster_test_generated.h:315:33: error: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct MyGame::Example::Vec3'; use assignment or value-initialization instead [-Werror=class-memaccess] 315 | memset(this, 0, sizeof(Vec3)); | ^ /builddir/flatbuffers-1.10.0/tests/monster_test_generated.h:301:41: note: 'struct MyGame::Example::Vec3' declared here 301 | FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(16) Vec3 FLATBUFFERS_FINAL_CLASS { | ^~~~ cc1plus: all warnings being treated as errors make[2]: *** [CMakeFiles/flattests.dir/build.make:145: CMakeFiles/flattests.dir/tests/test.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:258: CMakeFiles/flattests.dir/all] Error 2 make: *** [Makefile:141: all] Error 2 => ERROR: flatbuffers-1.10.0_1: do_build: '${make_cmd} ${makejobs} ${make_build_args} ${make_build_target}' exited with 2 => ERROR: in do_build() at common/build-style/cmake.sh:73 ```