fyne-io / fyne-cross

Cross compiler tool for Fyne apps
BSD 3-Clause "New" or "Revised" License
237 stars 48 forks source link

Docker image creation for darwin fails on M1 #48

Open lucor opened 3 years ago

lucor commented 3 years ago

fyne-cross is unable to create the darwin docker image on M1

From https://github.com/fyne-io/fyne-cross/pull/45#issuecomment-841144009:

#10 230.7 make[1]: Leaving directory '/osxcross/build/p7zip/CPP/7zip/UI/Console'
#10 230.8 ./install.sh /osxcross/target/SDK/tools/bin /osxcross/target/SDK/tools/lib/p7zip /osxcross/target/SDK/tools/man /osxcross/target/SDK/tools/share/doc/p7zip 
#10 231.1 - installing /osxcross/target/SDK/tools/bin/7z
#10 231.1 - installing /osxcross/target/SDK/tools/lib/p7zip/7z.so
#10 231.2 - installing /osxcross/target/SDK/tools/lib/p7zip/Codecs
#10 231.2 - installing /osxcross/target/SDK/tools/man/man1/7z.1
#10 231.2 - installing /osxcross/target/SDK/tools/man/man1/7za.1
#10 231.3 - installing /osxcross/target/SDK/tools/man/man1/7zr.1
#10 231.3 - installing /osxcross/target/SDK/tools/share/doc/p7zip/README
#10 231.4 - installing /osxcross/target/SDK/tools/share/doc/p7zip/ChangeLog
#10 231.4 - installing HTML help in /osxcross/target/SDK/tools/share/doc/p7zip/DOC
#10 233.1 
#10 233.1 Unpacking /tmp/command_line_tools_for_xcode.dmg ...
#10 233.1 /osxcross/target/SDK/tools/bin/7z x "/tmp/command_line_tools_for_xcode.dmg"  "Command Line Developer Tools/Command Line Tools.pkg"
#10 233.7 
#10 233.7 7-Zip [64] 9.38 beta  Copyright (c) 1999-2014 Igor Pavlov  2015-01-03
#10 233.7 p7zip Version 9.38.1 (locale=C,Utf16=off,HugeFiles=on,4 CPUs)
#10 233.7 
#10 233.7 Processing archive: /tmp/command_line_tools_for_xcode.dmg
#10 233.7 
#10 233.7 Errors: 
#10 233.7 Unexpected end of archive
#10 233.7 
#10 233.7 CLTools_Executables.pkg/Payload
#10 233.7 Errors: 
#10 233.7 There are data after the end of archive
#10 233.7 
#10 233.7 Warning:
#10 233.7 /tmp/command_line_tools_for_xcode.dmg
#10 233.7 Can not open the file as [Dmg] archive
#10 233.7 The file is open as [Xar] archive
#10 233.7 
#10 233.7 
#10 233.7 No files to process
#10 233.7 
#10 233.7 
#10 233.7 Archives with Errors: 1
#10 233.7 
#10 233.7 Open Errors: 2
#10 233.7 
#10 233.7 Removing /osxcross/build/tmp_7722 ...
------
executor failed running [/bin/sh -c ./tools/gen_sdk_package_tools_dmg.sh /tmp/command_line_tools_for_xcode.dmg]: exit code: 2
[✗] could not create the docker darwin image: exit status 1
exit status 1
realnbuz commented 3 years ago

@andydotxyz This seems to be a different error as #50 which is why I didn't #metoo this one but if they are being addressed together that works for me!