Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

retdec-archive-decompiler.sh on macOS fails with "error: The timeout command is required but it is not available" #260

Closed
s3rvac opened this issue Mar 31, 2018 · 1 comment

Comments

@s3rvac
Copy link
Member

s3rvac commented Mar 31, 2018

On macOS, retdec-archive-decompiler.sh fails with the following error:

$ retdec-archive-decompiler.sh
error: The `timeout` command is required but it is not available. Aborting.

The reason for this is that on macOS, timeout from GNU coreutils is installed as gtimeout (unless you have installed coreutils with brew install coreutils --with-default-names).

We should update the script so it uses gtimeout when available (we already do the same for e.g. greadlink and gha256sum).

@s3rvac s3rvac self-assigned this Mar 31, 2018
s3rvac added a commit that referenced this issue Mar 31, 2018
Before this commit, retdec-archive-decompiler.sh on macOS failed with the
following error:

    $ retdec-archive-decompiler.sh
    error: The `timeout` command is required but it is not available. Aborting.

The reason for this is that on macOS, timeout from GNU coreutils is installed
as gtimeout (unless you have installed coreutils with `brew install coreutils
--with-default-names`).

The present commit updates the script so it uses gtimeout when available (we
already do the same for e.g. greadlink and gha256sum).
@s3rvac
Copy link
Member Author

s3rvac commented Mar 31, 2018

Fixed in b9214ea. When gtimeout is available, it is now used instead of timeout. This fixes many of our regression tests on macOS.

@s3rvac s3rvac closed this as completed Mar 31, 2018
mbandzi pushed a commit that referenced this issue Apr 9, 2018
Before this commit, retdec-archive-decompiler.sh on macOS failed with the
following error:

    $ retdec-archive-decompiler.sh
    error: The `timeout` command is required but it is not available. Aborting.

The reason for this is that on macOS, timeout from GNU coreutils is installed
as gtimeout (unless you have installed coreutils with `brew install coreutils
--with-default-names`).

The present commit updates the script so it uses gtimeout when available (we
already do the same for e.g. greadlink and gha256sum).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant