The script was unable to build leptonica because a space was missing when invoking “lipo”. Now the entire script can run again.