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 08:35:18 +0100

2012/12/13 Daniel Stenberg <daniel_at_haxx.se>:
> On Thu, 13 Dec 2012, Bernard Evensrud wrote:
>
>> Also the error, "compiler cannot create executables", I do not understand.
>> It does not say why it cannot...
>
>
> I'd say that the fact that it even tries to check that seems wrong. Since it
> cross-compiles it can't check if the output is executable or not...
>
>
>> I have read trough the config.log. Can I post it here for you to see?
>
>
> Sure, but do try to only include the relevant parts around the tests that
> fail and cause configure to stop. config.log can be huge and most of it will
> be irrelevant for this problem.
>
> --
>
> / daniel.haxx.se
>
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html

I removed the --host option as suggested. Here is the start of 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 --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 --without-ssl --without-libssh2

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

hostname = bernard-bernard
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/arm-elf/bin
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: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:3909: result: /usr/local/bin/arm-elf-gcc
configure:4178: checking for C compiler version
configure:4187: /usr/local/bin/arm-elf-gcc --version >&5
2.95.3
configure:4198: $? = 0
configure:4187: /usr/local/bin/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: /usr/local/bin/arm-elf-gcc -V >&5
arm-elf-gcc: argument to `-V' is missing
configure:4198: $? = 1
configure:4187: /usr/local/bin/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: /usr/local/bin/arm-elf-gcc -Os -W1,-elf2flt conftest.c >&5
cc1: Invalid option `-W1,-elf2flt'
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=set
ac_cv_env_CC_value=/usr/local/bin/arm-elf-gcc
--------------------------------------
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-12-14