Comments (21)
I think I found a solution. I'll post details when I'm sure....
from homebrew-emacs-head.
Problem solved! I needed to run brew edit
and remove the line with -march=native
and everything worked fine after that.
from homebrew-emacs-head.
Try to uninstall emacs-head@28
and libgccjit
and install emacs-head@29
and libgccjit
once again.
from homebrew-emacs-head.
Same exact result. The build succeeds, but starting emacs produces the same error messages.
from homebrew-emacs-head.
Just to be sure, have you tried to:
$ brew uninstall gcc libgccjit
$ brew install gcc libgccjit
?
from homebrew-emacs-head.
from homebrew-emacs-head.
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?
from homebrew-emacs-head.
from homebrew-emacs-head.
No, nothing special. Emacs can find ripgrep, java, clojure, scala, etc.
Please share there output of env
and the content of early-init.el
:)
from homebrew-emacs-head.
Nothing in early-init.el
from homebrew-emacs-head.
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")
from homebrew-emacs-head.
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?
from homebrew-emacs-head.
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.
from homebrew-emacs-head.
from homebrew-emacs-head.
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.
from homebrew-emacs-head.
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.
from homebrew-emacs-head.
I thought maybe it was a 'no correct' setting in my zsh config, but even when I removed that, I got the error.
from homebrew-emacs-head.
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/
?
from homebrew-emacs-head.
from homebrew-emacs-head.
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?
from homebrew-emacs-head.
Fixed in #139. Please lemme know if it works for you.
from homebrew-emacs-head.
Related Issues (20)
- After installing the latest master branch, it crashes when run HOT 7
- @28 / @29 won't compile on M1 Macs without removing -march=native from the formula HOT 5
- emacs 27.2 dies HOT 4
- Easy-kill no longer working correctly. HOT 5
- Emacs 28.1 has been released HOT 2
- Today's build of @29 fails HOT 1
- Emacs 29 with native comp fails on startup HOT 7
- Question about upstream build issue HOT 2
- 0011-fix-MAC_LIBS-inference-after-gcc-12-release.patch fails on latest emacs-head@29 HOT 3
- Is it ok to run `emacs --fg-daemon` and `emacs --bg-daemon` at the same time? HOT 2
- Brew Services No Longer Working HOT 6
- Native Treesitter build support for emacs@29 and emacs@30 HOT 3
- Build failing with dump file error HOT 5
- :recommend keyword problem HOT 9
- warning in install emacs-head HOT 1
- native compilation doesn't work on MacOS (12.x/13.x) HOT 2
- How to build locally with a new patch HOT 12
- Error running make during installation on macOS 13.5 - "make all" failed with exit status 2. HOT 5
- Using emacs and CIDER with `--with-poll` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebrew-emacs-head.