Building LLVM from source

Building LLVM from source

BY 07 Jun 2017 SDK & IDE

Hi,

I’m trying to build LLVM that comes with the Tizen SDK (basically, I want to find out how it differs from the vanilla LLVM and play with it a bit).

 

The problem is that no matter what I do, the manually built LLVM is different from what is supplied with the SDK:
a) it has different version (3.8.1. vs 3.7),
b) it works differently (e.g. clang can’t find c++ include files in the SDK’s GCC tolchain, which I specify via the –gcc-toolchain option).

 

To obtain LLVM sources I follow the guide using this manifest.

My .gbs.conf is

[general]
tmpdir=/var/tmp/
profile = profile.current
work_dir=.
buildroot=~/work/build/gbs-root
 
[repo.current]
url = http://download.tizen.org/snapshots/tizen/base/tizen-base_20170520.1/repos/x86_64/packages/
 
[profile.current]
repos=repo.current

And I invoke GBS as follows:

cd platform/upstream/llvm && gbs build -A x86_64

Looking for an advice on what I should do to build the proper version.

Written by