From 704dbec24e431b95fa9f46641296915483f1eafd Mon Sep 17 00:00:00 2001 From: Martin Grigorov Date: Wed, 27 Nov 2024 19:54:48 +0200 Subject: [PATCH] meraculous: add linux-aarch64 build (#50566) * meraculous: add linux-aarch64 build Signed-off-by: Martin Tzvetanov Grigorov * meraculous: add a patch for aarch64 and arm64 builds Signed-off-by: Martin Tzvetanov Grigorov --------- Signed-off-by: Martin Tzvetanov Grigorov --- recipes/meraculous/build.sh | 4 +++- recipes/meraculous/meraculous-aarch64.patch | 14 ++++++++++++++ recipes/meraculous/meta.yaml | 7 ++++++- 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 recipes/meraculous/meraculous-aarch64.patch diff --git a/recipes/meraculous/build.sh b/recipes/meraculous/build.sh index 74fea3640849e..7fad261cd599b 100644 --- a/recipes/meraculous/build.sh +++ b/recipes/meraculous/build.sh @@ -1,10 +1,12 @@ #!/bin/bash +set -xe + mkdir build cd build cmake \ -DCMAKE_INSTALL_PREFIX="${PREFIX}" \ -DBUILD_SHARED_LIBS=ON \ .. -make +make -j ${CPU_COUNT} make install diff --git a/recipes/meraculous/meraculous-aarch64.patch b/recipes/meraculous/meraculous-aarch64.patch new file mode 100644 index 0000000000000..36e4b39d7b3f1 --- /dev/null +++ b/recipes/meraculous/meraculous-aarch64.patch @@ -0,0 +1,14 @@ +--- Meraculous-v2.2.6/src/c/Compat.h 2018-08-10 22:43:06.115287000 +0000 ++++ Meraculous-v2.2.6.working/src/c/Compat.h 2024-11-25 14:49:34.912000000 +0000 +@@ -82,11 +82,7 @@ + #include // For sched_setaffinity + #endif + +-#ifndef __APPLE__ +-#include // This is currently (in Dec 2013) broken on Mac OS X 10.9 (Apple clang-500.2.79) +-#else + #define _mm_prefetch(...) {} +-#endif + + typedef int64_t _int64; + typedef uint64_t _uint64; diff --git a/recipes/meraculous/meta.yaml b/recipes/meraculous/meta.yaml index 828c811f7e238..a7e62c92d6225 100644 --- a/recipes/meraculous/meta.yaml +++ b/recipes/meraculous/meta.yaml @@ -10,10 +10,13 @@ source: patches: - 0001-Remove-compiler-upper-bound-version-check.patch - 0002-No-static-linking.patch + - meraculous-aarch64.patch # [aarch64 or arm64] build: skip: True # [osx] - number: 7 + number: 8 + run_exports: + - {{ pin_subpackage("meraculous", max_pin="x") }} requirements: build: @@ -51,6 +54,8 @@ about: license_file: license.txt extra: + additional-platforms: + - linux-aarch64 identifiers: - doi:10.1371/journal.pone.0023501 # https://arxiv.org/abs/1703.09852