From owner-freebsd-current@freebsd.org Mon Aug 20 10:53:13 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A6DBE108C6B2 for ; Mon, 20 Aug 2018 10:53:13 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46B388706A; Mon, 20 Aug 2018 10:53:13 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [192.168.1.32] (ip-213-127-237-35.ip.prioritytelecom.net [213.127.237.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 8F20839EF4; Mon, 20 Aug 2018 12:53:05 +0200 (CEST) From: Dimitry Andric Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_2B610DB7-B17B-4891-BA6B-8A66000FB859"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: building LLVM threads gets killed Date: Mon, 20 Aug 2018 12:53:00 +0200 In-Reply-To: Cc: FreeBSD Current , Brooks Davis To: blubee blubeeme References: X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Aug 2018 10:53:13 -0000 --Apple-Mail=_2B610DB7-B17B-4891-BA6B-8A66000FB859 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 20 Aug 2018, at 05:01, blubee blubeeme wrote: > > I am running current compiling LLVM60 and when it comes to linking > basically all the processes on my computer gets killed; Chrome, Firefox and > some of the LLVM threads as well ... > llvm/build % ninja -j8 > [2408/2473] Building CXX object > lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o > FAILED: lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o > /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D__STDC_CONSTANT_MACROS > -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/Passes -I../lib/Passes > -Iinclude -I../include -isystem /usr/local/include -fPIC > -fvisibility-inlines-hidden -Werror=date-time > -Werror=unguarded-availability-new -std=c++11 -Wall -Wextra > -Wno-unused-parameter -Wwrite-strings -Wcast-qual > -Wmissing-field-initializers -pedantic -Wno-long-long > -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor > -Wstring-conversion -fdiagnostics-color -g -fno-exceptions -fno-rtti -MD > -MT lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o -MF > lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o.d -o > lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o -c > ../lib/Passes/PassBuilder.cpp > c++: error: unable to execute command: Killed It is running out of RAM while running multiple parallel link jobs. If you are building using WITH_DEBUG, turn that off, it consumes large amounts of memory. If you must have debug info, try adding the following flag to the CMake command line: -D LLVM_PARALLEL_LINK_JOBS:STRING="1" That will limit the amount of parallel link jobs to 1, even if you specify -j 8 to gmake or ninja. Brooks, it would not be a bad idea to always use this CMake flag in the llvm ports. :) -Dimitry --Apple-Mail=_2B610DB7-B17B-4891-BA6B-8A66000FB859 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCW3qdjQAKCRCwXqMKLiCW o9OZAKDR3Zsrvi+f5WaVale/+5GUXQ4gxACfRh6g7ZjvUwa90xaixxR3DKKjK8k= =oiOx -----END PGP SIGNATURE----- --Apple-Mail=_2B610DB7-B17B-4891-BA6B-8A66000FB859--