On 9/4/19 3:16 PM, Florian Weimer wrote:
* Kyle Marek:
> I'm finding that 32G is not necessarily sufficient for compiling clang
> itself. Similarly I've had a hard time compiling UnrealEngine from
> source. I usually see ld using up to 12G of memory to link each
> artifact. Using -j$(nproc) on a 16 VCPU system amplifies the issue. I
> rely on adding another 32G swap file to complete the job.
Out of curiosity, which ld do you use? BFD ld, gold, or LLVM's?
Thanks,
Florian
In both cases, I believe it was GNU ld.
I know it was GNU ld when building clang/llvm tools itself. I only had
GCC and GNU binutils installed at the time.
UnrealEngine requires clang to compile, but I can't remember for sure if
they finally linked with ld (GNU on my $PATH) or lld.