From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#29931: 27.0.50; Slightly suboptimal build behavior on macOS Date: Tue, 02 Jan 2018 19:51:15 +0000 Message-ID: References: <20180101145919.GC86834@breton.holly.idiocy.org> <20180101155359.GB53381@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1147e32c8fef4f0561d06ce9" X-Trace: blaine.gmane.org 1514922624 5543 195.159.176.226 (2 Jan 2018 19:50:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 2 Jan 2018 19:50:24 +0000 (UTC) Cc: 29931@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 02 20:50:20 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWSZf-0000np-IP for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Jan 2018 20:50:11 +0100 Original-Received: from localhost ([::1]:53378 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWSbe-0007T2-Kk for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Jan 2018 14:52:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39983) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWSbX-0007Sa-8v for bug-gnu-emacs@gnu.org; Tue, 02 Jan 2018 14:52:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eWSbS-0001Na-FE for bug-gnu-emacs@gnu.org; Tue, 02 Jan 2018 14:52:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53029) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eWSbS-0001NL-BI for bug-gnu-emacs@gnu.org; Tue, 02 Jan 2018 14:52:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eWSbS-0005wC-4d for bug-gnu-emacs@gnu.org; Tue, 02 Jan 2018 14:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Jan 2018 19:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29931 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29931-submit@debbugs.gnu.org id=B29931.151492269722793 (code B ref 29931); Tue, 02 Jan 2018 19:52:02 +0000 Original-Received: (at 29931) by debbugs.gnu.org; 2 Jan 2018 19:51:37 +0000 Original-Received: from localhost ([127.0.0.1]:33477 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWSaz-0005vV-Li for submit@debbugs.gnu.org; Tue, 02 Jan 2018 14:51:34 -0500 Original-Received: from mail-qt0-f179.google.com ([209.85.216.179]:44343) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWSax-0005vI-EK for 29931@debbugs.gnu.org; Tue, 02 Jan 2018 14:51:31 -0500 Original-Received: by mail-qt0-f179.google.com with SMTP id m59so63988618qte.11 for <29931@debbugs.gnu.org>; Tue, 02 Jan 2018 11:51:31 -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=GEZAbSLX3pkFOFXqiCSUQZ0xMdM16UHHEiTvkGFeE0I=; b=pTGy2B0FHt97n14/hbXtOytcD64Q9a8ZhfPQlxYZU9HECL+O8G/d8mcJ1g1PZY0f38 hqUdAICXk/X4IixKWuhnBvHuzbLgAV/X4A9RJcbaM02cjEXpYKevrg2BcSjNdCukOf/Q 9+/YlzL0OxgWfyq364r/ft5+WcCYcvRBitOCRhHfTmU2RWQDxrzaXp5V15qHcWWEuASo hq3CoOb/3a6rsPPtn/um9u7iRIXztH6Z+09DoMa8xlfCLVj9Z5ovj+yXjrdX0nosCPoZ t3LxQmKgwitIdskDxgrldIea1Y4T4Od3MM6sKNWCIy3yJNYZja//9wSWTAOKJVdcRCLk 37/A== 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=GEZAbSLX3pkFOFXqiCSUQZ0xMdM16UHHEiTvkGFeE0I=; b=denhGaWSIBWcG4XG07ggY6HSlgBo/6eAC6cFhqAX/Xg9vAF36TO8TN0AamPQVeG1DS +si2SRouKxULIeqeiqVgfhlQBpCcGITTuozdARWKijDSwJHkdyKmrLUIhVux3ueqAwI7 erIqUFznozlf1D2YdOzJHx7rxhVT8r2ZQzxzPkJwUyHAXZB5oElucJy5AHASs/xJ9GD+ 9852nUwPsFugiMXGvkywb9XmpusjAYsqcTnPsBvfpLrdA7m4jXYukLRoQCWBIsCyMt4b gBE5DnCLZ90L8yEuZxHLbHeGiw2BWDuV+K7G8N60vXsdAYfNj7vvzJmLLvjW1OtWp2Rb RPNw== X-Gm-Message-State: AKGB3mIa9yxWuWhmr6kBeNOr3CJDjwqnWVw4PldX0WajFEhYcoQgXzwW XJw3GCbjBfxJC6XvpRi7HaYcatgNYL0Byf8AKXikpA== X-Google-Smtp-Source: ACJfBouhTcsDry0PfZPhS++Tt1Gn+urU/fiDa6f4tYmQAviiqyFNB9RIPQ1GwhG4vfwP9KmL/8+11DL/qy7/tJxIrtE= X-Received: by 10.55.31.96 with SMTP id f93mr62390611qkf.151.1514922686016; Tue, 02 Jan 2018 11:51:26 -0800 (PST) In-Reply-To: <20180101155359.GB53381@breton.holly.idiocy.org> 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: 208.118.235.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:141721 Archived-At: --001a1147e32c8fef4f0561d06ce9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Alan Third schrieb am Mo., 1. Jan. 2018 um 16:54 Uhr: > On Mon, Jan 01, 2018 at 03:12:57PM +0000, Philipp Stephani wrote: > > Philipp Stephani schrieb am Mo., 1. Jan. 2018 u= m > > 16:05 Uhr: > > > > > Alan Third schrieb am Mo., 1. Jan. 2018 um 15:59 > Uhr: > > > > > >> On Mon, Jan 01, 2018 at 01:15:09PM +0100, Philipp wrote: > > >> > > > >> > There are a few small bugs when building on macOS and not passing > the > > >> > right configure options. > > >> > > > >> > 1. When running configure without options, the build fails with an > error > > >> > > > >> > xml.c:26:10: fatal error: 'libxml/tree.h' file not found > > >> > #include > > >> > ^~~~~~~~~~~~~~~ > > >> > > > >> > Apparently configure detects libxml2 to be present, but doesn't se= t > the > > >> > correct include path. > > >> > > >> This works fine here. Is it possible this was introduced by macOS > > >> 10.13? > > >> > > >> Do you see the file in /usr/include/libxml2/libxml/? > > >> > > > > > > No, /usr/include doesn't exist at all on my system. The include > directory > > > is > > > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Deve= loper/SDKs/MacOSX.sdk/usr/include. > > > > > > > `xcode-select --install` does add a /usr/include directory. If > > `xcode-select --install` is necessary for building Emacs, should > configure > > error out if it hasn't been run? > > However, all other parts of the build process seem to work fine without > > `xcode-select --install`. > > Can you please run > > xcrun --show-sdk-path > > And see if it returns something useful? On my machine it returns > nothing at all, but I don=E2=80=99t have the full xcode installed. > > It prints the correct directory: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Develo= per/SDKs/MacOSX10.13.sdk That is, `xcrun --show-sdk-path`/usr/include/libxml2 contains the required header files. --001a1147e32c8fef4f0561d06ce9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Alan T= hird <alan@idiocy.org> schrieb= am Mo., 1. Jan. 2018 um 16:54=C2=A0Uhr:
On Mon, Jan 01, 2018 at 03:12:57PM +0000, Philipp Stephani wrote:
> Philipp Stephani <p.stephani2@gmail.com> schrieb am Mo., 1. Jan. 2018 um > 16:05 Uhr:
>
> > Alan Third <alan@idiocy.org> schrieb am Mo., 1. Jan. 2018 um 15:59 Uhr:
> >
> >> On Mon, Jan 01, 2018 at 01:15:09PM +0100, Philipp wrote:
> >> >
> >> > There are a few small bugs when building on macOS and no= t passing the
> >> > right configure options.
> >> >
> >> > 1. When running configure without options, the build fai= ls with an error
> >> >
> >> > xml.c:26:10: fatal error: 'libxml/tree.h' file n= ot found
> >> > #include <libxml/tree.h>
> >> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^~~~~~~~~~~~~~~
> >> >
> >> > Apparently configure detects libxml2 to be present, but = doesn't set the
> >> > correct include path.
> >>
> >> This works fine here. Is it possible this was introduced by m= acOS
> >> 10.13?
> >>
> >> Do you see the file in /usr/include/libxml2/libxml/?
> >>
> >
> > No, /usr/include doesn't exist at all on my system. The inclu= de directory
> > is
> > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platf= orm/Developer/SDKs/MacOSX.sdk/usr/include.
> >
>
> `xcode-select --install` does add a /usr/include directory. If
> `xcode-select --install` is necessary for building Emacs, should confi= gure
> error out if it hasn't been run?
> However, all other parts of the build process seem to work fine withou= t
> `xcode-select --install`.

Can you please run

=C2=A0 =C2=A0 xcrun --show-sdk-path

And see if it returns something useful? On my machine it returns
nothing at all, but I don=E2=80=99t have the full xcode installed.


It prints the correct directory: /Appl= ications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S= DKs/MacOSX10.13.sdk
That is, `xcrun --show-sdk-path`/usr/include/= libxml2=C2=A0contains the required header files.
--001a1147e32c8fef4f0561d06ce9--