Skip to contentSkip to conversation

package/mbedtls: disable MBEDTLS_FATAL_WARNINGS

PATCH In review Fabrice Fontaine 2 participants 2 messages Jan 9, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/mbedtls: disable MBEDTLS_FATAL_WARNINGS

Disable MBEDTLS_FATAL_WARNINGS to avoid the following build failure since bump to version 2.28.0 in commit 0f8aab08e762742d753d5920718f31c629d0f8d7:

/home/buildroot/autobuild/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/features.h:412:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]

  412 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
      |    ^~~~~~~

Fixes:
- http://autobuild.buildroot.org/results/af017382bb5772de7383d71ed7b8af44717981f9

---
 package/mbedtls/mbedtls.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
package/mbedtls/mbedtls.mk +2 -1
index c238d664f8..5facb99b2a 100644
@@ -8,7 +8,8 @@ MBEDTLS_VERSION = 2.28.0
 MBEDTLS_SITE = $(call github,ARMmbed,mbedtls,v$(MBEDTLS_VERSION))
 MBEDTLS_CONF_OPTS = \
 	-DENABLE_PROGRAMS=$(if $(BR2_PACKAGE_MBEDTLS_PROGRAMS),ON,OFF) \
-	-DENABLE_TESTING=OFF
+	-DENABLE_TESTING=OFF \
+	-DMBEDTLS_FATAL_WARNINGS=OFF
 MBEDTLS_INSTALL_STAGING = YES
 MBEDTLS_LICENSE = Apache-2.0
 MBEDTLS_LICENSE_FILES = LICENSE
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

Disable MBEDTLS_FATAL_WARNINGS to avoid the following build failure since bump to version 2.28.0 in commit 0f8aab08e762742d753d5920718f31c629d0f8d7:

Quoted 6 lines

/home/buildroot/autobuild/instance-0/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/features.h:412:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]

  412 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
      |    ^~~~~~~

Fixes:
- http://autobuild.buildroot.org/results/af017382bb5772de7383d71ed7b8af44717981f9

Committed, thanks.

The error message is a bit odd as we should be building with -Os. Do you know what is going on?

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot