cURL / Mailing Lists / curl-library / Single Mail

curl-library

CrossCompiling libcurl for ARM/snapgear/Intel IXDP425

From: Michael Graf <calgarycomputertech_at_gmail.com>
Date: Fri, 27 Feb 2009 11:57:00 -0700

Hi all, sorry if this is noob.

I have an Astra RFID reader and I'm trying to compile the libcurl libraries
for use on the device. It uses the arm-linux-gcc compiler, snapgear-3.0.0
files and has a Intel IXDP425 chip in it. I'm not sure which of those
details are relevant.

I made a configure script similar to the one found in
/curl-7.19.3/docs/INSTALL . The script is as follows:
#! /bin/sh

   export PATH=$PATH:/usr/local/bin
# export CPPFLAGS="-I/opt/hardhat/devkit/ppc/405/target/usr/include"
   export AR=arm-linux-ar
   export AS=arm-linux-as
   export LD=arm-linux-ld
   export RANLIB=arm-linux-ranlib
   export CC=arm-linux-gcc
   export NM=arm-linux-nm

   ./configure --target=arm-linux \
    --host=arm-linux-linux \
    --build=i586-pc-linux-gnu \
    --prefix=/usr/local/arm-linux/lib-independent \
    --exec-prefix=/usr/local/

When I run the script the configure has an error as follows:
$ ./make4ARM.sh checking whether to enable maintainer-specific portions of
Makefiles... no
checking whether to enable debug build options... no
checking whether to enable compiler optimizer... not specified (assuming
yes)
checking whether to enable strict compiler warnings... no
checking for sed... /bin/sed
checking for grep... /bin/grep
checking for egrep... /bin/grep -E
checking for arm-linux-linux-ar... no
checking for ar... /usr/bin/ar
configure: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet. If you think this
configuration is useful to you, please write to autoconf_at_gnu.org.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for arm-linux-linux-strip... no
checking for strip... strip
checking curl version... 7.19.3
checking build system type... i586-pc-linux-gnu
checking host system type... arm-linux-linux-gnu
checking for style of include used by make... GNU
checking for arm-linux-linux-gcc... arm-linux-gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.

finally the config.log is appended to the end of this mail.

Please let me know if more info is required or if you know how to deal with
this.
TIA,
-Mike Graf

[config.log]
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.61. Invocation command line was

  $ ./configure --target=arm-linux --host=arm-linux-linux
--build=i586-pc-linux-gnu --prefix=/usr/local/arm-linux/lib-independent
--exec-prefix=/usr/local/

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

hostname = poweruser-desktop
uname -m = i686
uname -r = 2.6.27-11-generic
uname -s = Linux
uname -v = #1 SMP Thu Jan 29 19:24:39 UTC 2009

/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/bin

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

configure:2165: checking whether to enable maintainer-specific portions of
Makefiles
configure:2174: result: no
configure:2191: checking whether to enable debug build options
configure:2210: result: no
configure:2214: checking whether to enable compiler optimizer
configure:2235: result: not specified (assuming yes)
configure:2247: checking whether to enable strict compiler warnings
configure:2266: result: no
configure:2315: checking for sed
configure:2334: found /bin/sed
configure:2347: result: /bin/sed
configure:2364: checking for grep
configure:2383: found /bin/grep
configure:2396: result: /bin/grep
configure:2412: checking for egrep
configure:2415: result: /bin/grep -E
configure:2471: checking for arm-linux-linux-ar
configure:2505: result: no
configure:2515: checking for ar
configure:2534: found /usr/bin/ar
configure:2546: result: /usr/bin/ar
configure:2560: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet. If you think this
configuration is useful to you, please write to autoconf_at_gnu.org.
configure:2627: checking for a BSD-compatible install
configure:2683: result: /usr/bin/install -c
configure:2694: checking whether build environment is sane
configure:2737: result: yes
configure:2802: checking for gawk
configure:2832: result: no
configure:2802: checking for mawk
configure:2818: found /usr/bin/mawk
configure:2829: result: mawk
configure:2840: checking whether make sets $(MAKE)
configure:2861: result: yes
configure:2937: checking for arm-linux-linux-strip
configure:2967: result: no
configure:2977: checking for strip
configure:2993: found /usr/bin/strip
configure:3004: result: strip
configure:3045: checking curl version
configure:3047: result: 7.19.3
configure:3084: checking build system type
configure:3102: result: i586-pc-linux-gnu
configure:3124: checking host system type
configure:3139: result: arm-linux-linux-gnu
configure:3179: checking for style of include used by make
configure:3207: result: GNU
configure:3243: checking for arm-linux-linux-gcc
configure:3270: result: arm-linux-gcc
configure:3548: checking for C compiler version
configure:3555: arm-linux-gcc --version >&5
arm-linux-gcc (GCC) 3.2.1
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3558: $? = 0
configure:3565: arm-linux-gcc -v >&5
Reading specs from /usr/local/lib/gcc-lib/arm-linux/3.2.1/specs
Configured with: ../configure --target=arm-linux --disable-shared
--disable-threads
--with-headers=/home/gerg/new-wave.xscale/linux-2.4.x/include --with-gnu-as
--with-gnu-ld --enable-multilib --enable-languages=c,c++
Thread model: single
gcc version 3.2.1
configure:3568: $? = 0
configure:3575: arm-linux-gcc -V >&5
arm-linux-gcc: argument to `-V' is missing
configure:3578: $? = 1
configure:3600: checking for C compiler default output file name
configure:3627: arm-linux-gcc conftest.c >&5
/usr/local/arm-linux/lib/libc.so.6: could not read symbols: Invalid
operation <----- Note: This file exists and I have read permissions
collect2: ld returned 1 exit status
configure:3630: $? = 1
configure:3668: 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 "curl"
| #define VERSION "7.19.3"
| #define OS "arm-linux-linux-gnu"
| /* end confdefs.h. */
|
| int main (void)
| {
|
| ;
| return 0;
| }
configure:3675: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_build=i586-pc-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value=arm-linux-gcc
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=set
ac_cv_env_build_alias_value=i586-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=arm-linux-linux
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=arm-linux
ac_cv_host=arm-linux-linux-gnu
ac_cv_path_GREP=/bin/grep
ac_cv_path_SED=/bin/sed
ac_cv_path_ac_pt_AR=/usr/bin/ar
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=mawk
ac_cv_prog_CC=arm-linux-gcc
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_make_make_set=yes
curl_cv_PATH_SEPARATOR=:

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} "/home/poweruser/Desktop/curlForArm/curl-7.19.3/missing"
--run aclocal-1.9'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} "/home/poweruser/Desktop/curlForArm/curl-7.19.3/missing"
--run tar'
AR='/usr/bin/ar'
AS='arm-linux-as'
AUTOCONF='${SHELL} "/home/poweruser/Desktop/curlForArm/curl-7.19.3/missing"
--run autoconf'
AUTOHEADER='${SHELL}
"/home/poweruser/Desktop/curlForArm/curl-7.19.3/missing" --run autoheader'
AUTOMAKE='${SHELL} "/home/poweruser/Desktop/curlForArm/curl-7.19.3/missing"
--run automake-1.9'
AWK='mawk'
CC='arm-linux-gcc'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CROSSCOMPILING_FALSE=''
CROSSCOMPILING_TRUE=''
CURL_CA_BUNDLE=''
CURL_DISABLE_DICT=''
CURL_DISABLE_FILE=''
CURL_DISABLE_FTP=''
CURL_DISABLE_HTTP=''
CURL_DISABLE_LDAP=''
CURL_DISABLE_LDAPS=''
CURL_DISABLE_PROXY=''
CURL_DISABLE_TELNET=''
CURL_DISABLE_TFTP=''
CURL_LIBS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/bin/grep -E'
EXEEXT=''
FGREP=''
GREP='/bin/grep'
HAVE_ARES=''
HAVE_LIBZ=''
HAVE_LIBZ_FALSE=''
HAVE_LIBZ_TRUE=''
HAVE_PK11_CREATEGENERICOBJECT=''
IDN_ENABLED=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
IPV6_ENABLED=''
KRB4_ENABLED=''
LD='arm-linux-ld'
LDFLAGS=''
LIBCURL_LIBS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} "/home/poweruser/Desktop/curlForArm/curl-7.19.3/missing"
--run makeinfo'
MANOPT=''
MIMPURE_FALSE=''
MIMPURE_TRUE=''
NM='arm-linux-nm'
NMEDIT=''
NO_UNDEFINED_FALSE=''
NO_UNDEFINED_TRUE=''
NROFF=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='curl'
PACKAGE_BUGREPORT='a suitable curl mailing list => http://curl.haxx.se/mail/
'
PACKAGE_NAME='curl'
PACKAGE_STRING='curl -'
PACKAGE_TARNAME='curl'
PACKAGE_VERSION='-'
PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/bin'
PATH_SEPARATOR=':'
PERL=''
PKGADD_NAME='cURL - a client that groks URLs'
PKGADD_PKG='HAXXcurl'
PKGADD_VENDOR='curl.haxx.se'
PKGCONFIG=''
RANDOM_FILE=''
RANLIB='arm-linux-ranlib'
REQUIRE_LIB_DEPS=''
SED='/bin/sed'
SET_MAKE=''
SHELL='/bin/bash'
SONAME_BUMP_FALSE=''
SONAME_BUMP_TRUE=''
SSL_ENABLED=''
STATICLIB_FALSE=''
STATICLIB_TRUE=''
STRIP='strip'
SUPPORT_FEATURES=''
SUPPORT_PROTOCOLS=''
TEST_SERVER_LIBS=''
USE_GNUTLS=''
USE_LIBSSH2=''
USE_MANUAL_FALSE=''
USE_MANUAL_TRUE=''
USE_NSS=''
USE_SSLEAY=''
USE_WINDOWS_SSPI=''
VERSION='7.19.3'
VERSIONNUM='071303'
ac_ct_CC=''
ac_ct_DUMPBIN=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i586-pc-linux-gnu'
build_alias='i586-pc-linux-gnu'
build_cpu='i586'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='/usr/local/'
host='arm-linux-linux-gnu'
host_alias='arm-linux-linux'
host_cpu='arm'
host_os='linux-gnu'
host_vendor='linux'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='/home/poweruser/Desktop/curlForArm/curl-7.19.3/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libext=''
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lt_ECHO='echo'
mandir='${datarootdir}/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local/arm-linux/lib-independent'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
subdirs=''
sysconfdir='${prefix}/etc'
target_alias='arm-linux'

## ----------- ##
## 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 "curl"
#define VERSION "7.19.3"
#define OS "arm-linux-linux-gnu"

configure: exit 77
[/config.log]
Received on 2009-02-27