Index | Thread | Search

From:
"Omar Polo" <op@omarpolo.com>
Subject:
Re: graphics/decker - drop -Werror to fix build on sparc64
To:
Kurt Mosiejczuk <kurt@cranky.work>
Cc:
OpenBSD Ports <ports@openbsd.org>
Date:
Sun, 05 Apr 2026 20:42:15 +0200

Download raw body.

Thread
Kurt Mosiejczuk <kurt@cranky.work> wrote:
> decker fails immediately when building on sparc64 with
> 
> ./c/lil.h:112:60: error: ISO C forbids conversion of function pointer to object pointer type [-Werror=pedantic]
> 
> Patching Makefile to drop "-Werror" allows decker to build on sparc64
> 
> ok?

okay op@, thanks!

> --Kurt
> 
> Index: patches/patch-Makefile
> ===================================================================
> RCS file: /cvs/ports/graphics/decker/patches/patch-Makefile,v
> diff -u -p -r1.4 patch-Makefile
> --- patches/patch-Makefile	19 Feb 2025 03:42:08 -0000	1.4
> +++ patches/patch-Makefile	4 Apr 2026 09:01:44 -0000
> @@ -1,6 +1,7 @@
>   - drop -O2 and respect CFLAGS
>   - make building verbose
>   - allow implicit-const-int-float-conversion
> + - lose -Werror 
>   
>  Index: Makefile
>  --- Makefile.orig
> @@ -10,7 +11,7 @@ Index: Makefile
>   	OPEN=xdg-open
>   	COMPILER=clang
>  -	FLAGS=-Wall -Werror -Wextra -Wpedantic -O2
> -+	FLAGS=-Wall -Werror -Wextra -Wpedantic ${CFLAGS}
> ++	FLAGS=-Wall -Wextra -Wpedantic ${CFLAGS}
>   	# -Wno-misleading-indentation silences warnings which are entirely spurious.
>   	FLAGS:=$(FLAGS) -Wno-misleading-indentation -Wno-unknown-warning-option
>  -	FLAGS:=$(FLAGS) -lm