public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
From: "Ryan S. Arnold" <ryan.arnold@gmail.com>
To: acrux <acrux_it@libero.it>
Cc: "Carlos O'Donell" <carlos@systemhalted.org>, libc-ports@sourceware.org
Subject: Re: [PATCH] powerpc: 405/440/464/476 support and optimizations
Date: Fri, 20 Jan 2012 15:52:00 -0000	[thread overview]
Message-ID: <CAAKybw9RLGE93P5OQpf0NSd-vmuG+JbHnKAQF8afUAqL9rv5ig@mail.gmail.com> (raw)
In-Reply-To: <20120120152428.df02fbc4.acrux_it@libero.it>

On Fri, Jan 20, 2012 at 8:24 AM, acrux <acrux_it@libero.it> wrote:
> On Thu, 19 Jan 2012 14:34:50 -0500
> "Carlos O'Donell" <carlos@systemhalted.org> wrote:
>
>> On Wed, Jan 18, 2012 at 3:30 PM, acrux@cruxppc.org
>> <acrux@linuxmail.org> wrote:
>> >
>> > just tried to build glibc-2.13 "--with-cpu=440 --with-fp" on a
>> > Sam440ep[1] (PPC440EP SoC [2]) but it remains stuck in this point:
>> > CPP='gcc -m32 -E -x c-header'
>> >  /home/999/new/work/src/build32/elf/ld.so.1
>> > --library-path
>> > /home/999/new/work/src/build32:/home/999/new/work/src/build32/math:/home/999/new/work/src/build32/elf:/home/999/new/work/src/build32/dlfcn:/home/999/new/work/src/build32/nss:/home/999/new/work/src/build32/nis:/home/999/new/work/src/build32/rt:/home/999/new/work/src/build32/resolv:/home/999/new/work/src/build32/crypt:/home/999/new/work/src/build32/nptl
>> > /home/999/new/work/src/build32/sunrpc/rpcgen -Y ../scripts -c
>> > rpcsvc/bootparam_prot.x -o
>> > /home/999/new/work/src/build32/sunrpc/xbootparam_prot.T
>>
>> This is the first use of the newly build dynamic loader.
>>
>> A failure here means that the dynamic loader has not been correctly
>> compiled.
>>
>> You should debug this to figure out what is going wrong in the loader.
>>
>
> i know, but i've no resource and i guess not enough skill to debug and
> fix it.
>
> As i received a borda with a 440EP SoC, just only for fun, i
> tested a build "--with-cpu=440 --with-fp".
> I'd like to know if somobody really tested these features.
>
>> > Here my config.log: http://cruxppc.org/~acrux/config.log
>> > Instead i successfully built glibc-2.13 without "--with-cpu=440
>> > --with-fp" . I'm using an updated CRUX PPC 2.7 (32bit): gcc-4.5.3,
>> > binutils-2.21.1, glibc-2.12.2
>>
>> Have you tested your compiler? What were the test results?
>>
>> Did you test binutils? What were the test results?
>>
>
> they finished their testsuites with only the well know failures for
> their own releases. Thus i can say they are good.

Integration can often expose problems, but I suspect something else is
going on here...

Does the machine you're building this toolchain on understand the
440fp instruction set?  If not then the loader is likely encountering
a sigill.

The solution to this situation is to enable cross compiling prior to
running configure.  This will prevent the build from attempting to run
any of the code.

echo "cross-compiling=yes" >> configparms

If that's not the problem I would suggest trying to build using 440 without fp.

If that works then I suspect that the problem is related to the string
routine optimizations that one of my guys put in for the 476
processor.  It was requested that we provide it to the entire 4xx
series since the instructions used (allegedly) weren't unique to the
476.

It'd be interesting to run a debugger against the loader at this point
and identify whether you're encountering a sigill or a sigsegv.

Ryan S. Arnold

  reply	other threads:[~2012-01-20 15:52 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-02 17:34 Luis Machado
2010-09-03 14:45 ` Ryan Arnold
2010-09-03 15:00   ` Luis Machado
2010-10-04 18:54     ` Luis Machado
2010-12-13 20:26       ` Ryan Arnold
2011-01-18 13:16         ` Ryan Arnold
2011-01-25 21:32           ` Joseph S. Myers
2012-01-18 20:31           ` acrux@cruxppc.org
2012-01-19 19:35             ` Carlos O'Donell
2012-01-20 14:24               ` acrux
2012-01-20 15:52                 ` Ryan S. Arnold [this message]
2012-01-20 18:03                   ` Carlos O'Donell
2012-01-23  0:41                   ` acrux
2012-01-23 15:48                     ` Ryan S. Arnold
2012-01-24 16:47                       ` acrux
2012-01-24 17:20                         ` Ryan S. Arnold
2012-01-24 17:41                           ` acrux
2012-01-24 17:59                             ` Ryan S. Arnold
2012-02-18  2:06                               ` acrux

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=CAAKybw9RLGE93P5OQpf0NSd-vmuG+JbHnKAQF8afUAqL9rv5ig@mail.gmail.com \
    --to=ryan.arnold@gmail.com \
    --cc=acrux_it@libero.it \
    --cc=carlos@systemhalted.org \
    --cc=libc-ports@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).