jeffiedward <j.je...@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-h...@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