<div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace;font-size:small">Thanks, Boris and Tobias for the feedback.</div><div class="gmail_default" style="font-family:courier new,monospace;font-size:small"><br></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:small">The building always stuck at <span style="font-family:Arial,Helvetica,sans-serif">libcxxabi:</span></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:small"><span style="font-family:Arial,Helvetica,sans-serif">----</span></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:small"><font color="#ff0000">/Users/abidmalik/Programming/MLIR_target/llvm-project/libcxxabi/include/cxxabi.h:43:26: error: unknown type name 'size_t'<br>__cxa_allocate_exception(size_t thrown_size) throw();<br>                         ^<br>/Users/abidmalik/Programming/MLIR_target/llvm-project/libcxxabi/include/cxxabi.h:86:75: error: unknown type name 'uint64_t'<br>extern _LIBCXXABI_FUNC_VIS _LIBCXXABI_ALWAYS_COLD int __cxa_guard_acquire(uint64_t *);<br>                                                                          ^<br>/Users/abidmalik/Programming/MLIR_target/llvm-project/libcxxabi/include/cxxabi.h:87:76: error: unknown type name 'uint64_t'<br>extern _LIBCXXABI_FUNC_VIS _LIBCXXABI_ALWAYS_COLD void __cxa_guard_release(uint64_t *);</font></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:small"><font color="#ff0000"><br></font></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:small"><font color="#000000">----</font></div><div class="gmail_default" style="font-size:small"><font face="arial, sans-serif"><font color="#000000" style="">I tried with flag "</font>-I/Users/abidmalik/Programming/MLIR_target/llvm-project/build/include/c++/v1" but I am getting:</font></div><div class="gmail_default" style="font-size:small"><font face="arial, sans-serif"> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:641:<br></font></div><div class="gmail_default" style="font-size:small"><font face="arial, sans-serif">/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:77:9: error: no member named 'strncmp' in the global namespace<br>using ::strncmp;<br> <br>/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:78:9: error: no member named 'strcoll' in the global namespace<br>using ::strcoll;<br><br></font></div><div class="gmail_default" style="font-size:small"><font face="arial, sans-serif">I feel I am not setting flags for C++ libraries correctly for MacBook ( Ubuntu is doing fine).</font></div><div class="gmail_default" style="font-size:small"><span style="font-family:"courier new",monospace"><br></span></div><div class="gmail_default" style="font-size:small"><span style="font-family:"courier new",monospace">Thanks <br></span></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:small">                                                                           <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 4, 2021 at 5:20 AM Tobias Hieta <<a href="mailto:tobias@plexapp.com">tobias@plexapp.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">> >  -DCMAKE_C_FLAGS="-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk" -DCMAKE_CXX_FLAGS="-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk<br>
><br>
> I do not use option -isysroot. Do these directories exist? I think you do not have to set it.<br>
<br>
The right way to do this is to set -DCMAKE_OSX_SYSROOT - not to pass<br>
isysroot directly.<br>
<br>
-- Tobias<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Abid M. Malik<br>******************************************************<br>"I have learned silence from the talkative, toleration from the intolerant, and kindness from the unkind"---Gibran<br>"Success is not for the chosen few, but for the few who choose" --- John Maxwell<br>"Being a good person does not depend on your religion or status in life, your race or skin color, political views or culture. IT DEPENDS ON HOW GOOD YOU TREAT OTHERS"--- Abid<br>"The Universe is talking to us, and the language of the Universe is mathematics."----Abid<br> </div></div></div>