ppc64le: Build fails with `pngrutil.c:(.text+0x6658): undefined reference to `png_init_filter_functions_vsx'`

Rene Engelhard rene at debian.org
Mon Jul 20 20:05:53 UTC 2020


Hi,

Am 20.07.20 um 19:38 schrieb Rene Engelhard:
>
>> /home/pmenzel/src/core/workdir/LinkTarget/StaticLibrary/liblibpng.a(pngrutil.o):
>> in function `png_read_filter_row':
>> pngrutil.c:(.text+0x6658): undefined reference to
>> `png_init_filter_functions_vsx'
>> collect2: error: ld returned 1 exit status
>> make[1]: ***
>> [/home/pmenzel/src/core/desktop/Executable_oosplash.mk:10:
>> /home/pmenzel/src/core/instdir/program/oosplash] Error 1
>> make[1]: *** Waiting for unfinished jobs....
>> make: *** [Makefile:282: build] Error 2
>> ```
>>
> Looks like it misses the VSX file for ppc64el. Similar case like
> https://cgit.freedesktop.org/libreoffice/core/commit/?id=4855b5771f35ef354fbb5fb00a8cf690d5427c69

Untested patch:


diff --git a/external/libpng/StaticLibrary_libpng.mk
b/external/libpng/StaticLibrary_libpng.mk
index fe2364141b3b..2d56a276f6a7 100644
--- a/external/libpng/StaticLibrary_libpng.mk
+++ b/external/libpng/StaticLibrary_libpng.mk
@@ -38,6 +38,10 @@ $(eval $(call
gb_StaticLibrary_add_generated_cobjects,libpng,\
            UnpackedTarball/libpng/arm/filter_neon_intrinsics \
            UnpackedTarball/libpng/arm/palette_neon_intrinsics \
        ) \
+       $(if $(filter POWERPC POWERPC64,$(CPUNAME)), \
+           UnpackedTarball/libpng/powerpc/powerpc_init \
+           UnpackedTarball/libpng/powerpc/filter_vsx_intrinsics \
+       ) \
 ))
 
 # vim: set noet sw=4 ts=4:

Regards,


Rene



More information about the LibreOffice mailing list