-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
Could not install emacs-plus@28 with MacBookPro M1 #555
Comments
From brew's output, I noticed that
The contents of the folder
Not sure why the script tried to detect |
I once felt the same issue (failed to install emacs-plus with native comp) after upgrading to macos 13. here is how I solve the issue:
and emacs is installed successfully! |
It's an especially odd issue because I had a successful build on one M1 machine and a failure on another M1 machine. I might be able to dig a bit deeper into the logs this weekend to see what differs and hopefully find a solution. I also want to draw everyone's attention to Homebrew/homebrew-core#128954 - the 13.1.0 |
I found that on my system, I had a different incompatible version of grep from a plan9 installation on my PATH that was superseding the builtin grep on one of my Macs. This explains why the `with-native-comp` build was failing on one of my Macs but not the other - the Mac with the successful emacs-plus@28 `with-native-comp` build only had the built-in version of grep on its PATH. Adding GNU grep as a build-time dependency will include it in the `gnubin` directory, which is prepended to the PATH in each formula. I've also added an explicit PATH prepending step for each of the GNU build-time dependencies. This indicates the coupling of those dependencies with the `gnubin` PATH prepending. Related to d12frosted#555 and d12frosted#556
I found that on my system, I had a different incompatible version of grep from a plan9 installation on my PATH that was superseding the builtin grep on one of my Macs. This explains why the `with-native-comp` build was failing on one of my Macs but not the other - the Mac with the successful emacs-plus@28 `with-native-comp` build only had the built-in version of grep on its PATH. Adding GNU grep as a build-time dependency will include it in the `gnubin` directory, which is prepended to the PATH in each formula. I've also added an explicit PATH prepending step for each of the GNU build-time dependencies. This indicates the coupling of those dependencies with the `gnubin` PATH prepending. Related to d12frosted#555 and d12frosted#556
I found that on my system, I had a different incompatible version of grep from a plan9 installation on my PATH that was superseding the builtin grep on one of my Macs. This explains why the `with-native-comp` build was failing on one of my Macs but not the other - the Mac with the successful emacs-plus@28 `with-native-comp` build only had the built-in version of grep on its PATH. Adding GNU grep as a build-time dependency will include it in the `gnubin` directory, which is prepended to the PATH in each formula. I've also added an explicit PATH prepending step for each of the GNU build-time dependencies. This indicates the coupling of those dependencies with the `gnubin` PATH prepending. Related to d12frosted#555 and d12frosted#556
I may have a fix for this in #571. In the meantime, carefully check your logs (after attempting
in the The mitigation (if you don't want to wait for #571 to get merged) appears to be to homebrew-emacs-plus/Formula/[email protected] Line 166 in 629c8fd
Otherwise, find some way to put |
@searene can you try running |
I found that on my system, I had a different incompatible version of grep from a plan9 installation on my PATH that was superseding the builtin grep on one of my Macs. This explains why the `with-native-comp` build was failing on one of my Macs but not the other - the Mac with the successful emacs-plus@28 `with-native-comp` build only had the built-in version of grep on its PATH. Adding GNU grep as a build-time dependency will include it in the `gnubin` directory, which is prepended to the PATH in each formula. I've also added an explicit PATH prepending step for each of the GNU build-time dependencies. This indicates the coupling of those dependencies with the `gnubin` PATH prepending. Related to d12frosted#555 and d12frosted#556
I found that on my system, I had a different incompatible version of grep from a plan9 installation on my PATH that was superseding the builtin grep on one of my Macs. This explains why the `with-native-comp` build was failing on one of my Macs but not the other - the Mac with the successful emacs-plus@28 `with-native-comp` build only had the built-in version of grep on its PATH. Adding GNU grep as a build-time dependency will include it in the `gnubin` directory, which is prepended to the PATH in each formula. I've also added an explicit PATH prepending step for each of the GNU build-time dependencies. This indicates the coupling of those dependencies with the `gnubin` PATH prepending. Related to d12frosted#555 and d12frosted#556
I found that on my system, I had a different incompatible version of grep from a plan9 installation on my PATH that was superseding the builtin grep on one of my Macs. This explains why the `with-native-comp` build was failing on one of my Macs but not the other - the Mac with the successful emacs-plus@28 `with-native-comp` build only had the built-in version of grep on its PATH. Adding GNU grep as a build-time dependency will include it in the `gnubin` directory, which is prepended to the PATH in each formula. I've also added an explicit PATH prepending step for each of the GNU build-time dependencies. This indicates the coupling of those dependencies with the `gnubin` PATH prepending. Related to d12frosted#555 and d12frosted#556
I don't have any I think we are facing different cases. |
I found that on my system, I had a different incompatible version of grep from a plan9 installation on my PATH that was superseding the builtin grep on one of my Macs. This explains why the `with-native-comp` build was failing on one of my Macs but not the other - the Mac with the successful emacs-plus@28 `with-native-comp` build only had the built-in version of grep on its PATH. Adding GNU grep as a build-time dependency will include it in the `gnubin` directory, which is prepended to the PATH in each formula. I've also added an explicit PATH prepending step for each of the GNU build-time dependencies. This indicates the coupling of those dependencies with the `gnubin` PATH prepending. Related to #555 and #556
Thanks for the reply, I tried running Command output
==> Downloading https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:905b0c3896164ae8067a22fff2fd0b80b16d3c8bb72441403eedf69da71ec717 You have 40 outdated formulae installed. PATH value was changed to: If that doesn't show you any updates, run: Alternatively, manually download them from: PATH value was changed to: Building Emacs from the repository requires the following specialized programs: Your system seems to be missing the following tool(s): If you think you have the required tools, please add them to your PATH Otherwise, please try installing them. If you do not have permission to do this, or if the version provided https://ftp.gnu.org/gnu/PACKAGE/ Download the package (make sure you get at least the minimum version If you know that the required versions are in your PATH, but this Please report any problems with this script to [email protected] . ==> Formula Error: d12frosted/emacs-plus/emacs-plus@28 28.2 did not build ./autogen.sh Checking whether you have the necessary tools... Building Emacs from the repository requires the following specialized programs: Your system seems to be missing the following tool(s): If you think you have the required tools, please add them to your PATH Otherwise, please try installing them. If you do not have permission to do this, or if the version provided https://ftp.gnu.org/gnu/PACKAGE/ Download the package (make sure you get at least the minimum version CC: /usr/bin/clang These open issues may also help: Error: A newer Command Line Tools release is available. If that doesn't show you any updates, run: Alternatively, manually download them from: |
I have reverted to using super (i.e. default) environment, which should fix most of the issues related to missing binaries or unexpected behaviour related to BSD vs GNU versions of several utilities. Path injection is still in place, but it no longer affects installation experience. That being said, please open a new ticket if you still encounter installation issues. |
Please make sure to follow these steps (and mark the checkboxes):
brew update
and try to reproduce the issue againbrew doctor
, fix all issues and try to reproduce your issue againbrew config
andbrew doctor
and include their outputWhat you were trying to do
I'm trying to install emacs-plus@28
What happened (include command output)
Command output
It seems
autoconf
is not correctly configured. But I can runautoconf
with no problems:Output of
brew config
Output of
brew doctor
The text was updated successfully, but these errors were encountered: