[Android porting] Bionic libc build error [undefined reference to `__aeabi_unwind_cpp_pr0']

1,029 views
Skip to first unread message

Shankar

unread,
Nov 13, 2008, 2:46:52 AM11/13/08
to android-porting
Hi All,

I am trying to build Android with our toolchain, this toolchain
(libgcc.a) doesn't have `__aeabi_unwind_cpp_pr0'.
For glibc we use to disable it by providing --disable-libunwind-
exceptions option to configure of glibc.

Is there anyway to disable this error in bionic libc?

Shankar

David Turner

unread,
Nov 13, 2008, 2:30:03 PM11/13/08
to android...@googlegroups.com
it's an error in your toolchain, not in Bionic :-)

you should really use the toolchain provided with Android. Anything else is not supported.

Shankar

unread,
Nov 13, 2008, 8:38:13 PM11/13/08
to android-porting
Yes I agree that its not error of bionic. also I agree on "Anything
else is not supported"

I am just asking for help, some pointers...

Android toolchain does not recongnize armv7a, so we can not use it for
cortex-a8.
Is there any document/url/etc which can help me to port bionic for
armv7a using CodeSourcery toolchains?

Is anyone trying to build android platform for cortex?

Shankar
> > Shankar- Hide quoted text -
>
> - Show quoted text -

David Turner

unread,
Nov 14, 2008, 6:14:11 AM11/14/08
to android...@googlegroups.com
On Fri, Nov 14, 2008 at 2:38 AM, Shankar <shankar...@gmail.com> wrote:

Yes I agree that its not error of bionic. also I agree on "Anything
else is not supported"

I am just asking for help, some pointers...

Android toolchain does not recongnize armv7a, so we can not use it for
cortex-a8.
Is there any document/url/etc which can help me to port bionic for
armv7a using CodeSourcery toolchains?

no, and I doubt we'll support the CodeSourcery toolchain (I don't know the exact reason)

Is anyone trying to build android platform for cortex?

I clearly don't know, but wouldn't be surprised if we didn't plan to support cortex in a relatively
short future. Have you tried to rebuild the android toolchain with different CPU support ?

I think you essentially need to modify one Makefile or Makefile.in file to change the options
passed to the configure script, but I don't remember which one.

 

Brian Swetland

unread,
Nov 14, 2008, 6:20:49 AM11/14/08
to android...@googlegroups.com

David,

I'd need to check, but I'm not sure all the cortex/armv7 support is in
the gcc mainline yet, so we might well be looking at the codesourcery
based stuff in the near term. I'm sure anyone looking at OMAP3, MSM8K,
etc will want ARMv7 support.

[David Turner <di...@android.com>]

Shankar

unread,
Nov 14, 2008, 7:14:08 AM11/14/08
to android-porting
Where I will get Android toolchain source? Does it have some howto for
rebuild??

Is it possible to get patches from code sourcery and apply it to
Android toolchain?

Shankar
> > passed to the configure script, but I don't remember which one.- Hide quoted text -

Brian Swetland

unread,
Nov 14, 2008, 7:18:44 AM11/14/08
to android...@googlegroups.com

http://android.git.kernel.org/pub/android-toolchain-20081019.tar.bz2

A README and configure script at the top level should guide you through
rebuilding the source as it was built for the "prebuilt" version used by
the open source platform.

It might be easier to pick up the configuration and changes from the
android toolchain and apply them to the code sourcery toolchain than the
other way around. It's a little tricky right now as the individual
patches aren't broken out -- we'll try to make this cleaner in future
releases of the toolchain sources.

[Shankar <shankar...@gmail.com>]

Rupesh Gujare

unread,
Nov 14, 2008, 7:38:18 AM11/14/08
to android...@googlegroups.com

Shankar

unread,
Nov 15, 2008, 10:57:44 AM11/15/08
to android-porting
Hi Brain/David,

I have downloaded the android toolchain code, could you please let me
know the options passed to configure script?
It will save my time.
I want first to rebuild andorid toolchain and code sourcery
toolchain , then I will give a try to add patches of androd into
codesourcery.

Shankar

On Nov 14, 9:18 pm, Brian Swetland <swetl...@google.com> wrote:
> http://android.git.kernel.org/pub/android-toolchain-20081019.tar.bz2
>
> A README and configure script at the top level should guide you through
> rebuilding the source as it was built for the "prebuilt" version used by
> the open source platform.
>
> It might be easier to pick up the configuration and changes from the
> android toolchain and apply them to the code sourcery toolchain than the
> other way around.  It's a little tricky right now as the individual
> patches aren't broken out -- we'll try to make this cleaner in future
> releases of the toolchain sources.
>
> [Shankar <shankar.ban...@gmail.com>]

Brian Swetland

unread,
Nov 15, 2008, 10:42:54 PM11/15/08
to android...@googlegroups.com

> On Nov 14, 9:18 pm, Brian Swetland <swetl...@google.com> wrote:
> > http://android.git.kernel.org/pub/android-toolchain-20081019.tar.bz2
> >
> > A README and configure script at the top level should guide you through
^^^^^^^^^^^^^^^^^^^^^^^^^^^

> > rebuilding the source as it was built for the "prebuilt" version used by
> > the open source platform.

[Shankar <shankar...@gmail.com>]


> I have downloaded the android toolchain code, could you please let me
> know the options passed to configure script?
> It will save my time.

From the included README file (mentioned in my original reply):

To build the default arm-eabi toolchain, use the following configure
options:

mkdir <toolchain object directory>
cd <toolchain object directory>
<source directory>/configure --target=arm-eabi \
--prefix=<toolchain install directory> \


Reply all
Reply to author
Forward
0 new messages