I have run into this problem before. Instead of adding more RAM to my machine, I found that doing a "sudo make" will often succeed.
Robert On Fri, Dec 24, 2021 at 8:09 AM via cfe-users <cfe-users@lists.llvm.org> wrote: > Send cfe-users mailing list submissions to > cfe-users@lists.llvm.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users > or, via email, send a message with subject or body 'help' to > cfe-users-requ...@lists.llvm.org > > You can reach the person managing the list at > cfe-users-ow...@lists.llvm.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of cfe-users digest..." > > > Today's Topics: > > 1. Issue with clang-13 (Sunil Kumar via cfe-users) > 2. Re: Issue with clang-13 (Csaba Raduly via cfe-users) > 3. Re: Issue with clang-13 (Matthew Fernandez via cfe-users) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 24 Dec 2021 19:20:58 +0530 > From: Sunil Kumar via cfe-users <cfe-users@lists.llvm.org> > To: cfe-users@lists.llvm.org > Subject: [cfe-users] Issue with clang-13 > Message-ID: > < > cadmbxb6dufxcyc3egx8ae3atodr-6m0w6wenp+guzwv6d5r...@mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Hi, > I tried many times to install clang-13 in ubuntu-16.04. I followed the > steps mentioned below. > > - git clone https://github.com/llvm/llvm-project.git > - git checkout llvmorg-13.0.0 > - cd llvm-project > - mkdir build > - cd build > - cmake -DLLVM_ENABLE_PROJECTS=clang -G "Unix Makefiles" ../llvm > - make > > After running make command, it failed to install clang eventually and > showed some error mentioned below > ---------------------------------------------------------------- > make:342: recipe for target 'bin/clang-13' failed > make[2]: *** [bin/clang-13] Error 1 > make[2]: *** Deleting file 'bin/clang-13' CMakeFiles/Makefile2:38992: > recipe for target 'tools/clang/tools/driver/CMakeFiles/clang.dir/all' > failed > make[1]: *** [tools/clang/tools/driver/CMakeFiles/clang.dir/all] Error 2 > collect2: fatal error: ld terminated with signal 9 [Killed] compilation > terminated. > ----------------------------------------------------------------- > Please help to resolve this bug. > -- > Sunil Kumar > PhD21001 > Ph.D. Scholar > HiPeC Lab <http://hipec.iiitd.edu.in/> @IIIT-Delhi > Homepage: https://justasunil.github.io/ > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.llvm.org/pipermail/cfe-users/attachments/20211224/be232374/attachment-0001.html > > > > ------------------------------ > > Message: 2 > Date: Fri, 24 Dec 2021 15:45:33 +0100 > From: Csaba Raduly via cfe-users <cfe-users@lists.llvm.org> > To: Sunil Kumar <sun...@iiitd.ac.in> > Cc: "CFE-Users \(Clang\)" <cfe-users@lists.llvm.org> > Subject: Re: [cfe-users] Issue with clang-13 > Message-ID: > < > caehddbctgfetzds55s2fdwowxy2gtnrpvyeep-j1e_ds383...@mail.gmail.com> > Content-Type: text/plain; charset="UTF-8" > > Hi Sunil, > > On Fri, 24 Dec 2021 at 14:51, Sunil Kumar via cfe-users > <cfe-users@lists.llvm.org> wrote: > > > > Hi, > > I tried many times to install clang-13 in ubuntu-16.04. I followed the > steps mentioned below. > > > > git clone https://github.com/llvm/llvm-project.git > > git checkout llvmorg-13.0.0 > > cd llvm-project > > mkdir build > > cd build > > cmake -DLLVM_ENABLE_PROJECTS=clang -G "Unix Makefiles" ../llvm > > make > > > > After running make command, it failed to install clang eventually and > showed some error mentioned below > > ---------------------------------------------------------------- > > make:342: recipe for target 'bin/clang-13' failed > > make[2]: *** [bin/clang-13] Error 1 > > make[2]: *** Deleting file 'bin/clang-13' CMakeFiles/Makefile2:38992: > recipe for target 'tools/clang/tools/driver/CMakeFiles/clang.dir/all' failed > > make[1]: *** [tools/clang/tools/driver/CMakeFiles/clang.dir/all] Error 2 > > collect2: fatal error: ld terminated with signal 9 [Killed] compilation > terminated. > > ----------------------------------------------------------------- > > Please help to resolve this bug. > > It's not a bug in clang if you kill the linker program. > > If it wasn't you who killed the linker program, perhaps it was the > out-of-memory killer. You can try to solve the out-of-memory issue: > > 1. Buy more memory for your computer, or > 2. Delete the build directory, create it again, then add > -DCMAKE_BUILD_TYPE=Release to the cmake command line, and build again. > Debug builds require more memory, because of the large amount of debug > info. Hopefully the release build will not run into out-of-memory. > > Are you using a 32-bit system by any chance? > > Csaba > -- > You can get very substantial performance improvements > by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler > So if you're looking for a completely portable, 100% standards-conformant > way > to get the wrong information: this is what you want. - Scott Meyers > (C++TDaWYK) > > > ------------------------------ > > Message: 3 > Date: Fri, 24 Dec 2021 08:09:49 -0800 > From: Matthew Fernandez via cfe-users <cfe-users@lists.llvm.org> > To: Csaba Raduly <rcs...@gmail.com> > Cc: "CFE-Users \(Clang\)" <cfe-users@lists.llvm.org> > Subject: Re: [cfe-users] Issue with clang-13 > Message-ID: <d72d5a30-2286-491e-b4aa-c12ed77a1...@gmail.com> > Content-Type: text/plain; charset="utf-8" > > > > On Dec 24, 2021, at 06:45, Csaba Raduly via cfe-users < > cfe-users@lists.llvm.org> wrote: > > > > Hi Sunil, > > > > On Fri, 24 Dec 2021 at 14:51, Sunil Kumar via cfe-users > > <cfe-users@lists.llvm.org <mailto:cfe-users@lists.llvm.org>> wrote: > >> > >> Hi, > >> I tried many times to install clang-13 in ubuntu-16.04. I followed the > steps mentioned below. > >> > >> git clone https://github.com/llvm/llvm-project.git > >> git checkout llvmorg-13.0.0 > >> cd llvm-project > >> mkdir build > >> cd build > >> cmake -DLLVM_ENABLE_PROJECTS=clang -G "Unix Makefiles" ../llvm > >> make > >> > >> After running make command, it failed to install clang eventually and > showed some error mentioned below > >> ---------------------------------------------------------------- > >> make:342: recipe for target 'bin/clang-13' failed > >> make[2]: *** [bin/clang-13] Error 1 > >> make[2]: *** Deleting file 'bin/clang-13' CMakeFiles/Makefile2:38992: > recipe for target 'tools/clang/tools/driver/CMakeFiles/clang.dir/all' failed > >> make[1]: *** [tools/clang/tools/driver/CMakeFiles/clang.dir/all] Error 2 > >> collect2: fatal error: ld terminated with signal 9 [Killed] compilation > terminated. > >> ----------------------------------------------------------------- > >> Please help to resolve this bug. > > > > It's not a bug in clang if you kill the linker program. > > > > If it wasn't you who killed the linker program, perhaps it was the > > out-of-memory killer. You can try to solve the out-of-memory issue: > > > > 1. Buy more memory for your computer, or > > 2. Delete the build directory, create it again, then add > > -DCMAKE_BUILD_TYPE=Release to the cmake command line, and build again. > > Debug builds require more memory, because of the large amount of debug > > info. Hopefully the release build will not run into out-of-memory. > > > > Are you using a 32-bit system by any chance? > > You could also try -DLLVM_USE_SPLIT_DWARF=ON to cmake. This and some other > options to explore at https://www.llvm.org/docs/CMake.html < > https://www.llvm.org/docs/CMake.html>. > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.llvm.org/pipermail/cfe-users/attachments/20211224/40c10462/attachment.html > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > cfe-users mailing list > cfe-users@lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users > > > ------------------------------ > > End of cfe-users Digest, Vol 105, Issue 6 > ***************************************** >
_______________________________________________ cfe-users mailing list cfe-users@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users