osxcross
osxcross copied to clipboard
osx how to fix ./gen_sdk_package.sh: line 55: $2: ambiguous redirect tar: Write error
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
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.*
?