<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">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><br></div><div>on the second phase of the build, the compilation fails</div><div><br></div><div>I have svn cloned </div><div><div>LLVM</div><div>CLANG</div><div>CLANG_XTRA_TOOLS</div><div>LLD</div><div>LLDB</div><div>POLLY</div><div>COMPILER_RT</div><div>OPENMP</div><div>LIBCXX</div><div>LIBCXXABI</div></div><div><br></div><div>cmake command below</div><div><div>cmake -DCMAKE_BUILD_TYPE=Release </div><div>-DLLVM_ENABLE_ASSERTIONS=OFF -DCMAKE_INSTALL_PREFIX=/usr/local -GNinja </div><div>-DCLANG_ENABLE_BOOTSTRAP=ON ../toolchain70/llvm/</div></div><div><br></div><div>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><br></div><div><div>_toolchain70/llvm/projects/libcxx/include/cstdlib:114:9: error: no member named 'strtold' in the global namespace</div><div>using ::strtold;</div><div>      ~~^</div><div>fatal error: too many errors emitted, stopping now [-ferror-limit=]</div></div><div><br></div><div>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><br></div><div>I've read: <a href="https://llvm.org/docs/AdvancedBuilds.html">https://llvm.org/docs/AdvancedBuilds.html</a></div><div>but maybe I'm missing something.</div></div></div></div></div></div>