On 2021 Dec 27 (Mon) at 23:32:31 +0100 (+0100), Jeremie Courreges-Anglas wrote: :On Mon, Dec 20 2021, phess...@openbsd.org wrote: :> bulk build on arm64.ports.openbsd.org :> started on Mon Dec 20 03:38:26 MST 2021 :> finished at Mon Dec 20 22:29:47 MST 2021 :> lasted 0D18h51m :> done with kern.version=OpenBSD 7.0-current (GENERIC.MP) #1455: Sun Dec 19 14:58:17 MST 2021 :> :> built packages:8238 :> Dec 20:8237 :> :> :> critical path missing pkgs: http://build-failures.rhaalovely.net/aarch64/2021-12-20/summary.log :> :> build failures: 10 :> http://build-failures.rhaalovely.net/aarch64/2021-12-20/databases/mariadb.log : :[...] : :mariadb tries to use "out-of-line atomics" as implemented here: : : https://reviews.llvm.org/D91157 : :The summary mentions implementations in libgcc and libcompiler-rt, and :a quick diff between compiler-rt-11.1.0 and compiler-rt-13.0.0 indeed :lists changes that seem relevant. : :To work around this problem until a solution is found in base, the :untested patch below may help. If testing goes well, ok? :
this builds and packages on arm64, OK : :Index: patches/patch-configure_cmake :=================================================================== :RCS file: patches/patch-configure_cmake :diff -N patches/patch-configure_cmake :--- /dev/null 1 Jan 1970 00:00:00 -0000 :+++ patches/patch-configure_cmake 27 Dec 2021 22:29:08 -0000 :@@ -0,0 +1,17 @@ :+$OpenBSD$ :+ :+libcompiler-rt from base doesn't provide support for out-of-line atomics :+llvm commit: https://reviews.llvm.org/D91157 :+ :+Index: configure.cmake :+--- configure.cmake.orig :++++ configure.cmake :+@@ -70,7 +70,7 @@ IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "i686" AND CMAKE_CO :+ ENDIF() :+ :+ # use runtime atomic-support detection in aarch64 :+-IF(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64") :++IF(FALSE) :+ MY_CHECK_AND_SET_COMPILER_FLAG("-moutline-atomics") :+ ENDIF() :+ : : :-- :jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE -- It is impossible to make anything foolproof because fools are so ingenious.