-
-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a8be39d
commit bcbdb80
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bcbdb80
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After a long
git bisect
I found that after this commit, Emacs versions from 25.1 to 27.x built with nixpkgs tooling on macOS immediately segfault on startup. I found that if I setdontStrip = true
then there is no crash. I suspect that a differentllvm-strip
gets applied that is somehow more aggressive. I don't suppose you're aware of any such issues, or how to resolve them?bcbdb80
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#271459 and #234868 both needed different
strip
flags due to the wayllvm-strip
interacted with assembly code they were trying to link. Is this happening on x86_64-darwin, aarch64-darwin, or both?bcbdb80
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another one: #265935 required the
strip
from cctools be used because GCC expected flags that aren’t supported at all byllvm-strip
, and trying to update old GCC versions to work with newer toolchains would have been far too much work.bcbdb80
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for the reply! I found a couple of these workarounds for
llvm-strip
flags when searching. In my case, Nix is constructing and running the strip command (ultimatelyllvm-strip -S
). I think perhaps I need to setstripDebugFlags
in order to strip less aggressively.Just
x86_64-darwin
, but it might affect both: the problematic derivations already didn't build onaarch64-darwin
for unrelated reasons (patches for the old source code would have been required).bcbdb80
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using the
strip
fromcctools
seems to work for me too, so I'm going to adopt that as my local workaround. It's unsatisfying to not understand why it broke, but c'est la vie. Really appreciate your hints.