public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* glibc configure: error: Need linker with .init_array/.fini_array  support
@ 2009-10-12 10:37 jeffiedward
  2009-10-12 17:08 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: jeffiedward @ 2009-10-12 10:37 UTC (permalink / raw)
  To: gcc



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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: glibc configure: error: Need linker with .init_array/.fini_array  support
  2009-10-12 10:37 glibc configure: error: Need linker with .init_array/.fini_array support jeffiedward
@ 2009-10-12 17:08 ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2009-10-12 17:08 UTC (permalink / raw)
  To: jeffiedward; +Cc: gcc

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-12 16:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-12 10:37 glibc configure: error: Need linker with .init_array/.fini_array support jeffiedward
2009-10-12 17:08 ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).