Skip to contentSkip to conversation

package/zlib-ng: fix build failure for PowerPC soft-float

PATCH Applied Giulio Benetti 2 participants 3 messages May 16 – May 29

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/zlib-ng: fix build failure for PowerPC soft-float

As suggested in this review[1], when building for PowerPC with soft-float enabled, let's also disable both WITH_POWER8/9 that in order disables all the possible PowerPC acceleration instructions.

Fixes:
https://autobuild.buildroot.org/results/a0fa5a175c546993d818371a0de93b2e9845a183/

[1]: https://github.com/zlib-ng/zlib-ng/pull/2151/changes#r2803264882

---
V1->V2:
* change to cleaner Makefile code style as suggested by Romain Naour

---
 package/zlib-ng/zlib-ng.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/zlib-ng/zlib-ng.mk +2 -2
index 59e4e15282..448457799e 100644
@@ -30,13 +30,13 @@ else
 ZLIB_NG_CONF_OPTS += -DWITH_NEON=OFF
 endif
 
-ifeq ($(BR2_powerpc_power8),y)
+ifeq ($(BR2_powerpc_power8):$(BR2_POWERPC_SOFT_FLOAT),y:)
 ZLIB_NG_CONF_OPTS += -DWITH_POWER8=ON
 else
 ZLIB_NG_CONF_OPTS += -DWITH_POWER8=OFF
 endif
 
-ifeq ($(BR2_powerpc_power9),y)
+ifeq ($(BR2_powerpc_power9):$(BR2_POWERPC_SOFT_FLOAT),y:)
 ZLIB_NG_CONF_OPTS += -DWITH_POWER9=ON
 else
 ZLIB_NG_CONF_OPTS += -DWITH_POWER9=OFF
Signature · 6 lines
2.47.3

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

Hello Giulio, All,

Le 16/05/2026 à 22:31, Giulio Benetti a écrit :

Quoted 7 lines

As suggested in this review[1], when building for PowerPC with soft-float enabled, let's also disable both WITH_POWER8/9 that in order disables all the possible PowerPC acceleration instructions.

Fixes:
https://autobuild.buildroot.org/results/a0fa5a175c546993d818371a0de93b2e9845a183/

Quoted 6 lines

[1]: https://github.com/zlib-ng/zlib-ng/pull/2151/changes#r2803264882

---
V1->V2:
* change to cleaner Makefile code style as suggested by Romain Naour

Thanks for the update.

Applied to master. Thanks.

Best regards,
Romain

Quoted 14 lines
---
 package/zlib-ng/zlib-ng.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/zlib-ng/zlib-ng.mk +1 -1
index 59e4e15282..448457799e 100644
@@ -30,13 +30,13 @@ else
 ZLIB_NG_CONF_OPTS += -DWITH_NEON=OFF
 endif
 
-ifeq ($(BR2_powerpc_power8),y)
+ifeq ($(BR2_powerpc_power8):$(BR2_POWERPC_SOFT_FLOAT),y:)

package/zlib-ng/zlib-ng.mk else · line 42

Quoted 10 lines
package/zlib-ng/zlib-ng.mk +1 -1
 ZLIB_NG_CONF_OPTS += -DWITH_POWER8=ON
 else
 ZLIB_NG_CONF_OPTS += -DWITH_POWER8=OFF
 endif
 
-ifeq ($(BR2_powerpc_power9),y)
+ifeq ($(BR2_powerpc_power9):$(BR2_POWERPC_SOFT_FLOAT),y:)
 ZLIB_NG_CONF_OPTS += -DWITH_POWER9=ON
 else
 ZLIB_NG_CONF_OPTS += -DWITH_POWER9=OFF

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
In reply to Giulio Benetti

In reply of:

Quoted 10 lines

As suggested in this review[1], when building for PowerPC with soft-float enabled, let's also disable both WITH_POWER8/9 that in order disables all the possible PowerPC acceleration instructions.

Fixes:
https://autobuild.buildroot.org/results/a0fa5a175c546993d818371a0de93b2e9845a183/

[1]: https://github.com/zlib-ng/zlib-ng/pull/2151/changes#r2803264882

Applied to 2025.02.x & 2026.02.x. Thanks

Quoted 34 lines

---
V1->V2:
* change to cleaner Makefile code style as suggested by Romain Naour

---
 package/zlib-ng/zlib-ng.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/zlib-ng/zlib-ng.mk +2 -2
index 59e4e15282..448457799e 100644
@@ -30,13 +30,13 @@ else
 ZLIB_NG_CONF_OPTS += -DWITH_NEON=OFF
 endif
 
-ifeq ($(BR2_powerpc_power8),y)
+ifeq ($(BR2_powerpc_power8):$(BR2_POWERPC_SOFT_FLOAT),y:)
 ZLIB_NG_CONF_OPTS += -DWITH_POWER8=ON
 else
 ZLIB_NG_CONF_OPTS += -DWITH_POWER8=OFF
 endif
 
-ifeq ($(BR2_powerpc_power9),y)
+ifeq ($(BR2_powerpc_power9):$(BR2_POWERPC_SOFT_FLOAT),y:)
 ZLIB_NG_CONF_OPTS += -DWITH_POWER9=ON
 else
 ZLIB_NG_CONF_OPTS += -DWITH_POWER9=OFF
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot