cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Not able to cross-compile curl for ARM uClinux

From: Bernard Evensrud <bevensrud_at_gmail.com>
Date: Fri, 14 Dec 2012 12:51:10 +0100

2012/12/14 Guenter <lists_at_gknw.net>:
> Hi Bernard,
> Am 14.12.2012 08:35, schrieb Bernard Evensrud:
>
>> I removed the --host option as suggested. Here is the start of config.log
>> file:
>
> can you please also do a configure run with only using --host=... and
> without specifying any of the bunch of vars you did set?
>
> Gün.
>
>
>
>
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html

Trying to run the configure script without setting any variables and
without options other than --host=arm-elf gives this output:

-------------------------------------
/home/bernard/curl-7.28.1 $ ./configure --host=arm-elf
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
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 arm-elf-ar... /usr/local/bin/arm-elf-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 for arm-elf-strip... arm-elf-strip
checking curl version... 7.28.1
checking build system type... x86_64-unknown-linux-gnu
checking host system type... arm-unknown-elf
checking for style of include used by make... GNU
checking for arm-elf-gcc... 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.

---------------------------------------------------------------
And the following is copied from the config.log file:
---------------------------------------------------------------

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by curl configure -, which was
generated by GNU Autoconf 2.64. Invocation command line was

  $ ./configure --host=arm-elf

## --------- ##
## Platform. ##
## --------- ##

hostname = bernard-home
uname -m = x86_64
uname -r = 3.5.0-17-generic
uname -s = Linux
uname -v = #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/games

## ----------- ##
## Core tests. ##
## ----------- ##

configure:2730: checking whether to enable maintainer-specific
portions of Makefiles
configure:2739: result: no
configure:2756: checking whether to enable debug build options
configure:2775: result: no
configure:2779: checking whether to enable compiler optimizer
configure:2800: result: (assumed) yes
configure:2812: checking whether to enable strict compiler warnings
configure:2831: result: no
configure:2835: checking whether to enable compiler warnings as errors
configure:2854: result: no
configure:2858: checking whether to enable curl debug memory tracking
configure:2877: result: no
configure:2891: checking whether to enable hiding of library internal symbols
configure:2912: result: yes
configure:2923: checking whether to enable c-ares for DNS lookups
configure:2945: result: no
configure:2967: checking for sed
configure:2986: found /bin/sed
configure:2999: result: /bin/sed
configure:3016: checking for grep
configure:3035: found /bin/grep
configure:3048: result: /bin/grep
configure:3064: checking for egrep
configure:3067: result: /bin/grep -E
configure:3123: checking for arm-elf-ar
configure:3142: found /usr/local/bin/arm-elf-ar
configure:3154: result: /usr/local/bin/arm-elf-ar
configure:3271: checking for a BSD-compatible install
configure:3339: result: /usr/bin/install -c
configure:3350: checking whether build environment is sane
configure:3387: result: yes
configure:3449: checking for gawk
configure:3465: found /usr/bin/gawk
configure:3476: result: gawk
configure:3487: checking whether make sets $(MAKE)
configure:3509: result: yes
configure:3583: checking for arm-elf-strip
configure:3599: found /usr/local/bin/arm-elf-strip
configure:3610: result: arm-elf-strip
configure:3687: checking curl version
configure:3689: result: 7.28.1
configure:3733: checking build system type
configure:3747: result: x86_64-unknown-linux-gnu
configure:3767: checking host system type
configure:3780: result: arm-unknown-elf
configure:3818: checking for style of include used by make
configure:3846: result: GNU
configure:3882: checking for arm-elf-gcc
configure:3898: found /usr/local/bin/arm-elf-gcc
configure:3909: result: arm-elf-gcc
configure:4178: checking for C compiler version
configure:4187: arm-elf-gcc --version >&5
2.95.3
configure:4198: $? = 0
configure:4187: arm-elf-gcc -v >&5
Reading specs from /usr/local/lib/gcc-lib/arm-elf/2.95.3/specs
gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from
http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from
http://www.snapgear.com/)
configure:4198: $? = 0
configure:4187: arm-elf-gcc -V >&5
arm-elf-gcc: argument to `-V' is missing
configure:4198: $? = 1
configure:4187: arm-elf-gcc -qversion >&5
arm-elf-gcc: unrecognized option `-qversion'
arm-elf-gcc: No input files
configure:4198: $? = 1
configure:4219: checking for C compiler default output file name
configure:4241: arm-elf-gcc conftest.c >&5
/usr/local/lib/gcc-lib/arm-elf/2.95.3/libgcc.a(__main.o)(.text+0xc4):
In function `__do_global_ctors':
: undefined reference to `__CTOR_LIST__'
/usr/local/lib/gcc-lib/arm-elf/2.95.3/libgcc.a(__main.o)(.data+0x0):
undefined reference to `__DTOR_LIST__'
collect2: ld returned 1 exit status
configure:4245: $? = 1
configure:4282: result:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "curl"
| #define PACKAGE_TARNAME "curl"
| #define PACKAGE_VERSION "-"
| #define PACKAGE_STRING "curl -"
| #define PACKAGE_BUGREPORT "a suitable curl mailing list:
http://curl.haxx.se/mail/"
| #define PACKAGE_URL ""
| #define PACKAGE "curl"
| #define VERSION "-"
| #define OS "arm-unknown-elf"
| /* end confdefs.h. */
| #include <stdio.h>
| int main (void)
| {
| FILE *f = fopen ("conftest.out", "w");
| return ferror (f) || fclose (f) != 0;
|
| ;
| return 0;
| }
configure:4288: error: in `/home/bernard/curl-7.28.1':
configure:4292: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=arm-elf
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=arm-unknown-elf
ac_cv_path_AR=/usr/local/bin/arm-elf-ar
ac_cv_path_GREP=/bin/grep
ac_cv_path_SED=/bin/sed
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=arm-elf-gcc
ac_cv_prog_STRIP=arm-elf-strip
ac_cv_prog_make_make_set=yes
curl_cv_PATH_SEPARATOR=:

## ----------------- ##

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-12-14