<div dir="ltr">Hello Fangrui,<div><br></div><div>I'm still not following, if you could help me a bit more. I added ninja but seems to not have fixed anything.<br>This is what I did:</div><div><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue"">cmake -DCMAKE_BUILD_TYPE=Release -DBENCHMARK_BUILD_32_BITS:BOOL=1 -DLLVM_BUILD_INSTRUMENTED=IR -DLLVM_ENABLE_PROJECTS=lld,clang,compiler-rt,clang-tools-extra,libclc -DLLVM_ENABLE_ZLIB:bool=0 -G Ninja -DCMAKE_INSTALL_PREFIX=../../llvm_32 ../<br><br>ninja all<br>ninja install<br><br>It made no difference. I could not find ninja profile and ninja install-profile.<br><br>Thank you so much for your help!</p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue"">Still no library files such as libclang_rt.profile</p></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 15, 2021 at 7:59 PM Fangrui Song <<a href="mailto:maskray@google.com">maskray@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2021-01-15, ehsan fatehi via llvm-dev wrote:<br>
>Hello,<br>
><br>
><br>
>I'm trying to build LLVM from scratch as I need 32 bit library support. I<br>
>am using certain flags ( -fprofile-arc) that require libclang_rt.profile,<br>
>specifically libclang_rt.profile-i386.a.<br>
><br>
>This is the error I encounter:<br>
>ld.lld: error: cannot open<br>
>/llvm_32/lib/clang/10.0.1/lib/linux/libclang_rt.profile-i386.a: No such<br>
>file or directory<br>
>clang-10: error: linker command failed with exit code 1 (use -v to see<br>
>invocation)<br>
><br>
><br>
>If you look at the directory of which it complains, there is nothing in<br>
>there<br>
>/nfs/proj/fast/user/efatehi/llvm_32/lib/clang/10.0.1/<br>
>Only file is directory to include, no lib directory whatsoever, meaning<br>
>nothing is being built here..<br>
><br>
><br>
>I'm trying with llvm-project-10.0.1<br>
><br>
>llvm-project-10.0.1.tar.xz<br>
><br>
><br>
>Using:<br>
><br>
>cmake -DCMAKE_BUILD_TYPE=Release -DBENCHMARK_BUILD_32_BITS:BOOL=1<br>
>-DLLVM_BUILD_INSTRUMENTED=IR<br>
>-DLLVM_ENABLE_PROJECTS=lld,clang,compiler-rt,clang-tools-extra,libclc<br>
>-DLLVM_ENABLE_ZLIB:bool=0 -DLLVM_ENABLE_EH=ON -DLLVM_ENABLE_PIC=ON<br>
>-DLLVM_ENABLE_RTTI=ON -DCOMPILER_RT_BUILD_BUILTINS=On<br>
>-DCOMPILER_RT_USE_BUILTINS_LIBRARY=On -DCMAKE_INSTALL_PREFIX=../..//llvm_32<br>
>../<br>
><br>
>Any idea what I am doing wrong here?<br>
><br>
>Thanks<br>
<br>
ninja clang does not build some needed runtime libraries.<br>
For -fprofile-arcs, `ninja profile`. To install it, `ninja install-profile`.<br>
</blockquote></div>