SAD1992 / iphone-dataprotection

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

Error while building ramdisk #66

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Move IPSW into directory
2. Use kernel patcher to build the recovery data
3. run sh make_ramdisk_n88ap.sh 

What is the expected output? What do you see instead?
I expect to get a ramdisk for recovery but this error happens instead

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

Please provide any additional information below.

$ sh make_ramdisk_n88ap.sh 
Found iOS SDK 5.1
ln -s /System/Library/Frameworks/IOKit.framework/Versions/Current/Headers IOKit
Wall -isysroot 
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/ 
-DHGVERSION="\"0fd3568b3526\"" -framework IOKit -framework CoreFoundation 
-framework Security -O3 -I. -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
Wall: illegal option -- i
usage: wall [-g group] [file]
make: [device_infos] Error 1 (ignored)
ldid -Stfp0.plist device_infos
minimal/mapping.h(54): _assert(false); errno=2
make: *** [device_infos] Error 1
ramdisk_to

Original issue reported on code.google.com by solo...@bundy.org on 19 Jul 2012 at 4:50

GoogleCodeExporter commented 8 years ago
Looks like the Makefile couldnt find a compiler.
Can you run "ls /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/" and 
post the output here ? Thanks.

Original comment by jean.sig...@gmail.com on 22 Jul 2012 at 9:58

GoogleCodeExporter commented 8 years ago
i think my compiler was corrupted i reinstalled Xcode and it fixed it

Original comment by solo...@bundy.org on 24 Jul 2012 at 5:22

GoogleCodeExporter commented 8 years ago
Hello,

i have the same problem like theunixc. 

If i try to make the makefile in ramdisk_tools with the command: make -f 
Makefile, i get the following error:

MacBook-Pro:ramdisk_tools maik$ make -f Makefile 
Wall -isysroot 
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/ 
-DHGVERSION="\"2112108faf04\"" -framework IOKit -framework CoreFoundation 
-framework Security -O3 -I. -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
Wall: illegal option -- i
usage: wall [-g group] [file]
make: [device_infos] Error 1 (ignored)
ldid -Stfp0.plist device_infos
./minimal/mapping.h(54): _assert(2:false)
make: *** [device_infos] Trace/BPT trap: 5

I have xcode 4.5 installed. If i run "ls 
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/" the output is "No 
such file or directory".
I work on a 10.7 Mac OSX.

Original comment by hybridhe...@googlemail.com on 3 Oct 2012 at 10:50

GoogleCodeExporter commented 8 years ago
Try running this command and trying again:
sudo ln -s /Applications/Xcode.App/Contents/Developer /

Original comment by jean.sig...@gmail.com on 7 Oct 2012 at 12:26

GoogleCodeExporter commented 8 years ago
The Output of the Command:

sudo ln -s /Applications/Xcode.app/Contents/Developer/
Password:
ln: ./: File exists

So that means the tools are on my computer. SO what could be the reasen for my 
issue with your makefile?

Greetings

Original comment by hybridhe...@googlemail.com on 8 Oct 2012 at 8:07

GoogleCodeExporter commented 8 years ago
Can you run "ls /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/" and 
post the output here ? Thanks.

Original comment by jean.sig...@gmail.com on 9 Oct 2012 at 7:07

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
This is the output:

ls /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/
ls: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/: No such file or 
directory

I`m sorry, but i dont understand what i have to do.

Thank u for helping.

Original comment by hybridhe...@googlemail.com on 10 Oct 2012 at 7:17

GoogleCodeExporter commented 8 years ago
I think you forgot the " /" at the end of the command :
sudo ln -s /Applications/Xcode.App/Contents/Developer /

then "ls /Developer/" should work, and the makefile as well.

Original comment by jean.sig...@gmail.com on 21 Oct 2012 at 12:34

GoogleCodeExporter commented 8 years ago
Ty for ur reply.

Now im able to run the cmd: "ls 
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/"

Output:
PackageApplication          gcov                    llvm-gcc-4.2
Validation              gcov-4.2                nm
ar                  gdb                 nmedit
arm-apple-darwin10-llvm-g++-4.2     gprof                   otool
arm-apple-darwin10-llvm-gcc-4.2     i686-apple-darwin10-llvm-g++-4.2    pagestuff
as                  i686-apple-darwin10-llvm-gcc-4.2    pngcrush
cmpdylib                install_name_tool           ranlib
codesign_allocate           iphoneos-optimize           rebase
copypng                 ld                  redo_prebinding
csent                   ld_classic              segedit
ctf_insert              libtool                 size
dsymutil                lipo                    strings
dwarfdump               llvm-cpp-4.2                strip
dyldinfo                llvm-g++                texturetool
g++                 llvm-g++-4.2                unwinddump
gcc                 llvm-gcc

-----------------------

If i run the "ls /Developer/" cmd i got the following output:

Documentation   Library     Makefiles   Platforms   Toolchains  Tools       usr

----------------------

But, if i try to make ur Makefile i got a lots of errors:

/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm
-gcc-4.2 -Wall -isysroot 
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/ 
-DHGVERSION="\"7ae0e9ebbb57\"" -framework IOKit -framework CoreFoundation 
-framework Security -O3 -I. -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
device_infos.c:1:19: error: stdio.h: No such file or directory
device_infos.c:2:20: error: stdint.h: No such file or directory
device_infos.c:3:43: error: CoreFoundation/CoreFoundation.h: No such file or 
directory
In file included from device_infos.c:4:
device_info.h:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’ before ‘device_info’
In file included from device_infos.c:5:
util.h:2: error: expected specifier-qualifier-list before ‘uint64_t’
util.h:8: error: expected specifier-qualifier-list before ‘uint16_t’
util.h:46: error: expected specifier-qualifier-list before ‘uint64_t’
util.h:55: error: expected specifier-qualifier-list before ‘uint64_t’
util.h:69: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’ before ‘CreateHexaCFString’
util.h:71: warning: type defaults to ‘int’ in declaration of ‘uint8_t’
util.h:71: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
util.h:72: warning: type defaults to ‘int’ in declaration of ‘uint8_t’
util.h:72: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
util.h:73: error: expected declaration specifiers or ‘...’ before 
‘uint8_t’
util.h:73: error: expected declaration specifiers or ‘...’ before 
‘size_t’
util.h:75: error: expected ‘)’ before ‘out’
util.h:76: error: expected ‘)’ before ‘filename’
util.h:77: error: expected ‘)’ before ‘out’

There are a lots of more errors, but i think this will be to mutch in this blog.

Original comment by hybridhe...@googlemail.com on 22 Oct 2012 at 11:32

GoogleCodeExporter commented 8 years ago
No solution for my problem? I realy need to compile this tools.

Original comment by hybridhe...@googlemail.com on 7 Nov 2012 at 2:15

GoogleCodeExporter commented 8 years ago
what version of the ios sdk are you using (you can check by running ls 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
/SDKs/)
you can then fix the first line of the Makefile to match your version

Original comment by jean.sig...@gmail.com on 7 Nov 2012 at 8:59

GoogleCodeExporter commented 8 years ago
Ok this was the reason of my issue. The compile succeeded.

I got several warnings during the build. Can i ignor them?

Anyway thank you for help.

Original comment by hybridhe...@googlemail.com on 8 Nov 2012 at 7:22

GoogleCodeExporter commented 8 years ago
yes you can ignore the warnings

Original comment by jean.sig...@gmail.com on 10 Nov 2012 at 11:54

GoogleCodeExporter commented 8 years ago
closing old issues

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