[llvm-dev] bootstrapping llvm with advanced configuration

Chris Bieneman via llvm-dev llvm-dev at lists.llvm.org
Fri Jan 4 14:23:38 PST 2019

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.

It also looks like you're putting libc++ in llvm/projects. Try putting libc++, libc++abi, compiler-rt, and openmp under llvm/runtimes.


> On Dec 29, 2018, at 10:52 AM, blubee blubeeme via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 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
> on the second phase of the build, the compilation fails
> I have svn cloned 
> cmake command below
> cmake -DCMAKE_BUILD_TYPE=Release 
> -DCLANG_ENABLE_BOOTSTRAP=ON ../toolchain70/llvm/
> 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:
> _toolchain70/llvm/projects/libcxx/include/cstdlib:114:9: error: no member named 'strtold' in the global namespace
> using ::strtold;
>       ~~^
> fatal error: too many errors emitted, stopping now [-ferror-limit=]
> 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++
> I've read: https://llvm.org/docs/AdvancedBuilds.html <https://llvm.org/docs/AdvancedBuilds.html>
> but maybe I'm missing something.
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190104/dbd40edc/attachment.html>

More information about the llvm-dev mailing list