curl-users
A cross-compile problem
Date: Thu, 28 Sep 2006 19:02:59 -0400
hi,
I'm using Sigma Designs SMP8634 board with MIPS "4KeC" processor and
uclinux (2.4.30).
Cross-compiling cURL from a RedHat 9.0, I had problem specifying
target/host and got error running cfg.sh.
I think I need some enlightenment on this one.
The cfg.sh file:
-----------------------------------------------------
#! /bin/sh
export PATH=$PATH:/root/work/toolchain/bin
export CPPFLAGS="-I/root/work/toolchain/include"
export AR=mipsel-linux-uclibc-ar
export AS=mipsel-linux-uclibc-as
export LD=mipsel-linux-uclibc-ld
export RANLIB=mipsel-linux-uclibc-ranlib
export CC=mipsel-linux-uclibc-gcc
export NM=mipsel-linux-uclibc-nm
export STRIP=mipsel-linux-uclibc-strip
./configure \
--target=mipsel-linux \
--host=mipsel-linux \
--build=i386-redhat-linux-gnu \
--prefix=/usr/curl \
--exec-prefix=/usr/curl \
--disable-ares \
--disable-cookies \
--disable-crypto-auth \
--disable-ipv6 \
--enable-hidden-symbols \
--without-libidn
-----------------------------------------------------
The run result:
bash-2.05b# ./cfg.sh
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type:
checking whether to enable maintainer-specific portions of Makefiles... no
checking for sed... /root/work/toolchain/bin/sed
checking for -ar... mipsel-linux-uclibc-ar
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking curl version... 7.15.5
checking build system type... config.sub: missing argument
Try `config.sub --help' for more information.
configure: error: /bin/sh ./config.sub failed
./cfg.sh: line 15: --host=mipsel-linux: command not found
./cfg.sh: line 16: --build=i386-redhat-linux-gnu: command not found
./cfg.sh: line 18: --prefix=/usr/curl: No such file or directory
Sid Chang
Received on 2006-09-29