tpoechtrager / osxcross

Mac OS X cross toolchain for Linux, FreeBSD, OpenBSD and Android (Termux)
GNU General Public License v2.0
2.81k stars 320 forks source link

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

Open kocoman2 opened 1 year ago

kocoman2 commented 1 year ago

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

mite-user commented 1 year ago

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.*?