Hi, I'm new to the GNU tool building environment. I'm trying to build cross GCC for powerpc-linux platform. I could compile binutils and first-stage gcc.
These are my configuration options: binutils: -------- ../configure --prefix=/home/tellabs/GNU/PPC --target=powerpc-linux-gnu make all make install first-stage gcc: --------------- ../configure --target=powerpc-linux-gnu --prefix=/home/tellabs/GNU/PPC --disable-shared --disable-threads --enable-languages=c make all-gcc make install-gcc 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' /home/tellabs/GNU/PPC/powerpc-linux-gnu/bin/ar: conftest.o: No such file or directory cp: cannot stat `conftest.a': No such file or directory /home/tellabs/GNU/PPC/powerpc-linux-gnu/bin/ranlib: 'conftest.a': No such file yes checking LD_LIBRARY_PATH variable... ok checking whether GCC supports -static-libgcc... -static-libgcc ... ... checking for broken __attribute__((alias()))... no checking whether to put _rtld_local into .sdata section... no checking for .preinit_array/.init_array/.fini_array support... no configure: error: Need linker with .init_array/.fini_array support. Could anyone please figure out what the problem is. Have any of you faced similar problem? It will be a great help if i get the result. I got stuck in this step for many days. Also please tell me whether the configuration options I ahve used is correct. Thanks in advance, Jeff.J -- View this message in context: http://www.nabble.com/glibc-configure%3A-error%3A-Need-linker-with-.init_array-.fini_array-support-tp25853540p25853540.html Sent from the gcc - Dev mailing list archive at Nabble.com.