Error
'bash\r': No such file or directory
happens when, f.e. trying to cross build from windows to mac os due to CRLF end lines in some files (f.e. darwin.sh, but I noticed a lot of others with the same).
To check the file you can do (on windows f.e. in git bash):
That file would be broken when running it from docker (which is what cross is doing).
I did not have the same issue on linux machine (probably some tooling - likely git - replaces CRLF to LF automatically; while it does not happen on windows machines).
Error
'bash\r': No such file or directory
happens when, f.e. trying to cross build from windows to mac os due to CRLF end lines in some files (f.e. darwin.sh, but I noticed a lot of others with the same).To check the file you can do (on windows f.e. in git bash):
if you see
^M$
at end lines, f.e. like this:That file would be broken when running it from docker (which is what cross is doing).
I did not have the same issue on linux machine (probably some tooling - likely git - replaces CRLF to LF automatically; while it does not happen on windows machines).