[cfe-dev] Semi-regular llvm snapshots for ARMv7/Linux

İsmail Dönmez ismail at donmez.ws
Wed Oct 15 04:43:18 PDT 2014


Hi,

On Wed, Oct 15, 2014 at 2:39 PM, Renato Golin <renato.golin at linaro.org>
wrote:

> On 15 October 2014 11:34, İsmail Dönmez <ismail at donmez.ws> wrote:
> > I am doing semi-regular llvm snapshots (with clang,compiler_rt,libcxx and
> > libcxxabi) for ARMv7/Linux available at https://i10z.com/llvm/ . Which
> might
> > be also useful to some of you.
>
> Hi Ismail,
>
> That's certainly useful, thanks for the work!
>
> How are you validating these snapshots? Just check-all or running the
> test-suite? Is this stage 1, 2 or 3 of a self-hosting chain?
>
>
Sadly these are built on a x86-64 Linux host hence not validated via
test-suite. What I currently do is updating llvm snapshot for openSUSE and
then using that snapshot to build for ARMv7. So far doing only stage1
builds. Also using linaro-arm-linux-gnueabihf-4.9 toolchain (September 2014
release) for headers.

FWIW build script is something like:

CC=arm-clang CXX=arm-clang++ cmake -DBUILD_SHARED_LIBS=ON
-DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_ENABLE_PIC=ON
-DLLVM_TARGET_ARCH=ARM -DLLVM_TARGETS_TO_BUILD=all
-DLLVM_DEFAULT_TARGET_TRIPLE=$target -DLLVM_ENABLE_TIMESTAMPS=OFF
-DCMAKE_INSTALL_PREFIX=$PWD/llvm -DLIBCXXABI_USE_LLVM_UNWINDER=ON
-DENABLE_CLANG_EXAMPLES=OFF -DLLVM_INCLUDE_TESTS=OFF -G "Ninja" ..

where arm-clang++ does:

[~]> cat bin/arm-clang++
#!/bin/sh

CC=/opt/clang/bin/clang++
SYSROOT=/havana/binaries/linaro-arm-linux-gnueabihf-4.9
TARGET=armv7a-unknown-linux-gnueabihf
CFLAGS="-mfloat-abi=hard -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3-d16
-fuse-ld=gold"

$CC -target $TARGET $CFLAGS --sysroot=$SYSROOT "$@"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20141015/e291cce6/attachment.html>


More information about the cfe-dev mailing list