Forums - cannot compile this atomic library

5 posts / 0 new
Last post
cannot compile this atomic library
xiaoyaocclg2007
Join Date: 9 Aug 13
Posts: 2
Posted: Tue, 2013-08-13 20:19

Hi,all
I use the Snapdragon_LLVM_for_Android_3.2.5 and arm-linux-androideabi-snapdragonclang3.2.5 according to the readme.install

But I met the errors as follows in my android project.

 

android-ndk-r8e/sources/cxx-stl/gnu-libstdc++/4.7/include/bits/atomic_base.h:565:16: error: 
      cannot compile this atomic library call yet
      { return __atomic_fetch_add(&_M_i, __i, __m); }
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
android-ndk-r8e/sources/cxx-stl/gnu-libstdc++/4.7/include/bits/atomic_base.h:376:16: error: 
      cannot compile this atomic library call yet
      { return __atomic_sub_fetch(&_M_i, 1, memory_order_seq_cst); }
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
android-ndk-r8e/sources/cxx-stl/gnu-libstdc++/4.7/include/bits/atomic_base.h:585:16: error: 
      cannot compile this atomic library call yet
      { return __atomic_fetch_and(&_M_i, __i, __m); }
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
android-ndk-r8e/sources/cxx-stl/gnu-libstdc++/4.7/include/bits/atomic_base.h:595:16: error: 
      cannot compile this atomic library call yet
      { return __atomic_fetch_or(&_M_i, __i, __m); }
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
android-ndk-r8e/sources/cxx-stl/gnu-libstdc++/4.7/include/bits/atomic_base.h:575:16: error: 
      cannot compile this atomic library call yet
      { return __atomic_fetch_sub(&_M_i, __i, __m); }
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Is there some method that I can fix these?
Thans
Candy
 
  • Up0
  • Down0
Raja Moderator
Join Date: 17 Apr 13
Posts: 42
Posted: Wed, 2013-08-14 11:16

Thanks for downloading our NDK plugin and trying it.

The Snapdragon LLVM 3.2.5 version is based off community 3.2+ version (llvm.org mainline before 3.3 release) and does not have full support for C++11 atomic intrinsics. However, the llvm.org 3.3 release and our upcoming Snapdragon LLVM 3.3 release (expected in two weeks) do support these intrinsics. Our internal testing shows that the above errors you encounter about atomic_fetch should go away switching to the new release.

However, to confirm whether it will fix your specific issues, can you provide us with a code snippet that will help us reproduce the problem? This will help us verify that this problem is indeed fixed in the upcoming version.

--Raja

  • Up0
  • Down0
xiaoyaocclg2007
Join Date: 9 Aug 13
Posts: 2
Posted: Wed, 2013-08-14 23:52

Thanks for the reply.

If possible, is there some Preview Release that I can use, I am realy intrested in the speed-up by the llvm.
I will try to write the some sample which will reproduce the reproduce the problem.
Thanks
Candy

  • Up0
  • Down0
Raja Moderator
Join Date: 17 Apr 13
Posts: 42
Posted: Thu, 2013-08-15 14:28

Unforunately, we don't have a pre-release version we can make available. We hope to release the Snapdragon LLVM 3.3 in the next 10 days. Kindly provide us with a cut down test case so that we can verify the fix. Thanks for your help and patience

  • Up0
  • Down0
rondellnavarez93
Join Date: 17 Oct 13
Posts: 1
Posted: Thu, 2013-10-17 01:32

Thanks for that info buddy. Very much appreciated :)

buy fast youtube views

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