On 11/19/2023 5:17 PM, Theo Buehler wrote: > On Sun, Nov 19, 2023 at 10:52:35PM +0100, Peter Hessler wrote: >> On 2023 Nov 18 (Sat) at 00:36:16 -0700 (-0700), phess...@openbsd.org wrote: >> :http://build-failures.rhaalovely.net/aarch64/2023-11-15/multimedia/assimp.log >> >> Not a java-related error and doesn't seem to happen on amd64, but does on >> arm64: > >> error: field within 'Assimp::MDL::Vertex_MDL7' is less aligned than >> 'Assimp::MDL::Vertex_MDL7::(anonymous union at >> /usr/obj/ports/assimp-5.2.5/assimp-5.2.5/code/AssetLib/MDL/MDLFileData.h:603:5)' >> and is usually due to 'Assimp::MDL::Vertex_MDL7' being packed, which can >> lead to unaligned accesses [-Werror,-Wunaligned-access] >> union { >> ^ >> 1 error generated. >> ninja: build stopped: subcommand failed. > > -Werror strikes again. Given that this packed struct is part of a file > format, I doubt there's much we can do. > > Index: Makefile > =================================================================== > RCS file: /cvs/ports/multimedia/assimp/Makefile,v > diff -u -p -r1.9 Makefile > --- Makefile 29 Aug 2023 10:46:34 -0000 1.9 > +++ Makefile 19 Nov 2023 22:02:12 -0000 > @@ -21,6 +21,8 @@ COMPILER = base-clang ports-gcc > > # make sure we dont pickup minizip from ports as its not the same > CONFIGURE_ARGS+=-DASSIMP_BUILD_MINIZIP:bool=true > +# arm64 emits a warning about unaligned access > +CONFIGURE_ARGS+=-DASSIMP_WARNINGS_AS_ERRORS:bool=false > MODULES = devel/cmake > > BUILD_DEPENDS = devel/boost >
Yup; this makes the most sense to me. ~Brian