From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Nathaniel Bass Newsgroups: gmane.emacs.bugs Subject: bug#38031: 26.3; Trying to invoke the macOS File Open window causes Emacs to crash on macOS Catalina Date: Thu, 7 Nov 2019 21:06:43 -0800 Message-ID: References: <20191103203946.GB37523@breton.holly.idiocy.org> <435F198B-3771-4E70-9A5F-F263AC34B2A0@gmail.com> <20191104200638.GA38578@breton.holly.idiocy.org> <871rujyzf3.fsf@marxist.se> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000022341d0596cec04b" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="133253"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38031@debbugs.gnu.org, Alan Third , Michael Dixon To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 08 07:14:26 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iSxXL-000YXA-RC for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Nov 2019 07:14:24 +0100 Original-Received: from localhost ([::1]:50120 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSxXK-0004hf-6w for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Nov 2019 01:14:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58119) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSxX2-0004hW-6q for bug-gnu-emacs@gnu.org; Fri, 08 Nov 2019 01:14:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iSxX0-0007zU-Cj for bug-gnu-emacs@gnu.org; Fri, 08 Nov 2019 01:14:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35669) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iSxX0-0007zK-7h for bug-gnu-emacs@gnu.org; Fri, 08 Nov 2019 01:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iSxX0-0000mD-00 for bug-gnu-emacs@gnu.org; Fri, 08 Nov 2019 01:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Nathaniel Bass Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Nov 2019 06:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38031 X-GNU-PR-Package: emacs Original-Received: via spool by 38031-submit@debbugs.gnu.org id=B38031.15731935912912 (code B ref 38031); Fri, 08 Nov 2019 06:14:01 +0000 Original-Received: (at 38031) by debbugs.gnu.org; 8 Nov 2019 06:13:11 +0000 Original-Received: from localhost ([127.0.0.1]:44490 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iSxWB-0000kt-51 for submit@debbugs.gnu.org; Fri, 08 Nov 2019 01:13:11 -0500 Original-Received: from mail-lf1-f68.google.com ([209.85.167.68]:32773) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iSwU8-0007P4-Oj for 38031@debbugs.gnu.org; Fri, 08 Nov 2019 00:07:03 -0500 Original-Received: by mail-lf1-f68.google.com with SMTP id d6so3030826lfc.0 for <38031@debbugs.gnu.org>; Thu, 07 Nov 2019 21:07:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rfjzgDc1CZG3zC1dIVmyEAfx9fvtoy6LSzgf6VHZL34=; b=lxHpDyHGGSemzNs0bVGgRrw5ghivV6vTx+kcOueRWAC1i+L2rP8EYa9G7ljVKPcp2V i9SyvL390ms2liTPsuzfV2YtWdFDxl4/YyhjOEm1Ok+/QciGK8npAVWfn3Wqb6dVr78c SYsdxh/u9YfEtEjtpuGjvjDNoOWrUhSYLHOl0s52/2xlH1+6HUBEcrJVTGLHXHPwwwj3 nIl/PydxFpybvWWrrNtL3CLrLd61UIdIjyjTkQWIAk6bK9o54aIZvVSblRF23K7YfjC8 sRUb87Vx8u7B8zy/KB0GyKGFBEeX0pWGtTziA4Vnwqpup4UBfIHsADntEOtnFFoq7ohc 72hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rfjzgDc1CZG3zC1dIVmyEAfx9fvtoy6LSzgf6VHZL34=; b=QRzrjqOjHwyv3twjPpQ7XjKYL4xDnflsILHXw2AlN9pyd3RyU/xPAujnXFrk2CSQ/U Lcm1fZkpE+pYQ7CPHBeO3C6MsKunWCBIchnt2yQADJgQIbjCdhlSl8DzaZ1rWKxrdifc OuNPEubpQNGhyM/jgbsipqThYEAPcgnVu59zmU6l6GOHBOZRnk2SzIM2LkZpzqnoylTW UiYB22hJzzznjspNYJP65yMv6Dxg6YEbje0yPPkS0/cqL3TC5mvzD+M/QIEovizzAMsQ cKbAr2OlmK+9QMffD/aBZhk9oUb65oP5J3QwTQwSh9J11v+JchCqJqMf8bZnnmXnnFvh 95RQ== X-Gm-Message-State: APjAAAXhYxD3rS5zdfsKrT1CSWRQztKI4uS/6S1Ra6iciD6KuAcitYBa e7f4vYD8vD0GI5hxhE46laFIY2Td/OO0WtYwwUk= X-Google-Smtp-Source: APXvYqySdYHml5A4bg+RdrDBXb0z9fI8guuakzsCR2g84GwkkJ3OEHFaKLthZlYr2ENz20P/pwsFaci9HlVvVaJECvw= X-Received: by 2002:ac2:4822:: with SMTP id 2mr5073597lft.115.1573189614448; Thu, 07 Nov 2019 21:06:54 -0800 (PST) In-Reply-To: <871rujyzf3.fsf@marxist.se> X-Mailman-Approved-At: Fri, 08 Nov 2019 01:13:09 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:171169 Archived-At: --00000000000022341d0596cec04b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I tried and before I got to testing the patch I ran into an issue building Emacs on macOS 10.15 (aka Catalina). When I run make I get the following error: xml.c:26:10: fatal error: 'libxml/tree.h' file not found #include ^~~~~~~~~~~~~~~ 1 error generated. make[1]: *** [xml.o] Error 1 make: *** [src] Error 2 /Applications/Xcode.app/Contents/Developer/usr/bin/make -C lib all make[1]: Nothing to be done for `all'. /Applications/Xcode.app/Contents/Developer/usr/bin/make -C lib-src all make[1]: Nothing to be done for `all'. /Applications/Xcode.app/Contents/Developer/usr/bin/make -C src VCSWITNESS=3D'$(srcdir)/../.git/logs/HEAD' all CC xml.o xml.c:26:10: fatal error: 'libxml/tree.h' file not found #include ^~~~~~~~~~~~~~~ 1 error generated. make[1]: *** [xml.o] Error 1 make: *** [src] Error 2 Mac OS X 10.14 has stopped placing the include libraries in their usual location, /usr/include, keeping them only inside the XCode directory. The work around was to run a pkg installer included in the XCode directory.[1] I can no longer find that file or anything similar in macOS 10.15. Any tips are appreciated. I will try to build and test the patch again this weekend. There was something in the article I referenced about linking the path where the libraries are to /usr/include but it wasn't recommended because it overrides the default behaviour expected by Mac OS and requires you to disable SIP (System Integrity Protection). I am open to trying anything. [1] https://silvae86.github.io/sysadmin/mac/osx/mojave/beta/libxml2/2018/07/05/= fixing-missing-headers-for-homebrew-in-mac-osx-mojave/ Other links about this issue: https://lists.gnu.org/archive/html/emacs-devel/2015-11/msg01918.html https://emacs.stackexchange.com/questions/34238/installing-emacs-from-sourc= e-make-fatal-error-libxml-tree-h-file-not-found On Thu, Nov 7, 2019, 4:40 PM Stefan Kangas wrote: > > Alan Third writes: > > > On Sun, Nov 03, 2019 at 04:02:39PM -0500, Michael Dixon wrote: > >> Thanks Alan. I might be a little over my head here, as I=E2=80=99m not= sure > >> how to apply a patch. I presume I would have to build from source... > > > > Yes, you would. It=E2=80=99s not very hard if you=E2=80=99ve got git in= stalled. I can > > talk you through it. Alternatively we can try to find someone else > > running Catalina, there should be a few Emacs devs/users who=E2=80=99ve > > upgraded around here somewhere. > > I'm still on 10.13 so I unfortunately can't help with this. But since > this is a crash in very basic functionality, perhaps we should > actively reach out to try to see if anyone can help with this in time > to fix it before the pretest of Emacs 27.1. > > Best regards, > Stefan Kangas > > --00000000000022341d0596cec04b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I tried and before I got to testing the patch I ran into a= n issue building Emacs on macOS 10.15 (aka Catalina).

When I run mak= e I get the following error:

xml.c:26:10: fatal error: 'libxml/t= ree.h' file not found
#include <libxml/tree.h>
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0^~~~~~~~~~~~~~~
1 error generated.
make[1]: *= ** [xml.o] Error 1
make: *** [src] Error 2
/Applications/Xcode.app/Co= ntents/Developer/usr/bin/make -C lib all
make[1]: Nothing to be done for= `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C l= ib-src all
make[1]: Nothing to be done for `all'.
/Applications/X= code.app/Contents/Developer/usr/bin/make -C src VCSWITNESS=3D'$(srcdir)= /../.git/logs/HEAD' all
=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 xml.o
xml.= c:26:10: fatal error: 'libxml/tree.h' file not found
#include &l= t;libxml/tree.h>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^~~~~~~~~~~~~~~1 error generated.
make[1]: *** [xml.o] Error 1
make: *** [src] Erro= r 2

Mac OS X 10.14 has stopped placing the include libraries in thei= r usual location, /usr/include, keeping them only inside the XCode director= y.

The work around was to run a pkg installer included in the XCode = directory.[1] I can no longer find that file or anything similar in macOS 1= 0.15.

Any tips are appreciated. I will try to build and test the pat= ch again this weekend. There was something in the article I referenced abou= t linking the path where the libraries are to /usr/include but it wasn'= t recommended because it overrides the default behaviour expected by Mac OS= and requires you to disable SIP (System Integrity Protection). I am open t= o trying anything.

[1] https://silvae86.github.io/sysadmin= /mac/osx/mojave/beta/libxml2/2018/07/05/fixing-missing-headers-for-homebrew= -in-mac-osx-mojave/

Other links about this issue:
https://lists.gnu.org/archive/html/emacs-devel/2015-11/msg0191= 8.html
https://emacs.stackexchange.com/questions/34238/installing= -emacs-from-source-make-fatal-error-libxml-tree-h-file-not-found
On Thu, Nov 7, 2019, 4:40 PM Stefan Kangas <stefan@marxist.se> wrote:
>
>= ; Alan Third <alan@= idiocy.org> writes:
>
> > On Sun, Nov 03, 2019 at 04:= 02:39PM -0500, Michael Dixon wrote:
> >> Thanks Alan. I might b= e a little over my head here, as I=E2=80=99m not sure
> >> how = to apply a patch. I presume I would have to build from source...
> &g= t;
> > Yes, you would. It=E2=80=99s not very hard if you=E2=80=99v= e got git installed. I can
> > talk you through it. Alternatively = we can try to find someone else
> > running Catalina, there should= be a few Emacs devs/users who=E2=80=99ve
> > upgraded around here= somewhere.
>
> I'm still on 10.13 so I unfortunately can&#= 39;t help with this.=C2=A0 But since
> this is a crash in very basic = functionality, perhaps we should
> actively reach out to try to see i= f anyone can help with this in time
> to fix it before the pretest of= Emacs 27.1.
>
> Best regards,
> Stefan Kangas
>>
--00000000000022341d0596cec04b--