<div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>It may be an issue of our CMake script detecting correctly your environment: I don't know what linker you're using.</div><div>You can look at the content of build/tools/lto/LTO.exports to see what's wrong, and you can try to fix the generating script here: <a href="https://github.com/llvm/llvm-project/blob/master/llvm/cmake/modules/AddLLVM.cmake#L92-L134">https://github.com/llvm/llvm-project/blob/master/llvm/cmake/modules/AddLLVM.cmake#L92-L134</a></div><div><br></div><div>Feel free to send a patch! :)</div><div><br></div><div>-- </div><div>Mehdi</div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 13, 2021 at 7:45 AM Vermeersch, Aaron <<a href="mailto:Aaron.Vermeersch@gdit.com">Aaron.Vermeersch@gdit.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)">
Hello,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)">
I pulled from git again and re-did the installation. I didn't make it far enough into the installation to test the issue that I had as the installation failed with this:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)">
<p style="margin:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">[ 49%] Built target LLVMXCoreCodeGen</span></p>
<p style="margin:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">[ 49%] Built target LLVMXCoreDisassembler</span></p>
<p style="margin:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(57,192,38)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">[ 49%]
</span><span style="font-variant-ligatures:no-common-ligatures"><b>Linking CXX shared library ../../lib/libLTO.so</b></span></p>
<p style="margin:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">/usr/bin/ld:/p/work1/avermeer/llvm-project/build/tools/lto/LTO.exports:3: syntax error in VERSION script</span></p>
<p style="margin:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">collect2: error: ld returned 1 exit status</span></p>
<p style="margin:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">make[3]: *** [lib/libLTO.so.12git] Error 1</span></p>
<p style="margin:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">make[2]: *** [tools/lto/CMakeFiles/LTO.dir/all] Error 2</span></p>
<p style="margin:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">make[1]: *** [CMakeFiles/check-all.dir/rule] Error 2</span></p>
<p style="margin:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">make: *** [check-all] Error 2</span></p>
<br>
</div>
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)">
<br>
</div>
<div id="gmail-m_-1969978495170809900Signature">
<div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<div style="margin:0px;font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:black;text-align:start">
<p style="color:rgb(50,49,48);font-size:11pt;font-family:Calibri,sans-serif;margin:0px;line-height:16.866666793823242px">
<span style="margin:0px;font-family:Arial,Helvetica,sans-serif;font-size:10pt;line-height:normal;color:black;letter-spacing:0.4pt">​</span><span style="margin:0px;font-family:Arial,sans-serif;font-size:10pt;line-height:normal;color:black;letter-spacing:0.4pt">Aaron
 Vermeersch</span><span style="margin:0px;font-family:Arial,sans-serif;color:black"></span></p>
<p style="color:rgb(50,49,48);font-size:11pt;font-family:Calibri,sans-serif;margin:0px;line-height:16.866666793823242px">
<span style="font-size:10pt;line-height:normal"></span><span style="margin:0px;font-family:Arial,sans-serif;font-size:10pt;line-height:normal;color:black">HPCMP PET Computational Scientist</span><span style="margin:0px;font-family:Arial,sans-serif;font-size:9pt;line-height:13.800000190734863px;color:black"><br>
</span><span style="margin:0px;font-family:Arial,sans-serif;font-size:10pt;line-height:normal;color:black">M   517.648.9980</span></p>
<p style="color:rgb(50,49,48);font-size:11pt;font-family:Calibri,sans-serif;margin:0px 0px 3pt;line-height:16.866666793823242px">
<span style="font-size:10pt;line-height:normal"></span><span style="margin:0px;font-family:Arial,sans-serif;font-size:10pt;line-height:normal"><a href="mailto:aaron.vermeersch@gdit.com" target="_blank">aaron.vermeersch@gdit.com</a></span></p>
<p style="color:rgb(50,49,48);font-size:11pt;font-family:Calibri,sans-serif;margin:0px;line-height:16.866666793823242px">
<span style="font-size:10pt;line-height:normal"></span><a href="http://www.gdit.com" rel="noopener noreferrer" style="margin:0px" target="_blank"><span style="margin:0px;font-family:Arial,sans-serif;font-size:10pt;line-height:normal;color:black">www.gdit.com</span></a><span style="margin:0px;color:rgb(5,99,193);text-decoration:underline"><span style="margin:0px;color:black"></span></span></p>
<p style="color:rgb(50,49,48);font-size:11pt;font-family:Calibri,sans-serif;margin:0px">
<img alt="cid:image001.png@01D664F5.C0E0A040" style="margin: 0px; width: 153.59pt; height: 33.59pt;" src="cid:176fcbb50695ce570111"></p>
<p style="color:rgb(50,49,48);font-size:11pt;font-family:Calibri,sans-serif;margin:0px;line-height:9.2pt">
<span style="margin:0px;font-family:Arial,sans-serif;font-size:8pt"> </span></p>
<br>
</div>
</div>
</div>
</div>
</div>
<div id="gmail-m_-1969978495170809900appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_-1969978495170809900divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Mehdi AMINI <<a href="mailto:joker.eph@gmail.com" target="_blank">joker.eph@gmail.com</a>><br>
<b>Sent:</b> Tuesday, January 12, 2021 4:34 PM<br>
<b>To:</b> Vermeersch, Aaron <<a href="mailto:Aaron.Vermeersch@gdit.com" target="_blank">Aaron.Vermeersch@gdit.com</a>><br>
<b>Cc:</b> <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a> <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>><br>
<b>Subject:</b> Re: [llvm-dev] Build Error from mlir-capi-ir-test</font>
<div> </div>
</div>
<div>
<div>
<table border="0" cellspacing="0" cellpadding="0" width="100%" bgcolor="#FFF2CC">
<tbody><tr><td><br>
</td></tr></tbody><tbody>
<tr>
<td bgcolor="#FF0000" width="5"></td>
<td bgcolor="#FFFFFF"><font color="#000000"> <b>[External: Use caution with links & attachments]</b></font></td>
</tr>
</tbody>
</table>
<br>
</div>
<div dir="ltr">
<div dir="ltr">Hi,
<div><br>
</div>
<div>It seems like you were unlucky and checked out a buggy revision: this was a known bug a couple of days ago. Please git pull and try again, let us know if you have any issues!</div>
<div><br>
</div>
<div>Also MLIR folks communicate mainly here: <a href="https://urldefense.us/v2/url?u=https-3A__llvm.discourse.group_c_mlir_31&d=DwMFaQ&c=kBZcWdBOH-UDm7cX7sUnio9i4Dr7DDged-ltBm3Bq7Y&r=_ZfOCgFouUhaMZw8Eekg6AE3jogUblRXCLkTpccaBEM&m=c9B0CmUi9msp4zzuInINlYkTjXu3mJiJO4E3WDHFfKo&s=EG3h7Vr3DXCi2dGxcvVJ_VNtGIlkHIsBzNcXlvSUW58&e=" target="_blank">https://llvm.discourse.group/c/mlir/31</a></div>
<div><br>
</div>
<div>Best,</div>
<div><br>
</div>
<div>-- </div>
<div>Mehdi</div>
<div><br>
</div>
<div><br>
</div>
<div>-- </div>
<div>Mehdi</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
<br>
<div>
<div dir="ltr">On Tue, Jan 12, 2021 at 1:29 PM Vermeersch, Aaron via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)">
Hello,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)">
I'm having an issue installing LLVM and Flang on a SGI and Cray machine and both are giving me the same error. This is using the latest version from GitHub that I just downloaded. I use the following for the cmake instruction:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)">
<p style="margin:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue"">
cmake -G "Unix Makefiles" -DLLVM_ENABLE_PROJECTS=flang -DCMAKE_INSTALL_PREFIX=install_prefix -DCMAKE_CXX_COMPILER=pathway_to_g++ -DCMAKE_C_COMPILER=pathway_to_gcc ../llvm</p>
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)">
The installation crashes with the following message: </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)">
<p style="margin:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(219,39,218)">
<span style="font-variant-ligatures:no-common-ligatures"><b>Scanning dependencies of target mlir-capi-ir-test</b></span></p>
<p style="margin:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(57,192,38)">
<span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">[ 78%]
</span><span style="font-variant-ligatures:no-common-ligatures">Building C object tools/mlir/test/CAPI/CMakeFiles/mlir-capi-ir-test.dir/ir.c.o</span></p>
<p style="margin:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(57,192,38)">
<span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">[ 78%]
</span><span style="font-variant-ligatures:no-common-ligatures"><b>Linking C executable ../../../../bin/mlir-capi-ir-test</b></span></p>
<p style="margin:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures">CMakeFiles/mlir-capi-ir-test.dir/ir.c.o: In function `printAffineExpr':</span></p>
<p style="margin:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures">/llvm-project/mlir/test/CAPI/ir.c:1272: undefined reference to `mlirAffineExprIsNull'</span></p>
<p style="margin:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures">collect2: error: ld returned 1 exit status</span></p>
<p style="margin:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures">make[2]: *** [bin/mlir-capi-ir-test] Error 1</span></p>
<p style="margin:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures">make[1]: *** [tools/mlir/test/CAPI/CMakeFiles/mlir-capi-ir-test.dir/all] Error 2</span></p>
<p style="margin:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures">make: *** [all] Error 2</span></p>
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)">
In a previous build, I was able to use:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)">
<p style="margin:0px;font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue"">
cmake --build . --target check-mlir</p>
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)">
Following the instructions here: <a href="https://urldefense.us/v2/url?u=https-3A__github.com_tensorflow_mlir_issues_138&d=DwMFaQ&c=kBZcWdBOH-UDm7cX7sUnio9i4Dr7DDged-ltBm3Bq7Y&r=_ZfOCgFouUhaMZw8Eekg6AE3jogUblRXCLkTpccaBEM&m=c9B0CmUi9msp4zzuInINlYkTjXu3mJiJO4E3WDHFfKo&s=NO9T5JyaOTnaEa4PSUpz0f7wABN1K5amrihKUtCj0GU&e=" id="gmail-m_-1969978495170809900x_gmail-m_-9067466041307186909LPlnk951257" target="_blank">https://github.com/tensorflow/mlir/issues/138</a> t<span style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:11pt">o
 fix a similar issue but it hasn't been successful this time. Does anyone know what might be happening and how to fix the issue?</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)">
<br>
</div>
<div>
<div id="gmail-m_-1969978495170809900x_gmail-m_-9067466041307186909Signature">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<div style="margin:0px;font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:black;text-align:start">
<p style="color:rgb(50,49,48);font-size:11pt;font-family:Calibri,sans-serif;margin:0px;line-height:16.866666793823242px">
<span style="margin:0px;font-family:Arial,Helvetica,sans-serif;font-size:10pt;line-height:normal;color:black;letter-spacing:0.4pt">​</span><span style="margin:0px;font-family:Arial,sans-serif;font-size:10pt;line-height:normal;color:black;letter-spacing:0.4pt">Aaron
 Vermeersch</span><span style="margin:0px;font-family:Arial,sans-serif;color:black"></span></p>
<p style="color:rgb(50,49,48);font-size:11pt;font-family:Calibri,sans-serif;margin:0px;line-height:16.866666793823242px">
<span style="font-size:10pt;line-height:normal"></span><span style="margin:0px;font-family:Arial,sans-serif;font-size:10pt;line-height:normal;color:black">HPC Computational Scientist</span><br>
</p>
<p style="color:rgb(50,49,48);font-size:11pt;font-family:Calibri,sans-serif;margin:0px;line-height:9.2pt">
<span style="margin:0px;font-family:Arial,sans-serif;font-size:8pt"> </span></p>
<br>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://urldefense.us/v2/url?u=https-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_llvm-2Ddev&d=DwMFaQ&c=kBZcWdBOH-UDm7cX7sUnio9i4Dr7DDged-ltBm3Bq7Y&r=_ZfOCgFouUhaMZw8Eekg6AE3jogUblRXCLkTpccaBEM&m=c9B0CmUi9msp4zzuInINlYkTjXu3mJiJO4E3WDHFfKo&s=2MgABQ3_TMXi-RTQkl54TT5WhRzGFuHR9yNpXR6huxM&e=" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote>
</div>
</div>
</div>

</blockquote></div>