package/optee-client: disable -Werror
PATCH 1/1 package/optee-client: disable -Werror
Disable -Werror thanks to CFG_WERROR which is available since version 3.3.0 and
https://github.com/OP-TEE/optee_client/commit/5355fdb841bce4f7cce3dd37fc31fa91bd625c98
to fix the following build failure with optee-client 3.11.0:
/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 = { };
^Fixes:
- http://autobuild.buildroot.org/results/a3d663adb943aee814180f01d6e153b3309be962
--- package/optee-client/optee-client.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
package/optee-client/optee-client.mk +2 -1
@@ -11,7 +11,8 @@ OPTEE_CLIENT_LICENSE_FILES = LICENSE OPTEE_CLIENT_INSTALL_STAGING = YES OPTEE_CLIENT_CONF_OPTS = \ - -DCFG_TEE_FS_PARENT_PATH=$(BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH) + -DCFG_TEE_FS_PARENT_PATH=$(BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH) \ + -DCFG_WERROR=OFF define OPTEE_CLIENT_INSTALL_INIT_SYSV $(INSTALL) -m 0755 -D $(OPTEE_CLIENT_PKGDIR)/S30optee \
Signature · 1 line
2.28.0
PATCH 1/1 package/optee-client: disable -Werror
Hello Fabrice,
Quoted 11 lines · Fabrice Fontaine
Disable -Werror thanks to
CFG_WERRORwhich is available since version 3.3.0 and
https://github.com/OP-TEE/optee_client/commit/5355fdb841bce4f7cce3dd37fc31fa91bd625c98
to fix the following build failure with optee-client 3.11.0:
/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 = { }; ^
This seems strange as { } is expected to be a valid universal initializer. In OP-TEE packages, we use it to initialize struct instances, so I guess the issue would rise at many places.
Toolchain seems gcc 4.8.3, is it this toolchain that does not support { }?
Quoted 28 lines
-- The C compiler identification is GNU 4.8.3
Fixes:
- http://autobuild.buildroot.org/results/a3d663adb943aee814180f01d6e153b3309be962Signed-off-by Fabrice Fontaine <[email protected]>--- package/optee-client/optee-client.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)package/optee-client/optee-client.mk +2
-2@@ -11,7 +11,8 @@ OPTEE_CLIENT_LICENSE_FILES = LICENSE OPTEE_CLIENT_INSTALL_STAGING = YES OPTEE_CLIENT_CONF_OPTS = \ - -DCFG_TEE_FS_PARENT_PATH=$(BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH) + -DCFG_TEE_FS_PARENT_PATH=$(BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH) \ + -DCFG_WERROR=OFF define OPTEE_CLIENT_INSTALL_INIT_SYSV $(INSTALL) -m 0755 -D $(OPTEE_CLIENT_PKGDIR)/S30optee \ --2.28.0
PATCH 1/1 package/optee-client: disable -Werror
Hello Etienne,
Le lun. 2 nov. 2020 ? 07:07, Etienne Carriere
<[email protected]> a ?crit :
Quoted 17 lines
Hello Fabrice,
Quoted 11 lines · Fabrice Fontaine
Disable -Werror thanks to
CFG_WERRORwhich is available since version 3.3.0 and
https://github.com/OP-TEE/optee_client/commit/5355fdb841bce4f7cce3dd37fc31fa91bd625c98
to fix the following build failure with optee-client 3.11.0:
/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 = { }; ^
Quoted 5 lines
This seems strange as { } is expected to be a valid universal initializer. In OP-TEE packages, we use it to initialize struct instances, so I guess the issue would rise at many places.
Toolchain seems gcc 4.8.3, is it this toolchain that does not support { }?Quoted 1 line
-- The C compiler identification is GNU 4.8.3
The correct universal initializer is { 0 }, not { }. I sent a PR:
https://github.com/OP-TEE/optee_client/pull/230
Quoted 22 lines
Quoted 22 lines
Fixes:
- http://autobuild.buildroot.org/results/a3d663adb943aee814180f01d6e153b3309be962Signed-off-by Fabrice Fontaine <[email protected]>--- package/optee-client/optee-client.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)package/optee-client/optee-client.mk +2
-1@@ -11,7 +11,8 @@ OPTEE_CLIENT_LICENSE_FILES = LICENSE OPTEE_CLIENT_INSTALL_STAGING = YES OPTEE_CLIENT_CONF_OPTS = \ - -DCFG_TEE_FS_PARENT_PATH=$(BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH) + -DCFG_TEE_FS_PARENT_PATH=$(BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH) \ + -DCFG_WERROR=OFF
Quoted 5 lines
Quoted 5 lines
package/optee-client/optee-client.mk +0
-1define OPTEE_CLIENT_INSTALL_INIT_SYSV $(INSTALL) -m 0755 -D $(OPTEE_CLIENT_PKGDIR)/S30optee \ --2.28.0
Best Regards,
Fabrice
PATCH 1/1 package/optee-client: disable -Werror
Quoted 22 lines · Fabrice Fontaine
Hello Etienne,
Le lun. 2 nov. 2020 ? 07:07, Etienne Carriere
<[email protected]> a ?crit :Quoted 17 lines
Hello Fabrice,
Quoted 11 lines · Fabrice Fontaine
Disable -Werror thanks to
CFG_WERRORwhich is available since version 3.3.0 and
https://github.com/OP-TEE/optee_client/commit/5355fdb841bce4f7cce3dd37fc31fa91bd625c98
to fix the following build failure with optee-client 3.11.0:
/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 = { }; ^
Quoted 7 lines
Quoted 5 lines
This seems strange as { } is expected to be a valid universal initializer. In OP-TEE packages, we use it to initialize struct instances, so I guess the issue would rise at many places.
Toolchain seems gcc 4.8.3, is it this toolchain that does not support { }?Quoted 1 line
-- The C compiler identification is GNU 4.8.3
The correct universal initializer is { 0 }, not { }. I sent a PR:
https://github.com/OP-TEE/optee_client/pull/230
{ 0 } does not fit well. When the 1st field in a struct is a pointer, as here, we experienced toolchains complaining about pointers being initialized to integer values.
OP-TEE coding style documentation highlights that, see last bullet in
https://optee.readthedocs.io/en/latest/general/coding_standards.html.
Thanks for the P-R in OP-TEE project. I guess we'll get OP-TEE community feedback from there.
Regards,
Etienne
Quoted 30 lines
Quoted 22 lines
Quoted 22 lines
Fixes:
- http://autobuild.buildroot.org/results/a3d663adb943aee814180f01d6e153b3309be962Signed-off-by Fabrice Fontaine <[email protected]>--- package/optee-client/optee-client.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)package/optee-client/optee-client.mk +2
-1@@ -11,7 +11,8 @@ OPTEE_CLIENT_LICENSE_FILES = LICENSE OPTEE_CLIENT_INSTALL_STAGING = YES OPTEE_CLIENT_CONF_OPTS = \ - -DCFG_TEE_FS_PARENT_PATH=$(BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH) + -DCFG_TEE_FS_PARENT_PATH=$(BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH) \ + -DCFG_WERROR=OFFQuoted 5 lines
Quoted 5 lines
package/optee-client/optee-client.mk +0
-1define OPTEE_CLIENT_INSTALL_INIT_SYSV $(INSTALL) -m 0755 -D $(OPTEE_CLIENT_PKGDIR)/S30optee \ --2.28.0
Best Regards,
Fabrice
PATCH 1/1 package/optee-client: disable -Werror
Hi Fabrice,
Quoted 37 lines · Etienne Carriere
Quoted 22 lines · Fabrice Fontaine
Hello Etienne,
Le lun. 2 nov. 2020 ? 07:07, Etienne Carriere
<[email protected]> a ?crit :Quoted 17 lines
Hello Fabrice,
Quoted 11 lines · Fabrice Fontaine
Disable -Werror thanks to
CFG_WERRORwhich is available since version 3.3.0 and
https://github.com/OP-TEE/optee_client/commit/5355fdb841bce4f7cce3dd37fc31fa91bd625c98
to fix the following build failure with optee-client 3.11.0:
/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 = { }; ^Quoted 7 lines
Quoted 5 lines
This seems strange as { } is expected to be a valid universal initializer. In OP-TEE packages, we use it to initialize struct instances, so I guess the issue would rise at many places.
Toolchain seems gcc 4.8.3, is it this toolchain that does not support { }?Quoted 1 line
-- The C compiler identification is GNU 4.8.3
The correct universal initializer is { 0 }, not { }. I sent a PR:
https://github.com/OP-TEE/optee_client/pull/230{ 0 } does not fit well. When the 1st field in a struct is a pointer, as here, we experienced toolchains complaining about pointers being initialized to integer values.
Quoted 7 lines
OP-TEE coding style documentation highlights that, see last bullet in
https://optee.readthedocs.io/en/latest/general/coding_standards.html.
Thanks for the P-R in OP-TEE project. I guess we'll get OP-TEE community feedback from there.Regards,
Etienne
Looking back on this, I think disabling error on warning is not a good solution. It could lead to madanted initialization not being handled and hidden at build time.
For this very optee_client client, I would suggest either to depend on a more recent toolchain or we fix the source code to use strictly appropriate initiliazers.
My preference would go to the 1st proposal, to not deviate from optee_client mainline more than necessary. We'll face similar issues with next OP-TEE releases. Note we do already face the same issues with other OP-TEE packages (boot/optee-os and package/optee-*) currently supported in BR.
Regards,
Etienne
Quoted 32 lines
Quoted 32 lines
Quoted 24 lines
Quoted 24 lines
Fixes:
- http://autobuild.buildroot.org/results/a3d663adb943aee814180f01d6e153b3309be962Signed-off-by Fabrice Fontaine <[email protected]>--- package/optee-client/optee-client.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)package/optee-client/optee-client.mk +2
-1@@ -11,7 +11,8 @@ OPTEE_CLIENT_LICENSE_FILES = LICENSE OPTEE_CLIENT_INSTALL_STAGING = YES OPTEE_CLIENT_CONF_OPTS = \ - -DCFG_TEE_FS_PARENT_PATH=$(BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH) + -DCFG_TEE_FS_PARENT_PATH=$(BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH) \ + -DCFG_WERROR=OFFQuoted 5 lines
Quoted 5 lines
package/optee-client/optee-client.mk +0
-1define OPTEE_CLIENT_INSTALL_INIT_SYSV $(INSTALL) -m 0755 -D $(OPTEE_CLIENT_PKGDIR)/S30optee \ --2.28.0
Best Regards,
Fabrice
PATCH 1/1 package/optee-client: disable -Werror
Hi again Fabrice,
Quoted 54 lines · Etienne Carriere
Hi Fabrice,
Quoted 37 lines · Etienne Carriere
Quoted 22 lines · Fabrice Fontaine
Hello Etienne,
Le lun. 2 nov. 2020 ? 07:07, Etienne Carriere
<[email protected]> a ?crit :Quoted 17 lines
Hello Fabrice,
Quoted 11 lines · Fabrice Fontaine
Disable -Werror thanks to
CFG_WERRORwhich is available since version 3.3.0 and
https://github.com/OP-TEE/optee_client/commit/5355fdb841bce4f7cce3dd37fc31fa91bd625c98
to fix the following build failure with optee-client 3.11.0:
/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 = { }; ^Quoted 7 lines
Quoted 5 lines
This seems strange as { } is expected to be a valid universal initializer. In OP-TEE packages, we use it to initialize struct instances, so I guess the issue would rise at many places.
Toolchain seems gcc 4.8.3, is it this toolchain that does not support { }?Quoted 1 line
-- The C compiler identification is GNU 4.8.3
The correct universal initializer is { 0 }, not { }. I sent a PR:
https://github.com/OP-TEE/optee_client/pull/230{ 0 } does not fit well. When the 1st field in a struct is a pointer, as here, we experienced toolchains complaining about pointers being initialized to integer values.
Quoted 7 lines
OP-TEE coding style documentation highlights that, see last bullet in
https://optee.readthedocs.io/en/latest/general/coding_standards.html.
Thanks for the P-R in OP-TEE project. I guess we'll get OP-TEE community feedback from there.Regards,
EtienneLooking back on this, I think disabling error on warning is not a good solution. It could lead to madanted initialization not being handled and hidden at build time.
Quoted 9 lines
For this very
optee_clientclient, I would suggest either to depend on a more recent toolchain or we fix the source code to use strictly appropriate initiliazers.
My preference would go to the 1st proposal, to not deviate fromoptee_clientmainline more than necessary. We'll face similar issues with next OP-TEE releases. Note we do already face the same issues with other OP-TEE packages (boot/optee-os and package/optee-*) currently supported in BR.
Are you ok using the patch you made for
https://github.com/OP-TEE/optee_client/pull/230 instead of the change proposed here?
Quoted 37 lines
Regards,
EtienneQuoted 32 lines
Quoted 32 lines
Quoted 24 lines
Quoted 24 lines
Fixes:
- http://autobuild.buildroot.org/results/a3d663adb943aee814180f01d6e153b3309be962Signed-off-by Fabrice Fontaine <[email protected]>--- package/optee-client/optee-client.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)package/optee-client/optee-client.mk +2
-1@@ -11,7 +11,8 @@ OPTEE_CLIENT_LICENSE_FILES = LICENSE OPTEE_CLIENT_INSTALL_STAGING = YES OPTEE_CLIENT_CONF_OPTS = \ - -DCFG_TEE_FS_PARENT_PATH=$(BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH) + -DCFG_TEE_FS_PARENT_PATH=$(BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH) \ + -DCFG_WERROR=OFFQuoted 5 lines
Quoted 5 lines
package/optee-client/optee-client.mk +0
-1define OPTEE_CLIENT_INSTALL_INIT_SYSV $(INSTALL) -m 0755 -D $(OPTEE_CLIENT_PKGDIR)/S30optee \ --2.28.0
Best Regards,
Fabrice
PATCH 1/1 package/optee-client: disable -Werror
Le mar. 3 nov. 2020 ? 14:48, Etienne Carriere
<[email protected]> a ?crit :
Quoted 69 lines
Hi again Fabrice,
Quoted 54 lines · Etienne Carriere
Hi Fabrice,
Quoted 37 lines · Etienne Carriere
Quoted 22 lines · Fabrice Fontaine
Hello Etienne,
Le lun. 2 nov. 2020 ? 07:07, Etienne Carriere
<[email protected]> a ?crit :Quoted 17 lines
Hello Fabrice,
Quoted 11 lines · Fabrice Fontaine
Disable -Werror thanks to
CFG_WERRORwhich is available since version 3.3.0 and
https://github.com/OP-TEE/optee_client/commit/5355fdb841bce4f7cce3dd37fc31fa91bd625c98
to fix the following build failure with optee-client 3.11.0:
/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 = { }; ^Quoted 7 lines
Quoted 5 lines
This seems strange as { } is expected to be a valid universal initializer. In OP-TEE packages, we use it to initialize struct instances, so I guess the issue would rise at many places.
Toolchain seems gcc 4.8.3, is it this toolchain that does not support { }?Quoted 1 line
-- The C compiler identification is GNU 4.8.3
The correct universal initializer is { 0 }, not { }. I sent a PR:
https://github.com/OP-TEE/optee_client/pull/230{ 0 } does not fit well. When the 1st field in a struct is a pointer, as here, we experienced toolchains complaining about pointers being initialized to integer values.
Quoted 7 lines
OP-TEE coding style documentation highlights that, see last bullet in
https://optee.readthedocs.io/en/latest/general/coding_standards.html.
Thanks for the P-R in OP-TEE project. I guess we'll get OP-TEE community feedback from there.Regards,
EtienneLooking back on this, I think disabling error on warning is not a good solution. It could lead to madanted initialization not being handled and hidden at build time.
Quoted 9 lines
For this very
optee_clientclient, I would suggest either to depend on a more recent toolchain or we fix the source code to use strictly appropriate initiliazers.
My preference would go to the 1st proposal, to not deviate fromoptee_clientmainline more than necessary. We'll face similar issues with next OP-TEE releases. Note we do already face the same issues with other OP-TEE packages (boot/optee-os and package/optee-*) currently supported in BR.
Quoted 3 lines
Are you ok using the patch you made for
https://github.com/OP-TEE/optee_client/pull/230 instead of the change proposed here?
Sure, I sent a new patch however I also know that a common practice in buildroot (and in other distros as well) is to disable -Werror. The goal is not to hide "issues" but to avoid errors with old or newer compilers.
So I think that we should apply both. I'll let Thomas or Yann decide if they do agree or not.
Quoted 30 lines
Quoted 30 lines
Regards,
EtienneQuoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Fixes:
- http://autobuild.buildroot.org/results/a3d663adb943aee814180f01d6e153b3309be962Signed-off-by Fabrice Fontaine <[email protected]>--- package/optee-client/optee-client.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)package/optee-client/optee-client.mk +2
-1@@ -11,7 +11,8 @@ OPTEE_CLIENT_LICENSE_FILES = LICENSE OPTEE_CLIENT_INSTALL_STAGING = YES OPTEE_CLIENT_CONF_OPTS = \ - -DCFG_TEE_FS_PARENT_PATH=$(BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH) + -DCFG_TEE_FS_PARENT_PATH=$(BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH) \ + -DCFG_WERROR=OFF
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
package/optee-client/optee-client.mk +0
-1define OPTEE_CLIENT_INSTALL_INIT_SYSV $(INSTALL) -m 0755 -D $(OPTEE_CLIENT_PKGDIR)/S30optee \ --2.28.0
Best Regards,
Fabrice
Best Regards,
Fabrice
PATCH 1/1 package/optee-client: disable -Werror
Quoted 75 lines · Fabrice Fontaine
Le mar. 3 nov. 2020 ? 14:48, Etienne Carriere
<[email protected]> a ?crit :Quoted 69 lines
Hi again Fabrice,
Quoted 54 lines · Etienne Carriere
Hi Fabrice,
Quoted 37 lines · Etienne Carriere
Quoted 22 lines · Fabrice Fontaine
Hello Etienne,
Le lun. 2 nov. 2020 ? 07:07, Etienne Carriere
<[email protected]> a ?crit :Quoted 17 lines
Hello Fabrice,
Quoted 11 lines · Fabrice Fontaine
Disable -Werror thanks to
CFG_WERRORwhich is available since version 3.3.0 and
https://github.com/OP-TEE/optee_client/commit/5355fdb841bce4f7cce3dd37fc31fa91bd625c98
to fix the following build failure with optee-client 3.11.0:
/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 = { }; ^Quoted 7 lines
Quoted 5 lines
This seems strange as { } is expected to be a valid universal initializer. In OP-TEE packages, we use it to initialize struct instances, so I guess the issue would rise at many places.
Toolchain seems gcc 4.8.3, is it this toolchain that does not support { }?Quoted 1 line
-- The C compiler identification is GNU 4.8.3
The correct universal initializer is { 0 }, not { }. I sent a PR:
https://github.com/OP-TEE/optee_client/pull/230{ 0 } does not fit well. When the 1st field in a struct is a pointer, as here, we experienced toolchains complaining about pointers being initialized to integer values.
Quoted 7 lines
OP-TEE coding style documentation highlights that, see last bullet in
https://optee.readthedocs.io/en/latest/general/coding_standards.html.
Thanks for the P-R in OP-TEE project. I guess we'll get OP-TEE community feedback from there.Regards,
EtienneLooking back on this, I think disabling error on warning is not a good solution. It could lead to madanted initialization not being handled and hidden at build time.
Quoted 9 lines
For this very
optee_clientclient, I would suggest either to depend on a more recent toolchain or we fix the source code to use strictly appropriate initiliazers.
My preference would go to the 1st proposal, to not deviate fromoptee_clientmainline more than necessary. We'll face similar issues with next OP-TEE releases. Note we do already face the same issues with other OP-TEE packages (boot/optee-os and package/optee-*) currently supported in BR.Quoted 3 lines
Are you ok using the patch you made for
https://github.com/OP-TEE/optee_client/pull/230 instead of the change proposed here?
Quoted 6 lines
Sure, I sent a new patch however I also know that a common practice in buildroot (and in other distros as well) is to disable -Werror. The goal is not to hide "issues" but to avoid errors with old or newer compilers.
So I think that we should apply both. I'll let Thomas or Yann decide if they do agree or not.
Should we set a BR2_TOOLCHAIN_GCC_AT_LEAST_x=y in optee-os and optee-test packages? They quite use { } and I don't think all mainlines will desire to support quite old toolchains.
etienne
Quoted 41 lines
Quoted 30 lines
Quoted 30 lines
Regards,
EtienneQuoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Fixes:
- http://autobuild.buildroot.org/results/a3d663adb943aee814180f01d6e153b3309be962Signed-off-by Fabrice Fontaine <[email protected]>--- package/optee-client/optee-client.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)package/optee-client/optee-client.mk +2
-1@@ -11,7 +11,8 @@ OPTEE_CLIENT_LICENSE_FILES = LICENSE OPTEE_CLIENT_INSTALL_STAGING = YES OPTEE_CLIENT_CONF_OPTS = \ - -DCFG_TEE_FS_PARENT_PATH=$(BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH) + -DCFG_TEE_FS_PARENT_PATH=$(BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH) \ + -DCFG_WERROR=OFFQuoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
package/optee-client/optee-client.mk +0
-1define OPTEE_CLIENT_INSTALL_INIT_SYSV $(INSTALL) -m 0755 -D $(OPTEE_CLIENT_PKGDIR)/S30optee \ --2.28.0
Best Regards,
Fabrice
Best Regards,
Fabrice
PATCH 1/1 package/optee-client: disable -Werror
In reply to Fabrice FontaineFabrice, All,
On 2020-11-01 21:43 +0100, Fabrice Fontaine spake thusly:
Quoted 7 lines
Disable -Werror thanks to
CFG_WERRORwhich is available since version 3.3.0 and
https://github.com/OP-TEE/optee_client/commit/5355fdb841bce4f7cce3dd37fc31fa91bd625c98
to fix the following build failure with optee-client 3.11.0:
/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]
Quoted 7 lines
struct serializer obj = { }; ^Fixes:
- http://autobuild.buildroot.org/results/a3d663adb943aee814180f01d6e153b3309be962Signed-off-by Fabrice Fontaine <[email protected]>
After reading the thread, I decided to apply this (oldish) patch to next.
Indeed, as you mentionned in the thread, we do try to remove -Werror when we hit issues with it.
-Werror is very important for the developpers of a package, because they indeed can find and fix their code as early as possible.
But for downstreams, that does not help at all, especially since there are a myriad of possible combination of binutils versions, compiler versins, C libraries flavours and versions, optimisations flags and architectures, that it is virtually impossible to guarantee a no-warning build on all those combinations, especially when a new version of any of those gets out.
So, applied to next, thanks.
(Yes, I know we just bumped the version of optee-client, and that we do not yet have any -Werror issue with it, but should we have any, the answer would be to apply that patch anyway. So no need to wait for the first issue to popup...)
Regards,
Yann E. MORIN.
Quoted 25 lines
--- package/optee-client/optee-client.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)package/optee-client/optee-client.mk +2
-1@@ -11,7 +11,8 @@ OPTEE_CLIENT_LICENSE_FILES = LICENSE OPTEE_CLIENT_INSTALL_STAGING = YES OPTEE_CLIENT_CONF_OPTS = \ - -DCFG_TEE_FS_PARENT_PATH=$(BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH) + -DCFG_TEE_FS_PARENT_PATH=$(BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH) \ + -DCFG_WERROR=OFF define OPTEE_CLIENT_INSTALL_INIT_SYSV $(INSTALL) -m 0755 -D $(OPTEE_CLIENT_PKGDIR)/S30optee \Signature · 6 lines
2.28.0 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 1/1 package/optee-client: disable -Werror
Hello Yann,
Quoted 35 lines · Yann E. MORIN
Fabrice, All,
On 2020-11-01 21:43 +0100, Fabrice Fontaine spake thusly:
Quoted 7 lines
Disable -Werror thanks to
CFG_WERRORwhich is available since version 3.3.0 and
https://github.com/OP-TEE/optee_client/commit/5355fdb841bce4f7cce3dd37fc31fa91bd625c98
to fix the following build failure with optee-client 3.11.0:
/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]Quoted 7 lines
struct serializer obj = { }; ^Fixes:
- http://autobuild.buildroot.org/results/a3d663adb943aee814180f01d6e153b3309be962Signed-off-by Fabrice Fontaine <[email protected]>After reading the thread, I decided to apply this (oldish) patch to next.
Indeed, as you mentionned in the thread, we do try to remove -Werror when we hit issues with it.
-Werror is very important for the developpers of a package, because they indeed can find and fix their code as early as possible.
But for downstreams, that does not help at all, especially since there are a myriad of possible combination of binutils versions, compiler versins, C libraries flavours and versions, optimisations flags and architectures, that it is virtually impossible to guarantee a no-warning build on all those combinations, especially when a new version of any of those gets out.
Quoted 6 lines
So, applied to next, thanks.
(Yes, I know we just bumped the version of optee-client, and that we do not yet have any -Werror issue with it, but should we have any, the answer would be to apply that patch anyway. So no need to wait for the first issue to popup...)
I understand your concern. Your change is fine, using CFG_WERROR is the best way.
It can remain in next and master.
(if that helps)
Regards,
Etienne
Quoted 37 lines
Regards,
Yann E. MORIN.Quoted 21 lines
--- package/optee-client/optee-client.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)package/optee-client/optee-client.mk +2
-2@@ -11,7 +11,8 @@ OPTEE_CLIENT_LICENSE_FILES = LICENSE OPTEE_CLIENT_INSTALL_STAGING = YES OPTEE_CLIENT_CONF_OPTS = \ - -DCFG_TEE_FS_PARENT_PATH=$(BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH) + -DCFG_TEE_FS_PARENT_PATH=$(BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH) \ + -DCFG_WERROR=OFF define OPTEE_CLIENT_INSTALL_INIT_SYSV $(INSTALL) -m 0755 -D $(OPTEE_CLIENT_PKGDIR)/S30optee \ --2.28.0
Quoted 4 lines
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot--
.-----------------.--------------------.------------------.--------------------.| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |'------------------------------^-------^------------------^--------------------'
PATCH 1/1 package/optee-client: disable -Werror
In reply to Yann E. MORINQuoted 28 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Yann" == Yann E MORIN <[email protected]> writes:
Fabrice, All,
On 2020-11-01 21:43 +0100, Fabrice Fontaine spake thusly:Quoted 10 lines
Disable -Werror thanks to
CFG_WERRORwhich is available since version 3.3.0 and
https://github.com/OP-TEE/optee_client/commit/5355fdb841bce4f7cce3dd37fc31fa91bd625c98
to fix the following build failure with optee-client 3.11.0:
/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 = { };
^Quoted 4 lines
Fixes:
- http://autobuild.buildroot.org/results/a3d663adb943aee814180f01d6e153b3309be962Signed-off-by Fabrice Fontaine <[email protected]>After reading the thread, I decided to apply this (oldish) patch to next.
Indeed, as you mentionned in the thread, we do try to remove -Werror when we hit issues with it.
-Werror is very important for the developpers of a package, because they indeed can find and fix their code as early as possible.
Quoted 8 lines
But for downstreams, that does not help at all, especially since there are a myriad of possible combination of binutils versions, compiler versins, C libraries flavours and versions, optimisations flags and architectures, that it is virtually impossible to guarantee a no-warning build on all those combinations, especially when a new version of any of those gets out.
So, applied to next, thanks.
Committed to 2021.02.x and 2020.11.x, thanks.
Signature · 1 line
Bye, Peter Korsgaard