Date: Sat, 24 Nov 2018 20:48:53 +0100 From: "Ronald Klop" <ronald-lists@klop.ws> To: freebsd-arm@freebsd.org Subject: ld.lld goes out of memory Message-ID: <op.zsz1brvbkndu52@sjakie>
next in thread | raw e-mail | index | archive | help
Hello, While compiling databases/mongodb34 on my RPI3B+ 12.0-RC1/arm64 ld.lld fails often because of 'out of swap' or other issues about memory shortage. Is this something others experience on "low memory" machines? The patch below helped me to continue. Where to go from here? :-) Regards, Ronald. [root@rpi3 /data/src/12]# svnlite diff contrib Index: contrib/llvm/tools/lld/Common/Threads.cpp =================================================================== --- contrib/llvm/tools/lld/Common/Threads.cpp (revision 340904) +++ contrib/llvm/tools/lld/Common/Threads.cpp (working copy) @@ -9,4 +9,4 @@ #include "lld/Common/Threads.h" -bool lld::ThreadsEnabled = true; +bool lld::ThreadsEnabled = false; Index: contrib/llvm/tools/lld/ELF/Driver.cpp =================================================================== --- contrib/llvm/tools/lld/ELF/Driver.cpp (revision 340904) +++ contrib/llvm/tools/lld/ELF/Driver.cpp (working copy) @@ -659,7 +659,7 @@ parseCachePruningPolicy(Args.getLastArgValue(OPT_thinlto_cache_policy)), "--thinlto-cache-policy: invalid cache policy"); Config->ThinLTOJobs = args::getInteger(Args, OPT_thinlto_jobs, -1u); - ThreadsEnabled = Args.hasFlag(OPT_threads, OPT_no_threads, true); + ThreadsEnabled = Args.hasFlag(OPT_threads, OPT_no_threads, false); Config->Trace = Args.hasArg(OPT_trace); Config->Undefined = args::getStrings(Args, OPT_undefined); Config->UnresolvedSymbols = getUnresolvedSymbolPolicy(Args);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.zsz1brvbkndu52>