This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: glibc configure: error: Need linker with .init_array/.fini_array support
- From: Ian Lance Taylor <iant at google dot com>
- To: jeffiedward <j dot jeffi at yahoo dot co dot in>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 12 Oct 2009 09:58:58 -0700
- Subject: Re: glibc configure: error: Need linker with .init_array/.fini_array support
- References: <25853540.post@talk.nabble.com>
- Reply-to: gcc-help at gcc dot gnu dot org
jeffiedward <j.jeffi@yahoo.co.in> writes:
> when i try to compile glibc, the following configuration error occurs:
>
> ../configure CFLAGS=" -march=i686 -O2" --host=i686-pc-linux-gnu
> --target=powerpc-linux-gnu --prefix=/home/tellabs/GNU/PPC
> --with-headers=/home/tellabs/GNU/include
> --with-binutils=/home/tellabs/GNU/PPC/powerpc-linux-gnu/bin
>
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> configure: running configure fragment for add-on nptl
> ...
> ...
> checking for autoconf... autoconf
> checking whether autoconf works... yes
> checking whether ranlib is necessary... /tmp/ccE5O0vD.s: Assembler messages:
> /tmp/ccE5O0vD.s:7: Error: Unrecognized opcode: `pushl'
> /tmp/ccE5O0vD.s:8: Error: Unrecognized opcode: `movl'
> /tmp/ccE5O0vD.s:9: Error: Unrecognized opcode: `popl'
> /tmp/ccE5O0vD.s:10: Error: Unrecognized opcode: `ret'
This question is not appropriate for the gcc@gcc.gnu.org mailing
list. It should be sent to gcc-help@gcc.gnu.org. Please take any
follow ups to gcc-help. Thanks.
It looks like this is using the wrong assembler.
../configure CFLAGS=" -march=i686 -O2" --host=i686-pc-linux-gnu
--target=powerpc-linux-gnu --prefix=/home/tellabs/GNU/PPC
--with-headers=/home/tellabs/GNU/include
--with-binutils=/home/tellabs/GNU/PPC/powerpc-linux-gnu/bin
I'm not sure, but I think this should be --build=i686-pc-linux-gnu
--host=powerpc-linux-gnu. glibc is not a compilation tool and it does
not have a target. It only has a host.
Ian