peter green via llvm-dev
2016-May-17 22:15 UTC
[llvm-dev] llvm-toolchain-3.8 on lower arm targets, specifically Debian armel and Raspbian.
On 17/05/16 22:38, Tim Northover wrote:> Compiler-rt is the equivalent of libgcc, and Clang can use the > existing host's libgcc quite happily so it's really not that important > unless you're trying to build a GNU-free environment for whatever > reason. >Thanks Can you tell me how I would go about telling the cmake buildsystem (which is what the Debian packaging currently seems to use) that I want it to build without compiler-rt?
Tim Northover via llvm-dev
2016-May-18 03:50 UTC
[llvm-dev] llvm-toolchain-3.8 on lower arm targets, specifically Debian armel and Raspbian.
On 17 May 2016 at 15:15, peter green via llvm-dev <llvm-dev at lists.llvm.org> wrote:> Can you tell me how I would go about telling the cmake buildsystem (which is > what the Debian packaging currently seems to use) that I want it to build > without compiler-rt?If you don't need/want the various Sanitizer runtimes (e.g. you don't support sanitizers or already have versions provided with GCC) then it's as easy as not downloading compiler-rt or removing it from the projects/ directory before running CMake. The build should carry on quite happily without it. If you do need the sanitizers from compiler-rt, you can disable the bits that are causing problems right now with "cmake -DCOMPILER_RT_BUILD_BUILTINS=OFF <other options>". Of course, the sanitizers themselves may suffer from similar issues -- you just won't know until you get there. Cheers. Tim.
peter green via llvm-dev
2016-May-19 15:54 UTC
[llvm-dev] llvm-toolchain-3.8 on lower arm targets, specifically Debian armel and Raspbian.
On 18/05/16 04:50, Tim Northover wrote:> If you don't need/want the various Sanitizer runtimes (e.g. you don't > support sanitizers or already have versions provided with GCC) then > it's as easy as not downloading compiler-rt or removing it from the > projects/ directory before running CMake. The build should carry on > quite happily without it. > > If you do need the sanitizers from compiler-rt, you can disable the > bits that are causing problems right now with "cmake > -DCOMPILER_RT_BUILD_BUILTINS=OFF<other options>". Of course, the > sanitizers themselves may suffer from similar issues -- you just won't > know until you get there. >Thanks, -DCOMPILER_RT_BUILD_BUILTINS=OFF did the trick and I got a successful build for raspbian that passed my armv7 contamination checker script (which is not 100% foolproof but it's the best we have) and uploaded it to raspbian stretch.