diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2019-11-26 10:58:24 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2019-11-26 10:58:24 +0000 |
commit | 7e496ebbf950f6cc4727ee60a21ea6a324af045a (patch) | |
tree | 770894e8ea52ed19567d62f6311be4ae5dff422f | |
parent | 933b0ace059d5e08d3212fc9f98546e01a4c45f9 (diff) |
Revert previous "honour DEBUG", otherwise clang uses -g resulting in huge
objects and it running out of memory in the "building shared LLVM library"
stage (at least on i386).
building standard LLVM library
building shared LLVM library (version 1.0)
cc -shared -Wl,-soname,libLLVM.so.1.0 -fpic -o libLLVM.so.1.0 `echo AMDGPUAsmParser.so AMDGPUInstPrinter.so AMDGPUAliasAnalysis.so AMDGPUAlwaysInlinePass.so AMDGPUAnnotateKernelFeatures.so AMDGPUAnnotateUniformValues.so AMDGPUArgumentUsageInfo.so [...snip lots of .so...] ThinLTOBitcodeWriter.so WholeProgramDevirt.so | tr ' ' '\n' | sort -R` -Wl,--start-group -Wl,--end-group
LLVM ERROR: out of memory
cc: error: unable to execute command: Abort trap
cc: error: linker command failed due to signal (use -v to see invocation)
ar: libLLVM.a: No space left on device
*** Error 1 in gnu/usr.bin/clang/libLLVM (<bsd.lib.mk>:193 'libLLVM.a': @ar cqD libLLVM.a `lorder AMDGPUAsmParser.o AMDGPUIn
stPrinter.o AMDG...)
*** Error 254 (<bsd.lib.mk>:225 'libLLVM.so.1.0')
-rw-r--r-- | gnu/usr.bin/clang/Makefile.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/usr.bin/clang/Makefile.inc b/gnu/usr.bin/clang/Makefile.inc index 6a11cd4a18a..2bda4878c0f 100644 --- a/gnu/usr.bin/clang/Makefile.inc +++ b/gnu/usr.bin/clang/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.17 2019/11/25 23:59:57 kn Exp $ +# $OpenBSD: Makefile.inc,v 1.18 2019/11/26 10:58:23 sthen Exp $ LLVM_SRCS?= ${.CURDIR}/../../../llvm @@ -13,6 +13,7 @@ CC= egcc CXX= eg++ .endif +DEBUG= NOPIE= CLANG_INCLUDES= -I${LLVM_SRCS}/tools/clang/include |