linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* glibc for mpc860
@ 1999-09-10  0:41 Brendan Simon
       [not found] ` <37D88E48.23A1728C@jlc.net>
  1999-09-10 10:08 ` Marcus Sundberg
  0 siblings, 2 replies; 6+ messages in thread
From: Brendan Simon @ 1999-09-10  0:41 UTC (permalink / raw)
  To: linuxppc-embedded



Dan Malek wrote:

> > Any chance you could put your libc-1.99 (or a pointer to it) up at
> > ftp://linuxppc.cs.nmt.edu/pub/linuxppc/embedded/ ?

> It's been there a long time....libc-1.99-8xx.somthing_or_other.
> It's compiled with the -mcpu=860 flag, has the cache line stuff
> patched (so you can run copyback on the 8xx), and has the floating
> point assembler instructions removed.  It was built from
> glibc-0.961212-1o, and is a tar image.

What is the latest glibc that supports the MPC860 processor and where
can I get it.  I dowloaded the latest glibc (2.1.1) from a GNU mirror
and it compiled fine with my egcs-1.1.2 powerpc-linux cross-compiler.  I
tried adding the -mcpu=860 option and it barfed.  Problems with floating
point instructions as far as I can tell.  I assume that the glibc
developers do not consider targets without a floating point processor as
a non-priority (I wish the MPC860 had an FPU).  It looks like others
have ported/modified some glibc sources to work with the -mcpu=860
option.  What version is it and where can I get it.  Are the modified
glibc sources available as an archive and/or are there patches for any
other glibc sources.

Thanks,
Brendan Simon.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: glibc for mpc860
       [not found] ` <37D88E48.23A1728C@jlc.net>
@ 1999-09-10  6:37   ` Brendan Simon
  0 siblings, 0 replies; 6+ messages in thread
From: Brendan Simon @ 1999-09-10  6:37 UTC (permalink / raw)
  To: linuxppc-embedded


Dan Malek wrote:

> Brendan Simon wrote:
>
> > ... I dowloaded the latest glibc (2.1.1) from a GNU mirror
> > and it compiled fine with my egcs-1.1.2 powerpc-linux cross-compiler.  I
> > tried adding the -mcpu=860 option and it barfed.
>
> I still use the old libc-1.99 stuff.  I have not looked into
> using the newer glibc2.  I don't use cross compilers because of
> problems others have had.  That could be some of the problem
> as well.

I just downloaded the tar.gz archive from the LinuxPPC ftp site.  It has the libaries but not the source.  I thought at least
the headers would be in there but it doesn't look like it.
Excuse my ignorance but is the libc-1.99 stuff a GNU product ?

I assume by the statement "I don't use cross compilers" means that you use the native compiler on a LinuxPPC machine (powermac
or something).  This would mean that the instructions generated are for 601, 603 or whatever the default is.  This would surely
cause problems on an MPC860 processor wouln't it ?


> > ..... I assume that the glibc
> > developers do not consider targets without a floating point processor as
> > a non-priority (I wish the MPC860 had an FPU).
>
> It seems anything that is not the latest and fastest silicon is
> a non-priority :-).  I had the patches for the libraries in the
> past....no one was interested.  If you really need an FPU, you
> should probably be using something other than an 8xx.  I have done
> lots of cool 8xx applications, mostly communications related.
> I have never needed an FPU.

I don't have a NEED for an FPU for most projects but I still wish it was available.  There aren't too many CPUs these days that
don't have one built in (except for 8, 16 and some embedded 32 bit processors).  A lot of software these days assumes that an
FPU is present (eg. glibc by the looks of it).  It would be nice to have an FPU just incase it was useful.  I'm sure it wouldn't
cost Motorola much to put it on.  It's just a wish.  Sigh...  I thought the MPC8260 would have an FPU but it appears not.  Ah
well.


> > ......It looks like others
> > have ported/modified some glibc sources to work with the -mcpu=860
> > option.
>
> You shouldn't have to modify anything in the sources to get it
> to compile.  The hardest part is getting the flags in the Makefiles.

I think I used something like "CC=powerpc-linux CFLAGS=-mcpu=860 configure" when I tried compiling glibc.  The -mcpu=860 flag
was present in the commands generated by Make which caused the glibc build to die.  Maybe there is something like -msoft or -nfp
that I can try ?


> I attached the single file to be modified for the cache line stuff
> in the older glibc-1.99 sources.  You can also remove the floating
> point instructions in the set/long jump function, but it is not
> necessary.  Those are the only floating point instructions in
> the libraries.

I'll have a look.

Thanks,
Brendan Simon.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: glibc for mpc860
  1999-09-10  0:41 glibc for mpc860 Brendan Simon
       [not found] ` <37D88E48.23A1728C@jlc.net>
@ 1999-09-10 10:08 ` Marcus Sundberg
  1999-09-10 11:57   ` Kenneth Johansson
  1 sibling, 1 reply; 6+ messages in thread
From: Marcus Sundberg @ 1999-09-10 10:08 UTC (permalink / raw)
  To: linuxppc-embedded


Brendan Simon wrote:
> It looks like others
> have ported/modified some glibc sources to work with the -mcpu=860
> option.  What version is it and where can I get it.  Are the modified
> glibc sources available as an archive and/or are there patches for any
> other glibc sources.

Check the list-archives!
I've already posted patches and instructions twice, the last time
just a week ago:

Subject: Re: GLIBC wont compile for MPC860
Date: Thu, 02 Sep 1999 14:27:15 +0200
From: Marcus Sundberg <erammsu@kieraypc01.p.y.ki.era.ericsson.se>

//Marcus
-- 
-------------------------------+------------------------------------
        Marcus Sundberg        | http://www.stacken.kth.se/~mackan/
 Royal Institute of Technology |       Phone: +46 707 295404
       Stockholm, Sweden       |   E-Mail: mackan@stacken.kth.se

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: glibc for mpc860
  1999-09-10 10:08 ` Marcus Sundberg
@ 1999-09-10 11:57   ` Kenneth Johansson
  1999-09-13  2:37     ` Brendan Simon
  0 siblings, 1 reply; 6+ messages in thread
From: Kenneth Johansson @ 1999-09-10 11:57 UTC (permalink / raw)
  To: linuxppc-embedded


One solution to this could be that whoever is resposible for
"http://www.ppc.kernel.org/embedded.html" updated the pages. If only to point
to the mailing list and the archive that would make life easier for beginners.

Is it Cort Dougan who wrote the pages ??

Marcus Sundberg wrote:

>
> Check the list-archives!
> I've already posted patches and instructions twice, the last time
> just a week ago:
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: glibc for mpc860
  1999-09-10 11:57   ` Kenneth Johansson
@ 1999-09-13  2:37     ` Brendan Simon
  1999-09-13  4:45       ` Dan Malek
  0 siblings, 1 reply; 6+ messages in thread
From: Brendan Simon @ 1999-09-13  2:37 UTC (permalink / raw)
  Cc: linuxppc-embedded


Kenneth Johansson wrote:

> One solution to this could be that whoever is resposible for
> "http://www.ppc.kernel.org/embedded.html" updated the pages. If only to point
> to the mailing list and the archive that would make life easier for beginners.

Yep.  I agree.  The embedded mailing lists needs a few more pointers and
documentation if possible.


> > Check the list-archives!
> > I've already posted patches and instructions twice, the last time
> > just a week ago:

I only checked the linuxppc-embedded mailing list.  I have just found some
references in the linuxppc-dev mailing list.

Brendan Simon.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: glibc for mpc860
  1999-09-13  2:37     ` Brendan Simon
@ 1999-09-13  4:45       ` Dan Malek
  0 siblings, 0 replies; 6+ messages in thread
From: Dan Malek @ 1999-09-13  4:45 UTC (permalink / raw)
  To: bsimon; +Cc: linuxppc-embedded


Brendan Simon wrote:
> 
> Kenneth Johansson wrote:
> 
> > One solution to this could be that whoever is resposible for
> > "http://www.ppc.kernel.org/embedded.html" updated the pages. If only to point
> > to the mailing list and the archive that would make life easier for beginners.

I can put whatever you want there.  I just don't know how you
find that page without reading all of the other PPC pages that tell
you that stuff.  That page is basically a reminder that you found
the FTP server.

I guess I'll try to update it once I get all of the sources
checked into CVS.


	-- Dan

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1999-09-13  4:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-09-10  0:41 glibc for mpc860 Brendan Simon
     [not found] ` <37D88E48.23A1728C@jlc.net>
1999-09-10  6:37   ` Brendan Simon
1999-09-10 10:08 ` Marcus Sundberg
1999-09-10 11:57   ` Kenneth Johansson
1999-09-13  2:37     ` Brendan Simon
1999-09-13  4:45       ` Dan Malek

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).