Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#60447 closed defect (fixed)

/opt/local/bin/emacs won't run on Catalina

Reported by: dhmacq Owned by: drkp (Dan Ports)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: texas-swift (Spencer Swift), majoc-at-astro (majoc-at-astro), blair (Blair Zajac), danchr (Dan Villiom Podlaski Christiansen)
Port: emacs

Description

[7]% which emacs /opt/local/bin/emacs [8]% emacs Killed

This is after upgrading the machine to Catalina, updating Xcode, reinstalling XQuartz, fresh install of MacPorts for Catalina, then

sudo port install emacs +x11

No errors reported by port install.

Also tried it with MacPorts xorg-server

Change History (17)

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

Owner: set to drkp
Port: emacs added
Status: newassigned

comment:2 Changed 4 years ago by texas-swift (Spencer Swift)

Cc: texas-swift added

comment:3 Changed 4 years ago by majoc-at-astro (majoc-at-astro)

Cc: majoc-at-astro added

comment:4 Changed 4 years ago by majoc-at-astro (majoc-at-astro)

For completeness, I find this failure on 10.15 after our standard twice-weekly build from scratch, both on my mactop and on the build system, but not on the 10.14 builder (10.13 not tried yet). There may or may not be a connection with a recent 10.15 macOS update, but that may be a herring of the reddest order.

Info for the 10.15 build system in question:

MacPorts Version: 2.6.2

macOS 10.15.4

  • Build: 19E287

Xcode 11.3

  • Xcode: Build version 11C29
  • clang: Apple clang version 11.0.0 (clang-1100.0.33.16)

Hope this helps.

comment:5 Changed 4 years ago by majoc-at-astro (majoc-at-astro)

PS: my symptoms are:

% port installed |grep emacs
  emacs @26.3_2+x11 (active)
% which emacs
/opt/local/bin/emacs
% emacs --version
zsh: killed     emacs --version
%

.... very abruptly.

comment:6 Changed 4 years ago by majoc-at-astro (majoc-at-astro)

This just in:

  • port install emacs installs precompiled binaries of emacs @26.3_2, which work fine.
  • port -s install emacs builds emacs @26.3_2 from source without +x11; the result dies on launch.
  • Installing emacs-devel @20200417_0+x11 builds from source and installs OK on my 10.15 mactop; result successfully runs, and bills itself as GNU Emacs 27.0.91.
  • Latter build took rather longer, and spends much of that time running emacs-bootstrap. (Curious, but I'll resist the urge to speculate further, lest I spoil the kill.)

I'll use emacs-devel +x11 in active service for a few days to check for anomalies, and see what our build servers make of it (on macOS 10.13--10.15); but I think we have a workaround, Houston.

comment:7 Changed 4 years ago by dhmacq

I can confirm that

sudo port install emacs-devel +x11

provides a working X11 enabled emacs on my

macOS 10.15.4 (19E287)

sytem. Subsequent to the install:

macq[4]% emacs --version
GNU Emacs 27.0.91
Copyright (C) 2020 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
macq[5]% which emacs
/opt/local/bin/emacs

Great news, thanks! Much appreciated.

comment:8 in reply to:  7 Changed 4 years ago by majoc-at-astro (majoc-at-astro)

Replying to dhmacq:

Great news, thanks! Much appreciated.

Glad to be of service.

comment:9 Changed 4 years ago by fuzunspm (Hüseyin Fahri Uzun)

emacs-devel +x11 command stucks at Fetching distfiles for emacs-devel step

comment:10 Changed 4 years ago by emcrisostomo (Enrico Maria Crisostomo)

I started experiencing the same issue today, after upgrading the port to emacs @26.3_6. In my case, I have no variants enabled. I tried to uninstall it, purge unused dependencies, reinstalling it, but to no avail.

In short:

~ sudo port install emacs
Password:
--->  Computing dependencies for emacs
--->  Fetching archive for emacs
--->  Attempting to fetch emacs-26.3_6.darwin_19.x86_64.tbz2 from http://lil.fr.packages.macports.org/emacs
--->  Attempting to fetch emacs-26.3_6.darwin_19.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/emacs
--->  Installing emacs @26.3_6
--->  Activating emacs @26.3_6
--->  Cleaning emacs
--->  Scanning binaries for linking errors
--->  No broken files found.
--->  No broken ports found.
~ /opt/local/bin/emacs
[1]    61241 killed     /opt/local/bin/emacs

Also:

~ otool -L /opt/local/bin/emacs
/opt/local/bin/emacs:
	/opt/local/lib/libxml2.2.dylib (compatibility version 12.0.0, current version 12.10.0)
	/opt/local/lib/libncurses.6.dylib (compatibility version 6.0.0, current version 6.0.0)
	/opt/local/lib/libgnutls.30.dylib (compatibility version 58.0.0, current version 58.0.0)
	/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.100.1)

Perhaps it's a coincidence: yesterday night I installed the macOS Catalina 10.15.5 update. I have no recollection of actually running emacs since, until I discovered the problem this morning after the port update.

Cheers,

Enrico

comment:11 Changed 4 years ago by tolsen (Tim Olsen)

Just started happening for me today. I upgraded to macOS 10.15.5 yesterday. Not sure when I last upgraded emacs but I am currently running @26.3_6. emacs-app also fails to start.

$ emacs
Killed: 9

comment:12 Changed 4 years ago by blair (Blair Zajac)

I've observed this for over a week on Catalina, as I always build from source.

comment:13 Changed 4 years ago by blair (Blair Zajac)

Cc: blair added

comment:14 Changed 4 years ago by danchr (Dan Villiom Podlaski Christiansen)

Cc: danchr added

This is probably a duplicate of #60562. I've posted a merge request that should fix them both; please give it a try!

comment:15 Changed 4 years ago by danchr (Dan Villiom Podlaski Christiansen)

Resolution: fixed
Status: assignedclosed

In a19fc6fe539f8798f3e772333f64e1ebb19503fd/macports-ports (master):

emacs: fix build on 10.15.4 and later

This is a straight application of the following change from the Emacs
repository:

http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=888ffd960c06

Fixes: #60447
Fixes: #60562

comment:16 Changed 4 years ago by RafalLukawiecki (Rafal Lukawiecki)

Same issue after updating to Catalina 10.15.5. I can confirm that emacs-devel and emacs-app-devel work fine.

comment:17 in reply to:  16 Changed 4 years ago by majoc-at-astro (majoc-at-astro)

Replying to RafalLukawiecki:

Same issue after updating to Catalina 10.15.5. I can confirm that emacs-devel and emacs-app-devel work fine.

Just did port selfupdate and installing emacs +x11, at home (in the UK): builds from source, and launches fine. Maybe wait a day and retry, to let the update propagate to the mirror sites .... ?

Note: See TracTickets for help on using tickets.