<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I'm slightly confused. Are you saying you're trying to build clang using gcc and not g++ to bootstrap? If so, that isn't going to work. We don't support bootstrapping clang with only a C compiler. You need a full C++ compiler and C++11 runtime.<div class=""><br class=""></div><div class="">It also looks like you're putting libc++ in llvm/projects. Try putting libc++, libc++abi, compiler-rt, and openmp under llvm/runtimes.</div><div class=""><br class=""></div><div class="">-Chris<br class=""><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Dec 29, 2018, at 10:52 AM, blubee blubeeme via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class="">I can build llvm and associated tools in a 1 shot go using gcc and g++ but trying to use only gcc and bootstrap clang to build and link with libc++ and libc++abi<div class=""><br class=""></div><div class="">on the second phase of the build, the compilation fails</div><div class=""><br class=""></div><div class="">I have svn cloned </div><div class=""><div class="">LLVM</div><div class="">CLANG</div><div class="">CLANG_XTRA_TOOLS</div><div class="">LLD</div><div class="">LLDB</div><div class="">POLLY</div><div class="">COMPILER_RT</div><div class="">OPENMP</div><div class="">LIBCXX</div><div class="">LIBCXXABI</div></div><div class=""><br class=""></div><div class="">cmake command below</div><div class=""><div class="">cmake -DCMAKE_BUILD_TYPE=Release </div><div class="">-DLLVM_ENABLE_ASSERTIONS=OFF -DCMAKE_INSTALL_PREFIX=/usr/local -GNinja </div><div class="">-DCLANG_ENABLE_BOOTSTRAP=ON ../toolchain70/llvm/</div></div><div class=""><br class=""></div><div class="">after that cmake command I run ninja stage2 which compiles about 3700 objects then it proceeds to try and compile the full 5000 plus objects but fails with errors like these:</div><div class=""><br class=""></div><div class=""><div class="">_toolchain70/llvm/projects/libcxx/include/cstdlib:114:9: error: no member named 'strtold' in the global namespace</div><div class="">using ::strtold;</div><div class="">      ~~^</div><div class="">fatal error: too many errors emitted, stopping now [-ferror-limit=]</div></div><div class=""><br class=""></div><div class="">I'd like to bootstrap clang and build libc++ and libc++abi, then use the compiled clang to build clang++ and link against libc++ instead of libstdc++</div><div class=""><br class=""></div><div class="">I've read: <a href="https://llvm.org/docs/AdvancedBuilds.html" class="">https://llvm.org/docs/AdvancedBuilds.html</a></div><div class="">but maybe I'm missing something.</div></div></div></div></div></div>
_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<br class=""></div></blockquote></div><br class=""></div></div></body></html>