Languages

Menu
Sites
Language
Building LLVM from source

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.

Edited by: Mikhail Kremnyov on 06 Jun, 2017

Responses

1 Replies
Armaan-Ul- Islam

Haven't manually built the LLVM, But for the statement :

" the manually built LLVM is different from what is supplied with the SDK"

 

The repo link you are using:

http://download.tizen.org/snapshots/tizen/base/tizen-base_20170520.1/repos/x86_64/packages/

Is published on 20-May-2017

 

Why don't you check out out this repo

http://download.tizen.org/snapshots/tizen/base/tizen-base_20170605.1/repos/x86_64/packages/

It's the latest published on 05-Jun-2017