This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Building gdb for Android using Android-ndk
- From: Robert <robert at mailueberfall dot de>
- To: gdb at sourceware dot org
- Date: Wed, 23 Jan 2013 10:29:12 +0100
- Subject: Building gdb for Android using Android-ndk
Hi,
I am trying to build gdb for Android using the "standalone-toolchain"
created by the Android-NDK (make-standalone-toolchain.sh).
My configure call is as follows:
./configure --target=arm-linux-androideabi --host=arm-linux-androideabi
I tried different gdb versions - unfortunately earlier or later I ran
into an error I could not solve.
For example gdb 7.5 has only some minor problems where libraries like
libsim.a, libbfd.a and other required additional processing using
ranlib. I fixed this by manually executing ranlib on the specified
libraries and then restarted the make process.
But in the end the build process stops with the following error:
make[5]: Leaving directory `/tmp/gdb-7.5/gdb/gdbserver'
gcc -c -g -O2 -I. -I. -I./../common -I./../regformats
-I./../../include -I./../gnulib/import -Ibuild-gnulib-gdbserver/import
-Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral
-Wno-char-subscripts -Werror linux-arm-low.c
linux-arm-low.c: In function âarm_prepare_to_resumeâ:
linux-arm-low.c:714:9: error: cast to pointer from integer of different
size [-Werror=int-to-pointer-cast]
linux-arm-low.c:720:9: error: cast to pointer from integer of different
size [-Werror=int-to-pointer-cast]
linux-arm-low.c:734:9: error: cast to pointer from integer of different
size [-Werror=int-to-pointer-cast]
linux-arm-low.c:740:9: error: cast to pointer from integer of different
size [-Werror=int-to-pointer-cast]
BTW: Build environment is Ubuntu 12.04 (x86_64).
Robert