[cfe-users] Issue with clang-13

2021-12-24 Thread Sunil Kumar via cfe-users
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  @IIIT-Delhi
Homepage: https://justasunil.github.io/
___
cfe-users mailing list
cfe-users@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users


Re: [cfe-users] Issue with clang-13

2021-12-24 Thread Csaba Raduly via cfe-users
Hi Sunil,

On Fri, 24 Dec 2021 at 14:51, Sunil Kumar via cfe-users
 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)
___
cfe-users mailing list
cfe-users@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users


Re: [cfe-users] Issue with clang-13

2021-12-24 Thread Matthew Fernandez via cfe-users

> On Dec 24, 2021, at 06:45, Csaba Raduly via cfe-users 
>  wrote:
> 
> Hi Sunil,
> 
> On Fri, 24 Dec 2021 at 14:51, Sunil Kumar via cfe-users
> 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 
.

___
cfe-users mailing list
cfe-users@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users


Re: [cfe-users] Issue with clang-13

2021-12-24 Thread Sunil Kumar via cfe-users
Thanks Matthew. I am using the x86_64 system.
I wanted to ask you one more question. After installing clang, how to
install openmp with the *OMPT tool *interface in clang-13.


On Fri, Dec 24, 2021 at 9:39 PM Matthew Fernandez <
matthew.fernan...@gmail.com> wrote:

>
> 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
>  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.
>
>

-- 
Sunil Kumar
PhD21001
Ph.D. Scholar
HiPeC Lab  @IIIT-Delhi
Homepage: https://justasunil.github.io/
___
cfe-users mailing list
cfe-users@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users


Re: [cfe-users] Issue with clang-13

2021-12-24 Thread Matthew Fernandez via cfe-users

> On Dec 24, 2021, at 09:56, Sunil Kumar  wrote:
> 
> Thanks Matthew. I am using the x86_64 system.
> I wanted to ask you one more question. After installing clang, how to install 
> openmp with the OMPT tool interface in clang-13. 

Sorry, this is something I am not familiar with. I thought openmp support was 
enabled by default. At least, I don’t recall ever having to explicitly enable 
it in the past. Perhaps someone else on the list can help.___
cfe-users mailing list
cfe-users@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users