pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

compiler-rt: update for llvm-14



Module Name:	pkgsrc-wip
Committed By:	pin <voidpin%protonmail.com@localhost>
Pushed By:	pin
Date:		Thu Aug 4 09:07:33 2022 +0200
Changeset:	3467a1cf208f89e3f6b7a1bc180ed08febff3bcf

Added Files:
	compiler-rt/DESCR
	compiler-rt/Makefile
	compiler-rt/TODO
	compiler-rt/buildlink3.mk
	compiler-rt/distinfo
	compiler-rt/patches/patch-cmake_config-ix.cmake
	compiler-rt/patches/patch-lib_sanitizer__common_sanitizer__platform__limits__netbsd.cpp

Log Message:
compiler-rt: 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=3467a1cf208f89e3f6b7a1bc180ed08febff3bcf

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 compiler-rt/DESCR                                  |  23 ++++
 compiler-rt/Makefile                               |  54 +++++++++
 compiler-rt/TODO                                   | 135 +++++++++++++++++++++
 compiler-rt/buildlink3.mk                          |  14 +++
 compiler-rt/distinfo                               |   7 ++
 compiler-rt/patches/patch-cmake_config-ix.cmake    |  42 +++++++
 ..._common_sanitizer__platform__limits__netbsd.cpp |  58 +++++++++
 7 files changed, 333 insertions(+)

diffs:
diff --git a/compiler-rt/DESCR b/compiler-rt/DESCR
new file mode 100644
index 0000000000..155e7badeb
--- /dev/null
+++ b/compiler-rt/DESCR
@@ -0,0 +1,23 @@
+The compiler-rt project consists of:
+
+ - builtins - a simple library that provides an implementation of the low-level
+   target-specific hooks required by code generation and other runtime
+   components. For example, when compiling for a 32-bit target, converting a
+   double to a 64-bit unsigned integer is compiling into a runtime call to the
+   "__fixunsdfdi" function. The builtins library provides optimized
+   implementations of this and other low-level routines, either in
+   target-independent C form, or as a heavily-optimized assembly.
+
+ - sanitizer runtimes - runtime libraries that are required to run the code
+   with sanitizer instrumentation. This includes runtimes for:
+   *     AddressSanitizer
+   *     ThreadSanitizer
+   *     UndefinedBehaviorSanitizer
+   *     MemorySanitizer
+   *     LeakSanitizer
+   *     DataFlowSanitizer
+
+ - profile - library which is used to collect coverage information.
+
+ - BlocksRuntime - a target-independent implementation of Apple "Blocks"
+   runtime interfaces.
diff --git a/compiler-rt/Makefile b/compiler-rt/Makefile
new file mode 100644
index 0000000000..9daecc5477
--- /dev/null
+++ b/compiler-rt/Makefile
@@ -0,0 +1,54 @@
+# $NetBSD: Makefile,v 1.18 2021/09/19 09:12:46 nia Exp $
+
+.include "../../wip/llvm/version.mk"
+
+DISTNAME=	compiler-rt-${LLVM_VERSION}.src
+PKGNAME=	${DISTNAME:S/.src//}
+CATEGORIES=	lang devel
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://compiler-rt.llvm.org/
+COMMENT=	LLVM runtime libraries
+LICENSE=	apache-2.0
+
+NOT_FOR_PLATFORM=	NetBSD-[0-7].*-*
+
+USE_CMAKE=	yes
+USE_LANGUAGES=	c99 c++11
+USE_TOOLS+=	ggrep
+GCC_REQD+=	4.8
+SSP_SUPPORTED=	no
+
+CONFIGURE_DIRS=	${WRKDIR}/build
+CMAKE_ARG_PATH=	${WRKSRC}
+
+OS_DIR=		${OPSYS:tl}
+
+CMAKE_ARGS+=	-DCMAKE_BUILD_TYPE=Release
+CMAKE_ARGS+=	-DCMAKE_C_COMPILER=${CC:Q}
+CMAKE_ARGS+=	-DCMAKE_CXX_COMPILER=${CXX:Q}
+CMAKE_ARGS+=	-DCOMPILER_RT_TEST_COMPILER=${PKG_CC:Q}
+CMAKE_ARGS+=	-DCOMPILER_RT_OS_DIR:STRING=${OS_DIR}
+CMAKE_ARGS+=	-DCOMPILER_RT_INSTALL_PATH:STRING=lib/clang/${PKGVERSION_NOREV}
+CMAKE_ARGS+=	-DLLVM_CONFIG_PATH=${LLVM_CONFIG_PATH:Q}
+CMAKE_ARGS+=	-DCOMPILER_RT_ENABLE_IOS=OFF
+
+TEST_TARGET=	check-compiler-rt
+
+GENERATE_PLIST+=	find ${DESTDIR}${PREFIX} \( -type f -o -type l \) -print | \
+			sed 's,${DESTDIR}${PREFIX}/,,' | ${SORT} ;
+
+PYTHON_FOR_BUILD_ONLY=	yes
+
+post-extract:
+	${MKDIR} ${WRKDIR}/build
+
+post-install:
+	cd ${DESTDIR}${PREFIX} && \
+	${FIND} lib/clang/${PKGVERSION_NOREV} -type f -name '*.dylib' \
+		-exec install_name_tool -id ${PREFIX}/{} {} \;
+
+.include "../../devel/googletest/buildlink3.mk"
+.include "../../wip/llvm/buildlink3.mk"
+.include "../../lang/python/tool.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/compiler-rt/TODO b/compiler-rt/TODO
new file mode 100644
index 0000000000..104d51f949
--- /dev/null
+++ b/compiler-rt/TODO
@@ -0,0 +1,135 @@
+[ 27%] Building ASM object lib/asan/CMakeFiles/RTAsan_static.x86_64.dir/asan_rtl_x86_64.S.o
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S: Assembler messages:
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:130: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:130: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:130: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:130: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:130: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:130: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:130: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:130: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:130: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:130: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:131: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:131: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:131: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:131: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:131: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:131: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:131: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:131: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:131: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:131: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:132: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:132: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:132: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:132: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:132: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:132: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:132: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:132: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:132: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:132: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:133: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:133: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:133: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:133: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:133: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:133: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:133: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:133: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:133: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:133: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:134: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:134: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:134: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:134: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:134: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:134: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:134: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:134: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:134: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:134: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:135: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:135: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:135: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:135: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:135: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:135: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:135: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:135: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:135: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:135: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:136: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:136: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:136: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:136: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:136: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:136: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:136: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:136: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:136: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:136: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:137: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:137: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:137: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:137: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:137: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:137: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:137: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:137: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:137: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:137: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:138: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:138: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:138: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:138: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:138: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:138: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:138: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:138: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:138: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:138: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:139: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:139: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:139: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:139: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:139: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:139: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:139: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:139: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:139: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:139: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:140: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:140: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:140: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:140: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:140: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:140: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:140: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:140: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:140: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:140: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:141: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:141: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:141: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:141: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:141: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:141: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:141: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:141: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:141: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:141: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:142: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:142: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:142: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:142: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:142: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:142: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:142: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:142: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:142: Error: 0x400000000000 out range of signed 32bit displacement
+/usr/pkgsrc/wip/compiler-rt/work/compiler-rt-14.0.6.src/lib/asan/asan_rtl_x86_64.S:142: Error: 0x400000000000 out range of signed 32bit displacement
+--- lib/asan/CMakeFiles/RTAsan_static.x86_64.dir/asan_rtl_x86_64.S.o ---
+*** [lib/asan/CMakeFiles/RTAsan_static.x86_64.dir/asan_rtl_x86_64.S.o] Error code 1
+
diff --git a/compiler-rt/buildlink3.mk b/compiler-rt/buildlink3.mk
new file mode 100644
index 0000000000..e126ba1787
--- /dev/null
+++ b/compiler-rt/buildlink3.mk
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.3 2019/12/29 15:31:21 adam Exp $
+
+BUILDLINK_TREE+=	compiler-rt
+
+.if !defined(COMPILER_RT_BUILDLINK3_MK)
+COMPILER_RT_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.compiler-rt+=	compiler-rt>=9.0.1
+BUILDLINK_PKGSRCDIR.compiler-rt?=	../../lang/compiler-rt
+
+.include "../../wip/llvm/buildlink3.mk"
+.endif	# COMPILER_RT_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-compiler-rt
diff --git a/compiler-rt/distinfo b/compiler-rt/distinfo
new file mode 100644
index 0000000000..e3c4af8fe0
--- /dev/null
+++ b/compiler-rt/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.16 2022/02/03 20:38:39 adam Exp $
+
+BLAKE2s (compiler-rt-14.0.6.src.tar.xz) = d2c279dadc7d3cd7f8c2999e918d410eaf7c74cfd16095c3db16bcdc83c30fb8
+SHA512 (compiler-rt-14.0.6.src.tar.xz) = c0e63071cb99bca837b83fd0e3597cf45cc635f73ab88a1ec48e863a1633f42bd402ea7c5130e8fa0f550b9574c1ecac1799b92b789565e4ead955cf60060907
+Size (compiler-rt-14.0.6.src.tar.xz) = 2327352 bytes
+SHA1 (patch-cmake_config-ix.cmake) = 40ee86393c0f9e26eeaa493c5312d2cabf4c2a58
+SHA1 (patch-lib_sanitizer__common_sanitizer__platform__limits__netbsd.cpp) = 8d9b35c02f0c8c10d7e7d3bf9935bd0ca3f5f448
diff --git a/compiler-rt/patches/patch-cmake_config-ix.cmake b/compiler-rt/patches/patch-cmake_config-ix.cmake
new file mode 100644
index 0000000000..9d82a46210
--- /dev/null
+++ b/compiler-rt/patches/patch-cmake_config-ix.cmake
@@ -0,0 +1,42 @@
+$NetBSD$
+
+Disable components that aren't ready for SunOS yet.
+
+--- cmake/config-ix.cmake.orig	2022-06-22 16:46:24.000000000 +0000
++++ cmake/config-ix.cmake
+@@ -668,7 +668,7 @@ set(COMPILER_RT_SANITIZERS_TO_BUILD all 
+ list_replace(COMPILER_RT_SANITIZERS_TO_BUILD all "${ALL_SANITIZERS}")
+ 
+ if (SANITIZER_COMMON_SUPPORTED_ARCH AND NOT LLVM_USE_SANITIZER AND
+-    (OS_NAME MATCHES "Android|Darwin|Linux|FreeBSD|NetBSD|Fuchsia|SunOS" OR
++    (OS_NAME MATCHES "Android|Darwin|Linux|FreeBSD|NetBSD|Fuchsia" OR
+     (OS_NAME MATCHES "Windows" AND NOT CYGWIN AND
+         (NOT MINGW OR CMAKE_CXX_COMPILER_ID MATCHES "Clang"))))
+   set(COMPILER_RT_HAS_SANITIZER_COMMON TRUE)
+@@ -688,7 +688,7 @@ else()
+   set(COMPILER_RT_HAS_ASAN FALSE)
+ endif()
+ 
+-if (OS_NAME MATCHES "Linux|FreeBSD|Windows|NetBSD|SunOS")
++if (OS_NAME MATCHES "Linux|FreeBSD|Windows|NetBSD")
+   set(COMPILER_RT_ASAN_HAS_STATIC_RUNTIME TRUE)
+ else()
+   set(COMPILER_RT_ASAN_HAS_STATIC_RUNTIME FALSE)
+@@ -738,7 +738,7 @@ else()
+ endif()
+ 
+ if (PROFILE_SUPPORTED_ARCH AND NOT LLVM_USE_SANITIZER AND
+-    OS_NAME MATCHES "Darwin|Linux|FreeBSD|Windows|Android|Fuchsia|SunOS|NetBSD|AIX")
++    OS_NAME MATCHES "Darwin|Linux|FreeBSD|Windows|Android|Fuchsia|NetBSD|AIX")
+   set(COMPILER_RT_HAS_PROFILE TRUE)
+ else()
+   set(COMPILER_RT_HAS_PROFILE FALSE)
+@@ -763,7 +763,7 @@ else()
+ endif()
+ 
+ if (COMPILER_RT_HAS_SANITIZER_COMMON AND UBSAN_SUPPORTED_ARCH AND
+-    OS_NAME MATCHES "Darwin|Linux|FreeBSD|NetBSD|Windows|Android|Fuchsia|SunOS")
++    OS_NAME MATCHES "Darwin|Linux|FreeBSD|NetBSD|Windows|Android|Fuchsia")
+   set(COMPILER_RT_HAS_UBSAN TRUE)
+ else()
+   set(COMPILER_RT_HAS_UBSAN FALSE)
diff --git a/compiler-rt/patches/patch-lib_sanitizer__common_sanitizer__platform__limits__netbsd.cpp b/compiler-rt/patches/patch-lib_sanitizer__common_sanitizer__platform__limits__netbsd.cpp
new file mode 100644
index 0000000000..9442485177
--- /dev/null
+++ b/compiler-rt/patches/patch-lib_sanitizer__common_sanitizer__platform__limits__netbsd.cpp
@@ -0,0 +1,58 @@
+$NetBSD$
+
+urio and smb have been removed from NetBSD.
+
+--- lib/sanitizer_common/sanitizer_platform_limits_netbsd.cpp.orig	2022-06-22 16:46:24.000000000 +0000
++++ lib/sanitizer_common/sanitizer_platform_limits_netbsd.cpp
+@@ -957,12 +957,14 @@ unsigned struct_session_op_sz = sizeof(s
+ unsigned struct_sgttyb_sz = sizeof(sgttyb);
+ unsigned struct_sioc_sg_req_sz = sizeof(sioc_sg_req);
+ unsigned struct_sioc_vif_req_sz = sizeof(sioc_vif_req);
++#if __NetBSD_Version__ < 999000000
+ unsigned struct_smbioc_flags_sz = sizeof(smbioc_flags);
+ unsigned struct_smbioc_lookup_sz = sizeof(smbioc_lookup);
+ unsigned struct_smbioc_oshare_sz = sizeof(smbioc_oshare);
+ unsigned struct_smbioc_ossn_sz = sizeof(smbioc_ossn);
+ unsigned struct_smbioc_rq_sz = sizeof(smbioc_rq);
+ unsigned struct_smbioc_rw_sz = sizeof(smbioc_rw);
++#endif
+ unsigned struct_spppauthcfg_sz = sizeof(spppauthcfg);
+ unsigned struct_spppauthfailuresettings_sz = sizeof(spppauthfailuresettings);
+ unsigned struct_spppauthfailurestats_sz = sizeof(spppauthfailurestats);
+@@ -987,7 +989,9 @@ unsigned struct_twe_drivecommand_sz = si
+ unsigned struct_twe_paramcommand_sz = sizeof(twe_paramcommand);
+ unsigned struct_twe_usercommand_sz = sizeof(twe_usercommand);
+ unsigned struct_ukyopon_identify_sz = sizeof(ukyopon_identify);
++#if __NetBSD_Version__ < 999000000
+ unsigned struct_urio_command_sz = sizeof(urio_command);
++#endif
+ unsigned struct_usb_alt_interface_sz = sizeof(usb_alt_interface);
+ unsigned struct_usb_bulk_ra_wb_opt_sz = sizeof(usb_bulk_ra_wb_opt);
+ unsigned struct_usb_config_desc_sz = sizeof(usb_config_desc);
+@@ -1576,8 +1580,10 @@ unsigned IOCTL_STICIO_RESET = STICIO_RES
+ unsigned IOCTL_STICIO_STARTQ = STICIO_STARTQ;
+ unsigned IOCTL_STICIO_STOPQ = STICIO_STOPQ;
+ unsigned IOCTL_UKYOPON_IDENTIFY = UKYOPON_IDENTIFY;
++#if __NetBSD_Version__ < 999000000
+ unsigned IOCTL_URIO_SEND_COMMAND = URIO_SEND_COMMAND;
+ unsigned IOCTL_URIO_RECV_COMMAND = URIO_RECV_COMMAND;
++#endif
+ unsigned IOCTL_USB_REQUEST = USB_REQUEST;
+ unsigned IOCTL_USB_SETDEBUG = USB_SETDEBUG;
+ unsigned IOCTL_USB_DISCOVER = USB_DISCOVER;
+@@ -1962,6 +1968,7 @@ unsigned IOCTL_SIOCCONNECTXDEL = SIOCCON
+ unsigned IOCTL_SIOCSIFINFO_FLAGS = SIOCSIFINFO_FLAGS;
+ unsigned IOCTL_SIOCAADDRCTL_POLICY = SIOCAADDRCTL_POLICY;
+ unsigned IOCTL_SIOCDADDRCTL_POLICY = SIOCDADDRCTL_POLICY;
++#if __NetBSD_Version__ < 999000000
+ unsigned IOCTL_SMBIOC_OPENSESSION = SMBIOC_OPENSESSION;
+ unsigned IOCTL_SMBIOC_OPENSHARE = SMBIOC_OPENSHARE;
+ unsigned IOCTL_SMBIOC_REQUEST = SMBIOC_REQUEST;
+@@ -1969,6 +1976,7 @@ unsigned IOCTL_SMBIOC_SETFLAGS = SMBIOC_
+ unsigned IOCTL_SMBIOC_LOOKUP = SMBIOC_LOOKUP;
+ unsigned IOCTL_SMBIOC_READ = SMBIOC_READ;
+ unsigned IOCTL_SMBIOC_WRITE = SMBIOC_WRITE;
++#endif
+ unsigned IOCTL_AGPIOC_INFO = AGPIOC_INFO;
+ unsigned IOCTL_AGPIOC_ACQUIRE = AGPIOC_ACQUIRE;
+ unsigned IOCTL_AGPIOC_RELEASE = AGPIOC_RELEASE;


Home | Main Index | Thread Index | Old Index