Opened 3 years ago

Closed 3 years ago

#61550 closed defect (fixed)

neovim fails to compile on Big Sur with Apple Silicon

Reported by: Gregory-Gelfond (Gregory Gelfond) Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: bigsur arm64 Cc:
Port: neovim

Description

Running sudo port install neovim fails on Big Sur with Apple Silicon:

--->  Fetching distfiles for neovim
--->  Attempting to fetch neovim-0.4.4.tar.gz from https://distfiles.macports.org/neovim
--->  Verifying checksums for neovim                                            
--->  Extracting neovim
--->  Configuring neovim
--->  Building neovim
Error: Failed to build neovim: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_neovim/neovim/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port neovim failed

I've attached the main.log for reference.

Attachments (1)

main.log (760.6 KB) - added by Gregory-Gelfond (Gregory Gelfond) 3 years ago.

Download all attachments as: .zip

Change History (8)

Changed 3 years ago by Gregory-Gelfond (Gregory Gelfond)

Attachment: main.log added

comment:1 Changed 3 years ago by jmroot (Joshua Root)

Cc: raimue removed
Owner: set to raimue
Status: newassigned

comment:2 Changed 3 years ago by mf2k (Frank Schima)

Keywords: neovim removed

comment:3 Changed 3 years ago by dive (Artem Loenko)

FYI: it seems that nvim executable is there but it fails with SIGKILL when you try to run it. Check the #13399 issue in the NeoVim bug-tracker.

~/P/g/neovim $ file ./build/bin/nvim
./build/bin/nvim: Mach-O 64-bit executable arm64

~/P/g/neovim $ ./build/bin/nvim
fish: “./build/bin/nvim” terminated by signal SIGKILL (Forced quit)

comment:4 Changed 3 years ago by dive (Artem Loenko)

There is a #PR 12624 with Apple Silicon support. The build should be fine when it is merged.

comment:5 Changed 3 years ago by minusf

unfortunately neovim can be slow with their releases. both 12624 and 13399 has been merged already in master months ago.

is it possible to have a local patch (like in openbsd ports) and get this going? it's kind of difficult to be without an editor :)

comment:6 in reply to:  5 Changed 3 years ago by funasoul (Akira Funahashi)

Hi,

I've sent a PR on this issue.

https://github.com/macports/macports-ports/pull/10067

See what happens.

Replying to minusf:

unfortunately neovim can be slow with their releases. both 12624 and 13399 has been merged already in master months ago.

is it possible to have a local patch (like in openbsd ports) and get this going? it's kind of difficult to be without an editor :)

comment:7 Changed 3 years ago by funasoul (Akira Funahashi)

Resolution: fixed
Status: assignedclosed

In 99b210839e901b203bc1b5e989fbe6b131c0b71e/macports-ports (master):

neovim: fix crash on Big Sur with Apple Silicon

The patch was taken from https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/neovim.rb

Closes: #61550

Note: See TracTickets for help on using tickets.