Build PJSIP for Android on Cygwin(Win7) - checking whether the C compiler works: NO

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Have you see this issue before?

plz help me go forward..
I'm in trouble to getting start build on PJSIP for Android on Cygwin(Win7).
could't complete "checking whether the C compiler works" in
'./configure-android'
I'v verified Android NDK already and Environment variables as below before
run 'configure-android'

TARGET_ABI=armeabi
APP_PLATFORM=android-8


There is 'libc.so' and 'libgcc.so' in linker search directory correctly.

I have a suspicion that linker was picked as
'AndroidNDK\android-ndk-r8e\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows-x86_64\arm-linux-androideabi\bin\ld.exe'
instead of
 'AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-ld'



$ ./configure-android
configure-android: calling ./configure with env vars:
 CC =
/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc
 CXX =
/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++
 CFLAGS =
 -I/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/include
 CXXFLAGS =  -shared
--sysroot=/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm
 LDFLAGS =  -nostdlib
-L/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/lib/
 LIBS =  -lc -lgcc
checking build system type... i686-pc-cygwin
checking host system type... arm-unknown-linux-androideabi
checking target system type... arm-unknown-linux-androideabi
checking for arm-linux-androideabi-gcc...
/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc
checking whether the C compiler works... no
aconfigure: error: in
`/cygdrive/d/Projects/FanLing/SIP/PJSIP/android-target':
aconfigure: error: C compiler cannot create executables
See `config.log' for more details





== 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 pjproject aconfigure 2.x, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./aconfigure --host=arm-linux-androideabi --disable-video

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

hostname = sb-hkct-nb
uname -m = i686
uname -r = 1.7.18(0.263/5/3)
uname -s = CYGWIN_NT-6.1-WOW64
uname -v = 2013-04-19 10:39

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

/bin/arch              = i686
/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/bin
PATH: /usr/bin
PATH: /cygdrive/c/Windows/system32
PATH: /cygdrive/c/Windows
PATH: /cygdrive/c/Windows/System32/Wbem
PATH: /cygdrive/c/Windows/System32/WindowsPowerShell/v1.0
PATH: /cygdrive/c/Program Files/WIDCOMM/Bluetooth Software
PATH: /cygdrive/c/Program Files/WIDCOMM/Bluetooth Software/syswow64
PATH: /cygdrive/c/Program Files (x86)/ATI Technologies/ATI.ACE/Core-Static
PATH: /cygdrive/c/Program Files (x86)/Common Files/Roxio
Shared/10.0/DLLShared
PATH: /cygdrive/c/Program Files (x86)/Common Files/Roxio Shared/DLLShared
PATH: /cygdrive/c/Program Files (x86)/Microsoft SQL Server/90/Tools/binn
PATH:
/cygdrive/d/SW/Development/adt-bundle-windows-x86_64-20130219/sdk/platform-tools
PATH:
/cygdrive/d/SW/Development/adt-bundle-windows-x86_64-20130219/sdk/tools
PATH: /cygdrive/c/Program Files (x86)/Java/jre6/bin
PATH: /cygdrive/c/Program Files/TortoiseSVN/bin
PATH: /usr/bin
PATH: /usr/lib/lapack
PATH: /cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e


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

aconfigure:2335: checking build system type
aconfigure:2349: result: i686-pc-cygwin
aconfigure:2369: checking host system type
aconfigure:2382: result: arm-unknown-linux-androideabi
aconfigure:2402: checking target system type
aconfigure:2415: result: arm-unknown-linux-androideabi
aconfigure:2463: checking for arm-linux-androideabi-gcc
aconfigure:2490: result:
/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc
aconfigure:2759: checking for C compiler version
aconfigure:2768:
/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc
--version >&5
arm-linux-androideabi-gcc.exe (GCC) 4.4.3
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.

aconfigure:2779: $? = 0
aconfigure:2768:
/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc
-v >&5
Using built-in specs.
Target: arm-linux-androideabi
Configured with: /s/ndk-toolchain/src/build/../gcc/gcc-4.4.3/configure
--prefix=/tmp/ndk-andrewhsieh/build/toolchain/prefix
--target=arm-linux-androideabi --host=x86_64-pc-mingw32msvc
--build=x86_64-linux-gnu --with-gnu-as --with-gnu-ld
--enable-languages=c,c++
--with-gmp=/tmp/ndk-andrewhsieh/build/toolchain/temp-install
--with-mpfr=/tmp/ndk-andrewhsieh/build/toolchain/temp-install --without-ppl
--without-cloog --disable-libssp --enable-threads --disable-nls
--disable-libmudflap --disable-libgomp --disable-libstdc__-v3
--disable-sjlj-exceptions --disable-shared --disable-tls --disable-libitm
--with-float=soft --with-fpu=vfp --with-arch=armv5te
--enable-target-optspace --enable-initfini-array --disable-nls
--prefix=/tmp/ndk-andrewhsieh/build/toolchain/prefix
--with-sysroot=/tmp/ndk-andrewhsieh/build/toolchain/prefix/sysroot
--with-binutils-version=2.19 --with-mpfr-version=3.1.1
--with-mpc-version=1.0.1 --with-gmp-version=5.0.5 --with-gcc-version=4.4.3
--with-gdb-version=7.3.x
--with-gxx-include-dir=/tmp/ndk-andrewhsieh/build/toolchain/prefix/include/c++/4.4.3
--with-bugurl=http://source.android.com/source/report-bugs.html--disable-bootstrap
--disable-libquadmath --disable-plugin --enable-libgomp
--with-arch=armv5te --program-transform-name='s&^&arm-linux-androideabi-&'
Thread model: posix
gcc version 4.4.3 (GCC)
aconfigure:2779: $? = 0
aconfigure:2768:
/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc
-V >&5
arm-linux-androideabi-gcc.exe: '-V' option must have argument
aconfigure:2779: $? = 1
aconfigure:2768:
/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc
-qversion >&5
arm-linux-androideabi-gcc.exe: unrecognized option '-qversion'
arm-linux-androideabi-gcc.exe: no input files
aconfigure:2779: $? = 1
aconfigure:2799: checking whether the C compiler works
aconfigure:2821:
/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc
 -I/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/include
 -I/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/include
 -nostdlib
-L/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/lib/
conftest.c  -lc -lgcc >&5
D:/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe:
* cannot find -lc*
collect2: ld returned 1 exit status
aconfigure:2825: $? = 1
aconfigure:2863: result: no
aconfigure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "pjproject"
| #define PACKAGE_TARNAME "pjproject"
| #define PACKAGE_VERSION "2.x"
| #define PACKAGE_STRING "pjproject 2.x"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
aconfigure:2868: error: in
`/cygdrive/d/Projects/FanLing/SIP/PJSIP/android-target':
aconfigure:2870: error: C compiler cannot create executables
See `config.log' for more details

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

ac_cv_build=i686-pc-cygwin
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='
-I/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/include'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value='
-I/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/include'
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value=' -shared
--sysroot=/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm'
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=' -nostdlib
-L/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/lib/'
ac_cv_env_LIBS_set=set
ac_cv_env_LIBS_value=' -lc -lgcc'
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-linux-androideabi
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=arm-unknown-linux-androideabi
ac_cv_prog_CC=/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc
ac_cv_target=arm-unknown-linux-androideabi

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

AR=''
CC='/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc'
CC_CFLAGS=''
CC_DEF=''
CC_INC=''
CC_OPTIMIZE=''
CC_OUT=''
CFLAGS='
-I/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/include'
CPP=''
CPPFLAGS='
-I/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/include'
CXX='/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++'
CXXFLAGS='
-I/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/include
 -shared
--sysroot=/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm'
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GREP=''
LD=''
LDFLAGS=' -nostdlib
-L/cygdrive/d/SW/Development/AndroidNDK/android-ndk-r8e/platforms/android-8/arch-arm/usr/lib/'
LDOUT=''
LIBEXT2=''
LIBEXT=''
LIBOBJS=''
LIBS=' -lc -lgcc'
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='pjproject'
PACKAGE_STRING='pjproject 2.x'
PACKAGE_TARNAME='pjproject'
PACKAGE_URL=''
PACKAGE_VERSION='2.x'
PATH_SEPARATOR=':'
PKG_CONFIG=''
RANLIB=''
SAVED_PKG_CONFIG_PATH=''
SHELL='/bin/sh'
ac_build_mak_vars=''
ac_cross_compile=''
ac_ct_CC=''
ac_ct_CXX=''
ac_external_gsm=''
ac_external_pa=''
ac_external_speex=''
ac_ffmpeg_cflags=''
ac_ffmpeg_ldflags=''
ac_has_ffmpeg=''
ac_host=''
ac_ios_cflags=''
ac_linux_poll=''
ac_main_obj=''
ac_no_g711_codec=''
ac_no_g7221_codec=''
ac_no_g722_codec=''
ac_no_gsm_codec=''
ac_no_ilbc_codec=''
ac_no_l16_codec=''
ac_no_large_filter=''
ac_no_opencore_amrnb=''
ac_no_small_filter=''
ac_no_speex_aec=''
ac_no_speex_codec=''
ac_no_ssl=''
ac_os_objs=''
ac_pa_cflags=''
ac_pa_use_alsa=''
ac_pa_use_oss=''
ac_pjdir=''
ac_pjmedia_snd=''
ac_pjmedia_video=''
ac_pjmedia_video_has_ios=''
ac_pjmedia_video_has_qt=''
ac_qt_cflags=''
ac_resample_dll=''
ac_sdl_cflags=''
ac_sdl_ldflags=''
ac_shlib_suffix=''
ac_v4l2_cflags=''
ac_v4l2_ldflags=''
bindir='${exec_prefix}/bin'
build='i686-pc-cygwin'
build_alias=''
build_cpu='i686'
build_os='cygwin'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='arm-unknown-linux-androideabi'
host_alias='arm-linux-androideabi'
host_cpu='arm'
host_os='linux-androideabi'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libcrypto_present=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libssl_present=''
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
opencore_amrnb_h_present=''
opencore_amrnb_present=''
openssl_h_present=''
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='arm-unknown-linux-androideabi'
target_alias=''
target_cpu='arm'
target_os='linux-androideabi'
target_vendor='unknown'

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

/* confdefs.h */
#define PACKAGE_NAME "pjproject"
#define PACKAGE_TARNAME "pjproject"
#define PACKAGE_VERSION "2.x"
#define PACKAGE_STRING "pjproject 2.x"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""

aconfigure: exit 77



Thanks,
SB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130516/382f47f3/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux