mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Re: ARM unwind issue
Date: Mon, 28 Jan 2013 19:44:54 -0500	[thread overview]
Message-ID: <20130129004454.GJ20323@brightrain.aerifal.cx> (raw)
In-Reply-To: <CAPfzE3a0BaJmpx2tXD+2B57RHTFh6qHtCgKUSYxj1ERUx+qyeQ@mail.gmail.com>

On Tue, Jan 29, 2013 at 12:02:37PM +1300, Andre Renaud wrote:
> Hi,
> I'm trying to build some software using musl on an ARM platform, and
> am getting the following error:
> arm-none-linux-gnueabi-gcc
> -specs=/home/andre/work/package-builder/staging/lib/musl-gcc.specs -o
> program program.o
> /tools/arm/arm-2010q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld:
> program: hidden symbol `__aeabi_unwind_cpp_pr0' in
> /tools/arm/arm-2010q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/libgcc_eh.a(unwind-arm.o)
> is referenced by DSO
> 
> Any ideas on what I've messed up in either my musl build, or my
> cflags/lflags to cause this?

musl itself does not use any unwinding facilities. However, on ARM, at
least with some gcc versions, some arithmetic functions in libgcc.a
are pulling in exception stuff for no good reason. I believe this is a
bug in the CFLAGS gcc is using to build libgcc, rather than an
intentional bad behavior, but I haven't looked into it in depth.

With that said, it looks like the problem is that, when musl libc.so
was built, it contained references to __aeabi_unwind_cpp_pr0 (from
libgcc.a) which were not resolved. Normally musl's configure script
also includes -lgcc_eh in $(LIBCC) for precisely this reason, so the
first thing I would do is check your config.mak and see what configure
chose for $(LIBCC).

If you figure out what went wrong, please report it to the list so we
can try to avoid the same thing happening for other users.

Rich


  reply	other threads:[~2013-01-29  0:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-28 23:02 Andre Renaud
2013-01-29  0:44 ` Rich Felker [this message]
2013-01-29  5:03 ` Isaac Dunham
2013-01-29 19:56   ` Andre Renaud
2013-01-29 23:55     ` Rich Felker

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=20130129004454.GJ20323@brightrain.aerifal.cx \
    --to=dalias@aerifal.cx \
    --cc=musl@lists.openwall.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).