Forums - How to use Snapdragon LLVM Compiler for stock sdm845 device?

3 posts / 0 new
Last post
How to use Snapdragon LLVM Compiler for stock sdm845 device?
nejrobbins
Join Date: 21 Jan 18
Posts: 6
Posted: Fri, 2018-08-03 12:54

So I was attempting to get a build of this CAF tag (https://source.codeaurora.org/quic/la/platform/manifest/commit/?h=LA.UM....) going for my OnePlus 6 using Snapdragon 845. I started work on the device tree, but couldn't get past an error with using SDClang. You can see my steps here: https://developer.qualcomm.com/forum/qdn-forums/software/snapdragon-llvm...

So, I assumed the error was with my device tree. To test this, I tried a build of lunch target sdm845-userdebug straight from CAF sync. No source modifications were performed. I synced the code, ran . build/envsetup.sh, lunch (choosing #41 sdm845-userdebug) and then make. I get this error: https://pastebin.com/rAgXJ1wQ

 

This is the same error I was getting with my custom device. Therefore, the error is not with my setup. 

So, the question is, how can I solve this error, for this build (sdm845-userdebug) and then for my custom device afterwards? Just to note, I see the steps for using SDClang are to use this path  

prebuilts/clang/linux-x86/host/ but my CAF repo has 2 of the folders swapped:

prebuilts/clang/host/linux-x86/

 

I've also added the required lines to sdm845 boardconfig.mk for sdclang.

 

Maybe I've been going about this the complete wrong way though, so if anyone could help out that would be appreciated. Thanks :)

  • Up0
  • Down0
nejrobbins
Join Date: 21 Jan 18
Posts: 6
Posted: Fri, 2018-08-03 15:05

Nevermind, had an extra comma :P 

 

Fixed

  • Up0
  • Down0
nejrobbins
Join Date: 21 Jan 18
Posts: 6
Posted: Fri, 2018-08-03 15:05

Nevermind, had an extra comma :P 

 

Fixed

  • 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.