You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also, this module is broken. The cause of the breakage (upstream or not) doesn't really matter -- unless you're saying "I never plan on fixing this," keeping the issue open helps the community understand what's going on.
Finally, I predict this will become more of a pressing issue now that Apple has stopped selling x64 MacBook Pros entirely, AND this module is a dependency of the electron installer builders.
Reacted by Cyrille Chépélov, Zoe Colley and Christiaan Kortekaas
I'm not keen on having to patch dependencies like this because I'm not familiar with the cpu_features codebase (let alone macs), so I'm not really qualified to say whether the changes in one PR or another is correct (there are multiple PRs now to add M1 support in cpu_features, all delayed for various reasons).
That's fair, but I propose the issue is kept open until the problem no longer exists.
One way or another, the upstream will presumably pick one of the fixes ...
@mscdex looks like you've fixed all the build issues for M1 Macs, but I'm not seeing the new commits published to npm. Would you mind getting a new version out? Thanks!
Reacted by Ivy Evans, Cyrille Chépélov, Silas Baronda, Paul Cohen and tycrimm
AFAIK there is still no M1 support upstream. The only Apple-related fixes that I originally floated and were eventually made upstream (which I pulled in awhile back) were for macOS x86.
It took me a minute to realize the dependency is bundled in deps/cpu_features. I tried grabbing the tarball and replacing the directory, but it looks like it's more involved than that.
@mscdex I'm afraid after upgrading to ssh 1.8.0 which brings in cpu-features 0.3 I started getting "dyld missing symbol called" in my jest integration tests and webpack compilation. This is on a Macbook Pro M1 Max with MacOS 12.3 and Node 16.14.2. I'm happy to run any debug commands locally that might help. For now, I've pinned ssh back to 1.7.0. Thanks for your hard work on these libraries 🙇♂️
If anyone here is getting those symbol errors while running the cpu-features tests, can you provide a backtrace (via gdb or lldb or similar) to show what the missing symbol is? You may need to switch from Release to Debug in lib/index.js and node-gyp --debug rebuild in order to see symbols and proper backtraces.
Looks like cpu_features' support for M1 macs isn't complete then. 🤷♂️
So I guess if you want to see it fixed, continue to bug them about it/test for them over on their repo.
I guess something like this PR will fix things as that should resolve the undefined symbol issue. Whether or not additional changes are needed for reading the M1's CPU features compared to the existing solutions for arm64-based systems (e.g. Linux), I don't know.
I guess something like this PR will fix things as that should resolve the undefined symbol issue. Whether or not additional changes are needed for reading the M1's CPU features compared to the existing solutions for arm64-based systems (e.g. Linux), I don't know.
Cool, yeah sounds like the problem derives from lack of support there and it seems like a fix is in progress
@alexbosworth The underlying problem still exists (M1 support doesn't actually exist in cpu_features), the only difference is that we now explicitly report the M1 as an unknown CPU without any feature flags instead of crashing at runtime.
Activity
mscdex commentedon Dec 22, 2021
I'm not keen on having to patch dependencies like this because I'm not familiar with the cpu_features codebase (let alone macs), so I'm not really qualified to say whether the changes in one PR or another is correct (there are multiple PRs now to add M1 support in cpu_features, all delayed for various reasons).
jwatte commentedon Dec 22, 2021
That's fair, but I propose the issue is kept open until the problem no longer exists.
One way or another, the upstream will presumably pick one of the fixes ...
lxe commentedon Feb 1, 2022
@mscdex looks like you've fixed all the build issues for M1 Macs, but I'm not seeing the new commits published to npm. Would you mind getting a new version out? Thanks!
starzou commentedon Feb 22, 2022
@mscdex Hello, Are there new plans?
mscdex commentedon Feb 22, 2022
AFAIK there is still no M1 support upstream. The only Apple-related fixes that I originally floated and were eventually made upstream (which I pulled in awhile back) were for macOS x86.
bompi88 commentedon Mar 8, 2022
@mscdex A new version is now available: https://github.com/google/cpu_features/releases/tag/v0.7.0
technicalpickles commentedon Mar 10, 2022
It took me a minute to realize the dependency is bundled in
deps/cpu_features. I tried grabbing the tarball and replacing the directory, but it looks like it's more involved than that.mscdex commentedon Mar 17, 2022
I've landed cpu_features v0.7.0 in the master branch. Everyone feel free to give it a whirl and let me know how it works for you.
mscdex commentedon Mar 24, 2022
I'm going to assume the aforementioned upgrade fixed things. If not, let me know.
ckortekaas commentedon Mar 25, 2022
@mscdex I'm afraid after upgrading to ssh 1.8.0 which brings in cpu-features 0.3 I started getting "dyld missing symbol called" in my jest integration tests and webpack compilation. This is on a Macbook Pro M1 Max with MacOS 12.3 and Node 16.14.2. I'm happy to run any debug commands locally that might help. For now, I've pinned ssh back to 1.7.0. Thanks for your hard work on these libraries 🙇♂️
mscdex commentedon Mar 25, 2022
@ckortekaas If you're getting them from
ssh2, then please create an issue in that repo.mscdex commentedon Mar 25, 2022
If anyone here is getting those symbol errors while running the
cpu-featurestests, can you provide a backtrace (via gdb or lldb or similar) to show what the missing symbol is? You may need to switch from Release to Debug in lib/index.js andnode-gyp --debug rebuildin order to see symbols and proper backtraces.mscdex commentedon Mar 25, 2022
FWIW I can't reproduce those errors on Github's infrastructure and I don't have any mac hardware myself to test on.
alexbosworth commentedon Mar 25, 2022
I'm not sure if this helps but here is what I get in lldb
mscdex commentedon Mar 25, 2022
@alexbosworth What does
btshow?alexbosworth commentedon Mar 25, 2022
mscdex commentedon Mar 25, 2022
Looks like cpu_features' support for M1 macs isn't complete then. 🤷♂️
So I guess if you want to see it fixed, continue to bug them about it/test for them over on their repo.
I guess something like this PR will fix things as that should resolve the undefined symbol issue. Whether or not additional changes are needed for reading the M1's CPU features compared to the existing solutions for arm64-based systems (e.g. Linux), I don't know.
alexbosworth commentedon Mar 25, 2022
Cool, yeah sounds like the problem derives from lack of support there and it seems like a fix is in progress
FabianFrank commentedon Mar 30, 2022
Allegedly fixed in the latest release of cpu_features https://github.com/google/cpu_features/releases/tag/v0.7.0 with google/cpu_features#209
mscdex commentedon Mar 30, 2022
@FabianFrank Unfortunately the support is not complete with v0.7.0.
alexbosworth commentedon Apr 5, 2022
Seems like this issue went away for me when I updated to MacOS 12.3
mscdex commentedon Apr 5, 2022
@alexbosworth The underlying problem still exists (M1 support doesn't actually exist in cpu_features), the only difference is that we now explicitly report the M1 as an unknown CPU without any feature flags instead of crashing at runtime.
alexbosworth commentedon Apr 5, 2022
Ah great thanks