8000 `coursier` 2.1.25-M2 installation broken when updating with `brew` · Issue #3292 · coursier/coursier · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

coursier 2.1.25-M2 installation broken when updating with brew #3292

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

Open
Gedochao opened this issue Feb 13, 2025 · 9 comments
Open

coursier 2.1.25-M2 installation broken when updating with brew #3292

Gedochao opened this issue Feb 13, 2025 · 9 comments

Comments

@Gedochao
Copy link
Collaborator

What's the problem

So after updating coursier with brew, I ran into the following error:

cs
# The current machine does not support all of the following CPU features that are required by the image: [CX8, CMOV, FXSR, MMX, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, POPCNT, LZCNT, AVX, AVX2, BMI1, BMI2, FMA].
# Please rebuild the executable with an appropriate setting of the -march option.%

The update was to 2.1.25-M1.

Workaround

I ended up re-installing with brew - no luck, still broken.

What works is using the install script from https://get-coursier.io/docs/cli-installation#macos

curl -fL https://github.com/coursier/coursier/releases/latest/download/cs-aarch64-apple-darwin.gz | gzip -d > cs
chmod +x cs
./cs setup

Now it works:

cs version
# 2.1.25-M1

So I'm guessing something is wrong with 2.1.25-M1 on brew, specifically.

Extra context

I'm using an Apple M1 machine.

This seems like the same problem raised by @jivanic-demystdata in #3237 (comment)

@arixmkii
Copy link

Looks like update script broke the formula with version bump coursier/homebrew-formulas@d0dea27 It removed recently added support of arm64

@arixmkii
Copy link
arixmkii commented Feb 13, 2025

The template and update script in workflow are at fault https://github.com/coursier/coursier/blob/main/.github/scripts/coursier.rb.template https://github.com/coursier/coursier/blob/main/.github/scripts/UpdateBrewFormula.scala They were not updated after the changes were merged into formula repo.

@arie-benichou
Copy link
arie-benichou commented Feb 17, 2025

same thing here on linux, after cs update :

The current machine does not support all of the following CPU features that are required by the image: [CX8, CMOV, FXSR, MMX, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, POPCNT, LZCNT, AVX, AVX2, BMI1, BMI2, FMA].
Please rebuild the executable with an appropriate setting of the -march option.

The problem seems to come when using the cs shortcut command.
However, when using the coursier command, there is no issue, so i just type coursier instead of cs.

I don't know if it is linked, but i also had a problem with scalafmt 3.9.0 that was not formatting code at all.

@eed3si9n
Copy link
Contributor
eed3si9n commented Feb 17, 2025

Could you revert coursier/homebrew-formulas@d0dea27 please? - coursier/homebrew-formulas#14

@Gedochao
Copy link
Collaborator Author

Seems to be fixed after coursier/homebrew-formulas#14, closing this

@eed3si9n
Copy link
Contributor

As predicted by Alex, it immediately broke when 2.1.25-M2 was released. I wonder if it's possible to send a PR instead of pushing the change to the repo:
https://github.com/coursier/homebrew-formulas/actions/runs/13400712139/job/37430637354

@RopoMen
Copy link
RopoMen commented Feb 28, 2025

I tried today with Apple M4 usin brew install coursier/formulas/coursier and got this error

The current machine does not support all of the following CPU features that are required by the image: [CX8, CMOV, FXSR, MMX, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, POPCNT, LZCNT, AVX, AVX2, BMI1, BMI2, FMA].

Fixed by uninstalling and downloading binary manually.

@noelwelsh
Copy link

Similar issue. brew install coursier/formulas/coursier downloads the wrong binary on an M2 Mac, giving

The current machine does not support all of the following CPU features that are required by the image: [CX8, CMOV, FXSR, MMX, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, POPCNT, LZCNT, AVX, AVX2, BMI1, BMI2, FMA].

This indicates an Intel binary instead of an ARM one. Installing via brew install coursier works correctly, but does not link the cs executable. The cs executable can be installed by running coursier setup.

@Gedochao Gedochao reopened this Mar 5, 2025
@Gedochao Gedochao changed the title coursier 2.1.25-M1 installation broken when updating with brew coursier 2.1.25-M2 installation broken when updating with brew Mar 5, 2025
@Gedochao
Copy link
Collaborator Author
Gedochao commented Mar 5, 2025

It seems there's already a related, open PR:

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

6 participants
0