public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Cross compile from i686-pc-linux-gnu to mipsel-linux
@ 2005-07-29 17:52 Andrey V. Romanchev
  2005-07-30  0:44 ` Ian Lance Taylor
  0 siblings, 1 reply; 4+ messages in thread
From: Andrey V. Romanchev @ 2005-07-29 17:52 UTC (permalink / raw)
  To: gcc-help

Hello.
I trying to build gcc for mipsel-linux architecture.
CC=mipsel-linux-gcc CFLAGS="-Os -mips32 -mtune=4kc" 
../gcc-3.4.3/configure --host=mipsel-linux --target=mipsel-linux 
--build=i686-linux --prefix=/home/me/work/compiling/gcc/build-gcc
make
and get the following:
[skip]
Configuring in build-i686-pc-linux-gnu/libiberty
configure: creating cache ../config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... makeinfo
checking for perl... perl
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for i686-linux-ar... no
checking for ar... ar
checking for i686-linux-ranlib... no
checking for ranlib... ranlib
checking for i686-linux-gcc... gcc
checking for suffix of object files... configure: error: cannot compute 
suffix of object files: cannot compile
See `config.log' for more details.
make: *** [configure-build-libiberty] Error 1

As I understand it tries to configure modules which run on the build 
machine. I am not very competent in gcc compile and I trying to ask more 
able people :)

What's wrong I do?

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

* Re: Cross compile from i686-pc-linux-gnu to mipsel-linux
  2005-07-29 17:52 Cross compile from i686-pc-linux-gnu to mipsel-linux Andrey V. Romanchev
@ 2005-07-30  0:44 ` Ian Lance Taylor
  2005-07-30  5:53   ` Andrey V. Romanchev
       [not found]   ` <42EB17E4.4040509@smartlogic.ru>
  0 siblings, 2 replies; 4+ messages in thread
From: Ian Lance Taylor @ 2005-07-30  0:44 UTC (permalink / raw)
  To: Andrey V. Romanchev; +Cc: gcc-help

"Andrey V. Romanchev" <negative@smartlogic.ru> writes:

> I trying to build gcc for mipsel-linux architecture.
> CC=mipsel-linux-gcc CFLAGS="-Os -mips32 -mtune=4kc"
> ../gcc-3.4.3/configure --host=mipsel-linux --target=mipsel-linux
> --build=i686-linux --prefix=/home/me/work/compiling/gcc/build-gcc

This is not doing what I would call a cross-compiler from
i686-pc-linux-gnu to mipsel-linux.  I would call this building a
native compiler for mipsel-linux, and doing the build on
i686-pc-linux-gnu.

If you want to build a cross-compiler which runs on i686-pc-linux-gnu
and generates code which runs on mipsel-linux, then this will suffice:

configure --target=mipsel-linux --prefix=...

Since you are talking about a cross-compiler to a Linux target, I also
recommend looking at
    http://kegel.com/crosstool/

> make
> and get the following:
> [skip]
> Configuring in build-i686-pc-linux-gnu/libiberty
> configure: creating cache ../config.cache
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking for makeinfo... makeinfo
> checking for perl... perl
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking for i686-linux-ar... no
> checking for ar... ar
> checking for i686-linux-ranlib... no
> checking for ranlib... ranlib
> checking for i686-linux-gcc... gcc
> checking for suffix of object files... configure: error: cannot
> compute suffix of object files: cannot compile
> See `config.log' for more details.
> make: *** [configure-build-libiberty] Error 1
> 
> As I understand it tries to configure modules which run on the build
> machine. I am not very competent in gcc compile and I trying to ask
> more able people :)

That said, I don't know what is happening here.  If you still want to
figure it out, you should look at the file
    build-i686-pc-linux-gnu/libiberty/config.log
(as the error message suggests).

Ian

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

* Re: Cross compile from i686-pc-linux-gnu to mipsel-linux
  2005-07-30  0:44 ` Ian Lance Taylor
@ 2005-07-30  5:53   ` Andrey V. Romanchev
       [not found]   ` <42EB17E4.4040509@smartlogic.ru>
  1 sibling, 0 replies; 4+ messages in thread
From: Andrey V. Romanchev @ 2005-07-30  5:53 UTC (permalink / raw)
  To: gcc-help

Ian Lance Taylor wrote:
> "Andrey V. Romanchev" <negative@smartlogic.ru> writes:
> 
> 
>>I trying to build gcc for mipsel-linux architecture.
>>CC=mipsel-linux-gcc CFLAGS="-Os -mips32 -mtune=4kc"
>>../gcc-3.4.3/configure --host=mipsel-linux --target=mipsel-linux
>>--build=i686-linux --prefix=/home/me/work/compiling/gcc/build-gcc
> 
> 
> This is not doing what I would call a cross-compiler from
> i686-pc-linux-gnu to mipsel-linux.  I would call this building a
> native compiler for mipsel-linux, and doing the build on
> i686-pc-linux-gnu.

Yes. It exactly what I need - native mipsel-linux compiler.
Is there any docs or any hints for this?


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

* Re: Cross compile from i686-pc-linux-gnu to mipsel-linux
       [not found]     ` <m3u0ic4xxg.fsf@gossamer.airs.com>
@ 2005-07-30  8:17       ` Andrey V. Romanchev
  0 siblings, 0 replies; 4+ messages in thread
From: Andrey V. Romanchev @ 2005-07-30  8:17 UTC (permalink / raw)
  To: gcc-help

Ian Lance Taylor wrote:
>>>>I trying to build gcc for mipsel-linux architecture.
>>>>CC=mipsel-linux-gcc CFLAGS="-Os -mips32 -mtune=4kc"
>>>>../gcc-3.4.3/configure --host=mipsel-linux --target=mipsel-linux
>>>>--build=i686-linux --prefix=/home/me/work/compiling/gcc/build-gcc
>>>
>>>This is not doing what I would call a cross-compiler from
>>>i686-pc-linux-gnu to mipsel-linux.  I would call this building a
>>>native compiler for mipsel-linux, and doing the build on
>>>i686-pc-linux-gnu.
>>
>>Yes. It exactly what I need - native mipsel-linux compiler.
>>Is there any docs or any hints for this?
> 
> 
> You need to build a cross-compiler first, and use that to build a
> native compiler.

CC=mipsel-linux-gcc
I already have cross-compiler.

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

end of thread, other threads:[~2005-07-30  8:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-29 17:52 Cross compile from i686-pc-linux-gnu to mipsel-linux Andrey V. Romanchev
2005-07-30  0:44 ` Ian Lance Taylor
2005-07-30  5:53   ` Andrey V. Romanchev
     [not found]   ` <42EB17E4.4040509@smartlogic.ru>
     [not found]     ` <m3u0ic4xxg.fsf@gossamer.airs.com>
2005-07-30  8:17       ` Andrey V. Romanchev

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).