Support troubleshooting iOS Build Tools Installation
Bob Vandette
bob.vandette at oracle.com
Wed Nov 8 20:09:27 UTC 2017
The -miphoneos-version-min=5.1.1 is getting set from the fact that you are trying to do an arm32 bit build for
some reason. We only support 64-bit ARM builds.
This is set in generate-darwin-source-and-headers.py
I’m not sure what might be wrong with your setup.
You might try to open the libffi.xcodeproj in the libffi-3.2.1 package to see which architectures
are listed and restrict it to arm64.
Bob.
> On Nov 8, 2017, at 2:44 PM, juanmarianofuentes <juanmarianofuentes at gmail.com> wrote:
>
> Thanks for helping Bob.
>
> By default when I create a new project on Xcode it targets iOS 10.3. The lowest deployment target I can access is iOS 8.0.
>
> Changing the deployment target, closing Xcode. Running the build again, same error and config.log.
>
>> On Nov 8, 2017, at 8:11 PM, Bob Vandette <bob.vandette at oracle.com> wrote:
>>
>> This might be caused by -miphoneos-version-min=5.1.1
>>
>> What is your default target iphone version in your Xcode setup?
>>
>> My config.log contains 7.0
>>
>> CCASFLAGS = -miphoneos-version-min=7.0
>> CFLAGS = -miphoneos-version-min=7.0
>>
>> Bob.
>>
>>
>>> On Nov 8, 2017, at 1:57 PM, juanmarianofuentes <juanmarianofuentes at gmail.com> wrote:
>>>
>>> Thanks for helping Gary. Yes I have the command line tools.
>>>
>>> The log contains some clang errors and maybe missing libs? (Full text below) Does this mean I need a very particular version to get this working?
>>>
>>> clang --version
>>> Apple LLVM version 8.1.0 (clang-802.0.42)
>>> Target: x86_64-apple-darwin16.7.0
>>> Thread model: posix
>>> InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
>>>
>>> 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 libffi configure 3.2.1, which was
>>> generated by GNU Autoconf 2.69. Invocation command line was
>>>
>>> $ ../configure -host arm-apple-darwin11
>>>
>>> ## --------- ##
>>> ## Platform. ##
>>> ## --------- ##
>>>
>>> hostname = LiloLaptop
>>> uname -m = x86_64
>>> uname -r = 16.7.0
>>> uname -s = Darwin
>>> uname -v = Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/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 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64
>>> Kernel configured for up to 8 processors.
>>> 4 processors are physically available.
>>> 8 processors are logically available.
>>> Processor type: i486 (Intel 80486)
>>> Processors active: 0 1 2 3 4 5 6 7
>>> Primary memory available: 8.00 gigabytes
>>> Default processor set: 290 tasks, 1225 threads, 8 processors
>>> Load average: 3.21, Mach factor: 4.77
>>> /bin/machine = unknown
>>> /usr/bin/oslevel = unknown
>>> /bin/universe = unknown
>>>
>>> PATH: /usr/gnu/bin
>>> PATH: /usr/local/bin
>>> PATH: /bin
>>> PATH: /usr/bin
>>> PATH: .
>>>
>>>
>>> ## ----------- ##
>>> ## Core tests. ##
>>> ## ----------- ##
>>>
>>> configure:2745: checking build system type
>>> configure:2759: result: i386-apple-darwin16.7.0
>>> configure:2779: checking host system type
>>> configure:2792: result: arm-apple-darwin11
>>> configure:2812: checking target system type
>>> configure:2825: result: arm-apple-darwin11
>>> configure:2922: checking for gsed
>>> configure:2953: result: sed
>>> configure:2981: checking for a BSD-compatible install
>>> configure:3049: result: /usr/bin/install -c
>>> configure:3060: checking whether build environment is sane
>>> configure:3115: result: yes
>>> configure:3171: checking for arm-apple-darwin11-strip
>>> configure:3201: result: no
>>> configure:3211: checking for strip
>>> configure:3227: found /usr/bin/strip
>>> configure:3238: result: strip
>>> configure:3263: checking for a thread-safe mkdir -p
>>> configure:3302: result: ../install-sh -c -d
>>> configure:3309: checking for gawk
>>> configure:3339: result: no
>>> configure:3309: checking for mawk
>>> configure:3339: result: no
>>> configure:3309: checking for nawk
>>> configure:3339: result: no
>>> configure:3309: checking for awk
>>> configure:3325: found /usr/bin/awk
>>> configure:3336: result: awk
>>> configure:3347: checking whether make sets $(MAKE)
>>> configure:3369: result: yes
>>> configure:3398: checking whether make supports nested variables
>>> configure:3415: result: yes
>>> configure:3518: checking for arm-apple-darwin11-gcc
>>> configure:3545: result: xcrun -sdk iphoneos clang -arch armv7
>>> configure:3814: checking for C compiler version
>>> configure:3823: xcrun -sdk iphoneos clang -arch armv7 --version >&5
>>> Apple LLVM version 8.1.0 (clang-802.0.42)
>>> Target: arm-apple-darwin16.7.0
>>> Thread model: posix
>>> InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
>>> configure:3834: $? = 0
>>> configure:3823: xcrun -sdk iphoneos clang -arch armv7 -v >&5
>>> Apple LLVM version 8.1.0 (clang-802.0.42)
>>> Target: arm-apple-darwin16.7.0
>>> Thread model: posix
>>> InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
>>> configure:3834: $? = 0
>>> configure:3823: xcrun -sdk iphoneos clang -arch armv7 -V >&5
>>> clang: error: argument to '-V' is missing (expected 1 value)
>>> clang: error: no input files
>>> configure:3834: $? = 1
>>> configure:3823: xcrun -sdk iphoneos clang -arch armv7 -qversion >&5
>>> clang: error: unknown argument: '-qversion'
>>> clang: error: no input files
>>> configure:3834: $? = 1
>>> configure:3854: checking whether the C compiler works
>>> configure:3876: xcrun -sdk iphoneos clang -arch armv7 -miphoneos-version-min=5.1.1 conftest.c >&5
>>> ld: library not found for -lcrt1.3.1.o
>>> clang: error: linker command failed with exit code 1 (use -v to see invocation)
>>> configure:3880: $? = 1
>>> configure:3918: result: no
>>> configure: failed program was:
>>> | /* confdefs.h */
>>> | #define PACKAGE_NAME "libffi"
>>> | #define PACKAGE_TARNAME "libffi"
>>> | #define PACKAGE_VERSION "3.2.1"
>>> | #define PACKAGE_STRING "libffi 3.2.1"
>>> | #define PACKAGE_BUGREPORT "http://github.com/atgreen/libffi/issues"
>>> | #define PACKAGE_URL ""
>>> | #define PACKAGE "libffi"
>>> | #define VERSION "3.2.1"
>>> | /* end confdefs.h. */
>>> |
>>> | int
>>> | main ()
>>> | {
>>> |
>>> | ;
>>> | return 0;
>>> | }
>>> configure:3923: error: in `/Volumes/data/code/repository/objectdb-ui-ios/src/main/libs/libffi-3.2.1/build_iphoneos-armv7':
>>> configure:3925: error: C compiler cannot create executables
>>> See `config.log' for more details
>>>
>>> ## ---------------- ##
>>> ## Cache variables. ##
>>> ## ---------------- ##
>>>
>>> ac_cv_build=i386-apple-darwin16.7.0
>>> ac_cv_env_CCASFLAGS_set=
>>> ac_cv_env_CCASFLAGS_value=
>>> ac_cv_env_CCAS_set=
>>> ac_cv_env_CCAS_value=
>>> ac_cv_env_CPPFLAGS_set=
>>> ac_cv_env_CPPFLAGS_value=
>>> ac_cv_env_CPP_set=
>>> ac_cv_env_CPP_value=
>>> ac_cv_env_CXXCPP_set=
>>> ac_cv_env_CXXCPP_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-darwin11
>>> ac_cv_env_target_alias_set=
>>> ac_cv_env_target_alias_value=
>>> ac_cv_host=arm-apple-darwin11
>>> ac_cv_path_ax_enable_builddir_sed=sed
>>> ac_cv_path_install='/usr/bin/install -c'
>>> ac_cv_prog_AWK=awk
>>> ac_cv_prog_CC='xcrun -sdk iphoneos clang -arch armv7'
>>> ac_cv_prog_ac_ct_STRIP=strip
>>> ac_cv_prog_make_make_set=yes
>>> ac_cv_target=arm-apple-darwin11
>>> am_cv_make_support_nested_variables=yes
>>>
>>> ## ----------------- ##
>>> ## Output variables. ##
>>> ## ----------------- ##
>>>
>>> AARCH64_FALSE=''
>>> AARCH64_TRUE=''
>>> ACLOCAL='${SHELL} /Volumes/data/code/repository/objectdb-ui-ios/src/main/libs/libffi-3.2.1/missing aclocal-1.13'
>>> ALLOCA=''
>>> ALPHA_FALSE=''
>>> ALPHA_TRUE=''
>>> AMDEPBACKSLASH=''
>>> AMDEP_FALSE=''
>>> AMDEP_TRUE=''
>>> AMTAR='$${TAR-tar}'
>>> AM_BACKSLASH='\'
>>> AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
>>> AM_DEFAULT_VERBOSITY='1'
>>> AM_LTLDFLAGS=''
>>> AM_RUNTESTFLAGS=''
>>> AM_V='$(V)'
>>> AR=''
>>> ARC_FALSE=''
>>> ARC_TRUE=''
>>> ARM_FALSE=''
>>> ARM_TRUE=''
>>> AUTOCONF='${SHELL} /Volumes/data/code/repository/objectdb-ui-ios/src/main/libs/libffi-3.2.1/missing autoconf'
>>> AUTOHEADER='${SHELL} /Volumes/data/code/repository/objectdb-ui-ios/src/main/libs/libffi-3.2.1/missing autoheader'
>>> AUTOMAKE='${SHELL} /Volumes/data/code/repository/objectdb-ui-ios/src/main/libs/libffi-3.2.1/missing automake-1.13'
>>> AVR32_FALSE=''
>>> AVR32_TRUE=''
>>> AWK='awk'
>>> BFIN_FALSE=''
>>> BFIN_TRUE=''
>>> CC='xcrun -sdk iphoneos clang -arch armv7'
>>> CCAS=''
>>> CCASDEPMODE=''
>>> CCASFLAGS=''
>>> CCDEPMODE=''
>>> CFLAGS='-miphoneos-version-min=5.1.1'
>>> CPP=''
>>> CPPFLAGS=''
>>> CXX=''
>>> CXXCPP=''
>>> CXXDEPMODE=''
>>> CXXFLAGS=''
>>> CYGPATH_W='echo'
>>> DEFS=''
>>> DEPDIR=''
>>> DLLTOOL=''
>>> DSYMUTIL=''
>>> DUMPBIN=''
>>> ECHO_C='\c'
>>> ECHO_N=''
>>> ECHO_T=''
>>> EGREP=''
>>> EXEEXT=''
>>> FFI_DEBUG_FALSE=''
>>> FFI_DEBUG_TRUE=''
>>> FFI_EXEC_TRAMPOLINE_TABLE=''
>>> FFI_EXEC_TRAMPOLINE_TABLE_FALSE=''
>>> FFI_EXEC_TRAMPOLINE_TABLE_TRUE=''
>>> FGREP=''
>>> FRV_FALSE=''
>>> FRV_TRUE=''
>>> GREP=''
>>> HAVE_LONG_DOUBLE=''
>>> HAVE_LONG_DOUBLE_VARIANT=''
>>> IA64_FALSE=''
>>> IA64_TRUE=''
>>> INSTALL_DATA='${INSTALL} -m 644'
>>> INSTALL_PROGRAM='${INSTALL}'
>>> INSTALL_SCRIPT='${INSTALL}'
>>> INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
>>> LD='xcrun -sdk iphoneos ld -arch armv7'
>>> LDFLAGS=''
>>> LIBFFI_CRIS_FALSE=''
>>> LIBFFI_CRIS_TRUE=''
>>> LIBOBJS=''
>>> LIBS=''
>>> LIBTOOL=''
>>> LIPO=''
>>> LN_S=''
>>> LTLIBOBJS=''
>>> M32R_FALSE=''
>>> M32R_TRUE=''
>>> M68K_FALSE=''
>>> M68K_TRUE=''
>>> M88K_FALSE=''
>>> M88K_TRUE=''
>>> MAINT=''
>>> MAINTAINER_MODE_FALSE=''
>>> MAINTAINER_MODE_TRUE=''
>>> MAKEINFO='${SHELL} /Volumes/data/code/repository/objectdb-ui-ios/src/main/libs/libffi-3.2.1/missing makeinfo'
>>> MANIFEST_TOOL=''
>>> METAG_FALSE=''
>>> METAG_TRUE=''
>>> MICROBLAZE_FALSE=''
>>> MICROBLAZE_TRUE=''
>>> MIPS_FALSE=''
>>> MIPS_TRUE=''
>>> MKDIR_P='../install-sh -c -d'
>>> MOXIE_FALSE=''
>>> MOXIE_TRUE=''
>>> NIOS2_FALSE=''
>>> NIOS2_TRUE=''
>>> NM=''
>>> NMEDIT=''
>>> OBJDUMP=''
>>> OBJEXT=''
>>> OR1K_FALSE=''
>>> OR1K_TRUE=''
>>> OTOOL64=''
>>> OTOOL=''
>>> PA64_HPUX_FALSE=''
>>> PA64_HPUX_TRUE=''
>>> PACKAGE='libffi'
>>> PACKAGE_BUGREPORT='http://github.com/atgreen/libffi/issues'
>>> PACKAGE_NAME='libffi'
>>> PACKAGE_STRING='libffi 3.2.1'
>>> PACKAGE_TARNAME='libffi'
>>> PACKAGE_URL=''
>>> PACKAGE_VERSION='3.2.1'
>>> PATH_SEPARATOR=':'
>>> PA_HPUX_FALSE=''
>>> PA_HPUX_TRUE=''
>>> PA_LINUX_FALSE=''
>>> PA_LINUX_TRUE=''
>>> POWERPC_AIX_FALSE=''
>>> POWERPC_AIX_TRUE=''
>>> POWERPC_DARWIN_FALSE=''
>>> POWERPC_DARWIN_TRUE=''
>>> POWERPC_FALSE=''
>>> POWERPC_FREEBSD_FALSE=''
>>> POWERPC_FREEBSD_TRUE=''
>>> POWERPC_TRUE=''
>>> PRTDIAG=''
>>> RANLIB=''
>>> S390_FALSE=''
>>> S390_TRUE=''
>>> SED=''
>>> SET_MAKE=''
>>> SH64_FALSE=''
>>> SH64_TRUE=''
>>> SHELL='/bin/sh'
>>> SH_FALSE=''
>>> SH_TRUE=''
>>> SPARC_FALSE=''
>>> SPARC_TRUE=''
>>> STRIP='strip'
>>> TARGET=''
>>> TARGETDIR=''
>>> TESTSUBDIR_FALSE=''
>>> TESTSUBDIR_TRUE=''
>>> TILE_FALSE=''
>>> TILE_TRUE=''
>>> VAX_FALSE=''
>>> VAX_TRUE=''
>>> VERSION='3.2.1'
>>> X86_64_FALSE=''
>>> X86_64_TRUE=''
>>> X86_DARWIN32_FALSE=''
>>> X86_DARWIN32_TRUE=''
>>> X86_DARWIN64_FALSE=''
>>> X86_DARWIN64_TRUE=''
>>> X86_DARWIN_FALSE=''
>>> X86_DARWIN_TRUE=''
>>> X86_FALSE=''
>>> X86_FREEBSD_FALSE=''
>>> X86_FREEBSD_TRUE=''
>>> X86_TRUE=''
>>> X86_WIN32_FALSE=''
>>> X86_WIN32_TRUE=''
>>> X86_WIN64_FALSE=''
>>> X86_WIN64_TRUE=''
>>> XTENSA_FALSE=''
>>> XTENSA_TRUE=''
>>> ac_ct_AR=''
>>> ac_ct_CC=''
>>> ac_ct_CXX=''
>>> ac_ct_DUMPBIN=''
>>> am__EXEEXT_FALSE=''
>>> am__EXEEXT_TRUE=''
>>> am__fastdepCCAS_FALSE=''
>>> am__fastdepCCAS_TRUE=''
>>> am__fastdepCC_FALSE=''
>>> am__fastdepCC_TRUE=''
>>> am__fastdepCXX_FALSE=''
>>> am__fastdepCXX_TRUE=''
>>> am__include=''
>>> am__isrc=' -I$(srcdir)'
>>> am__leading_dot='.'
>>> am__nodep=''
>>> am__quote=''
>>> am__tar='$${TAR-tar} chof - "$$tardir"'
>>> am__untar='$${TAR-tar} xf -'
>>> ax_enable_builddir_sed='sed'
>>> bindir='${exec_prefix}/bin'
>>> build='i386-apple-darwin16.7.0'
>>> build_alias=''
>>> build_cpu='i386'
>>> build_os='darwin16.7.0'
>>> build_vendor='apple'
>>> datadir='${datarootdir}'
>>> datarootdir='${prefix}/share'
>>> docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
>>> dvidir='${docdir}'
>>> exec_prefix='NONE'
>>> host='arm-apple-darwin11'
>>> host_alias='arm-apple-darwin11'
>>> host_cpu='arm'
>>> host_os='darwin11'
>>> host_vendor='apple'
>>> htmldir='${docdir}'
>>> includedir='${prefix}/include'
>>> infodir='${datarootdir}/info'
>>> install_sh='${SHELL} /Volumes/data/code/repository/objectdb-ui-ios/src/main/libs/libffi-3.2.1/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='NONE'
>>> program_transform_name='s,x,x,'
>>> psdir='${docdir}'
>>> sbindir='${exec_prefix}/sbin'
>>> sharedstatedir='${prefix}/com'
>>> sys_symbol_underscore=''
>>> sysconfdir='${prefix}/etc'
>>> target='arm-apple-darwin11'
>>> target_alias='arm-apple-darwin11'
>>> target_cpu='arm'
>>> target_os='darwin11'
>>> target_vendor='apple'
>>> toolexecdir=''
>>> toolexeclibdir=''
>>>
>>> ## ----------- ##
>>> ## confdefs.h. ##
>>> ## ----------- ##
>>>
>>> /* confdefs.h */
>>> #define PACKAGE_NAME "libffi"
>>> #define PACKAGE_TARNAME "libffi"
>>> #define PACKAGE_VERSION "3.2.1"
>>> #define PACKAGE_STRING "libffi 3.2.1"
>>> #define PACKAGE_BUGREPORT "http://github.com/atgreen/libffi/issues"
>>> #define PACKAGE_URL ""
>>> #define PACKAGE "libffi"
>>> #define VERSION "3.2.1"
>>>
>>> configure: exit 77
>>>
>>
>
More information about the mobile-dev
mailing list