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

M1 Mac crashes with missing symbol called error when running init #254

Closed
steveluscher opened this issue Jan 13, 2022 · 6 comments
Closed
Labels
bug Something isn't working

Comments

@steveluscher
Copy link

steveluscher commented Jan 13, 2022

Description of the bug

  1. Run git branchless init

Observe this pretty useless error:

 % git branchless init                                                                                                                                                                                                                                    
dyld[63457]: missing symbol called
error: git-branchless died of signal 6

Could this possibly be an M1 MacBook problem?

Version of git-branchless

git-branchless 0.3.8

Version of rustc

rustc 1.55.0 (c8dfcfe04 2021-09-06)

@steveluscher steveluscher added the bug Something isn't working label Jan 13, 2022
@arxanas
Copy link
Owner

arxanas commented Jan 14, 2022

Hi @steveluscher, sorry to hear that git-branchless isn't working for you. I would guess that it is an M1 Mac problem. Unfortunately, I don't have an M1 to test on.

You could try running a few other similar Rust projects and see if any of them work, such as git-stack and gitui. If one of them does, then we could probably narrow down which of the code or dependencies is causing the issue.

You could also try installing various older versions and see if one works, and then use git bisect to find the first problematic commit.

Unfortunately, I don't know how to debug a dyld error like this.

@martinvonz
Copy link
Collaborator

FWIW, git branchless init worked for me on an M1.

I had to lock the versions of cursive and curisve_buffered_backend to the exact versions in Cargo.toml (and I didn't think to use cargo install --locked) because there has apparently been some API changes since then. But that's probably unrelated to the problem reported here.

@arxanas
Copy link
Owner

arxanas commented Jan 14, 2022

Hmm, one possibility would be a compiler bug, which I suppose is not unreasonable for a new architecture. @martinvonz what version of rustc are you using?

@martinvonz
Copy link
Collaborator

I'm on 1.57.0.

@steveluscher
Copy link
Author

I blew away rustc 1.55.0, installed 1.58.0, and reinstalled git-branchless. Works now.

I guess we'll never know what happened.

Thanks for taking a look!

@arxanas arxanas changed the title missing symbol called error when running init M1 Mac crashes with missing symbol called error when running init Jan 14, 2022
@arxanas
Copy link
Owner

arxanas commented Jan 14, 2022

Thanks to both of you for the diagnostic work. I added this section to the Troubleshooting guide at https://github.com/arxanas/git-branchless/wiki/Installation. If we see more users hit this case, we could add a check for the architecture/compiler version in build.rs and surface a warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants