public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Building gdb for Android using Android-ndk
@ 2013-01-23  9:29 Robert
  2013-01-23 13:40 ` Pedro Alves
  0 siblings, 1 reply; 5+ messages in thread
From: Robert @ 2013-01-23  9:29 UTC (permalink / raw)
  To: gdb

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-04-04  9:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-23  9:29 Building gdb for Android using Android-ndk Robert
2013-01-23 13:40 ` Pedro Alves
2013-01-23 14:54   ` Robert
2013-01-23 14:58     ` Pedro Alves
     [not found]       ` <35190382.post@talk.nabble.com>
2013-04-04  9:43         ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).