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

bug: build fails on Apple Silicon Mac #3308

Open
jahorton opened this issue Jan 29, 2025 · 1 comment
Open

bug: build fails on Apple Silicon Mac #3308

jahorton opened this issue Jan 29, 2025 · 1 comment

Comments

@jahorton
Copy link
Contributor

jahorton commented Jan 29, 2025

Attempting to run this repo's ./build.sh, without parameters, on an Apple Silicon Mac yields:

jahorton@Mactop keyboards % ./build.sh                       
[/Users/jahorton/keymanapp/keyboards] build.sh parameters: <>
grep: invalid option -- P
usage: grep [-abcdDEFGHhIiJLlMmnOopqRSsUVvwXxZz] [-A num] [-B num] [-C[num]]
        [-e pattern] [-f file] [--binary-files=value] [--color=when]
        [--context[=num]] [--directories=action] [--label] [--line-buffered]
        [--null] [pattern] [file ...]
grep: invalid option -- P
usage: grep [-abcdDEFGHhIiJLlMmnOopqRSsUVvwXxZz] [-A num] [-B num] [-C[num]]
        [-e pattern] [-f file] [--binary-files=value] [--color=when]
        [--context[=num]] [--directories=action] [--label] [--line-buffered]
        [--null] [pattern] [file ...]
grep: invalid option -- P
usage: grep [-abcdDEFGHhIiJLlMmnOopqRSsUVvwXxZz] [-A num] [-B num] [-C[num]]
        [-e pattern] [-f file] [--binary-files=value] [--color=when]
        [--context[=num]] [--directories=action] [--label] [--line-buffered]
        [--null] [pattern] [file ...]
grep: invalid option -- P
usage: grep [-abcdDEFGHhIiJLlMmnOopqRSsUVvwXxZz] [-A num] [-B num] [-C[num]]
        [-e pattern] [-f file] [--binary-files=value] [--color=when]
        [--context[=num]] [--directories=action] [--label] [--line-buffered]
        [--null] [pattern] [file ...]
[/Users/jahorton/keymanapp/keyboards] ## build starting...
[/Users/jahorton/keymanapp/keyboards] ## build completed successfully
jahorton@Mactop keyboards % 

I'm pretty sure this is occurring within the collect_build_targets function in resources/build_targets.inc.sh.

@mcdurdin
Copy link
Member

Le sigh apple versions of software.

This may help: https://stackoverflow.com/questions/59232089/how-to-install-gnu-grep-on-mac-os

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

No branches or pull requests

2 participants