Download raw body.
Fix audio/csound on powerpc
Hi,
On Tue, Apr 07, 2026 at 11:07:53AM +0200, Raphael Graf wrote:
> According to the latest bulk build report, building csound fails on powerpc:
>
> In file included from /usr/obj/ports/csound-7.0.0beta13/csound-7.0.0-beta.13/OOps/pffft.c:107:
> /usr/lib/clang/19/include/altivec.h:13:2: error: "AltiVec support not enabled"
> 13 | #error "AltiVec support not enabled"
> | ^
> /usr/lib/clang/19/include/altivec.h:50:19: error: unknown type name 'vector'
> 50 | static __inline__ vector signed char __ATTRS_o_ai vec_perm(
>
>
> The diff below should "fix" this by disabling altivec on powerpc.
> (I have not tested it on powerpc)
>
> ok?
I can't test this, either (my powerpc is gone), but IMHO even if the
result of your fix lacks performance or functionality, this would still
be better than having no package at all.
Ciao,
Kili
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/audio/csound/Makefile,v
> retrieving revision 1.4
> diff -u -p -u -p -r1.4 Makefile
> --- Makefile 2 Apr 2026 05:31:44 -0000 1.4
> +++ Makefile 7 Apr 2026 09:04:52 -0000
> @@ -44,6 +44,10 @@ LIB_DEPENDS = audio/liblo \
> devel/gettext,-runtime \
> net/curl
>
> +.if ${MACHINE_ARCH} == "powerpc"
> +CFLAGS += -DPFFFT_SIMD_DISABLE
> +.endif
> +
> TEST_ENV = OPCODE7DIR64=${WRKBUILD}
> PORTHOME = ${WRKDIR}
>
Fix audio/csound on powerpc