Skip to content

Instantly share code, notes, and snippets.

@BitPuffin
Created June 16, 2014 14:04
Show Gist options
  • Save BitPuffin/52cf2268f600c0541a7e to your computer and use it in GitHub Desktop.
Save BitPuffin/52cf2268f600c0541a7e to your computer and use it in GitHub Desktop.
% sh -x ./configure --verbose -cc "xcrun -sdk iphoneos clang" -partialld "xcrun -sdk iphoneos ld -r"
+ configure_options='--verbose -cc xcrun -sdk iphoneos clang -partialld xcrun -sdk iphoneos ld -r'
+ prefix=/usr/local
+ bindir=
+ libdir=
+ mandir=
+ manext=1
+ host_type=unknown
+ target_type=
+ ccoption=
+ asoption=
+ asppoption=
+ cclibs=
+ curseslibs=
+ mathlib=-lm
+ dllib=
+ x11_include_dir=
+ x11_lib_dir=
+ graph_wanted=yes
+ pthread_wanted=yes
+ dl_defs=
+ verbose=no
+ with_curses=yes
+ debugruntime=noruntimed
+ with_sharedlibs=yes
+ gcc_warnings=-Wall
+ partialld='ld -r'
+ with_debugger=ocamldebugger
+ with_ocamldoc=ocamldoc
+ with_ocamlbuild=ocamlbuild
+ with_frame_pointers=false
+ no_naked_pointers=false
+ TOOLPREF=
+ with_cfi=true
+ unset LANG
+ unset LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME
+ unset RC_TRACE_ARCHIVES RC_TRACE_DYLIBS RC_TRACE_PREBINDING_DISABLED
+ exec
+ echo '--verbose -cc xcrun -sdk iphoneos clang -partialld xcrun -sdk iphoneos ld -r'
+ grep -q -e '--\?[a-zA-Z0-9-]\+='
+ :
+ case "$1" in
+ verbose=yes
+ shift
+ :
+ case "$1" in
+ ccoption='xcrun -sdk iphoneos clang'
+ shift
+ shift
+ :
+ case "$1" in
+ partialld='xcrun -sdk iphoneos ld -r'
+ shift
+ shift
+ :
+ case "$1" in
+ break
+ case "$prefix" in
+ case "$bindir" in
+ case "$libdir" in
+ case "$mandir" in
+ cd config/auto-aux
+ rm -f s.h m.h Makefile
+ touch s.h m.h Makefile
+ echo '# generated by ./configure --verbose -cc xcrun -sdk iphoneos clang -partialld xcrun -sdk iphoneos ld -r'
+ echo PREFIX=/usr/local
+ case "$bindir" in
+ echo 'BINDIR=$(PREFIX)/bin'
+ bindir=/usr/local/bin
+ case "$libdir" in
+ echo 'LIBDIR=$(PREFIX)/lib/ocaml'
+ libdir=/usr/local/lib/ocaml
+ echo 'STUBLIBDIR=$(LIBDIR)/stublibs'
+ case "$mandir" in
+ echo 'MANDIR=$(PREFIX)/man'
+ mandir=/usr/local/man
+ echo MANEXT=1
+ test unknown = unknown
++ ../gnu/config.guess
+ host_type=x86_64-apple-darwin13.2.0
+ :
++ ../gnu/config.sub x86_64-apple-darwin13.2.0
+ host=x86_64-apple-darwin13.2.0
+ :
+ inf 'Configuring for host x86_64-apple-darwin13.2.0 ...'
+ printf '%b\n' 'Configuring for host x86_64-apple-darwin13.2.0 ...'
Configuring for host x86_64-apple-darwin13.2.0 ...
+ test -n ''
+ target=x86_64-apple-darwin13.2.0
+ inf 'Configuring for target x86_64-apple-darwin13.2.0 ...'
+ printf '%b\n' 'Configuring for target x86_64-apple-darwin13.2.0 ...'
Configuring for target x86_64-apple-darwin13.2.0 ...
+ test -z 'xcrun -sdk iphoneos clang'
+ cc='xcrun -sdk iphoneos clang'
+ inf 'Using compiler xcrun -sdk iphoneos clang.'
+ printf '%b\n' 'Using compiler xcrun -sdk iphoneos clang.'
Using compiler xcrun -sdk iphoneos clang.
+ buggycc=no
+ case "$target,$cc" in
+ bytecc='xcrun -sdk iphoneos clang'
+ mkexe='$(BYTECC)'
+ mkexedebugflag=-g
+ bytecccompopts=
+ bytecclinkopts=
+ dllccompopts=
+ ostype=Unix
+ exe=
+ iflexdir=
+ SO=so
+ TOOLCHAIN=cc
+ case "$bytecc,$target" in
+ bytecccompopts=-Wall
+ mathlib=
+ mkexe='$(BYTECC) -Wl,-no_compact_unwind'
+ echo '#ifndef __PIC__'
+ echo '# define ARCH_CODE32'
+ echo '#endif'
+ cc='xcrun -sdk iphoneos clang -O '
+ export cc cclibs verbose
+ sh ./runtest ansi.c
runtest: xcrun -sdk iphoneos clang -O -o tst ansi.c
ld: warning: ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/usr/lib/crt1.o, missing required architecture x86_64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/usr/lib/crt1.o (5 slices)ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/usr/lib/libSystem.dylib, missing required architecture x86_64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/usr/lib/libSystem.dylib (3 slices)
ld: dynamic main executables must link with libSystem.dylib for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
+ case $? in
+ test xx86_64-apple-darwin13.2.0 '!=' xx86_64-apple-darwin13.2.0
+ err 'Unable to compile the test program.\n' 'Make sure the C compiler xcrun -sdk iphoneos clang -O is properly installed.'
+ printf '[ERROR!]%b\n' 'Unable to compile the test program.\n Make sure the C compiler xcrun -sdk iphoneos clang -O is properly installed.'
[ERROR!]Unable to compile the test program.
Make sure the C compiler xcrun -sdk iphoneos clang -O is properly installed.
+ exit 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment