Forums - clang.exe: error: unsupported option '-fpie' for target 'x86_64-w64-windows-gnu'

1 post / 0 new
clang.exe: error: unsupported option '-fpie' for target 'x86_64-w64-windows-gnu'
kumaramar1031
Join Date: 20 Mar 18
Posts: 2
Posted: Thu, 2019-05-23 05:28

Dear all,

I want to compile source code with snapdragon llvm 6.0.9 . 

I followed following steps:

a. I am using android-ndk-r17b and extract llvm-Snapdragon_LLVM_for_Android_6.0 to android-ndk-r17b/toochains/.

b. I compile the code using ndk-build -B -j16 NDK_TOOLCHAIN_VERSION=aarch64-linux-android-snapdragonclang.

c. I  am getting follwing errors:

         "clang.exe: error: unsupported option '-fpie' for target 'x86_64-w64-windows-gnu'"

Can you please help me for resolve this issue .

Thanks and Regards,

Amar kumar

  • Up0
  • Down0

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.