Created attachment 209423 [details] patch Explicitly include altivec.h if AltiVec build is done. Otherwise build with clang fails with: lib/evas/common/evas_cpu.c:89:11: warning: implicit declaration of function 'vec_splat_u32' is invalid in C99 [-Wimplicit-function-declaration] zero = vec_splat_u32(0); ^ lib/evas/common/evas_cpu.c:89:9: error: assigning to '__vector unsigned int' (vector of 4 'unsigned int' values) from incompatible type 'int' zero = vec_splat_u32(0); ^ ~~~~~~~~~~~~~~~~
Approved as mentor ("does no harm" on ppcports) pending maintainer review.
A commit references this bug: Author: pkubaj Date: Thu Dec 12 13:51:52 UTC 2019 New revision: 519925 URL: https://svnweb.freebsd.org/changeset/ports/519925 Log: devel/efl: fix build on powerpc64 elfv2 Explicitly include altivec.h if AltiVec build is done. Otherwise build with clang fails with: lib/evas/common/evas_cpu.c:89:11: warning: implicit declaration of function 'vec_splat_u32' is invalid in C99 [-Wimplicit-function-declaration] zero = vec_splat_u32(0); ^ lib/evas/common/evas_cpu.c:89:9: error: assigning to '__vector unsigned int' (vector of 4 'unsigned int' values) from incompatible type 'int' zero = vec_splat_u32(0); ^ ~~~~~~~~~~~~~~~~ PR: 242233 Approved by: enlightenment (maintainer timeout) Changes: head/devel/efl/files/patch-src_lib_evas_common_evas__cpu.c