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

Homebrew bash conflict (on arm64) #1269

Closed
ascheman opened this issue Oct 29, 2023 · 0 comments · Fixed by #1271
Closed

Homebrew bash conflict (on arm64) #1269

ascheman opened this issue Oct 29, 2023 · 0 comments · Fixed by #1271

Comments

@ascheman
Copy link
Contributor

Describe the bug
At least on arm64, if using a recent version of Homebrew, its bash (i.e., /opt/homebrew/bin/bash) is only an 'arm64' binary.
Hence, every internal call to bash will result in an arm64 architecture run of the respective executable/script.
The intended run of dtc (and the internal Java) as implemented by #1031 is nullified.
Instead, the script should explicitly call the dual architecture /bin/bash to ensure the execution remains in the x86_64 universe.

To Reproduce

  • Install Homebrew with bash on Apple Silicon
  • Run ./dtcw generateSite

Get the following error

arch: posix_spawnp: bash: Bad CPU type in executable
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 a pull request may close this issue.

1 participant