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

Use bash shell in riscv-tools Makefile #734

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jackhumphries
Copy link

@jackhumphries jackhumphries commented Dec 2, 2024

The Makefile currently uses &> which works in bash, but not other shells. On Ubuntu 20.04.6 LTS, make uses /bin/sh, which is a symlink to dash. dash does not support this syntax.

This PR explicitly sets the shell to bash in the Makefile.

Issue reported in black-parrot-hdk/zynq-parrot#106.

@dpetrisko
Copy link
Contributor

Another option is adding SHELL := /bin/bash in the manycore makefiles. Likely there are other assumptions about bash built-in

The Makefile currently uses &> which works in bash, but not other
shells. On Ubuntu 20.04.6 LTS, `make` uses /bin/sh, which is a symlink
to dash. dash does not support this syntax.

This PR explicitly sets the shell to bash in the Makefile.
@jackhumphries jackhumphries changed the title Use POSIX-compatible redirection in riscv-tools Makefile Use bash shell in riscv-tools Makefile Dec 2, 2024
@jackhumphries
Copy link
Author

That's a better solution. I updated this PR accordingly (though only did it for the riscv-tools Makefile).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants