Friday, August 06, 2021

Re: mips64 bulk build report

visa@openbsd.org writes:

> http://build-failures.rhaalovely.net/mips64/2021-07-26/games/godot.log

This fails because of the builtin embree library. It's enabled on
64bits system but only supports amd64 and aarch64 really.

> In file included from thirdparty/embree/common/sys/sysinfo.cpp:4:
> thirdparty/embree/common/sys/sysinfo.h:68:2: error: Unknown ISA
> #error Unknown ISA
> ^
> In file included from thirdparty/embree/common/sys/sysinfo.cpp:5:
> thirdparty/embree/common/sys/intrinsics.h:18:10: fatal error: 'immintrin.h' file not found
> #include <immintrin.h>
> ^~~~~~~~~~~~~
> 2 errors generated.

I had this patch in my tree that should disable the build of embree on
sparc64 and mips, but I can't test it. Or we can mark it as broken as
done for sparc64, I'm fine either the way.

Cheers,

Omar Polo

Index: Makefile
===================================================================
RCS file: /home/cvs/ports/games/godot/Makefile,v
retrieving revision 1.20
diff -u -p -r1.20 Makefile
--- Makefile 9 Jun 2021 19:50:07 -0000 1.20
+++ Makefile 21 Jun 2021 08:09:30 -0000
@@ -88,6 +88,8 @@ post-extract:

pre-configure:
${SUBST_CMD} ${WRKSRC}/drivers/unix/os_unix.cpp
+ ${SUBST_CMD} ${WRKSRC}/modules/raycast/config.py
+ ${SUBST_CMD} ${WRKSRC}/modules/lightmapper_cpu/config.py

do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/bin/godot* \
Index: patches/patch-modules_lightmapper_cpu_config_py
===================================================================
RCS file: patches/patch-modules_lightmapper_cpu_config_py
diff -N patches/patch-modules_lightmapper_cpu_config_py
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-modules_lightmapper_cpu_config_py 21 Jun 2021 08:09:05 -0000
@@ -0,0 +1,15 @@
+$OpenBSD$
+
+embree doesn't support non-amd/arm 64bit arches
+
+Index: modules/lightmapper_cpu/config.py
+--- modules/lightmapper_cpu/config.py.orig
++++ modules/lightmapper_cpu/config.py
+@@ -1,4 +1,7 @@
+ def can_build(env, platform):
++ if "${MACHINE_ARCH}" in ["mips64", "sparc64"]:
++ return False
++
+ if not env["tools"] or not env["module_raycast_enabled"]:
+ return False
+
Index: patches/patch-modules_raycast_config_py
===================================================================
RCS file: patches/patch-modules_raycast_config_py
diff -N patches/patch-modules_raycast_config_py
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-modules_raycast_config_py 21 Jun 2021 08:07:51 -0000
@@ -0,0 +1,15 @@
+$OpenBSD$
+
+embree doesn't support non-amd/arm 64bit arches
+
+Index: modules/raycast/config.py
+--- modules/raycast/config.py.orig
++++ modules/raycast/config.py
+@@ -1,4 +1,7 @@
+ def can_build(env, platform):
++ if "${MACHINE_ARCH}" in ["mips64", "sparc64"]:
++ return False
++
+ if not env["tools"]:
+ return False
+

No comments:

Post a Comment