Project

General

Profile

Actions

Bug #1327

closed

Couldn't compile test boost sample with CrystaX 10.3.1.

Added by Mikhail R. about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
boost
Target version:
Start date:
03/14/2016
Due date:
% Done:

100%

Estimated time:
CPU Architecture:
arm
Host OS:
Linux
Toolchain:
gcc-4.9
Android version:
4.0.3 (android-15), 4.1 (android-16), 4.2 (android-17), 4.3 (android-18), 4.4 (android-19), 5.0 (android-21)
CrystaX NDK Version:

Description

Couldn't compile test example for working of Boost library from your blog : https://www.crystax.net/en/blog/2 . I'm using the last release from your site - 10.3.1. . Also I've found some fixes to this sample at stackoverflow here:
http://stackoverflow.com/questions/34780495/crystax-ndk-linker-error . I've applied them, but also I haven't got any progress and build the app. Also I've found your comment in this stackoverlof conversation and added fixes for toolchains/arm-linux-androideabi-clang3.6/setup.mk и toolchains/arm-linux-androideabi-clang3.7/setup.mk like in this commit https://github.com/crystax/android-platform-ndk/commit/a7c3633773f394958aed114a4fdf4350e98094d6 . But even this haven't get to my goal. Please, fix that. Thanks!

P.S. My computer is running on Ubuntu 14.04.1(LTS) x64.

=============================================================

Build log( your bug tracker doesn't allor to attach log files, that's why I've posted it here):

rm -f /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/arm64-v8a/lib*.so /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/armeabi/lib*.so /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/armeabi-v7a/lib*.so /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/armeabi-v7a-hard/lib*.so /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/mips/lib*.so /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/mips64/lib*.so /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/x86/lib*.so /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/x86_64/lib*.so
rm -f /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/arm64-v8a/gdbserver /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/armeabi/gdbserver /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/armeabi-v7a/gdbserver /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/armeabi-v7a-hard/gdbserver /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/mips/gdbserver /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/mips64/gdbserver /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/x86/gdbserver /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/x86_64/gdbserver
rm -f /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/arm64-v8a/gdb.setup /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/armeabi/gdb.setup /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/armeabi-v7a/gdb.setup /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/armeabi-v7a-hard/gdb.setup /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/mips/gdb.setup /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/mips64/gdb.setup /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/x86/gdb.setup /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/x86_64/gdb.setup
mkdir -p /home/melon/Documents/Cuckoo_projects/test-crysax-boost/obj/local/armeabi-v7a/objs/test-boost
[armeabi-v7a] Compile++ thumb: test-boost <= test.cpp
/home/melon/Soft/crystax-ndk/toolchains/arm-linux-androideabi-5/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -MMD -MP -MF /home/melon/Documents/Cuckoo_projects/test-crysax-boost/obj/local/armeabi-v7a/objs/test-boost/test.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -fno-exceptions -fno-rtti -mthumb -Os -g -DNDEBUG -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -I/home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include -I/home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include -I/home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/libs/armeabi-v7a/include -I/home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/backward -I/home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni -DANDROID -Wa,--noexecstack -Wformat -Werror=format-security -fexceptions -frtti -std=gnu++11 -c -I/home/melon/Soft/crystax-ndk/sources/crystax/include -I/home/melon/Soft/crystax-ndk/platforms/android-9/arch-arm/usr/include /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/test.cpp -o /home/melon/Documents/Cuckoo_projects/test-crysax-boost/obj/local/armeabi-v7a/objs/test-boost/test.o
In file included from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/scoped_ptr.hpp:14:0,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/basic_text_oprimitive.hpp:55,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/text_oarchive.hpp:30,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.hpp:6,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/test.cpp:4:
/home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/smart_ptr/scoped_ptr.hpp:68:31: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
explicit scoped_ptr( std::auto_ptr p ) BOOST_NOEXCEPT : px( p.release() )
^
In file included from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/locale_conv.h:41:0,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/locale:43,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/iomanip:43,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/test.cpp:3:
/home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/unique_ptr.h:49:28: note: declared here
template class auto_ptr;
^
In file included from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/smart_ptr/shared_ptr.hpp:28:0,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/helper_collection.hpp:27,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/basic_oarchive.hpp:26,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/common_oarchive.hpp:21,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/basic_text_oarchive.hpp:29,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/text_oarchive.hpp:31,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.hpp:6,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/test.cpp:4:
/home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/smart_ptr/detail/shared_count.hpp:396:33: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
explicit shared_count( std::auto_ptr & r ): pi_( new sp_counted_impl_p( r.get() ) )
^
In file included from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/locale_conv.h:41:0,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/locale:43,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/iomanip:43,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/test.cpp:3:
/home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/unique_ptr.h:49:28: note: declared here
template class auto_ptr;
^
In file included from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/helper_collection.hpp:27:0,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/basic_oarchive.hpp:26,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/common_oarchive.hpp:21,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/basic_text_oarchive.hpp:29,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/text_oarchive.hpp:31,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.hpp:6,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/test.cpp:4:
/home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/smart_ptr/shared_ptr.hpp:249:65: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T >, R >
^
In file included from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/locale_conv.h:41:0,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/locale:43,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/iomanip:43,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/test.cpp:3:
/home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/unique_ptr.h:49:28: note: declared here
template class auto_ptr;
^
In file included from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/helper_collection.hpp:27:0,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/basic_oarchive.hpp:26,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/common_oarchive.hpp:21,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/basic_text_oarchive.hpp:29,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/text_oarchive.hpp:31,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.hpp:6,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/test.cpp:4:
/home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/smart_ptr/shared_ptr.hpp:448:31: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
explicit shared_ptr( std::auto_ptr & r ): px(r.get()), pn()
^
In file included from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/locale_conv.h:41:0,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/locale:43,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/iomanip:43,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/test.cpp:3:
/home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/unique_ptr.h:49:28: note: declared here
template class auto_ptr;
^
In file included from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/helper_collection.hpp:27:0,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/basic_oarchive.hpp:26,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/common_oarchive.hpp:21,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/basic_text_oarchive.hpp:29,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/text_oarchive.hpp:31,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.hpp:6,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/test.cpp:4:
/home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/smart_ptr/shared_ptr.hpp:461:22: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
shared_ptr( std::auto_ptr && r ): px(r.get()), pn()
^
In file included from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/locale_conv.h:41:0,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/locale:43,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/iomanip:43,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/test.cpp:3:
/home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/unique_ptr.h:49:28: note: declared here
template class auto_ptr;
^
In file included from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/helper_collection.hpp:27:0,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/basic_oarchive.hpp:26,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/common_oarchive.hpp:21,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/basic_text_oarchive.hpp:29,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/text_oarchive.hpp:31,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.hpp:6,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/test.cpp:4:
/home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/smart_ptr/shared_ptr.hpp:538:34: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
shared_ptr & operator=( std::auto_ptr & r )
^
In file included from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/locale_conv.h:41:0,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/locale:43,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/iomanip:43,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/test.cpp:3:
/home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/unique_ptr.h:49:28: note: declared here
template class auto_ptr;
^
In file included from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/helper_collection.hpp:27:0,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/basic_oarchive.hpp:26,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/common_oarchive.hpp:21,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/basic_text_oarchive.hpp:29,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/text_oarchive.hpp:31,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.hpp:6,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/test.cpp:4:
/home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/smart_ptr/shared_ptr.hpp:547:34: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
shared_ptr & operator=( std::auto_ptr && r )
^
In file included from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/locale_conv.h:41:0,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/locale:43,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/iomanip:43,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/test.cpp:3:
/home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/unique_ptr.h:49:28: note: declared here
template class auto_ptr;
^
In file included from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/helper_collection.hpp:27:0,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/basic_oarchive.hpp:26,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/common_oarchive.hpp:21,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/basic_text_oarchive.hpp:29,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/text_oarchive.hpp:31,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.hpp:6,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/test.cpp:4:
/home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/smart_ptr/shared_ptr.hpp: In member function 'boost::shared_ptr& boost::shared_ptr::operator=(std::auto_ptr<Up>&&)':
/home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/smart_ptr/shared_ptr.hpp:549:38: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
this_type( static_cast< std::auto_ptr && >( r ) ).swap( *this );
^
In file included from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/locale_conv.h:41:0,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/locale:43,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/iomanip:43,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/test.cpp:3:
/home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/unique_ptr.h:49:28: note: declared here
template class auto_ptr;
^
[armeabi-v7a] Compile++ thumb: test-boost <= gps.cpp
/home/melon/Soft/crystax-ndk/toolchains/arm-linux-androideabi-5/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -MMD -MP -MF /home/melon/Documents/Cuckoo_projects/test-crysax-boost/obj/local/armeabi-v7a/objs/test-boost/gps.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -fno-exceptions -fno-rtti -mthumb -Os -g -DNDEBUG -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -I/home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include -I/home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include -I/home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/libs/armeabi-v7a/include -I/home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/backward -I/home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni -DANDROID -Wa,--noexecstack -Wformat -Werror=format-security -fexceptions -frtti -std=gnu++11 -c -I/home/melon/Soft/crystax-ndk/sources/crystax/include -I/home/melon/Soft/crystax-ndk/platforms/android-9/arch-arm/usr/include /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.cpp -o /home/melon/Documents/Cuckoo_projects/test-crysax-boost/obj/local/armeabi-v7a/objs/test-boost/gps.o
In file included from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/scoped_ptr.hpp:14:0,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/basic_text_oprimitive.hpp:55,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/text_oarchive.hpp:30,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.hpp:6,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.cpp:4:
/home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/smart_ptr/scoped_ptr.hpp:68:31: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
explicit scoped_ptr( std::auto_ptr p ) BOOST_NOEXCEPT : px( p.release() )
^
In file included from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/locale_conv.h:41:0,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/locale:43,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/iomanip:43,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/basic_text_oprimitive.hpp:27,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/text_oarchive.hpp:30,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.hpp:6,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.cpp:4:
/home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/unique_ptr.h:49:28: note: declared here
template class auto_ptr;
^
In file included from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/smart_ptr/shared_ptr.hpp:28:0,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/helper_collection.hpp:27,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/basic_oarchive.hpp:26,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/common_oarchive.hpp:21,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/basic_text_oarchive.hpp:29,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/text_oarchive.hpp:31,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.hpp:6,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.cpp:4:
/home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/smart_ptr/detail/shared_count.hpp:396:33: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
explicit shared_count( std::auto_ptr & r ): pi
( new sp_counted_impl_p( r.get() ) )
^
In file included from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/locale_conv.h:41:0,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/locale:43,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/iomanip:43,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/basic_text_oprimitive.hpp:27,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/text_oarchive.hpp:30,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.hpp:6,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.cpp:4:
/home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/unique_ptr.h:49:28: note: declared here
template class auto_ptr;
^
In file included from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/helper_collection.hpp:27:0,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/basic_oarchive.hpp:26,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/common_oarchive.hpp:21,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/basic_text_oarchive.hpp:29,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/text_oarchive.hpp:31,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.hpp:6,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.cpp:4:
/home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/smart_ptr/shared_ptr.hpp:249:65: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T >, R >
^
In file included from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/locale_conv.h:41:0,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/locale:43,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/iomanip:43,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/basic_text_oprimitive.hpp:27,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/text_oarchive.hpp:30,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.hpp:6,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.cpp:4:
/home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/unique_ptr.h:49:28: note: declared here
template class auto_ptr;
^
In file included from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/helper_collection.hpp:27:0,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/basic_oarchive.hpp:26,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/common_oarchive.hpp:21,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/basic_text_oarchive.hpp:29,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/text_oarchive.hpp:31,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.hpp:6,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.cpp:4:
/home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/smart_ptr/shared_ptr.hpp:448:31: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
explicit shared_ptr( std::auto_ptr & r ): px(r.get()), pn()
^
In file included from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/locale_conv.h:41:0,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/locale:43,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/iomanip:43,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/basic_text_oprimitive.hpp:27,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/text_oarchive.hpp:30,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.hpp:6,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.cpp:4:
/home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/unique_ptr.h:49:28: note: declared here
template class auto_ptr;
^
In file included from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/helper_collection.hpp:27:0,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/basic_oarchive.hpp:26,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/common_oarchive.hpp:21,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/basic_text_oarchive.hpp:29,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/text_oarchive.hpp:31,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.hpp:6,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.cpp:4:
/home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/smart_ptr/shared_ptr.hpp:461:22: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
shared_ptr( std::auto_ptr && r ): px(r.get()), pn()
^
In file included from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/locale_conv.h:41:0,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/locale:43,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/iomanip:43,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/basic_text_oprimitive.hpp:27,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/text_oarchive.hpp:30,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.hpp:6,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.cpp:4:
/home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/unique_ptr.h:49:28: note: declared here
template class auto_ptr;
^
In file included from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/helper_collection.hpp:27:0,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/basic_oarchive.hpp:26,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/common_oarchive.hpp:21,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/basic_text_oarchive.hpp:29,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/text_oarchive.hpp:31,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.hpp:6,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.cpp:4:
/home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/smart_ptr/shared_ptr.hpp:538:34: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
shared_ptr & operator=( std::auto_ptr & r )
^
In file included from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/locale_conv.h:41:0,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/locale:43,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/iomanip:43,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/basic_text_oprimitive.hpp:27,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/text_oarchive.hpp:30,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.hpp:6,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.cpp:4:
/home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/unique_ptr.h:49:28: note: declared here
template class auto_ptr;
^
In file included from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/helper_collection.hpp:27:0,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/basic_oarchive.hpp:26,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/common_oarchive.hpp:21,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/basic_text_oarchive.hpp:29,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/text_oarchive.hpp:31,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.hpp:6,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.cpp:4:
/home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/smart_ptr/shared_ptr.hpp:547:34: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
shared_ptr & operator=( std::auto_ptr && r )
^
In file included from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/locale_conv.h:41:0,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/locale:43,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/iomanip:43,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/basic_text_oprimitive.hpp:27,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/text_oarchive.hpp:30,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.hpp:6,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.cpp:4:
/home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/unique_ptr.h:49:28: note: declared here
template class auto_ptr;
^
In file included from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/helper_collection.hpp:27:0,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/basic_oarchive.hpp:26,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/common_oarchive.hpp:21,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/basic_text_oarchive.hpp:29,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/text_oarchive.hpp:31,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.hpp:6,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.cpp:4:
/home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/smart_ptr/shared_ptr.hpp: In member function 'boost::shared_ptr& boost::shared_ptr::operator=(std::auto_ptr<Up>&&)':
/home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/smart_ptr/shared_ptr.hpp:549:38: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
this_type( static_cast< std::auto_ptr && >( r ) ).swap( *this );
^
In file included from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/locale_conv.h:41:0,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/locale:43,
from /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/iomanip:43,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/basic_text_oprimitive.hpp:27,
from /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/text_oarchive.hpp:30,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.hpp:6,
from /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.cpp:4:
/home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/bits/unique_ptr.h:49:28: note: declared here
template class auto_ptr;
^
[armeabi-v7a] Prebuilt : libgnustl_shared.so <= /sources/cxx-stl/gnu-libstdc++/5/libs/armeabi-v7a/thumb/
cp -f /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/libs/armeabi-v7a/thumb/libgnustl_shared.so /home/melon/Documents/Cuckoo_projects/test-crysax-boost/obj/local/armeabi-v7a/libgnustl_shared.so
[armeabi-v7a] Executable : test-boost
/home/melon/Soft/crystax-ndk/toolchains/arm-linux-androideabi-5/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -Wl,--gc-sections -Wl,-z,nocopyreloc --sysroot=/home/melon/Soft/crystax-ndk/platforms/android-9/arch-arm -Wl,-rpath-link=/home/melon/Soft/crystax-ndk/platforms/android-9/arch-arm/usr/lib -Wl,-rpath-link=/home/melon/Documents/Cuckoo_projects/test-crysax-boost/obj/local/armeabi-v7a /home/melon/Documents/Cuckoo_projects/test-crysax-boost/obj/local/armeabi-v7a/objs/test-boost/test.o /home/melon/Documents/Cuckoo_projects/test-crysax-boost/obj/local/armeabi-v7a/objs/test-boost/gps.o /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/libs/armeabi-v7a/gnu-4.9/libboost_serialization.a -lgcc /home/melon/Documents/Cuckoo_projects/test-crysax-boost/obj/local/armeabi-v7a/libgnustl_shared.so -no-canonical-prefixes -march=armv7-a -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -mthumb /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/libs/armeabi-v7a/libsupc++.a -L/home/melon/Soft/crystax-ndk/sources/crystax/empty /home/melon/Soft/crystax-ndk/sources/crystax/libs/armeabi-v7a/thumb/libcrystax.so -lc -o /home/melon/Documents/Cuckoo_projects/test-crysax-boost/obj/local/armeabi-v7a/test-boost
/home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/oserializer.hpp:88: error: undefined reference to 'boost::archive::text_oarchive_implboost::archive::text_oarchive::save(std::
_cxx11::basic_string, std::allocator > const&)'
collect2: error: ld returned 1 exit status
make: *** [/home/melon/Documents/Cuckoo_projects/test-crysax-boost/obj/local/armeabi-v7a/test-boost] Error 1


Files

crystax-boos-exampla.tar.gz (1.56 KB) crystax-boos-exampla.tar.gz Mikhail R., 03/14/2016 08:55 PM
test-crystax-ndk-boost.tar.gz (1.57 KB) test-crystax-ndk-boost.tar.gz Mikhail R., 03/15/2016 06:40 PM
Actions #1

Updated by Dmitry M. about 8 years ago

  • Status changed from Open to In Progress
  • Target version set to 11.0.0
Actions #2

Updated by Dmitry M. about 8 years ago

  • Description updated (diff)
Actions #3

Updated by Dmitry M. about 8 years ago

  • Status changed from In Progress to Rejected

This happens because of wrong settings in your build files. You've specified @NDK_TOOLCHAIN_VERSION := 4.9@ in @Android.mk@, and this break proper detection of the Boost libraries to link. If you want to choose toolchain version, you should specify it in @Application.mk@, not in @Android.mk@. Otherwise, it is not taken into account when compiling sources (you can see in your build log that gcc-5 is used), but taken into account when choosing Boost libraries to link with.

Actions #4

Updated by Dmitry M. about 8 years ago

I have fixed also Boost's Android.mk in order to prevent such mistake in the future. "Here":https://github.com/crystax/android-platform-ndk/commit/b709ac8766b1e1eb04d4e6cefd0f546c92a52ade is fix. Shortly speaking, this will not anymore take into account @NDK_TOOLCHAIN_VERSION@, defined in @Android.mk@.

Actions #5

Updated by Mikhail R. about 8 years ago

Dmitry Moskalchuk wrote:

I have fixed also Boost's Android.mk in order to prevent such mistake in the future. "Here":https://github.com/crystax/android-platform-ndk/commit/b709ac8766b1e1eb04d4e6cefd0f546c92a52ade is fix. Shortly speaking, this will not anymore take into account @NDK_TOOLCHAIN_VERSION@, defined in @Android.mk@.

I've got it. Thank you very much!!!
I've also checked out other NDK_TOOLCHAIN_VERSIONs and boost compiles well only when I set 4.9 TOOLCHAIN. For others, it doesn't work. I've tested 5.0, clang3.6, clang 3.7. Is it normal ?

Actions #6

Updated by Dmitry M. about 8 years ago

Mikhail Romaneev wrote:

I've also checked out other NDK_TOOLCHAIN_VERSIONs and boost compiles well only when I set 4.9 TOOLCHAIN. For others, it doesn't work. I've tested 5.0, clang3.6, clang 3.7. Is it normal ?

It should work with all supported toolchain versions. Probably you're doing something wrong. Here is list of supported values for @NDK_TOOLCHAIN_VERSION@ for CrystaX NDK 10.3.1: "@4.9@", "@5@", "@clang3.6@", "@clang3.7@". Please double check that versions are specified +exactly+ as in this list (and, of course, they should go to the @Application.mk@, not @Android.mk@).

Actions #7

Updated by Mikhail R. about 8 years ago

Dmitry Moskalchuk wrote:

Mikhail Romaneev wrote:

I've also checked out other NDK_TOOLCHAIN_VERSIONs and boost compiles well only when I set 4.9 TOOLCHAIN. For others, it doesn't work. I've tested 5.0, clang3.6, clang 3.7. Is it normal ?

It should work with all supported toolchain versions. Probably you're doing something wrong. Here is list of supported values for @NDK_TOOLCHAIN_VERSION@ for CrystaX NDK 10.3.1: "@4.9@", "@5@", "@clang3.6@", "@clang3.7@". Please double check that versions are specified +exactly+ as in this list (and, of course, they should go to the @Application.mk@, not @Android.mk@).

For gcc-5 I've used the wing value "5.0", with "5" it's works. But for "clang3.6" and "clang3.7" it isn't. Test sample is the same, except I've transfered NDK_TOOLCHAIN_VERSION to Application.ml . Here is the log:

rm -f /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/arm64-v8a/lib*.so /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/armeabi/lib*.so /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/armeabi-v7a/lib*.so /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/armeabi-v7a-hard/lib*.so /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/mips/lib*.so /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/mips64/lib*.so /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/x86/lib*.so /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/x86_64/lib*.so
rm -f /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/arm64-v8a/gdbserver /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/armeabi/gdbserver /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/armeabi-v7a/gdbserver /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/armeabi-v7a-hard/gdbserver /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/mips/gdbserver /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/mips64/gdbserver /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/x86/gdbserver /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/x86_64/gdbserver
rm -f /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/arm64-v8a/gdb.setup /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/armeabi/gdb.setup /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/armeabi-v7a/gdb.setup /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/armeabi-v7a-hard/gdb.setup /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/mips/gdb.setup /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/mips64/gdb.setup /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/x86/gdb.setup /home/melon/Documents/Cuckoo_projects/test-crysax-boost/libs/x86_64/gdb.setup
[armeabi-v7a] Compile++ thumb: test-boost <= test.cpp
/home/melon/Soft/crystax-ndk/toolchains/llvm-3.7/prebuilt/linux-x86_64/bin/clang++ -MMD -MP -MF /home/melon/Documents/Cuckoo_projects/test-crysax-boost/obj/local/armeabi-v7a/objs/test-boost/test.o.d -gcc-toolchain /home/melon/Soft/crystax-ndk/toolchains/arm-linux-androideabi-5/prebuilt/linux-x86_64 -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes -target armv7-none-linux-androideabi -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fno-exceptions -fno-rtti -mthumb -Os -g -DNDEBUG -fomit-frame-pointer -fno-strict-aliasing -I/home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include -I/home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include -I/home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/libs/armeabi-v7a/include -I/home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/backward -I/home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni -DANDROID -Wa,--noexecstack -Wformat -Werror=format-security -fPIE -fexceptions -frtti -std=gnu++11 -c -I/home/melon/Soft/crystax-ndk/sources/crystax/include -I/home/melon/Soft/crystax-ndk/platforms/android-19/arch-arm/usr/include /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/test.cpp -o /home/melon/Documents/Cuckoo_projects/test-crysax-boost/obj/local/armeabi-v7a/objs/test-boost/test.o

[armeabi-v7a] Compile++ thumb: test-boost <= gps.cpp
/home/melon/Soft/crystax-ndk/toolchains/llvm-3.7/prebuilt/linux-x86_64/bin/clang++ -MMD -MP -MF /home/melon/Documents/Cuckoo_projects/test-crysax-boost/obj/local/armeabi-v7a/objs/test-boost/gps.o.d -gcc-toolchain /home/melon/Soft/crystax-ndk/toolchains/arm-linux-androideabi-5/prebuilt/linux-x86_64 -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes -target armv7-none-linux-androideabi -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fno-exceptions -fno-rtti -mthumb -Os -g -DNDEBUG -fomit-frame-pointer -fno-strict-aliasing -I/home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include -I/home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include -I/home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/libs/armeabi-v7a/include -I/home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/include/backward -I/home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni -DANDROID -Wa,--noexecstack -Wformat -Werror=format-security -fPIE -fexceptions -frtti -std=gnu++11 -c -I/home/melon/Soft/crystax-ndk/sources/crystax/include -I/home/melon/Soft/crystax-ndk/platforms/android-19/arch-arm/usr/include /home/melon/Documents/Cuckoo_projects/test-crysax-boost/jni/gps.cpp -o /home/melon/Documents/Cuckoo_projects/test-crysax-boost/obj/local/armeabi-v7a/objs/test-boost/gps.o
[armeabi-v7a] Executable : test-boost
/home/melon/Soft/crystax-ndk/toolchains/llvm-3.7/prebuilt/linux-x86_64/bin/clang++ -Wl,--gc-sections -Wl,-z,nocopyreloc --sysroot=/home/melon/Soft/crystax-ndk/platforms/android-19/arch-arm -Wl,-rpath-link=/home/melon/Soft/crystax-ndk/platforms/android-19/arch-arm/usr/lib -Wl,-rpath-link=/home/melon/Documents/Cuckoo_projects/test-crysax-boost/obj/local/armeabi-v7a /home/melon/Documents/Cuckoo_projects/test-crysax-boost/obj/local/armeabi-v7a/objs/test-boost/test.o /home/melon/Documents/Cuckoo_projects/test-crysax-boost/obj/local/armeabi-v7a/objs/test-boost/gps.o /home/melon/Soft/crystax-ndk/sources/boost/1.59.0/libs/armeabi-v7a/gnu-4.9/libboost_serialization.a -lgcc /home/melon/Documents/Cuckoo_projects/test-crysax-boost/obj/local/armeabi-v7a/libgnustl_shared.so -gcc-toolchain /home/melon/Soft/crystax-ndk/toolchains/arm-linux-androideabi-5/prebuilt/linux-x86_64 -no-canonical-prefixes -target armv7-none-linux-androideabi -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -mthumb -L/home/melon/Soft/crystax-ndk/platforms/android-19/arch-arm/usr/lib -latomic /home/melon/Soft/crystax-ndk/sources/cxx-stl/gnu-libstdc++/5/libs/armeabi-v7a/libsupc++.a -L/home/melon/Soft/crystax-ndk/sources/crystax/empty /home/melon/Soft/crystax-ndk/sources/crystax/libs/armeabi-v7a/thumb/libcrystax.so -lc -o /home/melon/Documents/Cuckoo_projects/test-crysax-boost/obj/local/armeabi-v7a/test-boost
/home/melon/Soft/crystax-ndk/sources/boost/1.59.0/include/boost/archive/detail/oserializer.hpp:88: error: undefined reference to 'boost::archive::text_oarchive_implboost::archive::text_oarchive::save(std::__cxx11::basic_string, std::allocator > const&)'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/home/melon/Documents/Cuckoo_projects/test-crysax-boost/obj/local/armeabi-v7a/test-boost] Error 1

Actions #8

Updated by Dmitry M. about 8 years ago

Mikhail Romaneev wrote:

For gcc-5 I've used the wing value "5.0", with "5" it's works. But for "clang3.6" and "clang3.7" it isn't. Test sample is the same, except I've transfered NDK_TOOLCHAIN_VERSION to Application.ml .

I see in the build log that linker uses GNU libstdc++ v5, but Boost libraries linked with GNU libstdc++ v4.9. This is source of problem. However, it's unclear why it happens. With your example, after moving @NDK_TOOLCHAIN_VERSION@ from @Android.mk@ to @Application.mk@, everything works fine on my side. Your problem looks like you haven't removed @NDK_TOOLCHAIN_VERSION@ from @Android.mk@. Remember, you should not just specify it in the @Application.mk@, but remove from @Android.mk@ too. The fix I've mentioned above is pushed to the master branch, but not present in 10.3.1, so you should double check that your @Android.mk@ doesn't contain @NDK_TOOLCHAIN_VERSION@.

If that's not true, please provide updated copy of your test project +as is+, I'll look what's wrong there.

Actions #9

Updated by Mikhail R. about 8 years ago

Dmitry Moskalchuk wrote:

Mikhail Romaneev wrote:

For gcc-5 I've used the wing value "5.0", with "5" it's works. But for "clang3.6" and "clang3.7" it isn't. Test sample is the same, except I've transfered NDK_TOOLCHAIN_VERSION to Application.ml .

I see in the build log that linker uses GNU libstdc++ v5, but Boost libraries linked with GNU libstdc++ v4.9. This is source of problem. However, it's unclear why it happens. With your example, after moving @NDK_TOOLCHAIN_VERSION@ from @Android.mk@ to @Application.mk@, everything works fine on my side. Your problem looks like you haven't removed @NDK_TOOLCHAIN_VERSION@ from @Android.mk@. Remember, you should not just specify it in the @Application.mk@, but remove from @Android.mk@ too. The fix I've mentioned above is pushed to the master branch, but not present in 10.3.1, so you should double check that your @Android.mk@ doesn't contain @NDK_TOOLCHAIN_VERSION@.

If that's not true, please provide updated copy of your test project +as is+, I'll look what's wrong there.

Yes, I've deleted NDK_TOOLCHAIN_VERSION from Application.mk file. And I've applied your fix. So here is new version of the project.

Actions #10

Updated by Dmitry M. about 8 years ago

Mikhail Romaneev wrote:

Yes, I've deleted NDK_TOOLCHAIN_VERSION from Application.mk file. And I've applied your fix. So here is new version of the project.

OK, I've checked how it works with 10.3.1. Yes, it doesn't link when being built by clang because of the bug in Boost's Android.mk I've mentioned above. The fix "here":https://github.com/crystax/android-platform-ndk/commit/b709ac8766b1e1eb04d4e6cefd0f546c92a52ade is for build script, which then generates Boost's Android.mk. However, if you want to make it fixed in your local copy of CrystaX NDK 10.3.1, you should open $NDK/sources/boost/1.59.0/Android.mk and replace all occurrences of @NDK_TOOLCHAIN_VERSION@ to @TOOLCHAIN_VERSION@. When you do it, it should fix build of the sample project with clang toolchains too.

Actions #11

Updated by Mikhail R. about 8 years ago

Dmitry Moskalchuk wrote:

Mikhail Romaneev wrote:

Yes, I've deleted NDK_TOOLCHAIN_VERSION from Application.mk file. And I've applied your fix. So here is new version of the project.

OK, I've checked how it works with 10.3.1. Yes, it doesn't link when being built by clang because of the bug in Boost's Android.mk I've mentioned above. The fix "here":https://github.com/crystax/android-platform-ndk/commit/b709ac8766b1e1eb04d4e6cefd0f546c92a52ade is for build script, which then generates Boost's Android.mk. However, if you want to make it fixed in your local copy of CrystaX NDK 10.3.1, you should open $NDK/sources/boost/1.59.0/Android.mk and replace all occurrences of @NDK_TOOLCHAIN_VERSION@ to @TOOLCHAIN_VERSION@. When you do it, it should fix build of the sample project with clang toolchains too.

Yeah, right now it works. Thanks.

Actions #12

Updated by Dmitry M. about 8 years ago

  • Status changed from Rejected to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF