osxcross icon indicating copy to clipboard operation
osxcross copied to clipboard

[p7zip packaging method] XCode 7.3 doesn't work

Open tavianator opened this issue 8 years ago • 4 comments

If you have an idea what's going wrong, I'm happy to help debug/fix this:

$ ./tools/gen_sdk_package_p7zip.sh ~/Downloads/Xcode_7.3.dmg

7-Zip [64] 9.38 beta  Copyright (c) 1999-2014 Igor Pavlov  2015-01-03
p7zip Version 9.38.1 (locale=C,Utf16=off,HugeFiles=on,8 CPUs)

Processing archive: /home/tavianator/Downloads/Xcode_7.3.dmg


No files to process

Everything is Ok

Files: 0
Size:       0
Compressed: 5199845256

7-Zip [64] 9.38 beta  Copyright (c) 1999-2014 Igor Pavlov  2015-01-03
p7zip Version 9.38.1 (locale=C,Utf16=off,HugeFiles=on,8 CPUs)

Processing archive: /home/tavianator/Downloads/Xcode_7.3.dmg


No files to process

Everything is Ok

Files: 0
Size:       0
Compressed: 5199845256

tavianator avatar Apr 12 '16 20:04 tavianator

Weird, looks like the 7.3 DMG ~~has partitions~~ (I guess all DMG files do, but for 7.2, 7z automatically starts listing the contents of 3.hfs; it doesn't for 7.3 and 5.hfs, but extracting that manually seems to work):

$ ./target/SDK/tools/bin/7z l ~/Downloads/Xcode_7.3.dmg

7-Zip [64] 9.38 beta  Copyright (c) 1999-2014 Igor Pavlov  2015-01-03
p7zip Version 9.38.1 (locale=en_CA.UTF-8,Utf16=on,HugeFiles=on,8 CPUs)

Listing archive: /home/tavianator/Downloads/Xcode_7.3.dmg

--
Path = /home/tavianator/Downloads/Xcode_7.3.dmg
Type = Dmg
Physical Size = 5199845256
Method = Copy Zero2 ZLIB CRC
Blocks = 8306

   Date      Time    Attr         Size   Compressed  Name
------------------- ----- ------------ ------------  ------------------------
                    .....          512           32  0.MBR
                    .....          512           77  1.Primary GPT Header
                    .....        16384          263  2.Primary GPT Table
                    .....         3072            0  3.free
                    .....    209715200       919477  4.C12A7328-F81F-11D2-BA4B-00A0C93EC93B
                    .....   8890347520   5198423057  5.hfs
                    .....    134221312            0  6.free
                    .....        16384          263  7.Backup GPT Table
                    .....          512           81  8.Backup GPT Header
------------------- ----- ------------ ------------  ------------------------
                            9234321408   5199343250  9 files

tavianator avatar Apr 12 '16 20:04 tavianator

Manually extracting 5.hfs, and then running gen_sdk_package_p7zip.sh says

$ ./tools/gen_sdk_package_p7zip.sh 5.hfs

7-Zip [64] 9.38 beta  Copyright (c) 1999-2014 Igor Pavlov  2015-01-03
p7zip Version 9.38.1 (locale=C,Utf16=off,HugeFiles=on,8 CPUs)

Processing archive: /home/tavianator/code/osxcross/5.hfs

Errors: 
Headers Error

...


Sub items Errors: 1

Archives with Errors: 1

Open Errors: 1

Sub items Errors: 1

So I'm guessing that's part of the issue.

tavianator avatar Apr 12 '16 20:04 tavianator

Thanks for reporting this. You can use ./tools/gen_sdk_package_darling_dmg.sh until I can figure out what's going on.

tpoechtrager avatar Apr 13 '16 17:04 tpoechtrager

I actually managed to get 7.3 to work using the OSX gen_sdk_package.sh on the test mac, however the compilation fails on the following step due to Availability.h not being found. I've attached the error in a different thread.

bfoo75 avatar Apr 13 '16 21:04 bfoo75