This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: glibc 2.4 powerpc configure -m-long-double error


2006/3/25, Niklaus <niklaus@gmail.com>:
> Hi,
>  I am getting the same error ,
>  I tried build glibc for headers with gcc 4.1 but still it is giving
> the same error. Can someone help me out .
>
>  gcc -v
> Using built-in specs.
> Target: i686-pc-linux-gnu
> Configured with: /home/nik/cross/gcc-4.1.0/configure
> --prefix=/home/nik/utils/ --enable-languages=c,c++
> Thread model: posix
> gcc version 4.1.0

This is your HOSTCC, but you want to crosscompile for target powerpc-linux.

> [nik@localhost glibcheaders]$ libc_cv_ppc_machine=yes
> CC=i686-pc-linux-gnu-gcc-4.1.0  ~/cross/glibc-2.4/configure
> --prefix=/usr --host=powerpc-deb-linux --without-cvs
> --disable-sanity-checks
> --with-headers=/home/nik/utils/powerpc-deb-linux/include
> --enable-hacker-mode
> configure: WARNING: If you wanted to set the --build type, don't use --host.
>     If a cross compiler is detected then cross compile mode will be used.
> checking build system type... i686-pc-linux-gnu
> checking host system type... powerpc-deb-linux-gnu
> configure: running configure fragment for add-on nptl
> checking sysdep dirs... sysdeps/powerpc/powerpc32/elf
> sysdeps/powerpc/elf sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu
> sysdeps/powerpc/powerpc32/fpu
> nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32
> sysdeps/unix/sysv/linux/powerpc/powerpc32
> nptl/sysdeps/unix/sysv/linux/powerpc sysdeps/unix/sysv/linux/powerpc
> sysdeps/ieee754/ldbl-128ibm sysdeps/ieee754/ldbl-opt
> nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread
> sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common
> sysdeps/unix/mman sysdeps/unix/inet nptl/sysdeps/unix/sysv
> sysdeps/unix/sysv sysdeps/unix/powerpc nptl/sysdeps/unix sysdeps/unix
> sysdeps/posix sysdeps/powerpc/powerpc32 sysdeps/wordsize-32
> sysdeps/powerpc/fpu nptl/sysdeps/powerpc sysdeps/powerpc
> sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754
> sysdeps/generic/elf sysdeps/generic
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether ln -s works... yes
> checking for powerpc-deb-linux-gcc... i686-pc-linux-gnu-gcc-4.1.0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

So, the configure script cannot detect a "powerpc-deb-linux"
cross-compiler.  Go, read some documentation about cross compiling.

http://www.linuxfromscratch.org/clfs/view/cross-lfs/ppc is a good start!

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]