Thanks for your reply. Yes, it does work. The precise instructions are at:
https://github.com/royzhao/stressapptest
I should have been more precise. What I was checking on trying to compile it from source using the stand-alone tool-chain.
Here's what I did:
$NDK/build/tools/make-standalone-toolchain.sh --platform=android-9 --install-dir=/tmp/my-android-toolchain
then,
export PATH=/tmp/my-android-toolchain/bin:$PATH
export CC=arm-linux-androideabi-gcc
export CXX=arm-linux-androideabi-g++
cd stressapptest
./configure --host=arm-linux-androideabi (the config.log is attached).
make
Here's the output:
Making all in src
make[1]: Entering directory `/home/amitrane/stresstestapp/stressapptest/src'
make[2]: Entering directory `/home/amitrane/stresstestapp/stressapptest'
make[2]: Leaving directory `/home/amitrane/stresstestapp/stressapptest'
make all-am
make[2]: Entering directory `/home/amitrane/stresstestapp/stressapptest/src'
make[3]: Entering directory `/home/amitrane/stresstestapp/stressapptest'
make[3]: Leaving directory `/home/amitrane/stresstestapp/stressapptest'
arm-linux-androideabi-g++ -DHAVE_CONFIG_H -I. -DCHECKOPTS -Wreturn-type -Wunused -Wuninitialized -Wall -O3 -funroll-all-loops -funroll-loops -DNDEBUG -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.cc
In file included from finelock_queue.h:29:0,
from sat.h:28,
from main.cc:18:
os.h:270:6: warning: #warning "Unsupported CPU type ARMV7A: your timer may not function correctly" [-Wcpp]
In file included from main.cc:17:0:
sattypes.h: In function 'bool cpuset_isequal(const cpu_set_t*, const cpu_set_t*)':
sattypes.h:107:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
sattypes.h: In function 'bool cpuset_issubset(const cpu_set_t*, const cpu_set_t*)':
sattypes.h:114:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
sattypes.h: In function 'int cpuset_count(const cpu_set_t*)':
sattypes.h:122:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
sattypes.h: In function 'std::string cpuset_format(const cpu_set_t*)':
sattypes.h:137:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
mv -f .deps/main.Tpo .deps/main.Po
arm-linux-androideabi-g++ -DHAVE_CONFIG_H -I. -DCHECKOPTS -Wreturn-type -Wunused -Wuninitialized -Wall -O3 -funroll-all-loops -funroll-loops -DNDEBUG -MT os.o -MD -MP -MF .deps/os.Tpo -c -o os.o os.cc
In file included from os.cc:21:0:
os.h:270:6: warning: #warning "Unsupported CPU type ARMV7A: your timer may not function correctly" [-Wcpp]
os.cc:198:2: warning: #warning "Unsupported CPU type ARMV7A: unable to determine feature set." [-Wcpp]
In file included from adler32memcpy.h:19:0,
from os.h:30,
from os.cc:21:
sattypes.h: In function 'bool cpuset_isequal(const cpu_set_t*, const cpu_set_t*)':
sattypes.h:107:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
sattypes.h: In function 'bool cpuset_issubset(const cpu_set_t*, const cpu_set_t*)':
sattypes.h:114:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
sattypes.h: In function 'int cpuset_count(const cpu_set_t*)':
sattypes.h:122:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
sattypes.h: In function 'std::string cpuset_format(const cpu_set_t*)':
sattypes.h:137:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
os.cc: In member function 'virtual bool OsLayer::Initialize()':
os.cc:113:3: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
os.cc: In member function 'virtual bool OsLayer::AllocateTestMem(int64, uint64)':
os.cc:501:8: warning: variable 'prefer_hugepages' set but not used [-Wunused-but-set-variable]
os.cc:502:8: warning: variable 'prefer_posix_shm' set but not used [-Wunused-but-set-variable]
os.cc:503:8: warning: variable 'prefer_dynamic_mapping' set but not used [-Wunused-but-set-variable]
mv -f .deps/os.Tpo .deps/os.Po
arm-linux-androideabi-g++ -DHAVE_CONFIG_H -I. -DCHECKOPTS -Wreturn-type -Wunused -Wuninitialized -Wall -O3 -funroll-all-loops -funroll-loops -DNDEBUG -MT os_factory.o -MD -MP -MF .deps/os_factory.Tpo -c -o os_factory.o os_factory.cc
In file included from os_factory.cc:26:0:
os.h:270:6: warning: #warning "Unsupported CPU type ARMV7A: your timer may not function correctly" [-Wcpp]
In file included from adler32memcpy.h:19:0,
from os.h:30,
from os_factory.cc:26:
sattypes.h: In function 'bool cpuset_isequal(const cpu_set_t*, const cpu_set_t*)':
sattypes.h:107:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
sattypes.h: In function 'bool cpuset_issubset(const cpu_set_t*, const cpu_set_t*)':
sattypes.h:114:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
sattypes.h: In function 'int cpuset_count(const cpu_set_t*)':
sattypes.h:122:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
sattypes.h: In function 'std::string cpuset_format(const cpu_set_t*)':
sattypes.h:137:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
mv -f .deps/os_factory.Tpo .deps/os_factory.Po
arm-linux-androideabi-g++ -DHAVE_CONFIG_H -I. -DCHECKOPTS -Wreturn-type -Wunused -Wuninitialized -Wall -O3 -funroll-all-loops -funroll-loops -DNDEBUG -MT pattern.o -MD -MP -MF .deps/pattern.Tpo -c -o pattern.o pattern.cc
In file included from adler32memcpy.h:19:0,
from pattern.h:28,
from pattern.cc:21:
sattypes.h: In function 'bool cpuset_isequal(const cpu_set_t*, const cpu_set_t*)':
sattypes.h:107:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
sattypes.h: In function 'bool cpuset_issubset(const cpu_set_t*, const cpu_set_t*)':
sattypes.h:114:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
sattypes.h: In function 'int cpuset_count(const cpu_set_t*)':
sattypes.h:122:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
sattypes.h: In function 'std::string cpuset_format(const cpu_set_t*)':
sattypes.h:137:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
mv -f .deps/pattern.Tpo .deps/pattern.Po
arm-linux-androideabi-g++ -DHAVE_CONFIG_H -I. -DCHECKOPTS -Wreturn-type -Wunused -Wuninitialized -Wall -O3 -funroll-all-loops -funroll-loops -DNDEBUG -MT queue.o -MD -MP -MF .deps/queue.Tpo -c -o queue.o queue.cc
In file included from queue.h:29:0,
from queue.cc:21:
sattypes.h: In function 'bool cpuset_isequal(const cpu_set_t*, const cpu_set_t*)':
sattypes.h:107:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
sattypes.h: In function 'bool cpuset_issubset(const cpu_set_t*, const cpu_set_t*)':
sattypes.h:114:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
sattypes.h: In function 'int cpuset_count(const cpu_set_t*)':
sattypes.h:122:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
sattypes.h: In function 'std::string cpuset_format(const cpu_set_t*)':
sattypes.h:137:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
mv -f .deps/queue.Tpo .deps/queue.Po
arm-linux-androideabi-g++ -DHAVE_CONFIG_H -I. -DCHECKOPTS -Wreturn-type -Wunused -Wuninitialized -Wall -O3 -funroll-all-loops -funroll-loops -DNDEBUG -MT sat.o -MD -MP -MF .deps/sat.Tpo -c -o sat.o sat.cc
In file included from sat.cc:46:0:
os.h:270:6: warning: #warning "Unsupported CPU type ARMV7A: your timer may not function correctly" [-Wcpp]
In file included from disk_blocks.h:29:0,
from sat.cc:44:
sattypes.h: In function 'bool cpuset_isequal(const cpu_set_t*, const cpu_set_t*)':
sattypes.h:107:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
sattypes.h: In function 'bool cpuset_issubset(const cpu_set_t*, const cpu_set_t*)':
sattypes.h:114:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
sattypes.h: In function 'int cpuset_count(const cpu_set_t*)':
sattypes.h:122:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
sattypes.h: In function 'std::string cpuset_format(const cpu_set_t*)':
sattypes.h:137:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
sat.cc: In member function 'virtual void Sat::InitializeThreads()':
sat.cc:1434:67: error: cannot convert 'int*' to 'char*' in assignment
sat.cc: In member function 'int Sat::CacheLineSize()':
sat.cc:1488:30: error: '_SC_LEVEL1_DCACHE_LINESIZE' was not declared in this scope
sat.cc:1489:26: error: '_SC_LEVEL2_CACHE_LINESIZE' was not declared in this scope
sat.cc:1491:22: error: '_SC_LEVEL3_CACHE_LINESIZE' was not declared in this scope
sat.cc:1493:22: error: '_SC_LEVEL4_CACHE_LINESIZE' was not declared in this scope
make[2]: *** [sat.o] Error 1
make[2]: Leaving directory `/home/amitrane/stresstestapp/stressapptest/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/amitrane/stresstestapp/stressapptest/src'
make: *** [all-recursive] Error 1
Any comments/suggestions ? Thanks.