-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Missing emacs dylib deps #71413
Comments
Please let me know if you need more info - happy to help! |
This doesn't seem to be the actual issue, this is the way macOS deals with dylib files since 11.0. They're no longer in the filesystem but exist in a cache. Do you have the same issue if you install from source? |
Tried this, but this fail during the boostrap phase: https://gist.github.com/monochromec/68eb1e4af7d263988af0d962b3b5882c |
The existing bottle and the source build both are working for me:
|
❌ @dtrodrigues bottle request for emacs failed. |
Based on the logs in https://github.com/Homebrew/homebrew-core/actions/runs/578624105, the build is succeeding in current CI on ARM -- the failure is due to merging the new commit hash, but the bottle build and test passed. |
What does |
/opt/homebrew/bin/emacs: satisfies its Designated Requirement |
Maybe I'm barking up the wrong tree with the "missing" dylibs here. When I execute emacs I immediately get "Killed: 9", dtruss doesn't even print an initial system call. |
See if there's any relevant entry in "Crash Reports" in Console.app. |
OK, well spotted Bo98. The crash reports indeed point to
But codesign says "/opt/homebrew/bin/emacs: satisfies its Designated Requirement" (see above). What's the issue? |
Can you post a little more from that crash report? It might be complaining about a dependency's dylib. It should give more info a little bit below the part you posted. |
Here you go:
|
|
Nice - that did the trick indeed. Am I right assuming that the thread #0 tried to load libtasn and then crashed due to an unsigned libtasn? Thanks for your help @Bo98! |
Yes, that's correct. |
@Bo98, do you have any sense for why we're seeing so many codesigning problems? |
Hopefully 3.0.2 with Homebrew/brew#10590 incorporated will help shed some light on it. |
Codesigning is supposed to work without CLT but as a trial I have, as of Homebrew 3.0.1, made the CLT mandatory to see if that helps (macOS updates delete the CLT so being without the CLT is common). We will see if that reduces the number of broken git reports with macOS 11.3. Otherwise, 3.0.2 with Homebrew/brew#10590 will indeed help. Though unfortunately, most people don't notice codesign failures at the time (since it's non-fatal). I'd like to make codesign failures fatal, but we're not quite there yet (#69100). |
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputHOMEBREW_VERSION: 3.0.1
ORIGIN: https://github.com/Homebrew/brew
HEAD: c951be8
Last commit: 8 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 3560ff4
Core tap last commit: 23 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_EDITOR: emacs
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 12.0 build 1200
Git: 2.24.3 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.2.1-arm64
CLT: 12.4.0.0.1.1610135815
Xcode: 12.4
Rosetta 2: false
Your system is ready to brew.
brew doctor
above contains no "Warning" lines.What were you trying to do (and why)?
Emacs deps are missing:
otool -L $(which emacs) shows on my 11.21 installation:
/usr/lib/libxml2.2.dylib (compatibility version 10.0.0, current version 10.9.0)
/usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
/opt/homebrew/opt/gnutls/lib/libgnutls.30.dylib (compatibility version 59.0.0, current version 59.1.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
/opt/homebrew/opt/jansson/lib/libjansson.4.dylib (compatibility version 18.0.0, current version 18.0.0)
/opt/homebrew/opt/gmp/lib/libgmp.10.dylib (compatibility version 15.0.0, current version 15.1.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1292.60.1)
All of the /usr/lib/*dylibs are missing from /usr/lib
What happened (include all command output)?
emacs
Killed: 9
What did you expect to happen?
Emacs to execute
Step-by-step reproduction instructions (by running
brew
commands)brew install emacs
emacs
The text was updated successfully, but these errors were encountered: