Re: Cross-compile tar-1.13

2008-08-30 Thread Ralf Wildenhues
Hello Steven,

* Steven Woody wrote on Sat, Aug 30, 2008 at 05:10:06PM CEST:
> 
> For some reasons I need to cross-compile a tar-1.13, the target is ARM
> and the build host is i686-pc-linux-gnu.  The tar-1.13's source come
> with a configure, that seems generated from a very old version of
> automake.  For recent automake version, I have success experience to
> do cross-compiling, that is, specify a '--host=arm-linux' when running
> the 'configure' script.  But for the tar-1.13's configure script, I
> failed to do it.  I tried the following method:
> 
> 1,  configure --host=arm-linux
> 2,  configure --target=arm-linux
> 3,  configure --host=arm-linux --build=i686-pc-linux-gnu
> 
> but all failed:  the 'configure' script did not try to find
> arm-linux-gcc, it still using gcc as compiler.  So I think, I did not
> active the cross-compiling in the script.

You did not mention which Autoconf version this tar's configure script
was created with.  It should be mentioned near the head of the script
somewhere.

Please try
   ./configure arm-linux

which was IIRC the way to do it with Autoconf 2.13.

Hope that helps.

Cheers,
Ralf




Re: Cross-compile tar-1.13

2008-08-31 Thread Steven Woody
On Sun, Aug 31, 2008 at 11:21 AM, Ralf Wildenhues
<[EMAIL PROTECTED]> wrote:
> Hello Steven,
>
> * Steven Woody wrote on Sat, Aug 30, 2008 at 05:10:06PM CEST:
>>
>> For some reasons I need to cross-compile a tar-1.13, the target is ARM
>> and the build host is i686-pc-linux-gnu.  The tar-1.13's source come
>> with a configure, that seems generated from a very old version of
>> automake.  For recent automake version, I have success experience to
>> do cross-compiling, that is, specify a '--host=arm-linux' when running
>> the 'configure' script.  But for the tar-1.13's configure script, I
>> failed to do it.  I tried the following method:
>>
>> 1,  configure --host=arm-linux
>> 2,  configure --target=arm-linux
>> 3,  configure --host=arm-linux --build=i686-pc-linux-gnu
>>
>> but all failed:  the 'configure' script did not try to find
>> arm-linux-gcc, it still using gcc as compiler.  So I think, I did not
>> active the cross-compiling in the script.
>
> You did not mention which Autoconf version this tar's configure script
> was created with.  It should be mentioned near the head of the script
> somewhere.
>
> Please try
>   ./configure arm-linux
>
> which was IIRC the way to do it with Autoconf 2.13.
>

Yes, it is 2.13 automake, I found the information in the comments of
'configure' script itself.  But what you told './configure arm-linux'
did not work neither ( it still use gcc instead of arm-linux-gcc). I
attached the output for you information, please help if possible.
Thanks in advance.

-
woody


config.log
Description: Binary data


Re: Cross-compile tar-1.13

2008-09-01 Thread Ralf Wildenhues
Hello Steven,

* Steven Woody wrote on Sun, Aug 31, 2008 at 09:50:26AM CEST:
> On Sun, Aug 31, 2008 at 11:21 AM, Ralf Wildenhues wrote:
> >>
> > Please try
> >   ./configure arm-linux
> >
> > which was IIRC the way to do it with Autoconf 2.13.
> >
> 
> Yes, it is 2.13 automake, I found the information in the comments of
> 'configure' script itself.  But what you told './configure arm-linux'
> did not work neither ( it still use gcc instead of arm-linux-gcc). I
> attached the output for you information, please help if possible.

Erm, have you tried
  CC=arm-linux-gcc ./configure

yet?

Cheers,
Ralf




Re: Cross-compile tar-1.13

2008-09-06 Thread Steven Woody
On Tue, Sep 2, 2008 at 2:35 AM, Ralf Wildenhues <[EMAIL PROTECTED]> wrote:
> Hello Steven,
>
> * Steven Woody wrote on Sun, Aug 31, 2008 at 09:50:26AM CEST:
>> On Sun, Aug 31, 2008 at 11:21 AM, Ralf Wildenhues wrote:
>> >>
>> > Please try
>> >   ./configure arm-linux
>> >
>> > which was IIRC the way to do it with Autoconf 2.13.
>> >
>>
>> Yes, it is 2.13 automake, I found the information in the comments of
>> 'configure' script itself.  But what you told './configure arm-linux'
>> did not work neither ( it still use gcc instead of arm-linux-gcc). I
>> attached the output for you information, please help if possible.
>
> Erm, have you tried
>  CC=arm-linux-gcc ./configure
>
> yet?
>
> Cheers,
> Ralf
>

Ralf,

If I did that, I will get:

loading cache ./config.cache
checking host system type... ./config.guess: line 735: ./dummy-3089:
cannot execute binary file
./config.guess: line 999: ./dummy-3089: cannot execute binary file
configure: error: can not guess host type; you must specify one




Re: Cross-compile tar-1.13

2008-09-06 Thread Ralf Wildenhues
* Steven Woody wrote on Sun, Sep 07, 2008 at 07:53:43AM CEST:
> On Tue, Sep 2, 2008 at 2:35 AM, Ralf Wildenhues <[EMAIL PROTECTED]> wrote:
> > Erm, have you tried
> >  CC=arm-linux-gcc ./configure
> >
> > yet?

> If I did that, I will get:
> 
> loading cache ./config.cache
> checking host system type... ./config.guess: line 735: ./dummy-3089:
> cannot execute binary file
> ./config.guess: line 999: ./dummy-3089: cannot execute binary file
> configure: error: can not guess host type; you must specify one

And what about specifying both?
  CC=arm-linux-gcc ./configure arm-linux

Cheers,
Ralf




Re: Cross-compile tar-1.13

2008-09-07 Thread Steven Woody
On Sun, Sep 7, 2008 at 2:11 PM, Ralf Wildenhues <[EMAIL PROTECTED]> wrote:
> * Steven Woody wrote on Sun, Sep 07, 2008 at 07:53:43AM CEST:
>> On Tue, Sep 2, 2008 at 2:35 AM, Ralf Wildenhues <[EMAIL PROTECTED]> wrote:
>> > Erm, have you tried
>> >  CC=arm-linux-gcc ./configure
>> >
>> > yet?
>
>> If I did that, I will get:
>>
>> loading cache ./config.cache
>> checking host system type... ./config.guess: line 735: ./dummy-3089:
>> cannot execute binary file
>> ./config.guess: line 999: ./dummy-3089: cannot execute binary file
>> configure: error: can not guess host type; you must specify one
>
> And what about specifying both?
>  CC=arm-linux-gcc ./configure arm-linux
>

This works!  Thank you very much!