FiloSottile / homebrew-musl-cross

Homebrew Formula for static-friendly musl-based GCC macOS-to-Linux cross-compilers
https://blog.filippo.io/easy-windows-and-linux-cross-compilers-for-macos/
ISC License
547 stars 45 forks source link

Error: invalid option: --without-x86_64 Error: invalid option: --with-aarch64 #17

Closed goodforever closed 7 months ago

goodforever commented 4 years ago

run on Mac Os Catalina version 10.15.3 brew install FiloSottile/musl-cross/musl-cross --without-x86_64 --with-aarch64 Error: invalid option: --without-x86_64

run brew install FiloSottile/musl-cross/musl-cross --with-aarch64 Error: invalid option: --with-aarch64

FiloSottile commented 4 years ago

That's weird, brew install FiloSottile/musl-cross/musl-cross --without-x86_64 --with-aarch64 works for me on Catalina with the latest brew. Try uninstalling the formula if you already have it, and updating Homebrew?

FiloSottile commented 4 years ago

Timing out in waiting for info, feel free to open a new issue if you encounter this issue again.

jiayihu commented 3 years ago

I'm having the same issue, seems to be caused by install options being removed from brew 2.0 https://discourse.brew.sh/t/since-homebrew-2-0-0-install-params-always-give-invalid-option/4075/2

What is the alternative way to run the install? I'm not familiar with Ruby unfortunately, I guess it's something like cloning and running musl-cross.rb

symgryph commented 3 years ago

I had the same issue, install w/o any options and then 'reinstall' with appropriate options

brianstrauch commented 8 months ago
brew install FiloSottile/musl-cross/musl-cross
brew reinstall musl-cross --with-aarch64
FiloSottile commented 7 months ago

I just tested

brew install filosottile/musl-cross/musl-cross --without-x86_64 --without-aarch64 --with-arm-hf

and it works with the latest Homebrew.

If folks are still running into this, please open a new issue with brew and macOS versions.