pruthvikar / iphone-dataprotection

Automatically exported from code.google.com/p/iphone-dataprotection
0 stars 0 forks source link

Cannot compile ramdisk_tools #110

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Installed xCode 4.6.3 + command line tool
2. Download iPhoneOS5.0.sdk from xCode 4.3
4. Download iPhone2,1_5.1.1_9B206_Restore.ipsw for iPhone 3GS (I've also tried 
iPhone2,1_5.0_9A334_Restore.ipsw, same result)
3. Follow guide here: http://code.google.com/p/iphone-dataprotection/wiki/README
4. Got stuck at sh ./make_ramdisk_n88ap.sh

What is the expected output? What do you see instead?

Expected:
ramdrive created

Error:
XXXXX:ramdisk_tools XXXX$ make all
clang -arch armv7 -v -Wall -isysroot 
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk 
-DHGVERSION="\"e51ae39e7f5b\"" -O3 -I. -framework CoreFoundation -framework 
IOKit -framework Security -miphoneos-version-min=4.0 -o device_infos 
device_infos.c device_info.c IOAESAccelerator.c AppleEffaceableStorage.c 
AppleKeyStore.c bsdcrypto/pbkdf2.c bsdcrypto/sha1.c bsdcrypto/key_wrap.c 
bsdcrypto/rijndael.c util.c IOKit.c registry.c ioflash/ioflash.c 
kernel_patcher.c
clang version 3.2 
Target: arm-apple-darwin11.4.2
Thread model: posix
 "/usr/local/Cellar/llvm/HEAD/bin/clang" -cc1 -triple thumbv7-apple-ios4.0.0 -emit-obj -disable-free -main-file-name device_infos.c -pic-level 2 -mdisable-fp-elim -masm-verbose -target-abi apcs-gnu -target-cpu cortex-a8 -mfloat-abi soft -target-feature +soft-float-abi -target-linker-version 128.2 -v -resource-dir /usr/local/Cellar/llvm/HEAD/bin/../lib/clang/3.2 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -D "HGVERSION=\"e51ae39e7f5b\"" -I . -fmodule-cache-path /var/folders/69/lnclncrd0dq8s9g006fwxk9cs6fnkf/T/clang-module-cache -O3 -Wall -fdebug-compilation-dir /Users/t855054/iphone-dataprotection/ramdisk_tools -ferror-limit 19 -fmessage-length 95 -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=ios-4.0.0 -fobjc-default-synthesize-properties -fsjlj-exceptions -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/69/lnclncrd0dq8s9g006fwxk9cs6fnkf/T/device_infos-qk9KgB.o -x c device_infos.c
clang -cc1 version 3.2 based upon LLVM 3.2svn default target 
x86_64-apple-darwin11.4.2
ignoring nonexistent directory 
"/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/local
/include"
ignoring nonexistent directory 
"/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/Library/F
rameworks"
#include "..." search starts here:
#include <...> search starts here:
 .
 /usr/local/Cellar/llvm/HEAD/bin/../lib/clang/3.2/include
 /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/include
 /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/Frameworks (framework directory)
End of search list.
device_infos.c:9:28: warning: initializing 'CFMutableDictionaryRef' (aka
      'struct __CFDictionary *') with an expression of type 'CFDictionaryRef' (aka 'const
      struct __CFDictionary *') discards qualifiers [-Wincompatible-pointer-types]
    CFMutableDictionaryRef out = device_info(-1, NULL);
                           ^     ~~~~~~~~~~~~~~~~~~~~~
error: unable to create target: 'No available targets are compatible with this 
triple, see
      -version for the available targets.'
1 warning and 1 error generated.
make: *** [device_infos] Error 1

What version of the product are you using? On what operating system?

OS X version : 10.7.5
XCode version : 4.6.3
Tools revision : e51ae39e7f5b+ tip

Please provide any additional information below:

I've tried to build objects individually first, but that failed as well.

Original issue reported on code.google.com by kalu...@gmail.com on 19 Jun 2013 at 1:51

GoogleCodeExporter commented 8 years ago
looks like you have clang installed via homebrew taking precedence over the 
xcode version. try looking at the $PATH environnement variable and remove 
references to /usr/local/Cellar/ before compiling.

Original comment by jean.sig...@gmail.com on 23 Jun 2013 at 9:44

GoogleCodeExporter commented 8 years ago
yap, that was the problem, thanks for noticing. please close the ticket.

Original comment by kalu...@gmail.com on 23 Jun 2013 at 9:04

GoogleCodeExporter commented 8 years ago
I am also having this issue, I dont have any homebrew in the path

echo $PATH
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr
/X11/bin:/usr/local/git/bin

However clang does seem to be installed

which clang
/usr/bin/clang

How do I get around this?

Original comment by n...@0x00.me.uk on 16 Jul 2013 at 4:56

GoogleCodeExporter commented 8 years ago
closing old issues

Original comment by jean.sig...@gmail.com on 11 Feb 2014 at 10:38