[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patches] eglibc builds and tests on mpc8540
- To: Clemens Koller <clemens.koller@xxxxxxxxxxx>
- Subject: Re: [patches] eglibc builds and tests on mpc8540
- From: Steven Munroe <munroesj@xxxxxxxxxx>
- Date: Tue, 29 May 2007 09:01:48 -0500
Clemens Koller wrote:
> Hi, Jim.
>
> Jim Blandy schrieb:
>> Clemens Koller <clemens.koller@xxxxxxxxxxx> writes:
>>> Currently, I have two open issues:
>>> 1. --with-cpu=8540 doesn't work. Error: The 8540 in powerpc is not
>>> supported.
>>
>> What happens, exactly?
>
> + mkdir build
> + cd build
> + ../eglibc/configure --prefix=/usr --libexecdir=/usr/lib
> --with-headers=/usr/ports/ckcore/eglibc-svn/work/pkg/usr/include
> --enable-kernel=2.6.0 --enable-add-ons --enable-shared
> --disable-profile --with-tls --with-__thread --without-gd
> --without-cvs --with-fp --without-selinux --with-cpu=8540
> checking build system type... powerpc-unknown-linux-gnu
> checking host system type... powerpc-unknown-linux-gnu
> configure: running configure fragment for add-on libidn
> configure: running configure fragment for add-on nptl
> checking sysdep dirs... configure: error: The 8540 subspecies of
> powerpc is not supported.
> =======> ERROR: Building
> '/usr/ports/ckcore/eglibc-svn/eglibc#2.5-svn2289-1.pkg.tar.gz' failed.
>
to configure --with-cpu for glibc/eglibc you need to add a
./sysdeps/powerpc/powerpc32/8540 directory.
in glibc --with-cpu does two things. it applies -mcpu=<cpu-type> to each
"C" compile and allows cpu-specific tuning via assembler (if you have
some) overrides. Such code must be located in a
./sysdeps/powerpc/powerpc32/<cpu-type> directory AND the configure
checks that the directory is there!
If you don't have any 8540 specific code you can use the
CFLAGS="-mcpu=8540" instead.
See http://www.penguinppc64.org/dev/glibc/glibc-powerpc-cpu-addon.html
for more details.