From: Pedro Alves <palves@redhat.com>
To: Robert <robert@mailueberfall.de>
Cc: gdb@sourceware.org
Subject: Re: Building gdb for Android using Android-ndk
Date: Wed, 23 Jan 2013 13:40:00 -0000 [thread overview]
Message-ID: <50FFE822.5010309@redhat.com> (raw)
In-Reply-To: <50FFAD68.2050901@mailueberfall.de>
On 01/23/2013 09:29 AM, Robert wrote:
> 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.
You're building a gdb that runs on Android? Or you want a GDBserver
that runs on Android, but debug from your x86_64 Ubuntu host?
If the latter, drop the --host part when building GDB, as you
want GDB that runs on x86_64. You'll then need to build GDBserver
as a separate step, for an Android host, so you'll use the --host
setting then. See:
http://www.sourceware.org/autobook/autobook/autobook_259.html
>
> 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
So is "gcc" itself a native compiler running on Android? If not,
then you should be seeing arm-linux-androideabi-gcc or some such here.
> -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
--
Pedro Alves
next prev parent reply other threads:[~2013-01-23 13:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-23 9:29 Robert
2013-01-23 13:40 ` Pedro Alves [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50FFE822.5010309@redhat.com \
--to=palves@redhat.com \
--cc=gdb@sourceware.org \
--cc=robert@mailueberfall.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox