cURL / Mailing Lists / curl-library / Single Mail

curl-library

Not able to cross-compile curl for ARM uClinux

From: Bernard Evensrud <bevensrud_at_gmail.com>
Date: Thu, 13 Dec 2012 14:43:06 +0100

Hello,

I am using a Ubuntu 12.10 64-bit computer, trying to compile libcurl.a
for use in a project with embedded uClinux.
However, I only get an error message when running .configure with
arm-elf-gcc. Compiling a native version using GCC is no problem.
Compiling other small projects with arm-elf-gcc also works very well.

This is what happens:

bernard_at_bernard-home ~/curl-7.28.1 $ ./preconfig
export PATH=/usr/local/arm-elf/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
export CC=/usr/local/bin/arm-elf-gcc
export NM=/usr/local/bin/arm-elf-nm
export RANLIB=/usr/local/bin/arm-elf-ranlib
export LD=/usr/local/bin/arm-elf-ld
export AR=/usr/local/bin/arm-elf-ar
export AS=/usr/local/bin/arm-elf-as
export CFLAGS=-Os
export LIBS=
export LDFLAGS=-Wl,-elf2flt

./configure --disable-shared --disable-ares --disable-cookies
--disable-crypto-auth --disable-ipv6 --disable-verbose
--without-libidn --without-zlib --disable-ldap --disable-thread
--disable-shared --host=arm-elf --build=x86_64 --without-ssl
--without-libssh2
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether to enable debug build options... no
checking whether to enable compiler optimizer... (assumed) yes
checking whether to enable strict compiler warnings... no
checking whether to enable compiler warnings as errors... no
checking whether to enable curl debug memory tracking... no
checking whether to enable hiding of library internal symbols... yes
checking whether to enable c-ares for DNS lookups... no
checking for sed... /bin/sed
checking for grep... /bin/grep
checking for egrep... /bin/grep -E
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 for arm-elf-strip... arm-elf-strip
checking curl version... 7.28.1
checking build system type... x86_64-pc-none
checking host system type... arm-unknown-elf
checking for style of include used by make... GNU
checking for arm-elf-gcc... /usr/local/bin/arm-elf-gcc
checking for C compiler default output file name...
configure: error: in `/home/bernard/curl-7.28.1':
configure: error: C compiler cannot create executables
See `config.log' for more details.

Any help would be much appreciated.
Bernard E.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-12-13