Hi Everyone,

I am trying to cross compile and install ovs on Andriod phone but i had a
problem while doing configure.
my command is

./configure
CC=~/android/kernel/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-gcc
--target=arm-linux -with-l26=~/android/kernel/droid/omap KARCH=arm

The problem is:

checking build number... none
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc...
/home/leo/android/kernel/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-gcc
checking whether the C compiler works... no
configure: error: in `/home/leo/android/kernel/openvswitch':
configure: error: C compiler cannot create executables
See `config.log' for more details.

Attached please find my config.log.

Does anyone has  ideas to solve the problem ?

And another question is for running ovs on android, which version of ovs is
best for this?

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

It was created by openvswitch configure 1.0.3, which was
generated by GNU Autoconf 2.65.  Invocation command line was

  $ ./configure CC=/home/leo/android/kernel/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-gcc --target=arm-linux -with-l26=~/android/kernel/droid/omap KARCH=arm

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

hostname = ubuntu
uname -m = x86_64
uname -r = 2.6.32-24-generic
uname -s = Linux
uname -v = #43-Ubuntu SMP Thu Sep 16 14:58:24 UTC 2010

/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: /home/leo/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /home/leo/android/sdk/platform-tools/
PATH: /home/leo/bin


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

configure:2248: checking build number
configure:2264: result: none
configure:2322: checking for a BSD-compatible install
configure:2390: result: /usr/bin/install -c
configure:2401: checking whether build environment is sane
configure:2451: result: yes
configure:2592: checking for a thread-safe mkdir -p
configure:2631: result: /bin/mkdir -p
configure:2644: checking for gawk
configure:2660: found /usr/bin/gawk
configure:2671: result: gawk
configure:2682: checking whether make sets $(MAKE)
configure:2704: result: yes
configure:2833: checking for gcc
configure:2860: result: /home/leo/android/kernel/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-gcc
configure:3089: checking for C compiler version
configure:3098: /home/leo/android/kernel/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-gcc --version >&5
arm-eabi-gcc (GCC) 4.4.0
Copyright (C) 2009 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:3109: $? = 0
configure:3098: /home/leo/android/kernel/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-gcc -v >&5
Using built-in specs.
Target: arm-eabi
Configured with: /home/jingyu/projects/gcc/android-toolchain/gcc-4.4.0/configure --prefix=/usr/local --target=arm-eabi --host=i686-unknown-linux-gnu --build=i686-unknown-linux-gnu --enable-languages=c,c++ --with-gmp=/home/jingyu/projects/gcc/toolchain_build/obj/temp-install --with-mpfr=/home/jingyu/projects/gcc/toolchain_build/obj/temp-install --disable-libssp --enable-threads --disable-nls --disable-libmudflap --disable-libgomp --disable-libstdc__-v3 --disable-sjlj-exceptions --disable-shared --disable-tls --with-float=soft --with-fpu=vfp --with-arch=armv5te --enable-target-optspace --with-abi=aapcs --with-gcc-version=4.4.0 --with-binutils-version=2.19 --with-gmp-version=4.2.4 --with-mpfr-version=2.4.1 --with-gdb-version=6.6 --with-arch=armv5te --with-multilib-list=mthumb-interwork,mandroid --with-sysroot=/g/users/jingyu/toolchain/cupcake_rel_root --program-transform-name='s&^&arm-eabi-&'
Thread model: single
gcc version 4.4.0 (GCC) 
configure:3109: $? = 0
configure:3098: /home/leo/android/kernel/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-gcc -V >&5
arm-eabi-gcc: '-V' option must have argument
configure:3109: $? = 1
configure:3098: /home/leo/android/kernel/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-gcc -qversion >&5
arm-eabi-gcc: unrecognized option '-qversion'
arm-eabi-gcc: no input files
configure:3109: $? = 1
configure:3129: checking whether the C compiler works
configure:3151: /home/leo/android/kernel/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-gcc    conftest.c  >&5
/home/leo/android/kernel/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/../lib/gcc/arm-eabi/4.4.0/../../../../arm-eabi/bin/ld: crt0.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:3155: $? = 1
configure:3193: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "openvswitch"
| #define PACKAGE_TARNAME "openvswitch"
| #define PACKAGE_VERSION "1.0.3"
| #define PACKAGE_STRING "openvswitch 1.0.3"
| #define PACKAGE_BUGREPORT "ovs-b...@openvswitch.org"
| #define PACKAGE_URL ""
| #define BUILDNR ""
| #define PACKAGE "openvswitch"
| #define VERSION "1.0.3"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3198: error: in `/home/leo/android/kernel/openvswitch':
configure:3202: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_env_CC_set=set
ac_cv_env_CC_value=/home/leo/android/kernel/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-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_KARCH_set=set
ac_cv_env_KARCH_value=arm
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_PERL_set=
ac_cv_env_PERL_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_SSL_CFLAGS_set=
ac_cv_env_SSL_CFLAGS_value=
ac_cv_env_SSL_LIBS_set=
ac_cv_env_SSL_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=arm-linux
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=/home/leo/android/kernel/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-gcc
ac_cv_prog_make_make_set=yes

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

ACLOCAL='${SHELL} /home/leo/android/kernel/openvswitch/build-aux/missing --run aclocal-1.11'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/leo/android/kernel/openvswitch/build-aux/missing --run tar'
AUTOCONF='${SHELL} /home/leo/android/kernel/openvswitch/build-aux/missing --run autoconf'
AUTOHEADER='${SHELL} /home/leo/android/kernel/openvswitch/build-aux/missing --run autoheader'
AUTOMAKE='${SHELL} /home/leo/android/kernel/openvswitch/build-aux/missing --run automake-1.11'
AWK='gawk'
BUILDNR='0'
BUILD_ER_DIAGRAMS_FALSE=''
BUILD_ER_DIAGRAMS_TRUE=''
BUILD_OVSDBMONITOR_FALSE=''
BUILD_OVSDBMONITOR_TRUE=''
CC='/home/leo/android/kernel/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-gcc'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GREP=''
HAVE_IF_PACKET_FALSE=''
HAVE_IF_PACKET_TRUE=''
HAVE_NETLINK_FALSE=''
HAVE_NETLINK_TRUE=''
HAVE_OPENSSL=''
HAVE_OPENSSL_FALSE=''
HAVE_OPENSSL_TRUE=''
HAVE_PYTHON=''
HAVE_PYTHON_FALSE=''
HAVE_PYTHON_TRUE=''
HAVE_WNO_UNUSED_FALSE=''
HAVE_WNO_UNUSED_PARAMETER_FALSE=''
HAVE_WNO_UNUSED_PARAMETER_TRUE=''
HAVE_WNO_UNUSED_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
KARCH='arm'
KBUILD26=''
L26_ENABLED_FALSE=''
L26_ENABLED_TRUE=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LOGDIR=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/leo/android/kernel/openvswitch/build-aux/missing --run makeinfo'
MKDIR_P='/bin/mkdir -p'
NDEBUG_FALSE=''
NDEBUG_TRUE=''
OBJEXT=''
PACKAGE='openvswitch'
PACKAGE_BUGREPORT='ovs-b...@openvswitch.org'
PACKAGE_NAME='openvswitch'
PACKAGE_STRING='openvswitch 1.0.3'
PACKAGE_TARNAME='openvswitch'
PACKAGE_URL=''
PACKAGE_VERSION='1.0.3'
PATH_SEPARATOR=':'
PERL=''
PKG_CONFIG=''
PKIDIR=''
PYTHON=''
PYUIC4=''
RANLIB=''
RUNDIR=''
SET_MAKE=''
SHELL='/bin/bash'
SSL_CFLAGS=''
SSL_LIBS=''
STRIP=''
VERSION='1.0.3'
WARNING_FLAGS=''
ac_ct_CC='/home/leo/android/kernel/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-gcc'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/leo/android/kernel/openvswitch/build-aux/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias='arm-linux'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "openvswitch"
#define PACKAGE_TARNAME "openvswitch"
#define PACKAGE_VERSION "1.0.3"
#define PACKAGE_STRING "openvswitch 1.0.3"
#define PACKAGE_BUGREPORT "ovs-b...@openvswitch.org"
#define PACKAGE_URL ""
#define BUILDNR ""
#define PACKAGE "openvswitch"
#define VERSION "1.0.3"

configure: exit 77
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss_openvswitch.org

Reply via email to