<div dir="ltr">Dear LLVM developers:<div><br></div><div>I am trying to build LLVM 11 & subprojects "clang;libcxx;libcxxabi" with gcc 8.2.0, but it failed with the following error messages:</div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">....../build/libcxxabi/src/cxa_aux_runtime.cpp</span><br></div><div><pre style="white-space:pre-wrap;color:rgb(0,0,0)">In file included from .../build/libcxx/include/stdlib.h:94,
from .../build/libcxx/include/cstdlib:86,
from .../build/libcxx/include/exception:82,
from .../build/libcxx/include/new:85,
from .../build/libcxxabi/src/cxa_aux_runtime.cpp:14:
.../8.2.0/include/c++/8.2.0/stdlib.h:38:12: error: 'std::abort' has not been declared
using std::abort;
^~~~~
.../8.2.0/include/c++/8.2.0/stdlib.h:39:12: error: 'std::atexit' has not been declared
using std::atexit;
^~~~~~
.../8.2.0/include/c++/8.2.0/stdlib.h:40:12: error: 'std::exit' has not been declared</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">.......... a lot more on std::xxxx not declared errors ........</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><br></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">I try it on IBM power8 and X86_64 both produced the similar errors on cxa_aux_runtime.cpp</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Any advice to fix the issue? Many thanks in advance!</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><br></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Happy New Year!</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Shelton</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">
</pre></div></div>