public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
From: David Fernandez <david.fernandez.work@googlemail.com>
To: "crossgcc@sourceware.org" <crossgcc@sourceware.org>
Subject: Re: arm[eb]-eabi-gcc for cortex-r4[f] with newlib has problems with multilib/libraries.
Date: Fri, 05 Jul 2013 23:02:00 -0000	[thread overview]
Message-ID: <51D7507F.5040401@googlemail.com> (raw)
In-Reply-To: <51BBAFD2.3040300@googlemail.com>

On 15/06/13 01:05, David Fernandez wrote:
> Hi there,
>
> I've built an arm[eb]-eabi-gcc for --with-cpu=cortex-r4[f]
> --with-mode=thumb --with-newlib, both manually and with crosstool-ng. In
> all cases, I get a strange problem when building a main function with
> ful C runtime library support like this (include the latest version, but
> it happens with the little endian, and with the cortex-r4 too):
>
> $ armeb-eabi-gcc -mbig-endian -mthumb -march=armv7-r -mcpu=cortex-r4f -o
> alignpack alignpack.c
> /opt/x-tools/armeb-unknown-eabi/lib/gcc/armeb-unknown-eabi/4.7.2/../../../../armeb-unknown-eabi/bin/ld:
> error:
> /opt/x-tools/armeb-unknown-eabi/lib/gcc/armeb-unknown-eabi/4.7.2/../../../../armeb-unknown-eabi/lib/libc.a(lib_a-strlen-armv7.o):
> Conflicting architecture profiles A/R
> /opt/x-tools/armeb-unknown-eabi/lib/gcc/armeb-unknown-eabi/4.7.2/../../../../armeb-unknown-eabi/bin/ld:
> failed to merge target specific data of file
> /opt/x-tools/armeb-unknown-eabi/lib/gcc/armeb-unknown-eabi/4.7.2/../../../../armeb-unknown-eabi/lib/libc.a(lib_a-strlen-armv7.o)
> collect2: error: ld returned 1 exit status
>
> I'm pretty sure that when I built this same kind of compiler for a
> cortex-m3, it did not do this.
>
> Anyway, find attached the alignpack.c, and the crosstool-ng log. I had
> to use newlib-2.0.0 to make it work with the tuple armeb-xxx.
>
> I've tried additional multilib permutations, but the errors keep appearing.
>
> Any thoughts?
>
> Regards.
> David Fernandez
>
Hi there,

After two weeks, the solution to this problem pop out to me. It was a
problem in the newlib strlen implementation, that was forcing the
armv7-a architecture.

This was solved some time ago in the cvs sources for newlib.

Regards.
David F.

--
For unsubscribe information see http://sourceware.org/lists.html#faq

      reply	other threads:[~2013-07-05 23:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-15  0:05 David Fernandez
2013-07-05 23:02 ` David Fernandez [this message]

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=51D7507F.5040401@googlemail.com \
    --to=david.fernandez.work@googlemail.com \
    --cc=crossgcc@sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).