From: Thomas Petazzoni Date: Tue, 3 Nov 2020 21:10:20 +0100 Subject: [Buildroot] [PATCH 1/1] package/optee-client: fix build with gcc 4.8 In-Reply-To: <20201103173043.29373-1-fontaine.fabrice@gmail.com> References: <20201103173043.29373-1-fontaine.fabrice@gmail.com> Message-ID: <20201103211020.4874100c@windsurf.home> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On Tue, 3 Nov 2020 18:30:43 +0100 Fabrice Fontaine wrote: > Fix the following build failure with optee-client 3.11.0 and gcc 4.8: > > /home/giuliobenetti/autobuild/run/instance-2/output-1/build/optee-client-3.11.0/libckteec/src/pkcs11_processing.c: In function 'ck_create_object': > /home/giuliobenetti/autobuild/run/instance-2/output-1/build/optee-client-3.11.0/libckteec/src/pkcs11_processing.c:22:9: error: missing initializer for field 'buffer' of 'struct serializer' [-Werror=missing-field-initializers] > struct serializer obj = { }; > ^ > > Build failure is raised since version 3.10.0 and > https://github.com/OP-TEE/optee_client/commit/c3279f424348bdd3378d236fd038fdd7bc76e10a > https://github.com/OP-TEE/optee_client/commit/e88c264ba358941d2166b18eeac448e617ffa887 > https://github.com/OP-TEE/optee_client/commit/85a7ea7861339356b39c73926f2b5cb9added45b > > Fixes: > - http://autobuild.buildroot.org/results/a3d663adb943aee814180f01d6e153b3309be962 > > Signed-off-by: Fabrice Fontaine > --- > .../0001-libckteec-replace-initializer.patch | 93 +++++++++++++++++++ > 1 file changed, 93 insertions(+) > create mode 100644 package/optee-client/0001-libckteec-replace-initializer.patch Applied to master, thanks. Thomas -- Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com