I am trying to compile PJSIP2.1.0 for iOS on Mac 10.9.(Xcode 5.0). But I'm getting some errors when I run ./configure-iphone.
Below are the errors,
configure-iphone: DEVPATH is not specified, using /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
configure-iphone: IPHONESDK is not specified, choosing iPhoneOS7.0.sdk
ls: /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/lib/gcc/arm-apple-darwin*: No such file or directory
configure-iphone error: unable to find gcc for iPhoneOS7.0.sdk. If you think you have the right gcc, set the full path in CC environment variable.`
Is anybody can help me? Thanks
But now, i do something follow Compiling pjsip current trunk under iOS 5.0 GM Fails i'm getting other errors.
Below are the errors
ailks-mbp:pjproject-2.1.0 ailk$ ./configure-iphone
configure-iphone: DEVPATH is not specified, using /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
configure-iphone: IPHONESDK is not specified, choosing iPhoneOS7.0.sdk
configure-iphone: CXX is not specified, using /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-g++-4.2
configure-iphone: calling ./aconfigure with env vars:
CC = /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2
CXX = /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-g++-4.2
SDKPATH = /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk
CFLAGS = -O2 -Wno-unused-label -DPJ_SDK_NAME="\"iPhoneOS7.0.sdk\"" -isysroot /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk
LDFLAGS = -O2 -isysroot /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -framework AudioToolbox -framework Foundation
AR = /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool -static -o
RANLIB = echo ranlib
checking build system type... i386-apple-darwin13.0.0
checking host system type... arm-apple-darwin10
checking target system type... arm-apple-darwin10
checking for arm-apple-darwin10-gcc... /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2
checking whether the C compiler works... no
aconfigure: error: in `/Users/ailk/Documents/开源库/pjproject-2.1.0':
aconfigure: error: C compiler cannot create executables
See `config.log' for more details
and below is the 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-apple-darwin10 --disable-sdl
## --------- ##
## Platform. ##
## --------- ##
hostname = ailks-mbp.ailk.com
uname -m = x86_64
uname -r = 13.0.0
uname -s = Darwin
uname -v = Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu- 2422.1.72~6/RELEASE_X86_64
/usr/bin/uname -p = i386
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu- 2422.1.72~6/RELEASE_X86_64
Kernel configured for up to 4 processors.
2 processors are physically available.
4 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1 2 3
Primary memory available: 4.00 gigabytes
Default processor set: 161 tasks, 771 threads, 4 processors
Load average: 2.13, Mach factor: 2.37
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
## ----------- ##
## Core tests. ##
## ----------- ##
aconfigure:2355: checking build system type
aconfigure:2369: result: i386-apple-darwin13.0.0
aconfigure:2389: checking host system type
aconfigure:2402: result: arm-apple-darwin10
aconfigure:2422: checking target system type
aconfigure:2435: result: arm-apple-darwin10
aconfigure:2483: checking for arm-apple-darwin10-gcc
aconfigure:2510: result: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm- apple-darwin10-llvm-gcc-4.2
aconfigure:2779: checking for C compiler version
aconfigure:2788: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 --version >&5
./aconfigure: line 2790: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2: No such file or directory
aconfigure:2799: $? = 127
aconfigure:2788: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 -v >&5
./aconfigure: line 2790: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2: No such file or directory
aconfigure:2799: $? = 127
aconfigure:2788: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 -V >&5
./aconfigure: line 2790: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2: No such file or directory
aconfigure:2799: $? = 127
aconfigure:2788: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 -qversion >&5
./aconfigure: line 2790: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2: No such file or directory
aconfigure:2799: $? = 127
aconfigure:2819: checking whether the C compiler works
aconfigure:2841: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple- darwin10-llvm-gcc-4.2 -O2 -Wno-unused-label -DPJ_SDK_NAME="\"iPhoneOS7.0.sdk\"" -isysroot /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS 7.0.sdk -O2 -isysroot /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -framework AudioToolbox -framework Foundation conftest.c >&5
./aconfigure: line 2843: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm- apple-darwin10-llvm-gcc-4.2: No such file or directory
aconfigure:2845: $? = 127
aconfigure:2883: 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:2888: error: in `/Users/ailk/Documents/开源库/pjproject-2.1.0':
aconfigure:2890: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i386-apple-darwin13.0.0
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple- darwin10-llvm-gcc-4.2
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O2 -Wno-unused-label -DPJ_SDK_NAME="\"iPhoneOS7.0.sdk\"" - isysroot /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=set
ac_cv_env_CPP_value='/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 -E -isysroot /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk'
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple- darwin10-llvm-g++-4.2
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-O2 -isysroot /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -framework AudioToolbox -framework Foundation'
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-apple-darwin10
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=arm-apple-darwin10
ac_cv_prog_CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2
ac_cv_target=arm-apple-darwin10
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR='/Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool -static -o'
CC='/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2'
CC_CFLAGS=''
CC_DEF=''
CC_INC=''
CC_OPTIMIZE=''
CC_OUT=''
CFLAGS='-O2 -Wno-unused-label -DPJ_SDK_NAME="\"iPhoneOS7.0.sdk\"" -isysroot /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk'
CPP='/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 -E -isysroot /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk'
CPPFLAGS=''
CXX='/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-g++-4.2'
CXXFLAGS='-O2 -Wno-unused-label -DPJ_SDK_NAME="\"iPhoneOS7.0.sdk\"" -isysroot /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk '
DEFS=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
GREP=''
LD=''
LDFLAGS='-O2 -isysroot /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -framework AudioToolbox -framework Foundation'
LDOUT=''
LIBEXT2=''
LIBEXT=''
LIBOBJS=''
LIBS=''
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='echo ranlib'
SAVED_PKG_CONFIG_PATH=''
SDL_CONFIG=''
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_opencore_amrwb=''
ac_no_silk=''
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='i386-apple-darwin13.0.0'
build_alias=''
build_cpu='i386'
build_os='darwin13.0.0'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='arm-apple-darwin10'
host_alias='arm-apple-darwin10'
host_cpu='arm'
host_os='darwin10'
host_vendor='apple'
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=''
opencore_amrwb_dec_h_present=''
opencore_amrwb_dec_present=''
opencore_amrwb_enc_h_present=''
opencore_amrwb_enc_present=''
openssl_h_present=''
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
silk_h_present=''
silk_present=''
sysconfdir='${prefix}/etc'
target='arm-apple-darwin10'
target_alias=''
target_cpu='arm'
target_os='darwin10'
target_vendor='apple'
## ----------- ##
## 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
Thank you for your help.
I struggled with this issue a few day ago...
the getting started guide, here, helped me and this post on SO was very helpful.
when i downloaded the library from the getting started guide it wouldn't compile until i dl the library from the link provided to the svn repository in the SO post i mentioned above
svn co http://svn.pjsip.org/repos/pjproject/trunk pjproject
after i got the library from there
i just made sure the command line tools were installed. you can check in xcode-->prefrences--> downloads and than just create "config_site.h" like 0xbeefdead pointed out in his answer.
the last thing was to run the ./configure-iphone and that was it.
i'm running osx 10.8.5 9 (xcode 5) and my device is 4s. For iPhone 5, use armv7s architecture as mentioned in the getting started guide
hope this helps
Step 1:
As documentation says. Add following lines by creating "config_site.h". Refer documentation if you have problem.
#define PJ_CONFIG_IPHONE 1
#include <pj/config_site_sample.h>
Step 2:
Add following line in "configure-iphone" file to compile for
For armv7s
ARCH='-arch armv7s'
CC=/Applications/Xcode.app/Contents/Developer/usr/bin/gcc
For armv7
ARCH='-arch armv7'
CC=/Applications/Xcode.app/Contents/Developer/usr/bin/gcc
For simulator
ARCH='-arch i386'
CC=/Applications/Xcode.app/Contents/Developer/usr/bin/gcc
DEVPATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/
IPHONESDK=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk
SDKPATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk
I am still struggling to build for "armv6". Any suggestions ?
I am using pjproject-2.1.0
Your CC environment variable points to /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 and, from config.log, it does not exist.
You should check your AMR builder path and update your environment.
Try This
In Terminal run “xcrun -find -sdk iphoneos gcc” and copy the output and place after the CC so for my case it goes as
export CC=/Applications/Xcode.app/Contents/Developer/usr/bin/gcc
export ARCH='-arch armv7s'
./configure-iphone
For Simulator, mostly as 0xbeefdead mentioned:
ARCH='-arch i386'
DEVPATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer
CC=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc
IPHONESDK=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk
SDKPATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk
With "-miphoneos-version-min=7.0" added CFLAGS/LDFLAGS:
# Default CFLAGS if it's not specified
if test "$CFLAGS" = ""; then
CFLAGS="-O2 -Wno-unused-label -miphoneos-version-min=7.0"
fi
# Default LDFLAGS if it's not specified
if test "$LDFLAGS" = ""; then
LDFLAGS="-O2 -miphoneos-version-min=7.0"
fi
Related
I tried to configure ChatSecure in ios.
When I build OTRKit and also for CPAProxy come error.Please help. And one more doubt, that is will it support for swift
$ bash ./Submodules/OTRKit/scripts/build-all.sh
I install Command Line Tools also.(Xcode 7.1, OS X 10.11)
this is what I get
Jayaraj-iMac:ChatSecure-iOS jayaraj$ bash ./Submodules/OTRKit/scripts/build-all.sh
No iOS SDK specified. Using the only one available: 9.1
Building architectures: i386 x86_64 armv7 arm64
Building libraries: gpg-error gcrypt otr
Building gpg-error for i386...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 752k 100 752k 0 0 185k 0 0:00:04 0:00:04 --:--:-- 185k
~/Desktop/ChatSecure-iOS/Submodules/OTRKit/scripts/build/libgpg-error-1.20 ~/Desktop/ChatSecure-iOS/Submodules/OTRKit/scripts/build
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for i386-apple-darwin-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64-apple-darwin15.0.0
checking host system type... i386-apple-darwin
configure: autobuild project... libgpg-error
configure: autobuild revision... 1.20
configure: autobuild hostname... Irudayarajs-iMac.local
configure: autobuild timestamp... 20160128-102754
checking for i386-apple-darwin-gcc... cc
checking whether the C compiler works... no
configure: error: in `/Users/jayaraj/Desktop/ChatSecure- iOS/Submodules/OTRKit/scripts/build/libgpg-error-1.20':
configure: error: C compiler cannot create executables
See `config.log' for more details
this is the 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 libgpg-error configure 1.20, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --disable-shared --enable-static --with-pic --enable-threads=posix --host i386-apple-darwin --with-sysroot=/Applications/Xcode 3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk --prefix=/Users/jayaraj/Desktop/ChatSecure-iOS/Submodules/OTRKit/scripts/build/iPhoneSimulator-9.1-i386 LDFLAGS=-L/Users/jayaraj/Desktop/ChatSecure-iOS/Submodules/OTRKit/scripts/built/i386/lib -fPIE -miphoneos-version-min=8.0 CFLAGS= -arch i386 -fPIE -isysroot /Applications/Xcode 3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk -I/Users/jayaraj/Desktop/ChatSecure-iOS/Submodules/OTRKit/scripts/built/i386/include -miphoneos-version-min=8.0 CPPLAGS= -arch i386 -fPIE -isysroot /Applications/Xcode 3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk -I/Users/jayaraj/Desktop/ChatSecure-iOS/Submodules/OTRKit/scripts/built/i386/include -miphoneos-version-min=8.0
## --------- ##
## Platform. ##
## --------- ##
hostname = Irudayarajs-iMac.local
uname -m = x86_64
uname -r = 15.0.0
uname -s = Darwin
uname -v = Darwin Kernel Version 15.0.0: Wed Aug 26 16:57:32 PDT 2015; root:xnu-3247.1.106~1/RELEASE_X86_64
/usr/bin/uname -p = i386
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 15.0.0: Wed Aug 26 16:57:32 PDT 2015; root:xnu- 3247.1.106~1/RELEASE_X86_64
Kernel configured for up to 4 processors.
4 processors are physically available.
4 processors are logically available.
Processor type: x86_64h (Intel x86-64h Haswell)
Processors active: 0 1 2 3
Primary memory available: 8.00 gigabytes
Default processor set: 251 tasks, 1124 threads, 4 processors
Load average: 1.54, Mach factor: 2.44
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /opt/X11/bin
PATH: /usr/local/MacGPG2/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2647: checking for a BSD-compatible install
configure:2715: result: /usr/local/bin/ginstall -c
configure:2726: checking whether build environment is sane
configure:2781: result: yes
configure:2840: checking for i386-apple-darwin-strip
configure:2870: result: no
configure:2880: checking for strip
configure:2896: found /usr/bin/strip
configure:2907: result: strip
configure:2932: checking for a thread-safe mkdir -p
configure:2971: result: /usr/local/bin/gmkdir -p
configure:2978: checking for gawk
configure:3008: result: no
configure:2978: checking for mawk
configure:3008: result: no
configure:2978: checking for nawk
configure:3008: result: no
configure:2978: checking for awk
configure:2994: found /usr/bin/awk
configure:3005: result: awk
configure:3016: checking whether make sets $(MAKE)
configure:3038: result: yes
configure:3067: checking whether make supports nested variables
configure:3084: result: yes
configure:3211: checking whether to enable maintainer-specific portions of Makefiles
configure:3220: result: no
configure:3248: checking whether make supports nested variables
configure:3265: result: yes
configure:3283: checking build system type
configure:3297: result: x86_64-apple-darwin15.0.0
configure:3317: checking host system type
configure:3330: result: i386-apple-darwin
configure:3354: autobuild project... libgpg-error
configure:3356: autobuild revision... 1.20
configure:3360: autobuild hostname... Irudayarajs-iMac.local
configure:3369: autobuild timestamp... 20160128-095704
configure:3383: checking for i386-apple-darwin-gcc
configure:3410: result: gcc
configure:3679: checking for C compiler version
configure:3688: gcc --version >&5
Apple LLVM version 7.0.0 (clang-700.1.76)
Target: x86_64-apple-darwin15.0.0
Thread model: posix
Configured with: --prefix=/Applications/Xcode 3.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
configure:3699: $? = 0
configure:3688: gcc -v >&5
Configured with: --prefix=/Applications/Xcode 3.app/Contents/Developer/usr -- with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.0.0 (clang-700.1.76)
Target: x86_64-apple-darwin15.0.0
Thread model: posix
configure:3699: $? = 0
configure:3688: gcc -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:3699: $? = 1
configure:3688: gcc -qversion >&5
clang: error: unknown argument: '-qversion'
clang: error: no input files
configure:3699: $? = 1
configure:3719: checking whether the C compiler works
configure:3741: gcc -arch i386 -fPIE -isysroot /Applications/Xcode 3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk -I/Users/jayaraj/Desktop/ChatSecure-iOS/Submodules/OTRKit/scripts/built/i386/include -miphoneos-version-min=8.0 -L/Users/jayaraj/Desktop/ChatSecure-iOS/Submodules/OTRKit/scripts/built/i386/lib -fPIE -miphoneos-version-min=8.0 conftest.c >&5
clang: error: no such file or directory: '3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPho neSimulator9.1.sdk'
clang: warning: no such sysroot directory: '/Applications/Xcode'
configure:3745: $? = 1
configure:3783: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libgpg-error"
| #define PACKAGE_TARNAME "libgpg-error"
| #define PACKAGE_VERSION "1.20"
| #define PACKAGE_STRING "libgpg-error 1.20"
| #define PACKAGE_BUGREPORT "http://bugs.gnupg.org"
| #define PACKAGE_URL ""
| #define PACKAGE "libgpg-error"
| #define VERSION "1.20"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3788: error: in `/Users/jayaraj/Desktop/ChatSecure- iOS/Submodules/OTRKit/scripts/build/libgpg-error-1.20':
configure:3790: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-apple-darwin15.0.0
ac_cv_env_CC_FOR_BUILD_set=
ac_cv_env_CC_FOR_BUILD_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=' -arch i386 -fPIE -isysroot /Applications/Xcode 3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk -I/Users/jayaraj/Desktop/ChatSecure- iOS/Submodules/OTRKit/scripts/built/i386/include -miphoneos-version-min=8.0'
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=set
ac_cv_env_LDFLAGS_value='-L/Users/jayaraj/Desktop/ChatSecure- iOS/Submodules/OTRKit/scripts/built/i386/lib -fPIE -miphoneos-version-min=8.0'
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=i386-apple-darwin
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i386-apple-darwin
ac_cv_path_install='/usr/local/bin/ginstall -c'
ac_cv_path_mkdir=/usr/local/bin/gmkdir
ac_cv_prog_AWK=awk
ac_cv_prog_CC=gcc
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /Users/jayaraj/Desktop/ChatSecure-iOS/Submodules/OTRKit/scripts/build/libgpg-error-1.20/build-aux/missing aclocal-1.14'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AR=''
AS=''
AUTOCONF='${SHELL} /Users/jayaraj/Desktop/ChatSecure-iOS/Submodules/OTRKit/scripts/build/libgpg-error-1.20/build-aux/missing autoconf'
AUTOHEADER='${SHELL} /Users/jayaraj/Desktop/ChatSecure-iOS/Submodules/OTRKit/scripts/build/libgpg-error-1.20/build-aux/missing autoheader'
AUTOMAKE='${SHELL} /Users/jayaraj/Desktop/ChatSecure-iOS/Submodules/OTRKit/scripts/build/libgpg-error-1.20/build-aux/missing automake-1.14'
AWK='awk'
BUILD_DOC_FALSE=''
BUILD_DOC_TRUE=''
BUILD_FILEVERSION=''
BUILD_REVISION=''
BUILD_TIMESTAMP=''
BUILD_VERSION=''
CC='gcc'
CCDEPMODE=''
CC_FOR_BUILD=''
CFLAGS=' -arch i386 -fPIE -isysroot /Applications/Xcode 3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk -I/Users/jayaraj/Desktop/ChatSecure-iOS/Submodules/OTRKit/scripts/built/i386/include -miphoneos-version-min=8.0'
CPP=''
CPPFLAGS=''
CROSS_COMPILING_FALSE=''
CROSS_COMPILING_TRUE=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
FORCE_USE_SYSCFG_FALSE=''
FORCE_USE_SYSCFG_TRUE=''
GETTEXT_MACRO_VERSION=''
GMSGFMT=''
GMSGFMT_015=''
GPG_ERROR_CONFIG_CFLAGS=''
GPG_ERROR_CONFIG_HOST=''
GPG_ERROR_CONFIG_ISUBDIRAFTER=''
GPG_ERROR_CONFIG_LIBS=''
GPG_ERROR_CONFIG_MT_CFLAGS=''
GPG_ERROR_CONFIG_MT_LIBS=''
GREP=''
HAVE_LD_VERSION_SCRIPT_FALSE=''
HAVE_LD_VERSION_SCRIPT_TRUE=''
HAVE_W32CE_SYSTEM_FALSE=''
HAVE_W32CE_SYSTEM_TRUE=''
HAVE_W32_SYSTEM_FALSE=''
HAVE_W32_SYSTEM_TRUE=''
HAVE_W64_SYSTEM_FALSE=''
HAVE_W64_SYSTEM_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
INTLLIBS=''
INTL_MACOSX_LIBS=''
LANGUAGES_SOME_FALSE=''
LANGUAGES_SOME_TRUE=''
LD=''
LDFLAGS='-L/Users/jayaraj/Desktop/ChatSecure-iOS/Submodules/OTRKit/scripts/built/i386/lib -fPIE -miphoneos-version-min=8.0'
LIBGPG_ERROR_LT_AGE='16'
LIBGPG_ERROR_LT_CURRENT='16'
LIBGPG_ERROR_LT_REVISION='0'
LIBICONV=''
LIBINTL=''
LIBMULTITHREAD=''
LIBOBJS=''
LIBS=''
LIBTHREAD=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBICONV=''
LTLIBINTL=''
LTLIBMULTITHREAD=''
LTLIBOBJS=''
LTLIBTHREAD=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /Users/jayaraj/Desktop/ChatSecure- iOS/Submodules/OTRKit/scripts/build/libgpg-error-1.20/build-aux/missing makeinfo'
MANIFEST_TOOL=''
MKDIR_P='/usr/local/bin/gmkdir -p'
MSGFMT=''
MSGFMT_015=''
MSGMERGE=''
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='libgpg-error'
PACKAGE_BUGREPORT='http://bugs.gnupg.org'
PACKAGE_NAME='libgpg-error'
PACKAGE_STRING='libgpg-error 1.20'
PACKAGE_TARNAME='libgpg-error'
PACKAGE_URL=''
PACKAGE_VERSION='1.20'
PATH_SEPARATOR=':'
POSUB=''
RANLIB=''
RC=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP='strip'
USE_NLS=''
VERSION='1.20'
VERSION_NUMBER='0x011400'
XGETTEXT=''
XGETTEXT_015=''
XGETTEXT_EXTRA_OPTIONS=''
ac_ct_AR=''
ac_ct_CC=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin15.0.0'
build_alias=''
build_cpu='x86_64'
build_os='darwin15.0.0'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i386-apple-darwin'
host_alias='i386-apple-darwin'
host_cpu='i386'
host_os='darwin'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /Users/jayaraj/Desktop/ChatSecure- iOS/Submodules/OTRKit/scripts/build/libgpg-error-1.20/build-aux/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/Users/jayaraj/Desktop/ChatSecure- iOS/Submodules/OTRKit/scripts/build/iPhoneSimulator-9.1-i386'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "libgpg-error"
#define PACKAGE_TARNAME "libgpg-error"
#define PACKAGE_VERSION "1.20"
#define PACKAGE_STRING "libgpg-error 1.20"
#define PACKAGE_BUGREPORT "http://bugs.gnupg.org"
#define PACKAGE_URL ""
#define PACKAGE "libgpg-error"
#define VERSION "1.20"
configure: exit 77
After installing the XCode Command Line Tools, you have to agree to the Xcode/iOS License before gcc will execute. You can do this on the command line by running
sudo /usr/bin/gcc
and following the prompts. Now run that command again and you should see this output:
clang: error: no input files
If you see the above output, it means that you've successfully agreed to the Xcode/iOS License, and you're ready to run your original command:
bash ./Submodules/OTRKit/scripts/build-all.sh
EDIT. 2015-30-10. I tried this :
../configure --prefix=/usr/local/GNU-CROSS/binutils-2.25.1/ CC="clang -fembed-bitcode -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk -Wno-error -Wno-implicit-function-declaration -mios-version-min=8.4 -no-integrated-as -arch arm64 -target arm64-apple-darwin" CPP="clang -E" CPPFLAGS="-fembed-bitcode -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk -Wno-error -Wno-implicit-function-declaration -mios-version-min=8.4 -no-integrated-as -arch arm64 -target arm64-apple-darwin" --host=aarch64-apple-darwin --disable-assembly --enable-static --disable-shared
make -j 4
Configuring went ok, but the make triggered this :
BFD does not support target aarch64-apple-darwin
Initial question.
I am trying to cross-build binutils 2.25.1 for an iOS (8.4) 64 bits target. I put the binutils-2.25.1 folder on the target and the config.guess script which gave me arm64-apple-darwin14.0.0. On my host (x86_64-apple-darwin14.4.0) I created a build folder inside binutils-2.25.1 and ran there :
CCFLAGS="--arch arm64" LDFLAGS="--arch arm64" ../configure --prefix=/usr/local/lvm-cross/ --host=arm-apple-darwin
which gave me this :
configure: error: in `/Users/XXXX/Documents/src/gcc-5.2.0-cross/binutils-2.25.1/build':
configure: error: C compiler cannot create executables
All details are in the config.log file at the end.
My question is the following : how can I build binutils for this 64bits target ?
The config.log file contains this :
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.64. Invocation command line was
$ ../configure --prefix=/usr/local/lvm-cross/ --host=arm-apple-darwin
## --------- ##
## Platform. ##
## --------- ##
hostname = XXXXs-MacBook-Air.local
uname -m = x86_64
uname -r = 14.4.0
uname -s = Darwin
uname -v = Darwin Kernel Version 14.4.0: Thu May 28 11:35:04 PDT 2015; root:xnu-2782.30.5~1/RELEASE_X86_64
/usr/bin/uname -p = i386
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 14.4.0: Thu May 28 11:35:04 PDT 2015; root:xnu-2782.30.5~1/RELEASE_X86_64
Kernel configured for up to 4 processors.
2 processors are physically available.
4 processors are logically available.
Processor type: x86_64h (Intel x86-64h Haswell)
Processors active: 0 1 2 3
Primary memory available: 4.00 gigabytes
Default processor set: 239 tasks, 978 threads, 4 processors
Load average: 1.62, Mach factor: 2.37
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /sw/bin
PATH: /sw/sbin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /opt/X11/bin
PATH: /usr/local/git/bin
PATH: /Library/TeX/texbin
PATH: /Users/XXXX/.opam/4.02.2/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2322: checking build system type
configure:2336: result: x86_64-apple-darwin14.4.0
configure:2383: checking host system type
configure:2396: result: arm-apple-darwin
configure:2416: checking target system type
configure:2429: result: arm-apple-darwin
configure:2483: checking for a BSD-compatible install
configure:2551: result: /usr/bin/install -c
configure:2562: checking whether ln works
configure:2584: result: yes
configure:2588: checking whether ln -s works
configure:2592: result: yes
configure:2599: checking for a sed that does not truncate output
configure:2663: result: /usr/bin/sed
configure:2672: checking for gawk
configure:2702: result: no
configure:2672: checking for mawk
configure:2702: result: no
configure:2672: checking for nawk
configure:2702: result: no
configure:2672: checking for awk
configure:2688: found /usr/bin/awk
configure:2699: result: awk
configure:3941: checking for arm-apple-darwin-gcc
configure:3971: result: no
configure:3981: checking for gcc
configure:3997: found /usr/bin/gcc
configure:4008: result: gcc
configure:4237: checking for C compiler version
configure:4246: gcc --version >&5
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.4.0
Thread model: posix
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
configure:4257: $? = 0
configure:4246: gcc -v >&5
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.4.0
Thread model: posix
configure:4257: $? = 0
configure:4246: gcc -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:4257: $? = 1
configure:4246: gcc -qversion >&5
clang: error: unknown argument: '-qversion'
clang: error: no input files
configure:4257: $? = 1
configure:4277: checking for C compiler default output file name
configure:4299: gcc --arch arm64 conftest.c >&5
clang: error: unsupported option '--arch'
clang: error: no such file or directory: 'arm64'
configure:4303: $? = 1
configure:4340: result:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:4346: error: in `/Users/XXXX/Documents/src/gcc-5.2.0-cross/binutils-2.25.1/build':
configure:4350: error: C compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-apple-darwin14.4.0
ac_cv_env_AR_FOR_TARGET_set=
ac_cv_env_AR_FOR_TARGET_value=
ac_cv_env_AR_set=
ac_cv_env_AR_value=
ac_cv_env_AS_FOR_TARGET_set=
ac_cv_env_AS_FOR_TARGET_value=
ac_cv_env_AS_set=
ac_cv_env_AS_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_FOR_TARGET_set=
ac_cv_env_CC_FOR_TARGET_value=
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_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_FOR_TARGET_set=
ac_cv_env_CXX_FOR_TARGET_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_DLLTOOL_FOR_TARGET_set=
ac_cv_env_DLLTOOL_FOR_TARGET_value=
ac_cv_env_DLLTOOL_set=
ac_cv_env_DLLTOOL_value=
ac_cv_env_GCC_FOR_TARGET_set=
ac_cv_env_GCC_FOR_TARGET_value=
ac_cv_env_GCJ_FOR_TARGET_set=
ac_cv_env_GCJ_FOR_TARGET_value=
ac_cv_env_GFORTRAN_FOR_TARGET_set=
ac_cv_env_GFORTRAN_FOR_TARGET_value=
ac_cv_env_GOC_FOR_TARGET_set=
ac_cv_env_GOC_FOR_TARGET_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='--arch arm64'
ac_cv_env_LD_FOR_TARGET_set=
ac_cv_env_LD_FOR_TARGET_value=
ac_cv_env_LD_set=
ac_cv_env_LD_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LIPO_FOR_TARGET_set=
ac_cv_env_LIPO_FOR_TARGET_value=
ac_cv_env_LIPO_set=
ac_cv_env_LIPO_value=
ac_cv_env_NM_FOR_TARGET_set=
ac_cv_env_NM_FOR_TARGET_value=
ac_cv_env_NM_set=
ac_cv_env_NM_value=
ac_cv_env_OBJCOPY_set=
ac_cv_env_OBJCOPY_value=
ac_cv_env_OBJDUMP_FOR_TARGET_set=
ac_cv_env_OBJDUMP_FOR_TARGET_value=
ac_cv_env_OBJDUMP_set=
ac_cv_env_OBJDUMP_value=
ac_cv_env_RANLIB_FOR_TARGET_set=
ac_cv_env_RANLIB_FOR_TARGET_value=
ac_cv_env_RANLIB_set=
ac_cv_env_RANLIB_value=
ac_cv_env_READELF_FOR_TARGET_set=
ac_cv_env_READELF_FOR_TARGET_value=
ac_cv_env_READELF_set=
ac_cv_env_READELF_value=
ac_cv_env_STRIP_FOR_TARGET_set=
ac_cv_env_STRIP_FOR_TARGET_value=
ac_cv_env_STRIP_set=
ac_cv_env_STRIP_value=
ac_cv_env_WINDMC_FOR_TARGET_set=
ac_cv_env_WINDMC_FOR_TARGET_value=
ac_cv_env_WINDMC_set=
ac_cv_env_WINDMC_value=
ac_cv_env_WINDRES_FOR_TARGET_set=
ac_cv_env_WINDRES_FOR_TARGET_value=
ac_cv_env_WINDRES_set=
ac_cv_env_WINDRES_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_build_configargs_set=
ac_cv_env_build_configargs_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=arm-apple-darwin
ac_cv_env_host_configargs_set=
ac_cv_env_host_configargs_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_env_target_configargs_set=
ac_cv_env_target_configargs_value=
ac_cv_host=arm-apple-darwin
ac_cv_path_SED=/usr/bin/sed
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=awk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_target=arm-apple-darwin
acx_cv_prog_LN=ln
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR=''
AR_FOR_BUILD='ar'
AR_FOR_TARGET=''
AS=''
AS_FOR_BUILD='as'
AS_FOR_TARGET=''
AWK='awk'
BISON=''
BUILD_CONFIG=''
CC='gcc'
CC_FOR_BUILD='gcc'
CC_FOR_TARGET=''
CFLAGS=''
CFLAGS_FOR_BUILD=''
CFLAGS_FOR_TARGET=''
COMPILER_AS_FOR_TARGET=''
COMPILER_LD_FOR_TARGET=''
COMPILER_NM_FOR_TARGET=''
CONFIGURE_GDB_TK=''
CPPFLAGS=''
CXX=''
CXXFLAGS=''
CXXFLAGS_FOR_BUILD=''
CXXFLAGS_FOR_TARGET=''
CXX_FOR_BUILD='g++'
CXX_FOR_TARGET=''
DEBUG_PREFIX_CFLAGS_FOR_TARGET=''
DEFS=''
DLLTOOL=''
DLLTOOL_FOR_BUILD='dlltool'
DLLTOOL_FOR_TARGET=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EXEEXT=''
EXPECT=''
EXTRA_CONFIGARGS_LIBJAVA='--disable-static'
FLAGS_FOR_TARGET=''
FLEX=''
GCC_FOR_TARGET=''
GCC_SHLIB_SUBDIR=''
GCJ_FOR_BUILD='gcj'
GCJ_FOR_TARGET=''
GDB_TK=''
GFORTRAN_FOR_BUILD='gfortran'
GFORTRAN_FOR_TARGET=''
GNATBIND=''
GNATMAKE=''
GOC_FOR_BUILD='gccgo'
GOC_FOR_TARGET=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_GDB_TK=''
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LD=''
LDFLAGS='--arch arm64'
LDFLAGS_FOR_BUILD=''
LDFLAGS_FOR_TARGET=''
LD_FOR_BUILD='ld'
LD_FOR_TARGET=''
LEX=''
LIBOBJS=''
LIBS=''
LIPO=''
LIPO_FOR_TARGET=''
LN='ln'
LN_S='ln -s'
LTLIBOBJS=''
M4=''
MAINT=''
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE=''
MAKEINFO=''
NM=''
NM_FOR_BUILD='nm'
NM_FOR_TARGET=''
OBJCOPY=''
OBJDUMP=''
OBJDUMP_FOR_TARGET=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB=''
RANLIB_FOR_BUILD='ranlib'
RANLIB_FOR_TARGET=''
RAW_CXX_FOR_TARGET=''
READELF=''
READELF_FOR_TARGET=''
RPATH_ENVVAR=''
RUNTEST=''
SED='/usr/bin/sed'
SHELL='/bin/sh'
STRIP=''
STRIP_FOR_TARGET=''
SYSROOT_CFLAGS_FOR_TARGET=''
TOPLEVEL_CONFIGURE_ARGUMENTS='../configure --prefix=/usr/local/lvm-cross/ --host=arm-apple-darwin'
WINDMC=''
WINDMC_FOR_BUILD='windmc'
WINDMC_FOR_TARGET=''
WINDRES=''
WINDRES_FOR_BUILD='windres'
WINDRES_FOR_TARGET=''
YACC=''
ac_ct_CC='gcc'
ac_ct_CXX=''
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin14.4.0'
build_alias=''
build_configargs=''
build_configdirs='build-libiberty build-texinfo build-flex build-bison build-m4 build-fixincludes'
build_cpu='x86_64'
build_libsubdir='build-x86_64-apple-darwin14.4.0'
build_noncanonical='x86_64-apple-darwin14.4.0'
build_os='darwin14.4.0'
build_subdir='build-x86_64-apple-darwin14.4.0'
build_tooldir=''
build_vendor='apple'
clooginc=''
clooglibs=''
compare_exclusions=''
configdirs='intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
do_compare=''
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
extra_host_libiberty_configure_flags=''
extra_isl_gmp_configure_flags=''
extra_mpc_gmp_configure_flags=''
extra_mpc_mpfr_configure_flags=''
extra_mpfr_configure_flags=''
gmpinc=''
gmplibs=''
host='arm-apple-darwin'
host_alias='arm-apple-darwin'
host_configargs=''
host_cpu='arm'
host_noncanonical='arm-apple-darwin'
host_os='darwin'
host_shared=''
host_subdir='.'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
islinc=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
poststage1_ldflags=''
poststage1_libs=''
prefix='/usr/local/lvm-cross'
program_transform_name='s,y,y,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
stage1_cflags=''
stage1_checking=''
stage1_languages=''
stage1_ldflags=''
stage1_libs=''
stage2_werror_flag=''
sysconfdir='${prefix}/etc'
target='arm-apple-darwin'
target_alias=''
target_configargs=''
target_configdirs='target-libgcc target-libbacktrace target-libgloss target-newlib target-libgomp target-libcilkrts target-libatomic target-libitm target-libstdc++-v3 target-libsanitizer target-libvtv target-libssp target-libquadmath target-libgfortran target-boehm-gc target-libffi target-zlib target-libjava target-libobjc target-libada target-libgo target-rda'
target_cpu='arm'
target_noncanonical='arm-apple-darwin'
target_os='darwin'
target_subdir='arm-apple-darwin'
target_vendor='apple'
tooldir=''
## ------------------- ##
## File substitutions. ##
## ------------------- ##
alphaieee_frag=''
host_makefile_frag='config/mh-darwin'
ospace_frag=''
serialization_dependencies=''
target_makefile_frag=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
configure: exit 77
TL;DR: I think you will probably never see any binutils release targeting iOS.
Apple never made the specifications of Mach-O on iOS open.
It is unlikely you can get code that contains libbfd into App Store (since it is explicitly pointed out that GNU GPL is fundamentally incompatible with App Store regulation, especially in the VLC for iOS controversy)
It is unlikely you can get code compiled with anything other than Apple's version of clang into App Store (explicitly prohibited by the App Store Review Guidelines)
Even when targeting OS X, binutils is not capable of actually linking and building code.
If you are targeting iOS, you will have to use the toolchain Apple provided, or build your own equivalent from the source code Apple released (ld, clang and LLVM are all open-source projects, while the underlying iOS libraries can be copied over from a Mac albeit for your own personal use only).
I can successfully (at least without warnings and with resulting .a files) compile for arm7, x86_64, and i386.
When I compile for arm64, I get Unknown cpu type 100000c, no adjustments made. When I compile for arm7s, I get Unknown cpu type 100000c, no adjustments made. The script for those two architectures, which is modified from and uses environment scripts from https://github.com/noloader/openssl-1.0.1i-ios is below including arm7, which works and arm7s and arm64, followed by a log tail for arm64. The scripts build non-fips libraries successfully before modification. incore_macho and fips canisters are pre-generated and referenced from this script. I created the fips canisters similarly by modifying instructions from the OpenSSL FIPS 2.0 User Guide iOS appendix, which is incredibly dated and does not work on its own. How can one compile a FIPS capable library for these two platforms?
Edit:
I see that libssl.a and libcrypto.a have actually been created and have the correct architectures, but incore_macho returns an identical Unknown cpu type error.
Update:
Using a copy of incore_macho that is updated for armv7 from #jww at https://github.com/noloader/incore_macho, it now compiles without error for arm7s, so I'm now under the assumption that core_macho may need to be updated for arm64. Can this be done?
sed -i "" 's|\"iphoneos-cross\"\,\"llvm-gcc\:-O3|\"iphoneos-cross\"\,\"clang\:-Os|g' Configure
sed -i "" 's/CC= cc/CC= clang/g' Makefile.org
sed -i "" 's/CFLAG= -O/CFLAG= -Os/g' Makefile.org
sed -i "" 's/MAKEDEPPROG=makedepend/MAKEDEPPROG=$(CC) -M/g' Makefile.org
export LANG=$OLD_LANG
export CC=clang
export IOS_INSTALLDIR="/usr/local/ssl/ios"
unset OPENSSLDIR
################################################################
# Third, build ARMv7
echo "****************************************"
THIS_ARCH=armv7
unset CROSS_ARCH
. ./setenv-ios-$THIS_ARCH.sh
export HOSTCC=/usr/bin/cc
export HOSTCFLAGS="-arch i386"
export FIPS_SIG="/tmp/incore_macho"
./config fips -no-ssl2 -no-ssl3 -no-asm -no-shared -no-hw -no-engine --with-fipsdir="/tmp/openssl fips-2.0.1-iOS-${THIS_ARCH}" --openssldir=$IOS_INSTALLDIR
sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} -miphoneos-version-min=7.1 !" "Makefile"
make clean 2>&1>/dev/null && make all
mkdir $THIS_ARCH
\cp ./libcrypto.a $THIS_ARCH/libcrypto.a
\cp ./libssl.a $THIS_ARCH/libssl.a
################################################################
# Fourth, build ARMv7s
echo "****************************************"
THIS_ARCH=armv7s
unset CROSS_ARCH
. ./setenv-ios-$THIS_ARCH.sh
export HOSTCC=/usr/bin/cc
export HOSTCFLAGS="-arch i386"
export FIPS_SIG="/tmp/incore_macho"
./config fips -no-ssl2 -no-ssl3 -no-asm -no-shared -no-hw -no-engine --with-fipsdir="/tmp/openssl-fips-2.0.1-iOS-${THIS_ARCH}" --openssldir=$IOS_INSTALLDIR
sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} -miphoneos-version-min=7.1 !" "Makefile"
make clean 2>&1>/dev/null && make all
mkdir $THIS_ARCH
\cp ./libcrypto.a $THIS_ARCH/libcrypto.a
\cp ./libssl.a $THIS_ARCH/libssl.a
################################################################
# Fifth, build ARM64
#echo "****************************************"
THIS_ARCH=arm64
unset CROSS_ARCH
. ./setenv-ios-$THIS_ARCH.sh
export HOSTCC=/usr/bin/cc
export HOSTCFLAGS="-arch i386"
export FIPS_SIG="/tmp/incore_macho"
./config fips -no-ssl2 -no-ssl3 -no-asm -no-shared -no-hw -no-engine --with-fipsdir="/tmp/openssl-fips-2.0.1-iOS-${THIS_ARCH}" --openssldir=$IOS_INSTALLDIR
sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} -miphoneos-version-min=7.1 !" "Makefile"
make clean 2>&1>/dev/null && make all
mkdir $THIS_ARCH
\cp ./libcrypto.a $THIS_ARCH/libcrypto.a
\cp ./libssl.a $THIS_ARCH/libssl.a
tail of output for arm64:
shlib_target=; if [ -n "" ]; then \
shlib_target="darwin-shared"; \
elif [ -n "libcrypto" ]; then \
FIPSLD_CC="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"; CC=/tmp/openssl-fips-2.0.1-iOS-arm64/bin/fipsld; export CC FIPSLD_CC; \
fi; \
LIBRARIES="-L.. -lssl -L.. -lcrypto" ; \
make -f ../Makefile.shared -e \
APPNAME=openssl OBJECTS="openssl.o verify.o asn1pars.o req.o dgst.o dh.o dhparam.o enc.o passwd.o gendh.o errstr.o ca.o pkcs7.o crl2p7.o crl.o rsa.o rsautl.o dsa.o dsaparam.o ec.o ecparam.o x509.o genrsa.o gendsa.o genpkey.o s_server.o s_client.o speed.o s_time.o apps.o s_cb.o s_socket.o app_rand.o version.o sess_id.o ciphers.o nseq.o pkcs12.o pkcs8.o pkey.o pkeyparam.o pkeyutl.o spkac.o smime.o cms.o rand.o engine.o ocsp.o prime.o ts.o srp.o" \
LIBDEPS="-Wl,-search_paths_first $LIBRARIES " \
link_app.${shlib_target}
( :; LIBDEPS="${LIBDEPS:--Wl,-search_paths_first -L.. -lssl -L.. -lcrypto }"; LDCMD="${LDCMD:-/tmp/openssl-fips-2.0.1-iOS-arm64/bin/fipsld}"; LDFLAGS="${LDFLAGS:--isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -miphoneos-version-min=7.1 -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch arm64 -Os -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -fomit-frame-pointer -fno-common -I/tmp/openssl-fips-2.0.1-iOS-arm64/include}"; LIBPATH=`for x in $LIBDEPS; do echo $x; done | sed -e 's/^ *-L//;t' -e d | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o ${APPNAME:=openssl} openssl.o verify.o asn1pars.o req.o dgst.o dh.o dhparam.o enc.o passwd.o gendh.o errstr.o ca.o pkcs7.o crl2p7.o crl.o rsa.o rsautl.o dsa.o dsaparam.o ec.o ecparam.o x509.o genrsa.o gendsa.o genpkey.o s_server.o s_client.o speed.o s_time.o apps.o s_cb.o s_socket.o app_rand.o version.o sess_id.o ciphers.o nseq.o pkcs12.o pkcs8.o pkey.o pkeyparam.o pkeyutl.o spkac.o smime.o cms.o rand.o engine.o ocsp.o prime.o ts.o srp.o ${LIBDEPS} )
Unknown cpu type 100000c, no adjustments made
It will work if you add this to cpu_adjustment[]
CPU_TYPE_ARM64, CPU_SUBTYPE_ARM64_ALL, 12, 12 ,
For reference:
#define CPU_ARCH_ABI64 0x01000000 /* 64 bit ABI */
#define CPU_TYPE_ARM64 (CPU_TYPE_ARM | CPU_ARCH_ABI64)
/*
* ARM64 subtypes
*/
#define CPU_SUBTYPE_ARM64_ALL ((cpu_subtype_t) 0)
Finding the adjustment was fun. ;-)
I've modified the CPU type before, so it's doable. You may also need to modify the CPU adjustment as well. You need to add an entry to cpu_adjustment[] in incore_macho.c and cputype
I think for arm64 it is CPU_SUBTYPE_ARM64_V8 I do not know the adjustment. Please let us know if you get this to work
I am trying to compile kity-ios from this tutorial. But after running tools/build-all.sh, I am getting the following error:
EDIT:
(...)
checking for armv7-apple-darwin-gcc... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2
checking whether the C compiler works... no
configure: error: in `/Users/marcelosalloum/Projects/kivy-ios/tmp/Python-2.7.1':
configure: error: C compiler cannot create executables
See `config.log' for more details.
When I check the config.log file, it shows:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by python configure 2.7, which was
generated by GNU Autoconf 2.65. Invocation command line was
$ ./configure CC= /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 LD=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ld CFLAGS=-march=armv7 -mcpu=arm176jzf -mcpu=cortex-a8 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -miphoneos-version-min=7.0 -O3 LDFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -miphoneos-version-min=7.0 -Lextralibs/ -lsqlite3 --without-pymalloc --disable-toolbox-glue --host=armv7-apple-darwin --prefix=/python --without-doc-strings
## --------- ##
## Platform. ##
## --------- ##
hostname = MacBook-Pro-de-Marcelo-Salloum.local
uname -m = x86_64
uname -r = 12.5.0
uname -s = Darwin
uname -v = Darwin Kernel Version 12.5.0: Mon Jul 29 16:33:49 PDT 2013; root:xnu-2050.48.11~1/RELEASE_X86_64
/usr/bin/uname -p = i386
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 12.5.0: Mon Jul 29 16:33:49 PDT 2013; root:xnu-2050.48.11~1/RELEASE_X86_64
Kernel configured for up to 2 processors.
2 processors are physically available.
2 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1
Primary memory available: 4.00 gigabytes
Default processor set: 122 tasks, 600 threads, 2 processors
Load average: 1.76, Mach factor: 0.43
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /Library/Frameworks/Python.framework/Versions/2.7/bin
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /Library/Frameworks/Python.framework/Versions/2.7/bin
PATH: /Library/Frameworks/Python.framework/Versions/Current/bin
PATH: /opt/local/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /opt/X11/bin
PATH: /usr/local/git/bin
PATH: /usr/texbin
PATH: /Users/marcelosalloum/gsutil
PATH: /usr/local/mysql/bin
PATH: /opt/local/bin/gcc-mp-4.8
PATH: /usr/local/bin
PATH: /usr/local/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2747: checking for --enable-universalsdk
configure:2788: result: no
configure:2797: checking for --with-universal-archs
configure:2814: result: 32-bit
configure:2971: checking MACHDEP
configure:3119: result: darwin
configure:3125: checking EXTRAPLATDIR
configure:3140: result: $(PLATMACDIRS)
configure:3151: checking machine type as reported by uname -m
configure:3154: result: x86_64
configure:3167: checking for --without-gcc
configure:3211: result: no
configure:3232: checking for armv7-apple-darwin-gcc
configure:3259: result: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2
configure:3528: checking for C compiler version
configure:3537: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 --version >&5
./configure: line 3539: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2: No such file or directory
configure:3548: $? = 127
configure:3537: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 -v >&5
./configure: line 3539: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2: No such file or directory
configure:3548: $? = 127
configure:3537: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 -V >&5
./configure: line 3539: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2: No such file or directory
configure:3548: $? = 127
configure:3537: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 -qversion >&5
./configure: line 3539: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2: No such file or directory
configure:3548: $? = 127
configure:3568: checking whether the C compiler works
configure:3590: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 -march=armv7 -mcpu=arm176jzf -mcpu=cortex-a8 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -miphoneos-version-min=7.0 -O3 -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/lib/gcc/arm-apple-darwin11/4.2.1/include/ -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include/ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -miphoneos-version-min=7.0 -Lextralibs/ -lsqlite3 conftest.c >&5
./configure: line 3592: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2: No such file or directory
configure:3594: $? = 127
configure:3632: result: no
configure: failed program was:
| /* confdefs.h */
| #define _GNU_SOURCE 1
| #define _NETBSD_SOURCE 1
| #define __BSD_VISIBLE 1
| #define _BSD_TYPES 1
| #define _DARWIN_C_SOURCE 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3637: error: in `/Users/marcelosalloum/Projects/kivy-ios/tmp/Python-2.7.1':
configure:3641: 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=' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2'
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-march=armv7 -mcpu=arm176jzf -mcpu=cortex-a8 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -miphoneos-version-min=7.0 -O3'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value='-I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/lib/gcc/arm-apple-darwin11/4.2.1/include/ -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include/'
ac_cv_env_CPP_set=set
ac_cv_env_CPP_value=' /usr/bin/cpp -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/lib/gcc/arm-apple-darwin11/4.2.1/include/ -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include/'
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -miphoneos-version-min=7.0 -Lextralibs/ -lsqlite3'
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=armv7-apple-darwin
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_prog_CC=' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2'
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR=''
ARCH_RUN_32BIT=''
ARFLAGS=''
BASECFLAGS=''
BLDLIBRARY=''
BLDSHARED=''
BUILDEXEEXT=''
CC=' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2'
CCSHARED=''
CFLAGS='-march=armv7 -mcpu=arm176jzf -mcpu=cortex-a8 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -miphoneos-version-min=7.0 -O3'
CFLAGSFORSHARED=''
CONFIGURE_MACOSX_DEPLOYMENT_TARGET=''
CONFIG_ARGS=' '\''CC= /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2'\'' '\''LD=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ld'\'' '\''CFLAGS=-march=armv7 -mcpu=arm176jzf -mcpu=cortex-a8 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -miphoneos-version-min=7.0 -O3'\'' '\''LDFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -miphoneos-version-min=7.0 -Lextralibs/ -lsqlite3'\'' '\''--without-pymalloc'\'' '\''--disable-toolbox-glue'\'' '\''--host=armv7-apple-darwin'\'' '\''--prefix=/python'\'' '\''--without-doc-strings'\'' '\''host_alias=armv7-apple-darwin'\'' '\''CPPFLAGS=-I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/lib/gcc/arm-apple-darwin11/4.2.1/include/ -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include/'\'' '\''CPP= /usr/bin/cpp -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/lib/gcc/arm-apple-darwin11/4.2.1/include/ -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include/'\'''
CPP=' /usr/bin/cpp -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/lib/gcc/arm-apple-darwin11/4.2.1/include/ -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include/'
CPPFLAGS='-I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/lib/gcc/arm-apple-darwin11/4.2.1/include/ -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include/'
CXX=''
DEFS=''
DLINCLDIR=''
DLLLIBRARY=''
DYNLOADFILE=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
EXTRAMACHDEPPATH='$(PLATMACPATH)'
EXTRAPLATDIR='$(PLATMACDIRS)'
FRAMEWORKALTINSTALLFIRST=''
FRAMEWORKALTINSTALLLAST=''
FRAMEWORKINSTALLAPPSPREFIX=''
FRAMEWORKINSTALLFIRST=''
FRAMEWORKINSTALLLAST=''
FRAMEWORKUNIXTOOLSPREFIX='/python'
GNULD=''
GREP=''
HAVE_GETHOSTBYNAME=''
HAVE_GETHOSTBYNAME_R=''
HAVE_GETHOSTBYNAME_R_3_ARG=''
HAVE_GETHOSTBYNAME_R_5_ARG=''
HAVE_GETHOSTBYNAME_R_6_ARG=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
INSTSONAME=''
LDCXXSHARED=''
LDFLAGS='-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -miphoneos-version-min=7.0 -Lextralibs/ -lsqlite3'
LDLAST=''
LDLIBRARY=''
LDLIBRARYDIR=''
LDSHARED=''
LIBC=''
LIBFFI_INCLUDEDIR=''
LIBM=''
LIBOBJS=''
LIBRARY=''
LIBS=''
LIBTOOL_CRUFT=''
LINKCC=''
LINKFORSHARED=''
LIPO_32BIT_FLAGS=''
LN=''
LTLIBOBJS=''
MACHDEP='darwin'
MACHDEP_OBJS=''
MAINCC=''
OBJEXT=''
OPT=''
OTHER_LIBTOOL_OPT=''
PACKAGE_BUGREPORT='http://bugs.python.org/'
PACKAGE_NAME='python'
PACKAGE_STRING='python 2.7'
PACKAGE_TARNAME='python'
PACKAGE_URL=''
PACKAGE_VERSION='2.7'
PATH_SEPARATOR=':'
PKG_CONFIG=''
PYTHONFRAMEWORK=''
PYTHONFRAMEWORKDIR='no-framework'
PYTHONFRAMEWORKIDENTIFIER='org.python.python'
PYTHONFRAMEWORKINSTALLDIR=''
PYTHONFRAMEWORKPREFIX=''
RANLIB=''
RUNSHARED=''
SGI_ABI=''
SHELL='/bin/sh'
SHLIBS=''
SIGNAL_OBJS=''
SO=''
SOVERSION='1.0'
SRCDIRS=''
SVNVERSION=''
THREADHEADERS=''
THREADOBJ=''
TRUE=''
UNICODE_OBJS=''
UNIVERSALSDK=''
UNIVERSAL_ARCH_FLAGS=''
USE_SIGNAL_MODULE=''
USE_THREAD_MODULE=''
VERSION='2.7'
ac_ct_CC=''
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias='armv7-apple-darwin'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/python'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define _GNU_SOURCE 1
#define _NETBSD_SOURCE 1
#define __BSD_VISIBLE 1
#define _BSD_TYPES 1
#define _DARWIN_C_SOURCE 1
configure: exit 77
It is important to know that I installed kivy dependencies through Macports and not Homebrew as recommended. Althoug I sopposed it would work.
EDIT:
The script searches for an arm llvm compiler in /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 but this file does not exist in this path. How can I find it or how to get around this issue?
I tested it on my Mac. Got the same error. Maybe you should follow the recipe and use brew? To understand me right: If the maintainer writes it that way I believe this is because of some reason. Maybe you ask him? I myself did not use brew before, but this page says it is less intrusive than fink and macports, so you may give it a try. Without guaranteeing anything... ;-)
This issue was fixed by Mathieu Virbel in https://github.com/kivy/kivy-ios/issues/63
I'm trying to use SQLCipher in my iOS Phonegap Application. I've already installed SQLCipher and it worked fine. I recently upgraded my hole environment to support iOS6 and added SQLCipher to my project and now I'm getting this error:
/bin/sh -c /Volumes/Work/workspace/ios/webappskeleton/webappskeleton/sqlcipher/build/sqlcipher.build/Release-iphoneos/amalgamation.build/Script-9069D08A0FCE185A0042E34C.sh
checking build system type... i386-apple-darwin11.4.2
checking host system type... i386-apple-darwin11.4.2
checking for gcc... /usr/bin/gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make: *** No rule to make target `sqlite3.c'. Stop.
I'm new to objective-c. If you have any ideas about to solve this problem please let me know it.
My environment:
OSX 10.7.5
XCode 4.5.2
XCode Command Line Tools 4.5.2
EDIT:
Here's the content of 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 sqlite configure 3.7.12.1, which was
generated by GNU Autoconf 2.62. Invocation command line was
$ ./configure --enable-tempstore=yes CC=/usr/bin/gcc CFLAGS=-DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2
## --------- ##
## Platform. ##
## --------- ##
hostname = new-host-2.home
uname -m = x86_64
uname -r = 11.4.2
uname -s = Darwin
uname -v = Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64
/usr/bin/uname -p = i386
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64
Kernel configured for up to 4 processors.
2 processors are physically available.
4 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1 2 3
Primary memory available: 4.00 gigabytes
Default processor set: 114 tasks, 608 threads, 4 processors
Load average: 1.54, Mach factor: 2.44
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
PATH: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec
PATH: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin
PATH: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/local/bin
PATH: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/bin
PATH: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/local/bin
PATH: /Applications/Xcode.app/Contents/Developer/usr/bin
PATH: /Applications/Xcode.app/Contents/Developer/usr/local/bin
PATH: /Applications/Xcode.app/Contents/Developer/Tools
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /Users/nadir/.rvm/gems/ruby-1.9.3-p194/bin
PATH: /Users/nadir/.rvm/gems/ruby-1.9.3-p194#global/bin
PATH: /Users/nadir/.rvm/rubies/ruby-1.9.3-p194/bin
PATH: /Users/nadir/.rvm/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/local/mysql/bin
PATH: /Volumes/Work/android-sdk-macosx/tools
PATH: /Volumes/Work/android-sdk-macosx/platform-tools
PATH: /usr/X11/bin
PATH: /usr/local/git/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2131: checking build system type
configure:2149: result: i386-apple-darwin11.4.2
configure:2171: checking host system type
configure:2186: result: i386-apple-darwin11.4.2
configure:2256: checking for gcc
configure:2283: result: /usr/bin/gcc
configure:2521: checking for C compiler version
configure:2529: /usr/bin/gcc --version >&5
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Copyright (C) 2007 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:2533: $? = 0
configure:2540: /usr/bin/gcc -v >&5
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
configure:2544: $? = 0
configure:2551: /usr/bin/gcc -V >&5
llvm-gcc-4.2: argument to `-V' is missing
configure:2555: $? = 1
configure:2578: checking for C compiler default output file name
configure:2600: /usr/bin/gcc -DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2 conftest.c >&5
ld: warning: building for iOS, but linking against dylib built for MacOSX: /usr/lib/libSystem.dylib
configure:2604: $? = 0
configure:2642: result: a.out
configure:2659: checking whether the C compiler works
configure:2669: ./a.out
./configure: line 2671: 43322 Segmentation fault: 11 ./$ac_file
configure:2673: $? = 139
configure:2682: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i386-apple-darwin11.4.2
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/usr/bin/gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2'
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_TCLLIBDIR_set=
ac_cv_env_TCLLIBDIR_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=
ac_cv_env_target_alias_value=
ac_cv_host=i386-apple-darwin11.4.2
ac_cv_prog_ac_ct_CC=/usr/bin/gcc
## ----------------- ##
## Output variables. ##
## ----------------- ##
ALLOWRELEASE=''
AR=''
AWK=''
BUILD_CC=''
BUILD_CFLAGS=''
BUILD_EXEEXT=''
CC='/usr/bin/gcc'
CFLAGS='-DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2'
CPP=''
CPPFLAGS=''
DEFS=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GREP=''
HAVE_TCL=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LD=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OPT_FEATURE_FLAGS=''
OTOOL64=''
OTOOL=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='sqlite'
PACKAGE_STRING='sqlite 3.7.12.1'
PACKAGE_TARNAME='sqlite'
PACKAGE_VERSION='3.7.12.1'
PATH_SEPARATOR=':'
RANLIB=''
RELEASE=''
SED='/usr/bin/sed'
SHELL='/bin/sh'
SQLITE_OS_OS2=''
SQLITE_OS_UNIX=''
SQLITE_OS_WIN=''
SQLITE_THREADSAFE=''
STRIP=''
TARGET_DEBUG=''
TARGET_EXEEXT=''
TARGET_HAVE_READLINE=''
TARGET_READLINE_INC=''
TARGET_READLINE_LIBS=''
TCLLIBDIR=''
TCLSH_CMD=''
TCL_BIN_DIR=''
TCL_INCLUDE_SPEC=''
TCL_LIBS=''
TCL_LIB_FILE=''
TCL_LIB_FLAG=''
TCL_LIB_SPEC=''
TCL_SRC_DIR=''
TCL_STUB_LIB_FILE=''
TCL_STUB_LIB_FLAG=''
TCL_STUB_LIB_SPEC=''
TCL_VERSION=''
TEMP_STORE=''
USE_AMALGAMATION=''
USE_GCOV=''
VERSION=''
VERSION_NUMBER=''
XTHREADCONNECT=''
ac_ct_CC='/usr/bin/gcc'
ac_ct_DUMPBIN=''
bindir='${exec_prefix}/bin'
build='i386-apple-darwin11.4.2'
build_alias=''
build_cpu='i386'
build_os='darwin11.4.2'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i386-apple-darwin11.4.2'
host_alias=''
host_cpu='i386'
host_os='darwin11.4.2'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lt_ECHO='echo'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_NAME "sqlite"
#define PACKAGE_TARNAME "sqlite"
#define PACKAGE_VERSION "3.7.12.1"
#define PACKAGE_STRING "sqlite 3.7.12.1"
#define PACKAGE_BUGREPORT ""
configure: exit 1
Thanks in advance,
For those who are facing the same problem, just remove this repository content: {projectname}.xcodeproj/xcuserdata
Thanks Daij-Djan & Nick Parker for your help :-)
I also encountered this error.
I solved it by lowering the iOS Deployment Target from 6.1 to 5.0: