[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patches] problem configuring/compiling eglibc svn trunk for mpc8540
- To: Philippe De Muyter <phdm@xxxxxxxxx>
- Subject: Re: [patches] problem configuring/compiling eglibc svn trunk for mpc8540
- From: "Joseph S. Myers" <joseph@xxxxxxxxxxxxxxxx>
- Date: Sun, 9 Dec 2007 21:04:54 +0000 (UTC)
On Sun, 9 Dec 2007, Philippe De Muyter wrote:
> On Sat, Dec 08, 2007 at 02:03:02AM +0000, Joseph S. Myers wrote:
> > On Fri, 7 Dec 2007, Philippe De Muyter wrote:
> >
> > > But when I try to configure/compile eglibc I do not succeed to convince
> > > eglibc to select/compile the appropriate e500 version :
> >
> > You need to have the ports add-on in your source tree (inside the libc/
> > directory not parallel to it unless your --enable-add-ons argument
> > explicitly gives the path to the add-on) for E500 support.
>
> Thanks. I have now used --enable-add-ons=$src/eglibc/ports, and configure
> does not complain anymore about --with-cpu=e500, but compilation still fails
> with
Do not use --with-cpu=e500; --with-cpu should only be used with CPU names
accepted by GCC's -mcpu, and e500 is not such a CPU name.
If you give a path with --enable-add-ons, I think you need to include the
default add-ons as well: --enable-add-ons=$src/eglibc/ports,nptl,libidn.
If you configure correctly for E500, ports/sysdeps/powerpc/preconfigure
will detect that the compiler predefines __NO_FPRS__ (while you've
configured EGLIBC to use hardware floating-point, --with-fp which is the
default) and so select the associated sysdeps directories. If
ports/sysdeps/powerpc/preconfigure fails to set the base_machine value
that way, you'll need to debug what's going wrong with the configure tests
and which macros your compiler is predefining.
--
Joseph S. Myers
joseph@xxxxxxxxxxxxxxxx