package/glibc: can't be built with Optimize for fast
PATCH v2 1/2 package/glibc: can't be built with Optimize for fast
Fix the following build failure:
In file included from <command-line>:./../include/libc-symbols.h:82:3: error: #error "glibc must not be compiled with -ffast-math"
82 | # error "glibc must not be compiled with -ffast-math"
| ^~~~~
Fixes:
- http://autobuild.buildroot.org/results/3d91f3685ae6c3e1f765d419ea2c0da4cb0eb3be
---
Changes v1 -> v2 (after review of Yann E. Morin):
- Force -O2 instead of disabling gcc
package/glibc/glibc.mk | 5 +++++ 1 file changed, 5 insertions(+)
package/glibc/glibc.mk +5 -0
@@ -118,6 +118,11 @@ ifeq ($(BR2_nios2),y) GLIBC_CFLAGS += -O2 endif +# glibc can't be built with Optimize for fast +ifeq ($(BR2_OPTIMIZE_FAST),y) +GLIBC_CFLAGS += -O2 +endif + define GLIBC_CONFIGURE_CMDS mkdir -p $(@D)/build # Do the configuration
Signature · 6 lines
2.35.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 2/2 package/glibc: can't be built without optimization
Fix the following build failure:
In file included from <command-line>:./../include/libc-symbols.h:75:3: error: #error "glibc cannot be compiled without optimization"
75 | # error "glibc cannot be compiled without optimization"
| ^~~~~
Fixes:
- http://autobuild.buildroot.org/results/1ba20982d5ec0edc751a11a2d5639f5f6477b9bc
---
Changes v1 -> v2 (after review of Yann E. Morin):
- Force -O1 instead of disabling gcc
package/glibc/glibc.mk | 5 +++++ 1 file changed, 5 insertions(+)
package/glibc/glibc.mk +5 -0
@@ -118,6 +118,11 @@ ifeq ($(BR2_nios2),y) GLIBC_CFLAGS += -O2 endif +# glibc can't be built without optimization +ifeq ($(BR2_OPTIMIZE_0),y) +GLIBC_CFLAGS += -O1 +endif + # glibc can't be built with Optimize for fast ifeq ($(BR2_OPTIMIZE_FAST),y) GLIBC_CFLAGS += -O2
Signature · 6 lines
2.35.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Fabrice, All,
On 2022-05-15 11:02 +0200, Fabrice Fontaine spake thusly:
Quoted 11 lines
Fix the following build failure:
In file included from <command-line>:
./../include/libc-symbols.h:82:3: error: #error "glibc must not be compiled with -ffast-math"
82 | # error "glibc must not be compiled with -ffast-math"| ^~~~~Fixes:
- http://autobuild.buildroot.org/results/3d91f3685ae6c3e1f765d419ea2c0da4cb0eb3beSigned-off-by Fabrice Fontaine <[email protected]>
Both patches applied to master, thanks.
Regards,
Yann E. MORIN.
Quoted 30 lines
---
Changes v1 -> v2 (after review of Yann E. Morin):
- Force -O2 instead of disabling gccpackage/glibc/glibc.mk | 5 +++++ 1 file changed, 5 insertions(+)package/glibc/glibc.mk +5
-0@@ -118,6 +118,11 @@ ifeq ($(BR2_nios2),y) GLIBC_CFLAGS += -O2 endif +# glibc can't be built with Optimize for fast +ifeq ($(BR2_OPTIMIZE_FAST),y) +GLIBC_CFLAGS += -O2 +endif + define GLIBC_CONFIGURE_CMDS mkdir -p $(@D)/build # Do the configurationSignature · 6 lines
2.35.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 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. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot