cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: A cross-compile problem

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 29 Sep 2006 16:09:11 -0700

On Fri, Sep 29, 2006 at 06:22:56PM -0400, Sid Chang wrote:
> Dan, I actually went over the INSTALL doc and the CROSS COMPILE section more
> than once.
> The simplified cfg.sh didn't help much and some of the configure messages are
> puzzling...
>
> >configure: WARNING: you should use --build, --host, --target
> >configure: WARNING: invalid host type:
> the host name is already the best I can come up with.
>
> >checking build system type... config.sub: missing argument
> I have no idea what's missing.
>
> >./cfg.sh: line 8: --prefix=/usr/curl: No such file or directory
> I know "/usr/curl" exists because I created it.

Those are indeed strange messages. Could it be there are hidden tabs or
carriage return characters in your script, or spaces after your backslashes?
The last message especially looks to me like there's a space at the end of
the --host line. Try doing the configure statement on one line.

If config.sub is truly not recognizing your system, try with --host=mipsel
and specify CC=mipsel-linux-gcc etc. manually. It could be that config.sub
is failing because you have a non-GNU set of coreutils programs in your PATH
that don't have the features. What does "./config.sub mipsel-linux" give
you?

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2006-09-30