osxcross icon indicating copy to clipboard operation
osxcross copied to clipboard

osx how to fix ./gen_sdk_package.sh: line 55: $2: ambiguous redirect tar: Write error

Open kocoman2 opened this issue 1 year ago • 1 comments

how to fix

tools % ./gen_sdk_package.sh

found Xcode: /Applications/Xcode.app packaging MacOSX12.3 SDK (this may take several minutes) ... ./gen_sdk_package.sh: line 55: $2: ambiguous redirect tar: Write error

line 55...

tar cf - $1 | $SDK_COMPRESSOR -5 - > $2 ;;

thx

kocoman2 avatar Sep 26 '22 09:09 kocoman2

ambiguous redirect might indicate there is something wrong with the path $WDIR/$SDK$SDK_EXT. https://github.com/tpoechtrager/osxcross/blob/50e86ebca7d14372febd0af8cd098705049161b9/tools/gen_sdk_package.sh#L121 https://github.com/tpoechtrager/osxcross/blob/50e86ebca7d14372febd0af8cd098705049161b9/tools/gen_sdk_package.sh#L151 https://github.com/tpoechtrager/osxcross/blob/50e86ebca7d14372febd0af8cd098705049161b9/tools/gen_sdk_package.sh#L198 https://github.com/tpoechtrager/osxcross/blob/50e86ebca7d14372febd0af8cd098705049161b9/tools/gen_sdk_package.sh#L49-L57 Does path to the current directory contain spaces? Are there some unexpected files/directories matching ^MacOSX13.*|^MacOSX12.*|^MacOSX11.*|^MacOSX10.*?

mite-user avatar Dec 03 '22 04:12 mite-user