-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
Regarding compiling clang tools #169
Comments
How much CPUs do you have? Linking can be very expensive, and ninja by default runs these processes in parallel. When you build with CMake, try setting a lower number of parallel linker jobs. E.g.
This option is documented at https://llvm.org/docs/CMake.html |
Gave it 8 CPUs in both Mac and Ubuntu. |
It crashed with 2 parallel jobs or 1 parallel job. |
You might have better luck using |
Can you share your build output? As suggested above, you can also try a more memory-efficient linker with |
…203.1 (llvm#169) [objwriter/12.x] Update dependencies from dotnet/arcade
Update to LLVM 18.1.0 rc 4
I wanted to use LibTooling, so I tried out building clang as mentioned in https://clang.llvm.org/docs/LibASTMatchersTutorial.html . For some reason even with 16GB RAM and a lot of swap space, the build crashes either by segfault or it gets killed(on both Mac and Ubuntu). Is there any way to build it with 16GB RAM?
Does anyone have a docker container for running LibTooling and LibASTMatchers?
The text was updated successfully, but these errors were encountered: