* [Buildroot] [PATCH 1/1] package/libpng: fix arm build
@ 2024-10-28 19:39 Bernd Kuhls
2024-10-28 20:40 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 3+ messages in thread
From: Bernd Kuhls @ 2024-10-28 19:39 UTC (permalink / raw)
To: buildroot
Bumping libpng to 1.6.44 with buildroot commit
583bb434ffe1eec0dbf6887dd719c3f41a6253e9
causes a build failure on arm due to the upstream removal of
the ASM implementation of ARM Neon optimizations.
Remove the corresponding configure options to fix the build error.
Fixes:
http://autobuild.buildroot.net/results/021/02158525203d8c7f16a4a32637d44d6c87b7f333/
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
package/libpng/libpng.mk | 6 ------
1 file changed, 6 deletions(-)
diff --git a/package/libpng/libpng.mk b/package/libpng/libpng.mk
index 3e7fc42d82..09b4494909 100644
--- a/package/libpng/libpng.mk
+++ b/package/libpng/libpng.mk
@@ -17,12 +17,6 @@ HOST_LIBPNG_DEPENDENCIES = host-pkgconf host-zlib
LIBPNG_CONFIG_SCRIPTS = libpng$(LIBPNG_SERIES)-config libpng-config
LIBPNG_CONF_OPTS = --disable-tools
-ifeq ($(BR2_ARM_CPU_HAS_NEON)$(BR2_aarch64),y)
-LIBPNG_CONF_OPTS += --enable-arm-neon
-else
-LIBPNG_CONF_OPTS += --disable-arm-neon
-endif
-
ifeq ($(BR2_X86_CPU_HAS_SSE2),y)
LIBPNG_CONF_OPTS += --enable-intel-sse
else
--
2.39.5
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/libpng: fix arm build
2024-10-28 19:39 [Buildroot] [PATCH 1/1] package/libpng: fix arm build Bernd Kuhls
@ 2024-10-28 20:40 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-10-28 20:40 UTC (permalink / raw)
To: Bernd Kuhls; +Cc: buildroot
Hello Bernd,
On Mon, 28 Oct 2024 20:39:15 +0100
Bernd Kuhls <bernd@kuhls.net> wrote:
> Bumping libpng to 1.6.44 with buildroot commit
> 583bb434ffe1eec0dbf6887dd719c3f41a6253e9
> causes a build failure on arm due to the upstream removal of
> the ASM implementation of ARM Neon optimizations.
>
> Remove the corresponding configure options to fix the build error.
>
> Fixes:
> http://autobuild.buildroot.net/results/021/02158525203d8c7f16a4a32637d44d6c87b7f333/
>
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
> ---
> package/libpng/libpng.mk | 6 ------
> 1 file changed, 6 deletions(-)
>
> diff --git a/package/libpng/libpng.mk b/package/libpng/libpng.mk
> index 3e7fc42d82..09b4494909 100644
> --- a/package/libpng/libpng.mk
> +++ b/package/libpng/libpng.mk
> @@ -17,12 +17,6 @@ HOST_LIBPNG_DEPENDENCIES = host-pkgconf host-zlib
> LIBPNG_CONFIG_SCRIPTS = libpng$(LIBPNG_SERIES)-config libpng-config
> LIBPNG_CONF_OPTS = --disable-tools
>
> -ifeq ($(BR2_ARM_CPU_HAS_NEON)$(BR2_aarch64),y)
> -LIBPNG_CONF_OPTS += --enable-arm-neon
> -else
> -LIBPNG_CONF_OPTS += --disable-arm-neon
> -endif
Thanks for the research, but I'm afraid this fix is also not correct.
The NEON code has not been removed. What has been removed is the
assembly-written NEON code, but they still have NEON code that uses the
gcc intrinsics, that gets enabled by --enable-arm-neon.
However, this code is only available for softfp and hardfp ABIs, and
not soft-float. So the above condition should be changed to:
ifeq ($(BR2_aarch64),y)
LIBPNG_CONF_OPTS += --enable-arm-neon
else ifeq ($(BR2_ARM_CPU_HAS_NEON):$(BR2_ARM_SOFT_FLOAT),y:)
LIBPNG_CONF_OPTS += --enable-arm-neon
else
LIBPNG_CONF_OPTS += --disable-arm-neon
endif
should do the trick.
Thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] package/libpng: fix arm build
@ 2024-11-02 7:43 Bernd Kuhls
0 siblings, 0 replies; 3+ messages in thread
From: Bernd Kuhls @ 2024-11-02 7:43 UTC (permalink / raw)
To: buildroot
Bumping libpng to 1.6.44 with buildroot commit
583bb434ffe1eec0dbf6887dd719c3f41a6253e9
causes a build failure on arm.
Gentoo solved the problem by removing --enable-arm-neon, for details see
https://bugs.gentoo.org/939819#c3
https://github.com/pnggroup/libpng/issues/598#issuecomment-2360338728
Fixes:
https://autobuild.buildroot.org/results/c67e3101005ef7b4d0eaf6eb8a93f22446643dbd/
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
package/libpng/libpng.mk | 8 --------
1 file changed, 8 deletions(-)
diff --git a/package/libpng/libpng.mk b/package/libpng/libpng.mk
index 9761993d79..09b4494909 100644
--- a/package/libpng/libpng.mk
+++ b/package/libpng/libpng.mk
@@ -17,14 +17,6 @@ HOST_LIBPNG_DEPENDENCIES = host-pkgconf host-zlib
LIBPNG_CONFIG_SCRIPTS = libpng$(LIBPNG_SERIES)-config libpng-config
LIBPNG_CONF_OPTS = --disable-tools
-ifeq ($(BR2_aarch64),y)
-LIBPNG_CONF_OPTS += --enable-arm-neon
-else ifeq ($(BR2_ARM_CPU_HAS_NEON):$(BR2_ARM_SOFT_FLOAT),y:)
-LIBPNG_CONF_OPTS += --enable-arm-neon
-else
-LIBPNG_CONF_OPTS += --disable-arm-neon
-endif
-
ifeq ($(BR2_X86_CPU_HAS_SSE2),y)
LIBPNG_CONF_OPTS += --enable-intel-sse
else
--
2.39.5
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-11-02 7:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-28 19:39 [Buildroot] [PATCH 1/1] package/libpng: fix arm build Bernd Kuhls
2024-10-28 20:40 ` Thomas Petazzoni via buildroot
-- strict thread matches above, loose matches on Subject: below --
2024-11-02 7:43 Bernd Kuhls
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox