Closed jmckitrick closed 2 years ago
Try to uninstall emacs-head@28
and libgccjit
and install emacs-head@29
and libgccjit
once again.
Same exact result. The build succeeds, but starting emacs produces the same error messages.
Just to be sure, have you tried to:
$ brew uninstall gcc libgccjit
$ brew install gcc libgccjit
?
Yep, I just tried the whole process again, with the same result. Very frustrating.
Could it be a classpath or lib path issue?
On Sun, Oct 17, 2021 at 3:48 AM Davide Restivo @.***> wrote:
Just to be sure, have you tried to:
$ brew uninstall gcc libgccjit $ brew install gcc libgccjit
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/daviderestivo/homebrew-emacs-head/issues/129#issuecomment-945067187, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAD6PKKMOSPOUHIYBNB2D6LUHJ5VPANCNFSM5GCIXDFQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Do you have something in early-init.el? or did you set LIBRARY_PATH manually? Can you give me the output of env
from a shell?
No, nothing special. Emacs can find ripgrep, java, clojure, scala, etc.
On Sun, Oct 17, 2021 at 10:28 AM Davide Restivo @.***> wrote:
Do you have something in early-init.el? or did you set LIBRARY_PATH manually?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/daviderestivo/homebrew-emacs-head/issues/129#issuecomment-945135090, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAD6PKJQCJAMKA4A6KT4PVLUHLMPLANCNFSM5GCIXDFQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
No, nothing special. Emacs can find ripgrep, java, clojure, scala, etc.
Please share there output of env
and the content of early-init.el
:)
Nothing in early-init.el
Also, exec-path
:
exec-path is a variable defined in ‘C source code’.
Its value is ("/usr/bin" "/bin" "/usr/sbin" "/sbin" "/usr/local/Cellar/emacs-head@29/29.0.50_1/libexec/emacs/29.0.50/x86_64-apple-darwin20.6.0")
I think I found a solution. I'll post details when I'm sure....
It turns out there are instructions in a troubleshooting README in emacs source for adding an early-init.el with correct library paths for macos. That seemed to do the trick.
Final question: will native comp work with the M1 chip?
It turns out there are instructions in a troubleshooting README in emacs source for adding an early-init.el with correct library paths for macos. That seemed to do the trick.
Could you please share a bit more details?
Final question: will native comp work with the M1 chip?
As far as I know yes but I didn't test myself.
I followed these directions and it almost worked. One caveat: I needed this line as well
(eval-when-compile (require 'subr-x))
There might be a better way, but at least it's working now.
Now I'm trying on M1, and even though the entire project builds and runs as normal (regular emacs head) trying to add native compilation fails early in the process. I have a feeling this is a simple config issue, but I'm not sure how to tackle it for arm64.
I thought maybe it was a 'no correct' setting in my zsh config, but even when I removed that, I got the error.
I thought maybe it was a 'no correct' setting in my zsh config, but even when I removed that, I got the error.
I think the problem is that the compiler is not found. Do you have the "Command Line Tools" installed under /Library/Developer/CommandLineTools/
?
I thought you might be right, but I checked, and the folder is there with all the tools.
I've also asked on the emacs help forum.
On Wed, Oct 27, 2021 at 4:43 AM Davide Restivo @.***> wrote:
I thought maybe it was a 'no correct' setting in my zsh config, but even when I removed that, I got the error.
I think the problem is that the compiler is not found. Do you have the "Command Line Tools" installed under /Library/Developer/CommandLineTools/?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/daviderestivo/homebrew-emacs-head/issues/129#issuecomment-952680555, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAD6PKLWH36WMDUPDN3EGT3UI7CU7ANCNFSM5GCIXDFQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
A user suggested I manually set CFLAGS or remove -march=native
.
I've worked with Linux projects and autoconf a bit in the distant past, but I have not worked with brew formulae. How might I do this?
Problem solved! I needed to run brew edit
and remove the line with -march=native
and everything worked fine after that.
Fixed in https://github.com/daviderestivo/homebrew-emacs-head/pull/139. Please lemme know if it works for you.
I realize this could be user error, but in the interest of helping other users, I'd like to figure out what is going wrong, and contribute to improvements in the formula or the docs.
I build this formula once a week, and decided to try native comp for the first time. Everything seems fine until it loads, then the frame fills with error messages from libgccjit failures. I have a feeling it's a missing dependency, but I thought I got everything that was required. I'd like to figure out what I missed, and help document the issue for anyone else trying the same feature. I have gcc and libgccjit installed, so....
Here are the first few error messages: