You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.
in a freshly cloned mcsema repository will fail on Could not find interpreter: bash\r due to script binfmt being intolerant of carriage returns (and bash is as well, IIRC, so running bash directly instead wouldn't do any good.)
I believe this can be remedied simply by adding
*.sh text eol=lf
into a file called .gitattributes in the root of the repository, to ensure that the shell scripts are never converted to crlf.
Existing checkouts on Windows will still have crlf copies of the shell scripts, but new checkouts should no longer have this issue.
I can confirm that converting the shell scripts called by cmake install to UNIX line endings allows a Docker build to succeed.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently, performing
docker build -t mcsema .
in a freshly cloned mcsema repository will fail on
Could not find interpreter: bash\r
due to script binfmt being intolerant of carriage returns (and bash is as well, IIRC, so running bash directly instead wouldn't do any good.)I believe this can be remedied simply by adding
into a file called
.gitattributes
in the root of the repository, to ensure that the shell scripts are never converted to crlf.Existing checkouts on Windows will still have crlf copies of the shell scripts, but new checkouts should no longer have this issue.
I can confirm that converting the shell scripts called by cmake install to UNIX line endings allows a Docker build to succeed.
The text was updated successfully, but these errors were encountered: