Forums - Snapdragon LLVM compiler does not find sysroot automatically

2 posts / 0 new
Last post
Snapdragon LLVM compiler does not find sysroot automatically
priv
Join Date: 15 Sep 15
Posts: 1
Posted: Thu, 2015-09-17 21:04

Hi I install NDK r10e, and run make-standalone-toolchain will following command:

./make-standalone-toolchain.sh --ndk-dir=$NDK --platform=android-21 --arch=arm64 --install-dir=/home/alvin/snapdragon-llvm-arm64 --toolchain=aarch64-linux-android-4.9 --llvm-version=Snapdragon_LLVM_for_Android_3.6 --system=linux-x86_64

After made standalone, snapdragon-llvm still need "--sysroot=" option assigned, while this is not happening in gcc/llvm which come with NDK r10e.  I checked that sysroot is copied to /home/alvin/snapdragon-llvm-arm64/sysroot correctly.

Is it expected?

  • Up0
  • Down0
Raja Moderator
Join Date: 17 Apr 13
Posts: 42
Posted: Fri, 2015-09-18 10:30

Thanks for your question. 

 

The Snapdragon LLVM ARM 3.6 release does not support the automatic sysroot detection. The reason NDK llvm supports it is because Google has modified the LLVM 3.6 in NDK to automatically detect sysroots. We plan to include this feature in our next release (3.7) expected in the next week or 2. 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.