Errors on target xcode_depends for iOS build
#1
Trying to build the iOS client following the readme, this is the result when running, make xcode_depends:

CPP xbmc/cores/DllLoader/exports/emu_dummy.o
CPP xbmc/cores/DllLoader/exports/emu_kernel32.o
CPP xbmc/cores/DllLoader/exports/emu_msvcrt.o
emu_msvcrt.cpp: In function ‘char*** dllpenviron()’:
emumsvcrt.cpp:2078: warning: dereferencing type-punned pointer will break strict-aliasing rules
AR xbmc/cores/DllLoader/exports/exports.a
CPP xbmc/cores/DllLoader/exports/util/EmuFileWrapper.o
AR xbmc/cores/DllLoader/exports/util/exports_utils.a
make -C xbmc/cores/DllLoader/exports wrapper.def
nm wrapper.o | grep __wrap | awk '{printf("%s ", $3);}' | sed "s/wrap_/wrap/g" | sed "s/wrap/-Wl,-wrap,/g" > wrapper.def
CPP xbmc/cores/DllLoader/coff.o
CPP xbmc/cores/DllLoader/dll.o
CPP xbmc/cores/DllLoader/DllLoader.o
DllLoader.cpp: In member function ‘virtual bool DllLoader::Load()’:
DllLoader.cpp:606: warning: dereferencing type-punned pointer will break strict-aliasing rules
DllLoader.cpp:616: warning: dereferencing type-punned pointer will break strict-aliasing rules
CPP xbmc/cores/DllLoader/DllLoaderContainer.o
CPP xbmc/cores/DllLoader/dll_tracker.o
CPP xbmc/cores/DllLoader/dll_tracker_file.o
CPP xbmc/cores/DllLoader/dll_tracker_library.o
CPP xbmc/cores/DllLoader/dll_util.o
CPP xbmc/cores/DllLoader/LibraryLoader.o
CPP xbmc/cores/DllLoader/SoLoader.o
CC xbmc/cores/DllLoader/mmap_anon.o
CC xbmc/cores/DllLoader/ldt_keeper.o
AR xbmc/cores/DllLoader/dllloader.a
/usr/bin/ranlib: file: dllloader.a(ldt_keeper.o) has no symbols
make -C lib
make -C ffmpeg
CC libavdevice/alldevices.o
clang (LLVM option parsing): Unknown command line argument '-stack-alignment=16'. Try: 'clang (LLVM option parsing) -help'
clang (LLVM option parsing): Did you mean '-ssc-dce-limit=16'?
make[2]: *** [libavdevice/alldevices.o] Error 1
make[1]: *** [ffmpeg] Error 2
make: *** [dvdpcodecs] Error 2
Reply
#2
do this so I can see more details.

V=1 make xcode_depends

Also describe your dev environment, osx 10.6/10.6, xcode version, etc.
Reply
#3
I am running 10.7 with XCode 4.3.3

This is the run with V=1


(master) z@z-macbook-air:~/dev/github/xbmc$ V=1 make xcode_depends
make[1]: `exports.a' is up to date.
make[1]: `exports_utils.a' is up to date.
make -C xbmc/cores/DllLoader/exports wrapper.def
make[1]: `wrapper.def' is up to date.
make[1]: `dllloader.a' is up to date.
make -C lib
make -C ffmpeg
clang -I. -I./ -no-cpp-precomp -I/Users/Shared/xbmc-depends/iphoneos5.1_armv7/include -miphoneos-version-min=4.2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -arch armv7 -mcpu=cortex-a8 -mfpu=neon -ftree-vectorize -mfloat-abi=softfp -pipe -Wno-trigraphs -fpascal-strings -O3 -Wreturn-type -Wunused-variable -fmessage-length=0 -gdwarf-2 -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -DHAVE_AV_CONFIG_H -std=gnu99 -no-cpp-precomp -miphoneos-version-min=4.2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -arch armv7 -mcpu=cortex-a8 -mfpu=neon -ftree-vectorize -mfloat-abi=softfp -pipe -Wno-trigraphs -fpascal-strings -O3 -Wreturn-type -Wunused-variable -fmessage-length=0 -gdwarf-2 -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/usr/include -g -D_DEBUG -Wall -O2 -std=gnu99 -no-cpp-precomp -miphoneos-version-min=4.2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -arch armv7 -mcpu=cortex-a8 -mfpu=neon -ftree-vectorize -mfloat-abi=softfp -pipe -Wno-trigraphs -fpascal-strings -O3 -Wreturn-type -Wunused-variable -fmessage-length=0 -gdwarf-2 -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/usr/include -g -D_DEBUG -Wall -O2 -w -D_DARWIN_C_SOURCE -Dattribute_deprecated= -mcpu=cortex-a8 -std=c99 -fomit-frame-pointer -fPIC -marm -g -Wdeclaration-after-statement -Wall -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -O3 -fno-math-errno -fno-signed-zeros -mllvm -stack-alignment=16 -Qunused-arguments -MMD -c -o libavdevice/alldevices.o libavdevice/alldevices.c
clang (LLVM option parsing): Unknown command line argument '-stack-alignment=16'. Try: 'clang (LLVM option parsing) -help'
clang (LLVM option parsing): Did you mean '-ssc-dce-limit=16'?
make[2]: *** [libavdevice/alldevices.o] Error 1
make[1]: *** [ffmpeg] Error 2
make: *** [dvdpcodecs] Error 2
Reply
#4
clang -v


macbook1:~ davilla$ clang -v
Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.3.0
Thread model: posix
Reply
#5
$ clang -v
Apple clang version 4.0 (tags/Apple/clang-421.10.42) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.0
Thread model: posix
Ok, just reverted so that we have the same version. Trying again.
Reply
#6
ok, its finally compiling. thanx for the help. the clang I was running was for XCode 4.5, which still left as the default one after I reverted from XCode 4.5 to 4.3.
Reply
#7
Well now that xcode_depends works, the project wont compile because of ambiguous iphone developer profiles.
Having multiple iphone developer accounts the shellscript running codesign with -s "iPhone Developer" will faild because it can't decide which profile to use.
I fixed this temporarily, to select the exact one.
And the app crashes when its executed:


Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0

Thread 0 Crashed:
0 dyld 0x2fe84464 strcmp + 0
1 dyld 0x2fe786e2 ImageLoaderMachO::parseLoadCmds() + 54
2 dyld 0x2fe80058 ImageLoaderMachOCompressed::instantiateFromFile(char const*, int, unsigned char const*, unsigned long long, unsigned long long, stat const&, unsigned int, unsigned int, linkedit_data_command const*, ImageLoader::LinkContext const&) + 296
3 dyld 0x2fe7923a ImageLoaderMachO::instantiateFromFile(char const*, int, unsigned char const*, unsigned long long, unsigned long long, stat const&, ImageLoader::LinkContext const&) + 302
4 dyld 0x2fe702f6 _ZN4dyldL10loadPhase6EiRK4statPKcRKNS_11LoadContextE + 478
5 dyld 0x2fe7055e _ZN4dyldL14loadPhase5statEPKcRKNS_11LoadContextEP4statPiPbPSt6vectorIS1_SaIS1_EE + 386
6 dyld 0x2fe70716 _ZN4dyldL10loadPhase5EPKcS1_RKNS_11LoadContextEPSt6vectorIS1_SaIS1_EE + 278
7 dyld 0x2fe708fe _ZN4dyldL10loadPhase4EPKcS1_RKNS_11LoadContextEPSt6vectorIS1_SaIS1_EE + 218
8 dyld 0x2fe70d5e _ZN4dyldL10loadPhase3EPKcS1_RKNS_11LoadContextEPSt6vectorIS1_SaIS1_EE + 250
9 dyld 0x2fe71240 _ZN4dyldL10loadPhase1EPKcS1_RKNS_11LoadContextEPSt6vectorIS1_SaIS1_EE + 108
10 dyld 0x2fe71392 _ZN4dyldL10loadPhase0EPKcS1_RKNS_11LoadContextEPSt6vectorIS1_SaIS1_EE + 262
11 dyld 0x2fe714c4 dyld::load(char const*, dyld::LoadContext const&) + 224
12 dyld 0x2fe6c676 _ZN4dyldL14libraryLocatorEPKcbS1_PKN11ImageLoader10RPathChainE + 50
13 dyld 0x2fe75fd6 ImageLoader::recursiveLoadLibraries(ImageLoader::LinkContext const&, bool, ImageLoader::RPathChain const&) + 406
14 dyld 0x2fe76590 ImageLoader::link(ImageLoader::LinkContext const&, bool, bool, ImageLoader::RPathChain const&) + 60
15 dyld 0x2fe6ff80 dyld::link(ImageLoader*, bool, ImageLoader::RPathChain const&) + 172
16 dyld 0x2fe71b58 dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**) + 1240
17 dyld 0x2fe6c2c8 dyldbootstrap:Confusedtart(macho_header const*, int, char const**, long, macho_header const*) + 572
18 dyld 0x2fe6c058 _dyld_start + 48
Reply
#8
you are trying to run this on a non jailbroken device by any chance?
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply

Logout Mark Read Team Forum Stats Members Help
Errors on target xcode_depends for iOS build0