pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
openmp: update for llvm-14
Module Name: pkgsrc-wip
Committed By: pin <voidpin%protonmail.com@localhost>
Pushed By: pin
Date: Thu Aug 4 09:12:03 2022 +0200
Changeset: 18cbec9c8e869d4c8146fc074315863a957f7fe3
Modified Files:
Makefile
Added Files:
openmp/DESCR
openmp/Makefile
openmp/PLIST
openmp/buildlink3.mk
openmp/distinfo
openmp/patches/patch-runtime_src_kmp__runtime.cpp
Log Message:
openmp: update for llvm-14
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=18cbec9c8e869d4c8146fc074315863a957f7fe3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 2 ++
openmp/DESCR | 5 ++++
openmp/Makefile | 34 +++++++++++++++++++++++
openmp/PLIST | 7 +++++
openmp/buildlink3.mk | 13 +++++++++
openmp/distinfo | 6 ++++
openmp/patches/patch-runtime_src_kmp__runtime.cpp | 15 ++++++++++
7 files changed, 82 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index a48a3459e9..84facbc12a 100644
--- a/Makefile
+++ b/Makefile
@@ -511,6 +511,7 @@ SUBDIR+= compat32_ncurses
SUBDIR+= compat32_png
SUBDIR+= compat32_tiff
SUBDIR+= compat80-x11
+SUBDIR+= compiler-rt
SUBDIR+= compiz-boxmenu
SUBDIR+= complexity
SUBDIR+= concorde
@@ -2745,6 +2746,7 @@ SUBDIR+= opengrok
SUBDIR+= openjazz
SUBDIR+= openjdk8-openjfx-hg
SUBDIR+= openlogos
+SUBDIR+= openmp
SUBDIR+= openmpi
SUBDIR+= openmx-openmpi
SUBDIR+= opennurbs
diff --git a/openmp/DESCR b/openmp/DESCR
new file mode 100644
index 0000000000..3ec76f7b97
--- /dev/null
+++ b/openmp/DESCR
@@ -0,0 +1,5 @@
+The OpenMP subproject of LLVM contains the components required to build an
+executable OpenMP program that are outside the compiler itself.
+
+Here you can find the code for the runtime library against which code compiled
+by clang -fopenmp must be linked before it can run.
diff --git a/openmp/Makefile b/openmp/Makefile
new file mode 100644
index 0000000000..dd3f23a13d
--- /dev/null
+++ b/openmp/Makefile
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.13 2022/07/24 07:48:09 nia Exp $
+
+.include "../../wip/llvm/version.mk"
+
+DISTNAME= openmp-${LLVM_VERSION}.src
+PKGNAME= ${DISTNAME:S/.src//}
+CATEGORIES= parallel
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://openmp.llvm.org/
+COMMENT= Support for the OpenMP language
+LICENSE= apache-2.0
+
+CONFIGURE_DIRS= ${WRKDIR}/build
+CMAKE_ARG_PATH= ${WRKSRC}
+
+USE_LANGUAGES= c gnu++14
+USE_CMAKE= yes
+USE_TOOLS+= perl pkg-config
+GCC_REQD+= 4.8
+
+CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release
+CMAKE_ARGS+= -DCMAKE_C_COMPILER=${CC:Q}
+CMAKE_ARGS+= -DCMAKE_CXX_COMPILER=${CXX:Q}
+CMAKE_ARGS+= -DOPENMP_ENABLE_LIBOMPTARGET=OFF
+CMAKE_ARGS+= -DOPENMP_ENABLE_OMPT_TOOLS=OFF
+
+BUILDLINK_TRANSFORM.NetBSD+= opt:-std=c++14:-std=gnu++14 # alloca
+
+post-extract:
+ ${MKDIR} ${WRKDIR}/build
+
+.include "../../wip/llvm/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/openmp/PLIST b/openmp/PLIST
new file mode 100644
index 0000000000..a16edf1f18
--- /dev/null
+++ b/openmp/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1 2019/06/17 16:35:44 adam Exp $
+include/omp-tools.h
+include/omp.h
+include/ompt.h
+lib/libgomp.so
+lib/libiomp5.so
+lib/libomp.so
diff --git a/openmp/buildlink3.mk b/openmp/buildlink3.mk
new file mode 100644
index 0000000000..ac3a071c55
--- /dev/null
+++ b/openmp/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.3 2022/06/28 11:35:24 wiz Exp $
+
+BUILDLINK_TREE+= openmp
+
+.if !defined(OPENMP_BUILDLINK3_MK)
+OPENMP_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.openmp+= openmp>=9.0.1
+BUILDLINK_ABI_DEPENDS.openmp?= openmp>=13.0.1nb1
+BUILDLINK_PKGSRCDIR.openmp?= ../../parallel/openmp
+.endif # OPENMP_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -openmp
diff --git a/openmp/distinfo b/openmp/distinfo
new file mode 100644
index 0000000000..455ea3d941
--- /dev/null
+++ b/openmp/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.12 2022/02/03 20:38:39 adam Exp $
+
+BLAKE2s (openmp-14.0.6.src.tar.xz) = b56918c4cfcf7bf21cf123e395f615346caf2b8306cb2269b66a9fe6ffac828c
+SHA512 (openmp-14.0.6.src.tar.xz) = 0b29e25354d58d3f851c60fa4cd3e4e251092c4dadca995598b11757fa8d5d184e9895a362a6a23b67d6dd2a210ca64e681c3b47f3f225edbf048012762f0988
+Size (openmp-14.0.6.src.tar.xz) = 1205476 bytes
+SHA1 (patch-runtime_src_kmp__runtime.cpp) = 70f4396d4c1631fbd74692ef26b22d08675da547
diff --git a/openmp/patches/patch-runtime_src_kmp__runtime.cpp b/openmp/patches/patch-runtime_src_kmp__runtime.cpp
new file mode 100644
index 0000000000..997f1d8279
--- /dev/null
+++ b/openmp/patches/patch-runtime_src_kmp__runtime.cpp
@@ -0,0 +1,15 @@
+$NetBSD$
+
+* Support NetBSD/i386 and other 32-bit architectures.
+
+--- runtime/src/kmp_runtime.cpp.orig 2022-06-22 16:46:24.000000000 +0000
++++ runtime/src/kmp_runtime.cpp
+@@ -8754,7 +8754,7 @@ __kmp_determine_reduction_method(
+
+ #elif KMP_ARCH_X86 || KMP_ARCH_ARM || KMP_ARCH_AARCH || KMP_ARCH_MIPS
+
+-#if KMP_OS_LINUX || KMP_OS_FREEBSD || KMP_OS_WINDOWS || KMP_OS_HURD
++#if KMP_OS_LINUX || KMP_OS_FREEBSD || KMP_OS_WINDOWS || KMP_OS_HURD || KMP_OS_NETBSD
+
+ // basic tuning
+
Home |
Main Index |
Thread Index |
Old Index