-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Error while making LLVM on ubuntu 19.10 #152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi I'm not aware of a hard lower limit for building, but most people say OOB that you need 4Gb to build llvm and clang. Of course, you could install a precompiled binary for Ubuntu. See https://apt.llvm.org/ # i386 not available If you need to build then there's still some other options. If you can't add more RAM, there's a few things you can do to reduce the resources requirements to build clang and llvm.
Note: As an alternative to 1), you can also change the linker in the same CMakeCache.txt file eg CLANG_DEFAULT_LINKER:STRING=gold
The combination of these can mean that a build takes a long time (like 8+ hours) but it succeeds on relatively low RAM systems. Hope this helps |
Did you make sure to do a release build and not a debug build? Release builds require much less memory for linking (and also build faster): cmake -DCMAKE_BUILD_TYPE=Release ... |
[Sanitizer][Darwin] Add interceptor for malloc_zone_from_ptr
@badenh @zmodem Thanks for the comments. |
Please try to use Ninja as a build system generator and LLD as a linker. |
+1 to not using I'm guessing because you are building from source and not just installing you want to hack on clang and not just use it? In which case a Release build might not be practical but you could try |
… buggy diagnostic too. Fixes llvm#152
I'm attempting to build and install LLVM and clang on my ubuntu 19.10 machine. I'm facing the below issue.


On my further research, I figured out that it's because my system doesn't have enough RAM for building.
Below is a screenshot of my system's RAM availability.
Can anybody help me with the minimum system requirements for the LLVM build and install?
Is there any build system for usage?
Any workarounds for this problem?
The text was updated successfully, but these errors were encountered: