I've been poking at the stuff trying to make it work for x86. I'm actually pretty confused, but I got something to work under very specific circumstances. Attached are my modifications/hacks (I started throwing lots of flags I see when I build with a normal makefile to see if it helped) to the standalone toolchain. (I don't know which I should be using.) I'm hoping this might be helpful to you to figure out the more general fix. For testing, lots of flags are currently set explicitly to match what I'm seeing in a regular Android NDK Makefile based project.

This will work for me if-and-only-if I run cmake (not ccmake) and with these flags passed via the command line:

export NDK_TOOLCHAIN_ROOT=/Library/Frameworks/Android/android-ndk/standalone/x86-4.6
cmake -DCMAKE_TOOLCHAIN_FILE=../CMake-Toolchain-Collection/toolchain-android-standalone-toolchain.cmake -DANDROID_NDK_ARCH=x86 ../Chipmunk2D/

If I omit the -DANDROID_NDK_ARCH=x86, it gets into a bad state, presumably trying to run the arm chain by default.

If I use ccmake like:
ccmake -DCMAKE_TOOLCHAIN_FILE=../CMake-Toolchain-Collection/toolchain-android-standalone-toolchain.cmake -DANDROID_NDK_ARCH=x86 ../Chipmunk2D/
Things seems to configure and generate, but when I type make, nothing builds, as if there were no files in the project.

If I use ccmake without the -DANDROID_NDK_ARCH=x86,  after using 'c' to get through the initial errors, and then change the arch to x86 (from arm), the 'c' phase reports an error and takes a very long time to finish what it's doing. The error output looks like:

CMake Error at /Applications/CMake 2.8-10.app/Contents/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:54 (message):
  The C++ compiler
  "/Library/Frameworks/Android/android-ndk/standalone/x86-4.6/bin/i686-linux-android-g++"
  is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: /Users/ewing/Source/GIT/BUILD_ANDROID_X86_CHIPMUNK_bad/CMakeFiles/CMakeTmp

  Run Build Command:/usr/bin/make "cmTryCompileExec2853463169/fast"

  /usr/bin/make -f CMakeFiles/cmTryCompileExec2853463169.dir/build.make
  CMakeFiles/cmTryCompileExec2853463169.dir/build

  "/Applications/CMake 2.8-10.app/Contents/bin/cmake" -E
  cmake_progress_report
  /Users/ewing/Source/GIT/BUILD_ANDROID_X86_CHIPMUNK_bad/CMakeFiles/CMakeTmp/CMakeFiles
  1

  Building CXX object
  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx

  /Library/Frameworks/Android/android-ndk/standalone/x86-4.6/bin/i686-linux-android-g++
  --sysroot=/Library/Frameworks/Android/android-ndk/standalone/x86-4.6/sysroot/usr
  -I/Library/Frameworks/Android/android-ndk/standalone/x86-4.6/sysroot/usr/include
  -DANDROID -ffunction-sections -funwind-tables -no-canonical-prefixes
  -fstack-protector -fomit-frame-pointer -fstrict-aliasing -funswitch-loops
  -finline-limit=300 -UNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing
  -DANDROID -Wa,--noexecstack -lgcc -no-canonical-prefixes -Wl,--no-undefined
  -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -lc -lm -o
  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx -c
  /Users/ewing/Source/GIT/BUILD_ANDROID_X86_CHIPMUNK_bad/CMakeFiles/CMakeTmp/testCXXCompiler.cxx

  Linking CXX executable cmTryCompileExec2853463169

  "/Applications/CMake 2.8-10.app/Contents/bin/cmake" -E cmake_link_script
  CMakeFiles/cmTryCompileExec2853463169.dir/link.txt --verbose=1

 /Library/Frameworks/Android/android-ndk/standalone/x86-4.6/bin/i686-linux-android-g++
  --sysroot=/Library/Frameworks/Android/android-ndk/standalone/x86-4.6/sysroot/usr
  -I/Library/Frameworks/Android/android-ndk/standalone/x86-4.6/sysroot/usr/include
  -DANDROID -ffunction-sections -funwind-tables -no-canonical-prefixes
  -fstack-protector -fomit-frame-pointer -fstrict-aliasing -funswitch-loops
  -finline-limit=300 -UNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing
  -DANDROID -Wa,--noexecstack -lgcc -no-canonical-prefixes -Wl,--no-undefined
  -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -lc -lm
  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx -o
  cmTryCompileExec2853463169 -rdynamic

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:1: error:
  stray '\177' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:1: error:
  stray '\1' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:1: error:
  stray '\1' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:1: error:
  stray '\1' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:8: warning:
  null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:1: error:
  stray '\1' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:18:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:1: error:
  stray '\3' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:20:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:1: error:
  stray '\1' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:22:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:1: error:
  stray '\374' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:34:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:42:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:48:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:1: error:
  stray '\211' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:1: error:
  stray '\345' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:1: error:
  stray '\270' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:57:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:1: error:
  stray '\303' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:63:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:100:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:1: error:
  stray '\24' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:102:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:1: error:
  stray '\1' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:112:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:1: error:
  stray '\1' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:1: error:
  stray '\10' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:1: error:
  stray '\1' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:1: error:
  stray '\33' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:1: error:
  stray '\4' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:1: error:
  stray '\4' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:1: error:
  stray '\210' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:1: error:
  stray '\1' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:123:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:1: error:
  stray '\34' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:126:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:1: error:
  stray '\34' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:130:
  warning: null character(s) ignored [enabled by default]

CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:2:1: warning:
  null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:2:5: error:
  stray '\16' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:2:5: error:
  stray '\10' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:2:5: error:
  stray '\205' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:2:5: error:
  stray '\2' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:1: error:
  stray '\5' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:1: error:
  stray '\4' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:1: error:
  stray '\4' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:1: error:
  stray '\305' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:7: warning:
  null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:17:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:25:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:35:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:41:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:47:
warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:52:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:63:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:72:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:88:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:102:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:1: error:
  stray '\33' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:146:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:1: error:
  stray '\1' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:150:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:1: error:
  stray '\6' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:154:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:162:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:1: error:
  stray '\4' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:178:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:186:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:1: error:
  stray '\1' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:190:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:1: error:
  stray '\3' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:194:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:202:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:1: error:
  stray '\4' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:218:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:225:
  warning: null character(s) preserved in literal [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:225:
  warning: missing terminating ' character [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:3:1: error:
  missing terminating ' character

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:1: warning:
  null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:12: error:
  stray '\1' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:13:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:21:

  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:12: error:
  stray '\1' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:25:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:29:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:37:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:41:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:12: error:
  stray '\1' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:53:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:12: error:
  stray '\1' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:57:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:12: error:
  stray '@' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:61:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:12: error:
  stray '\1' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:65:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:77:
  warning: null character(s) ignored [enabled by default]

 CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:12: error:
  stray '\1' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:93:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:101:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:12: error:
  stray '\1' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:105:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:12: error:
  stray '\2' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:109:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:117:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:121:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:12: error:
  stray '\4' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:133:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:141:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:12: error:
  stray '\230' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:12: error:
  stray '\3' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:158:
 warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:12: error:
  stray '\10' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:4:161:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:1: warning:
  null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\7' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:5: warning:
  null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\4' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:9: warning:
  null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\10' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:13:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\21' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:17:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\3' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:21:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\234' in program

 CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:33:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:37:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\1' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:49:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\1' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:57:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\2' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:61:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\334' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\2' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:74:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\240' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:77:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\4' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:89:
 warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\20' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:93:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\3' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:101:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\3' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:114:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\32' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:117:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\1' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:129:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\1' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:153:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\4' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:165:
  warning: null character(s) ignored [enabled by default]

 CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\361' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\377' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:168:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\3' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:181:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\1' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:183:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\3' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:197:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\2' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:199:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\3' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:213:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\3' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:215:

 CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\3' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:229:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\4' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:231:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\3' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:245:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\6' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:247:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\3' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:261:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\7' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:263:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\3' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:277:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
 stray '\5' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:279:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:4: error:
  stray '\25' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:5:281:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:6:1: warning:
  null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:6:4: error:
  stray '\22' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:6:5: warning:
  null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:6:4: error:
  stray '\4' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:6:7: warning:
  null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:6:28:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:6:33:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:6:4: error:
  stray '\2' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:6:4: error:
  stray '\5' in program

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:6:42:
  warning: null character(s) ignored [enabled by default]

  CMakeFiles/cmTryCompileExec2853463169.dir/testCXXCompiler.cxx:1:2: error:
  'ELF' does not name a type

  make[1]: *** [cmTryCompileExec2853463169] Error 1

  make: *** [cmTryCompileExec2853463169/fast] Error 2

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:4 (project)
The word order "i686-android-linux" should be "i686-linux-android".
Android NDK r9 is out. Using r8e as a starting point so it can be diff'd easily.
Changes include both fixes for r9 and general fixes that may want to be back-applied to previous modules.

r9: The shipped versions of compilers have changed. 4.7 for example has been removed. Officially, 4.6 is Android the default, so setting this as the CMake default seems to make more sense.
Added android-18 to the list. I also made the latest the default because there is no blessed default and the most rational default is the latest since that is the whole point of shipping a new NDK release.

General: $ANDROID_NDK_ROOT is the semi-official blessed environmental variable for the location of the root of the Android NDK according to an Android engineer on the official NDK mailing list. For the non-standalone toolchain, this is the directory we want and we don't need a separate $ENV{NDK_TOOLCHAIN_ROOT}. So the logic is now intended to look to the old NDK_TOOLCHAIN_ROOT as an override, and if not set, fallback to the  ANDROID_NDK_ROOT and convenience.

x86: There is a problem changing the arch to x86 after the initial generation. Some values like the compiler and sysroot are stuck on the arm setting. I partly fixed the --sysroot by changing the COMMON_FLAGS to not contain it and put it directly into the flags because the CACHE FORCE flags are complicating things. However, this is not enough to fix the linking flags and I get linker failures (with redundant, conflicting --sysroots)

However, I can successfully generate a project by passing the arch via command line on initial creation.
ccmake -DCMAKE_TOOLCHAIN_FILE=../CMake-Toolchain-Collection/toolchain-android-ndk-r9.cmake -DANDROID_NDK_ARCH=x86 ../MyProject
Forgot to remove debugging messages.