Hi, quick instructions on testing the version of gcc present in current Android builds:
Use either adb or the "Terminal Emulator" app to get a shell.
If you're using the terminal emulator app with an onscreen keyboard, you may want to pick a keyboard that has an Esc key so working with vi becomes easier: Go to Settings -> Language & input, enable "Hacker's keyboard" and set it as the default.
In the shell, run (just copy&paste from the mail):
cd /data/data/jackpal.androidterm cat >test.c <<'EOF' #include <stdio.h> int main(int argc, char **argv) { puts("gcc works"); } EOF gcc -O3 test.c ./a.out
Output should be "gcc works", anything else is a bug.
cat >test.cpp <<'EOF' #include <iostream> int main(int argc, char **argv) { std::cout << "g++ works" << std::endl; } EOF g++ -O3 test.cpp ./a.out
Output should be "g++ works", anything else is a bug.
cat >Makefile <<'EOF' g++test: test.cpp $(CXX) -o $@ -c $< EOF make ./g++test
Output should be normal make output followed by "g++ works", anything else is a bug.
objdump -x g++test |grep stlport
Output should be NEEDED libstlport.so Anything else is a bug.
vi test.cpp
(check manually if vi works as expected)
ttyl bero