Displaying 5 results from an estimated 5 matches for "dclang_enable_bootstrap".
2017 Nov 05
2
Two-stage build w/ ninja - Tests still use stage1 compiler / linker ?
Folks,
I am using a two-stagesimple build like this one:
make -G Ninja -DCLANG_ENABLE_BOOTSTRAP=ON ../src
ninja stage2-check-all
Stage 1 gets built, and when looking at rules.ninja in the stage2-bins I see:
rule CXX_COMPILER_AnalysisTests
depfile = $DEP_FILE
deps = gcc
command = <stage1 build dir>./bin/clang++ $DEFINES $INCLUDES $FLAGS -MMD -MT $out -MF $DEP_FILE -o $out -c $in...
2018 May 06
2
Cannot compile LLVM suite with clang+lld
...sed:
-DBOOTSTRAP_LLVM_ENABLE_LLD
-DCMAKE_C_COMPILER=clang
-DCMAKE_CXX_COMPILER=clang++
-DCMAKE_LINKER=lld
-DCMAKE_LINK_EXECUTABLE="/usr/bin/ld.lld"
-DCMAKE_AR="/usr/bin/llvm-ar"
-DCMAKE_AS="/usr/bin/llvm-as"
-DCLANG_DEFAULT_LINKER=lld
-DCLANG_DEFAULT_RTLIB=compiler-rt
-DCLANG_ENABLE_BOOTSTRAP=ON
-DLIBCXX_USE_COMPILER_RT=ON
-DLIBCXXABI_USE_COMPILER_RT=ON
-DLLVM_ENABLE_LLD=ON
-DLLVM_ENABLE_LIBCXX=ON
However, the build fails with (many of those error messages):
[1274/2712] Linking CXX shared library lib/libc++abi.so.1.0
FAILED: lib/libc++abi.so.1.
/usr/bin/ld.lld: error: undefined symbol...
2018 Dec 29
2
bootstrapping llvm with advanced configuration
...bc++
and libc++abi
on the second phase of the build, the compilation fails
I have svn cloned
LLVM
CLANG
CLANG_XTRA_TOOLS
LLD
LLDB
POLLY
COMPILER_RT
OPENMP
LIBCXX
LIBCXXABI
cmake command below
cmake -DCMAKE_BUILD_TYPE=Release
-DLLVM_ENABLE_ASSERTIONS=OFF -DCMAKE_INSTALL_PREFIX=/usr/local -GNinja
-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'...
2018 May 06
0
Cannot compile LLVM suite with clang+lld
..._C_COMPILER=clang
> -DCMAKE_CXX_COMPILER=clang++
> -DCMAKE_LINKER=lld
> -DCMAKE_LINK_EXECUTABLE="/usr/bin/ld.lld"
> -DCMAKE_AR="/usr/bin/llvm-ar"
> -DCMAKE_AS="/usr/bin/llvm-as"
> -DCLANG_DEFAULT_LINKER=lld
> -DCLANG_DEFAULT_RTLIB=compiler-rt
> -DCLANG_ENABLE_BOOTSTRAP=ON
> -DLIBCXX_USE_COMPILER_RT=ON
> -DLIBCXXABI_USE_COMPILER_RT=ON
> -DLLVM_ENABLE_LLD=ON
> -DLLVM_ENABLE_LIBCXX=ON
>
> However, the build fails with (many of those error messages):
>
> [1274/2712] Linking CXX shared library lib/libc++abi.so.1.0
> FAILED: lib/libc++abi.so....
2017 Dec 26
2
Bootstrapping LLVM+LLD with GCC toolchain failure
Hello,
I have a working GCC toolchain and wanted to use LLVM tooling instead.
Following the instructions on the website I set up my build directory
and have lld as an internal project under tools/. I'd like to make use
of lld in stage 2 of the build and thought -DLLVM_ENABLE_LLD was the
correct option to pass. However, adding this options makes the
configure step fail, complaining that the