<div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace;font-size:small">Hello,</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"><div class="gmail_default">I am trying to build the framework on MacBook but getting errors while compilation; e.g., some are </div><div class="gmail_default"><br></div><div class="gmail_default">/Users/abidmalik/Programming/MLIR_target/llvm-project/libcxx/include/wchar.h:137:77: error: use of undeclared identifier 'wcschr'<br>wchar_t* __libcpp_wcschr(const wchar_t* __s, wchar_t __c) {return (wchar_t*)wcschr(__s, __c);}<br>                                                                            ^<br>/Users/abidmalik/Programming/MLIR_target/llvm-project/libcxx/include/wchar.h:144:87: error: use of undeclared identifier 'wcspbrk'<br>wchar_t* __libcpp_wcspbrk(const wchar_t* __s1, const wchar_t* __s2) {return (wchar_t*)wcspbrk(__s1, __s2);}<br></div><div class="gmail_default"><br></div><div class="gmail_default"><br></div><div class="gmail_default">Certainly, it has to do with the compiler flags related paths given to Cmake. I tried a couple of options but unable to solve the issue. </div><div class="gmail_default"><br></div><div class="gmail_default">----</div><div class="gmail_default">I build with:</div><div class="gmail_default"><br></div><div class="gmail_default">cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DLLVM_INCLUDE_TESTS=OFF ../llvm    -DLLVM_ENABLE_PROJECTS="mlir;clang;clang-tools-extra;libcxx;libcxxabi;lld;openmp"     -DLLVM_BUILD_EXAMPLES=ON  -DLLVM_TARGETS_TO_BUILD="X86;NVPTX;AMDGPU"    </div><div class="gmail_default">-DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON <font color="#ff00ff"><b>-DCMAKE_C_FLAGS="-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk" -DCMAKE_CXX_FLAGS="-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/Users/abidmalik/Programming/MLIR_target/llvm-project/libcxx/include"</b></font> -DCMAKE_INSTALL_PREFIX=/Users/abidmalik/Programming/MLIR_target/llvm-project/INSTALL<br></div><div class="gmail_default"><br></div><div class="gmail_default"><br></div><div class="gmail_default">I looked on Google as well for the solution. The closest one could find is</div><div class="gmail_default"><br></div><div class="gmail_default"><a href="http://clang-developers.42468.n3.nabble.com/clang-libcxxabi-Unknown-type-names-size-t-and-uint64-t-td4064204.html" target="_blank">http://clang-developers.42468.n3.nabble.com/clang-libcxxabi-Unknown-type-names-size-t-and-uint64-t-td4064204.html</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">But unable to resolve the issue yet.</div><div class="gmail_default">Any thoughts and suggestions? </div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="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></div>