public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
From: "acrux@cruxppc.org" <acrux@linuxmail.org>
To: libc-ports@sourceware.org
Subject: Re: [PATCH] powerpc: 405/440/464/476 support and optimizations
Date: Wed, 18 Jan 2012 20:31:00 -0000	[thread overview]
Message-ID: <33163939.post@talk.nabble.com> (raw)
In-Reply-To: <AANLkTi=exjK4EvGG9FoU+iK8W3XjYzWew8q3o_t20URu@mail.gmail.com>


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:

[...]
gcc -m32 -nostdlib -nostartfiles -o
/home/999/new/work/src/build32/sunrpc/rpcgen -mhard-float
-Wl,-dynamic-linker=/lib/ld.so.1   -Wl,-z,combreloc -Wl,-z,relro
-Wl,--hash-style=both /home/999/new/work/src/build32/csu/crt1.o
/home/999/new/work/src/build32/csu/crti.o `gcc -m32 -mhard-float
--print-file-name=crtbegin.o`
/home/999/new/work/src/build32/sunrpc/rpc_main.o
/home/999/new/work/src/build32/sunrpc/rpc_hout.o
/home/999/new/work/src/build32/sunrpc/rpc_cout.o
/home/999/new/work/src/build32/sunrpc/rpc_parse.o
/home/999/new/work/src/build32/sunrpc/rpc_scan.o
/home/999/new/work/src/build32/sunrpc/rpc_util.o
/home/999/new/work/src/build32/sunrpc/rpc_svcout.o
/home/999/new/work/src/build32/sunrpc/rpc_clntout.o
/home/999/new/work/src/build32/sunrpc/rpc_tblout.o
/home/999/new/work/src/build32/sunrpc/rpc_sample.o 
-Wl,-rpath-link=/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/libc.so.6
/home/999/new/work/src/build32/libc_nonshared.a -Wl,--as-needed
/home/999/new/work/src/build32/elf/ld.so -Wl,--no-as-needed -lgcc
-Wl,--as-needed -lgcc_s  -Wl,--no-as-needed `gcc -m32 -mhard-float
--print-file-name=crtend.o` /home/999/new/work/src/build32/csu/crtn.o
gcc -m32 rpcinfo.c -c -std=gnu99 -fgnu89-inline -O2 -Wall -Winline
-Wwrite-strings -fmerge-all-constants -mcpu=440 -mcpu=powerpc -pipe
-mhard-float -mnew-mnemonics -Wstrict-prototypes -mlong-double-128    
-I../include -I/home/999/new/work/src/build32/sunrpc
-I/home/999/new/work/src/build32 -I../sysdeps/powerpc/powerpc32/elf
-I../sysdeps/powerpc/elf
-I../ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440
-I../ports/sysdeps/powerpc/powerpc32/440
-I../ports/sysdeps/powerpc/powerpc32/405
-I../sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu
-I../sysdeps/powerpc/powerpc32/fpu
-I../nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32
-I../ports/sysdeps/unix/sysv/linux/powerpc/powerpc32
-I../sysdeps/unix/sysv/linux/powerpc/powerpc32
-I../nptl/sysdeps/unix/sysv/linux/powerpc
-I../ports/sysdeps/unix/sysv/linux/powerpc
-I../sysdeps/unix/sysv/linux/powerpc -I../sysdeps/ieee754/ldbl-128ibm
-I../sysdeps/ieee754/ldbl-opt -I../nptl/sysdeps/unix/sysv/linux
-I../nptl/sysdeps/pthread -I../sysdeps/pthread
-I../ports/sysdeps/unix/sysv/linux -I../sysdeps/unix/sysv/linux
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman
-I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv
-I../ports/sysdeps/unix/sysv -I../sysdeps/unix/sysv
-I../sysdeps/unix/powerpc -I../nptl/sysdeps/unix -I../ports/sysdeps/unix
-I../sysdeps/unix -I../sysdeps/posix -I../ports/sysdeps/powerpc/powerpc32
-I../sysdeps/powerpc/powerpc32 -I../sysdeps/wordsize-32
-I../sysdeps/powerpc/fpu -I../nptl/sysdeps/powerpc
-I../ports/sysdeps/powerpc -I../sysdeps/powerpc -I../sysdeps/ieee754/dbl-64
-I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf
-I../sysdeps/generic -I../nptl -I../ports  -I.. -I../libio -I. -nostdinc
-isystem /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/include -isystem
/home/999/new/work/pkg/usr/include -D_LIBC_REENTRANT -include
../include/libc-symbols.h   -DNOT_IN_libc=1    -D_RPC_THREAD_SAFE_ -o
/home/999/new/work/src/build32/sunrpc/rpcinfo.o -MD -MP -MF
/home/999/new/work/src/build32/sunrpc/rpcinfo.o.dt -MT
/home/999/new/work/src/build32/sunrpc/rpcinfo.o
gcc -m32 -nostdlib -nostartfiles -o
/home/999/new/work/src/build32/sunrpc/rpcinfo -mhard-float
-Wl,-dynamic-linker=/lib/ld.so.1   -Wl,-z,combreloc -Wl,-z,relro
-Wl,--hash-style=both /home/999/new/work/src/build32/csu/crt1.o
/home/999/new/work/src/build32/csu/crti.o `gcc -m32 -mhard-float
--print-file-name=crtbegin.o`
/home/999/new/work/src/build32/sunrpc/rpcinfo.o 
-Wl,-rpath-link=/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/libc.so.6
/home/999/new/work/src/build32/libc_nonshared.a -Wl,--as-needed
/home/999/new/work/src/build32/elf/ld.so -Wl,--no-as-needed -lgcc
-Wl,--as-needed -lgcc_s  -Wl,--no-as-needed `gcc -m32 -mhard-float
--print-file-name=crtend.o` /home/999/new/work/src/build32/csu/crtn.o
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

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



cheers,
--nico

[1] http://www.acube-systems.biz/index.php?page=hardware&pid=2
[2]
http://myapm.apm.com/MyAMCC/jsp/public/productDetail/product_detail.jsp?productID=PPC440EP


Ryan S. Arnold wrote:
> 
> On Mon, Dec 13, 2010 at 2:25 PM, Ryan Arnold <rsa@us.ibm.com> wrote:
>> Sorry for the delinquent response.  This looks good to me and I think it
>> should be checked in.
>>
>> I'd like for someone with a 405, 440, or 464 to test it further.  As far
>> as we know the code only uses instructions available on all of these
>> platforms.
>>
>> I'd like to stress that it was authored by Todd Iglehart
>> <iglehart@us.ibm.com> and contributed by IBM.  Luis did the fixup and
>> authored the implies structure.
>>
>> Ryan S. Arnold
> 
> I've checked this patch into glibc-ports under:
> 
> commit # a72cc2b29d00207fd8e2ee4612502339a14816b6
> 
> Just a general note on configuration; some of these processors have a
> floating point unit but I believe all of them default to soft-fp.
> 
> GLIBC configure won't recognize --with-cpu=476fp even though the
> compiler might recognize -mcpu=476fp.
> 
> If you want to configure a hard-fp build just pass --with-cpu=476
> --with-fp instead and a new Makefile fragment will make sure that
> -mhard-float is added to CFLAGS and ASFLAGS.
> 
> Ryan S. Arnold
> 
> 

-- 
View this message in context: http://old.nabble.com/-PATCH--powerpc%3A-405-440-464-476-support-and-optimizations-tp29607194p33163939.html
Sent from the Sourceware - libc-ports mailing list archive at Nabble.com.

  parent reply	other threads:[~2012-01-18 20:31 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 [this message]
2012-01-19 19:35             ` Carlos O'Donell
2012-01-20 14:24               ` acrux
2012-01-20 15:52                 ` Ryan S. Arnold
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=33163939.post@talk.nabble.com \
    --to=acrux@linuxmail.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).