Giter Site home page Giter Site logo

Comments (21)

jmckitrick avatar jmckitrick commented on June 2, 2024 1

I think I found a solution. I'll post details when I'm sure....

from homebrew-emacs-head.

jmckitrick avatar jmckitrick commented on June 2, 2024 1

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.

daviderestivo avatar daviderestivo commented on June 2, 2024

Try to uninstall emacs-head@28 and libgccjit and install emacs-head@29 and libgccjit once again.

from homebrew-emacs-head.

jmckitrick avatar jmckitrick commented on June 2, 2024

Same exact result. The build succeeds, but starting emacs produces the same error messages.

from homebrew-emacs-head.

daviderestivo avatar daviderestivo commented on June 2, 2024

Just to be sure, have you tried to:

$ brew uninstall gcc libgccjit
$ brew install gcc libgccjit

?

from homebrew-emacs-head.

jmckitrick avatar jmckitrick commented on June 2, 2024

from homebrew-emacs-head.

daviderestivo avatar daviderestivo commented on June 2, 2024

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.

jmckitrick avatar jmckitrick commented on June 2, 2024

from homebrew-emacs-head.

daviderestivo avatar daviderestivo commented on June 2, 2024

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.

jmckitrick avatar jmckitrick commented on June 2, 2024

Screen Shot 2021-10-17 at 2 49 37 PM

Nothing in early-init.el

from homebrew-emacs-head.

jmckitrick avatar jmckitrick commented on June 2, 2024

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.

jmckitrick avatar jmckitrick commented on June 2, 2024

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.

daviderestivo avatar daviderestivo commented on June 2, 2024

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.

jmckitrick avatar jmckitrick commented on June 2, 2024

https://github.com/emacs-mirror/emacs/blob/f56408a6f0152cd46d1ea8a0985fbfeeb839ea06/etc/PROBLEMS#L2772

from homebrew-emacs-head.

jmckitrick avatar jmckitrick commented on June 2, 2024

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.

jmckitrick avatar jmckitrick commented on June 2, 2024

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.

Screen Shot 2021-10-26 at 8 15 14 PM

from homebrew-emacs-head.

jmckitrick avatar jmckitrick commented on June 2, 2024

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.

daviderestivo avatar daviderestivo commented on June 2, 2024

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.

jmckitrick avatar jmckitrick commented on June 2, 2024

from homebrew-emacs-head.

jmckitrick avatar jmckitrick commented on June 2, 2024

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.

daviderestivo avatar daviderestivo commented on June 2, 2024

Fixed in #139. Please lemme know if it works for you.

from homebrew-emacs-head.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.