On Mon, Jun 01, 2020 at 11:24:47AM +0100, Stuart Henderson wrote: > On 2020/06/01 11:50, Solene Rapenne wrote: > > On Mon, 1 Jun 2020 10:42:03 +0100 > > Stuart Henderson <s...@spacehopper.org>: > > > > > A summary of the failures: > > > > > > On 2020/06/01 02:30, k...@openbsd.org wrote: > > > > http://build-failures.rhaalovely.net/sparc64/2020-05-29/games/wrath.log > > > > > > > > > > cc1: error: unrecognized command line option "-msse2" > > > > Is this because -msse2 doesn't exist on sparc64? > > SSE/SSE2 only exist on i386/amd64. The code has support for building > without these but the makefile doesn't cope. This probably fixes it. > > Index: Makefile > =================================================================== > RCS file: /cvs/ports/games/wrath/Makefile,v > retrieving revision 1.1.1.1 > diff -u -p -r1.1.1.1 Makefile > --- Makefile 25 May 2020 16:08:41 -0000 1.1.1.1 > +++ Makefile 1 Jun 2020 10:21:37 -0000 > @@ -24,6 +24,10 @@ MAKE_FLAGS = CC="${CC}" \ > CFLAGS_LIBJPEG="-I${LOCALBASE}/include > -DLINK_TO_LIBJPEG" \ > CPUOPTIMIZATIONS="${CFLAGS}" > > +.if !(${MACHINE_ARCH} == amd64 || ${MACHINE_ARCH} == i386) > +MAKE_FLAGS += CFLAGS_SSE= CFLAGS_SSE2= > +.endif > + > USE_GMAKE = Yes > > NO_TEST = Yes
Thanks Stuart, with your diff I built wrath on arm64. I sent a diff to update wrath last Saturday, can I include your diff in the update or is better to bump revision here first? Index: Makefile =================================================================== RCS file: /cvs/ports/games/wrath/Makefile,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 Makefile --- Makefile 25 May 2020 16:08:41 -0000 1.1.1.1 +++ Makefile 3 Jun 2020 15:51:10 -0000 @@ -3,6 +3,7 @@ COMMENT = client of wrath-darkplaces engine DISTNAME = wrath-0.0.0.20200228 +REVISION = 0 GH_ACCOUNT = KillPixelGames GH_PROJECT = wrath-darkplaces @@ -23,6 +24,10 @@ LIB_DEPENDS = devel/sdl2 \ MAKE_FLAGS = CC="${CC}" \ CFLAGS_LIBJPEG="-I${LOCALBASE}/include -DLINK_TO_LIBJPEG" \ CPUOPTIMIZATIONS="${CFLAGS}" + +.if !(${MACHINE_ARCH} == amd64 || ${MACHINE_ARCH} == i386) +MAKE_FLAGS += CFLAGS_SSE= CFLAGS_SSE2= +.endif USE_GMAKE = Yes