From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Xu Xin Newsgroups: gmane.emacs.devel Subject: Re: Compilation failure on macOS 10.15 Catalina Date: Wed, 2 Oct 2019 11:15:49 -0400 Message-ID: References: <83sgoloedi.fsf@gnu.org> <658AF539-1AE7-459D-94C7-44970AA94EEF@acm.org> <83impho4s8.fsf@gnu.org> <4FAEE347-0F67-426F-AA0D-3DB15E3907DC@acm.org> <83pnjomn0s.fsf@gnu.org> <261D4586-212E-4032-9E14-B952A3F63CF0@zjp.codes> <6c6acaf1143135c5a99ea86a3f61b394.squirrel@weber.math.s.chiba-u.ac.jp> <5553DB40-43BF-4980-BAB7-59D4668C42E8@zjp.codes> <51D4209B-F67C-4ABA-89D3-74380B9BD356@zjp.codes> <2B50EA2C-8426-48B4-895B-36574A818569@zjp.codes> <1EE3BF08-E87A-49BF-8B38-237486811A1A@zjp.codes> <5BB90BF9-3B5C-4DCA-8540-800941FEEF69@zjp.codes> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="98122"; mail-complaints-to="usenet@blaine.gmane.org" Cc: YAMAMOTO Mitsuharu , Emacs developers To: Zach Pearson Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 02 17:18:31 2019 Return-path: Envelope-to: ged-emacs-devel@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 1iFgOd-000POV-6F for ged-emacs-devel@m.gmane.org; Wed, 02 Oct 2019 17:18:31 +0200 Original-Received: from localhost ([::1]:56494 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFgOb-0000tU-4x for ged-emacs-devel@m.gmane.org; Wed, 02 Oct 2019 11:18:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47510) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFgMJ-0008Rl-4L for emacs-devel@gnu.org; Wed, 02 Oct 2019 11:16:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iFgMH-00078M-QO for emacs-devel@gnu.org; Wed, 02 Oct 2019 11:16:06 -0400 Original-Received: from mail-oi1-x22e.google.com ([2607:f8b0:4864:20::22e]:44475) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iFgMH-00077G-4r for emacs-devel@gnu.org; Wed, 02 Oct 2019 11:16:05 -0400 Original-Received: by mail-oi1-x22e.google.com with SMTP id w6so17930739oie.11 for ; Wed, 02 Oct 2019 08:16:02 -0700 (PDT) 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:content-transfer-encoding; bh=RqGiOreXCr1aEAqEPPYkDiMXhBFIddPUmrWisdimjfY=; b=eu4kw3OiqUIyRR354MJdtgXwnuysTx5qj8RQ8LdaXrVxIEX6sAXViOHgOXeT1VooyX wUmJyGq0hmbnj0o6F8NKMxxk/2ZtepMzHm38sBo/4qmxwFzF/xdv07M7urn0/bi42LdB FZV7wFk8jubcQ/j6lab+QbUwUkfVEeldjzx8FXWKYJKq/QwRwoRwyT16rmK9CevoDR+Y LJx247LsSvPrG7uL0y4UtUGrMyZgNALxlD3SCVCT7MnghuIa+x3zt5xckX6/pwZXcYLO WMRRD/iZXa8EdFAH4VkO2bHeO0GLs7oqMOveldQWzt6U39/tS8lpMQmSYSSqPfMZAIBd F5WQ== 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:content-transfer-encoding; bh=RqGiOreXCr1aEAqEPPYkDiMXhBFIddPUmrWisdimjfY=; b=G+L1gxJqN1eD98dSSqoXZihSjYOJdS4YEy46/dwg1LrKSyLZocOrlAi8xYVw1Z+Txe 4AHINNugBBGPQalU1cng7GrP6hMDIO9Ze5xE74dNCvEIO98uQERQjIEwDc3mIHd0TVty SzkQke09vMP4KVg7gL+u/2buto7+3YnUQn57bROIldk1psIB3wnz8vpFkT9cXs6yaDuo 4y1lYJF9oMo/4i4Hs83dAtq71ebDYLHwBfaCeELTTjJG0worTWZj3krrVlaMWRStbF7T 8E63rrGiy7eiMDp5dQmIFKnoaDnIGgLtPnHJjoDQGGxOB+zhecfSnATszc2HQurh6ipY m5Ow== X-Gm-Message-State: APjAAAUjABUo6pGkV0yZiIZTAZpzIh4DHRv1DSr2TObJiGsuklvkjKoR lVe3yxyZRNS/kr8gVMiBSbEfkirYD59UwI3hSQ3JAiPx X-Google-Smtp-Source: APXvYqw7pLdKzVMQinWm6a6f7IpApYuFlu94H4E0q6z9//iMioI8zDzImCCmXfqMP6rDmYNWuMI+xeXi+Md2ZIhVABo= X-Received: by 2002:aca:fc91:: with SMTP id a139mr3095979oii.173.1570029361126; Wed, 02 Oct 2019 08:16:01 -0700 (PDT) In-Reply-To: <5BB90BF9-3B5C-4DCA-8540-800941FEEF69@zjp.codes> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::22e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:240473 Archived-At: On Wed, Oct 2, 2019 at 3:44 AM Zach Pearson wrote: > > grep LIBXML2_CFLAGS config.log > ac_cv_env_LIBXML2_CFLAGS_set=3D3D > ac_cv_env_LIBXML2_CFLAGS_value=3D3D > pkg_cv_LIBXML2_CFLAGS=3D3D-I/usr/include/libxml2 > LIBXML2_CFLAGS=3D3D'-I/usr/include/libxml2=3DE2=3D80=3D99 > > There is no folder /usr/include/libxml2 > > > On 2 Oct 2019, at 00:00, YAMAMOTO Mitsuharu wrote: > > > > On Wed, 02 Oct 2019 13:43:55 +0900, > > Zach Pearson wrote: > >> > >> /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 VCSWITN= ESS=3D'$(srcdir)/../.git/logs/HEAD' all > >> gcc -c -Demacs -I. -I. -I../lib -I../lib -I/usr/include/libx= ml2 -I/usr/local/Cellar/little-cms2/2.9/include -MMD -MF deps/x= ml.d -MP -I/usr/local/Cellar/gnutls/3.6.9/include -I/usr/local/Cellar/net= tle/3.4.1/include -I/usr/local/Cellar/libtasn1/4.14/include -I/usr/local/Ce= llar/p11-kit/0.23.17/include/p11-kit-1 -Wno-switch -Wno-pointer-sign -Wn= o-string-plus-int -Wno-unknown-attributes -Wno-initializer-overrides -Wno-t= autological-compare -Wno-tautological-constant-out-of-range-compare -g3 -O2= xml.c > >> 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 > > > > -I/usr/include/libxml2 looks strange. What is the output of > > "grep LIBXML2_CFLAGS config.log" and > > "grep /usr/include/libxml2 config.log"? > > > > YAMAMOTO Mitsuharu > > mituharu@math.s.chiba-u.ac.jp > > This patch may works, it let pkgconfig able to recognizes libxml2 shipping with macOS: diff --git a/Library/Homebrew/os/mac/pkgconfig/10.15/libxml-2.0.pc b/Library/Homebrew/os/mac/pkgconfig/10.15/libxml-2.0.pc index c297c6b45..22b2e69e8 100644 --- a/Library/Homebrew/os/mac/pkgconfig/10.15/libxml-2.0.pc +++ b/Library/Homebrew/os/mac/pkgconfig/10.15/libxml-2.0.pc @@ -1,7 +1,8 @@ prefix=3D/usr +xcode_prefix=3D/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX= .platform/Developer/SDKs/MacOSX.sdk${prefix} exec_prefix=3D${prefix} libdir=3D${exec_prefix}/lib -includedir=3D${prefix}/include +includedir=3D${xcode_prefix}/include modules=3D1 Name: libXML - XIn