GNU bug report logs - #22552
25.1; 25.0.90 build fails on Mac OS X 10.11

Previous Next

Package: emacs;

Reported by: Henry Unger <hunger <at> hitech.com>

Date: Thu, 4 Feb 2016 16:33:02 UTC

Severity: normal

Found in version 25.1

Done: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 22552 in the body.
You can then email your comments to 22552 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#22552; Package emacs. (Thu, 04 Feb 2016 16:33:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Henry Unger <hunger <at> hitech.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 04 Feb 2016 16:33:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Henry Unger <hunger <at> hitech.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.1; 25.0.90 build fails on Mac OS X 10.11
Date: Thu, 4 Feb 2016 09:31:07 -0600
On Apple Mac running OS X 10.11:

Downloaded ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-25.0.90.tar.xz
Unpacked it.
Ran ./configure
Ran make
Compile stopped with:

  CC       xml.o
xml.c:23:10: fatal error: 'libxml/tree.h' file not found
#include <libxml/tree.h>
         ^
1 error generated.
make[1]: *** [xml.o] Error 1
make: *** [src] Error 2

On my system, that file is found in:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2/libxml

This may be related to:

2015-12-31 YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>

* configure.ac: Find libxml2 headers in Xcode SDK dir on Darwin.

I ran:

$ xcrun --show-sdk-path
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk

config.status has:

S["LIBXML2_LIBS"]="-lxml2 "
S["LIBXML2_CFLAGS"]="-I/usr/include/libxml2 "

Henry Unger





Added indication that bug 22552 blocks19759 Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 04 Feb 2016 16:35:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#22552; Package emacs. (Fri, 05 Feb 2016 00:30:02 GMT) Full text and rfc822 format available.

Message #10 received at 22552 <at> debbugs.gnu.org (full text, mbox):

From: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>
To: Henry Unger <hunger <at> hitech.com>
Cc: 22552 <at> debbugs.gnu.org
Subject: Re: bug#22552: 25.1; 25.0.90 build fails on Mac OS X 10.11
Date: Fri, 05 Feb 2016 09:29:30 +0900
>>>>> On Thu, 4 Feb 2016 09:31:07 -0600, Henry Unger <hunger <at> hitech.com> said:

> On Apple Mac running OS X 10.11:
> Downloaded ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-25.0.90.tar.xz
> Unpacked it.
> Ran ./configure
> Ran make
> Compile stopped with:

>   CC       xml.o
> xml.c:23:10: fatal error: 'libxml/tree.h' file not found
> #include <libxml/tree.h>
>          ^
> 1 error generated.
> make[1]: *** [xml.o] Error 1
> make: *** [src] Error 2

> On my system, that file is found in:

> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2/libxml

> This may be related to:

> 2015-12-31 YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>

> * configure.ac: Find libxml2 headers in Xcode SDK dir on Darwin.

> I ran:

> $ xcrun --show-sdk-path
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk

> config.status has:

> S["LIBXML2_LIBS"]="-lxml2 "
> S["LIBXML2_CFLAGS"]="-I/usr/include/libxml2 "

What's the output of "pkg-config --cflags 'libxml-2.0 > 2.6.17'" ?
Do you have the directory /usr/include ?

				     YAMAMOTO Mitsuharu
				mituharu <at> math.s.chiba-u.ac.jp




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#22552; Package emacs. (Fri, 05 Feb 2016 03:15:02 GMT) Full text and rfc822 format available.

Message #13 received at 22552 <at> debbugs.gnu.org (full text, mbox):

From: Henry Unger <hunger <at> hitech.com>
To: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>
Cc: 22552 <at> debbugs.gnu.org
Subject: Re: bug#22552: 25.1; 25.0.90 build fails on Mac OS X 10.11
Date: Thu, 4 Feb 2016 18:39:55 -0800
[Message part 1 (text/plain, inline)]



 From:   YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp> 
 To:   Henry Unger <hunger <at> hitech.com> 
 Cc:   <22552 <at> debbugs.gnu.org> 
 Sent:   2/4/2016 4:29 PM 
 Subject:   Re: bug#22552: 25.1; 25.0.90 build fails on Mac OS X 10.11 

>>>>> On Thu, 4 Feb 2016 09:31:07 -0600, Henry Unger <hunger <at> hitech.com> said: 
 
> On Apple Mac running OS X 10.11: 
> Downloaded ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-25.0.90.tar.xz 
> Unpacked it. 
> Ran ./configure 
> Ran make 
> Compile stopped with: 
 
>   CC       xml.o 
> xml.c:23:10: fatal error: 'libxml/tree.h' file not found 
> #include <libxml/tree.h> 
>          ^ 
> 1 error generated. 
> make[1]: *** [xml.o] Error 1 
> make: *** [src] Error 2 
 
> On my system, that file is found in: 
 
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2/libxml 
 
> This may be related to: 
 
> 2015-12-31 YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp> 
 
> * configure.ac: Find libxml2 headers in Xcode SDK dir on Darwin. 
 
> I ran: 
 
> $ xcrun --show-sdk-path 
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk 
 
> config.status has: 
 
> S["LIBXML2_LIBS"]="-lxml2 " 
> S["LIBXML2_CFLAGS"]="-I/usr/include/libxml2 " 
 
What's the output of "pkg-config --cflags 'libxml-2.0 > 2.6.17'" ? 
Do you have the directory /usr/include ? 
 
                         YAMAMOTO Mitsuharu 
                    mituharu <at> math.s.chiba-u.ac.jp 
$ pkg-config --cflags 'libxml-2.0 > 2.6.17'
-I/usr/include/libxml2

/usr/include does not exist per se. Instead, it is:

Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include

I tried to create a soft link:

$ sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include /usr/include
Password:
ln: /usr/include: Operation not permitted

Apple no longer allows such things.

Henry
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#22552; Package emacs. (Fri, 05 Feb 2016 03:38:01 GMT) Full text and rfc822 format available.

Message #16 received at 22552 <at> debbugs.gnu.org (full text, mbox):

From: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>
To: Henry Unger <hunger <at> hitech.com>
Cc: 22552 <at> debbugs.gnu.org
Subject: Re: bug#22552: 25.1; 25.0.90 build fails on Mac OS X 10.11
Date: Fri, 05 Feb 2016 12:37:28 +0900
>>>>> On Thu, 4 Feb 2016 18:39:55 -0800, Henry Unger <hunger <at> hitech.com> said:

> $ pkg-config --cflags 'libxml-2.0 > 2.6.17'
> -I/usr/include/libxml2

> /usr/include does not exist per se.

This means libxml-2.0.pc in your installation of libxml2 is bogus.
IIUC, Apple does not provide us with libxml-2.0.pc in their SDK, so
probably you should have installed libxml2 on your own.

				     YAMAMOTO Mitsuharu
				mituharu <at> math.s.chiba-u.ac.jp




Reply sent to YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>:
You have taken responsibility. (Fri, 05 Feb 2016 09:17:01 GMT) Full text and rfc822 format available.

Notification sent to Henry Unger <hunger <at> hitech.com>:
bug acknowledged by developer. (Fri, 05 Feb 2016 09:17:01 GMT) Full text and rfc822 format available.

Message #21 received at 22552-done <at> debbugs.gnu.org (full text, mbox):

From: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>
To: Henry Unger <hunger <at> hitech.com>
Cc: 22552-done <at> debbugs.gnu.org
Subject: Re: bug#22552: 25.1; 25.0.90 build fails on Mac OS X 10.11
Date: Fri, 05 Feb 2016 18:15:57 +0900
>>>>> On Thu, 4 Feb 2016 22:49:32 -0800, Henry Unger <hunger <at> hitech.com> said:

>> > $ pkg-config --cflags 'libxml-2.0 > 2.6.17'
>> > -I/usr/include/libxml2
>> 
>> > /usr/include does not exist per se.
>> 
>> This means libxml-2.0.pc in your installation of libxml2 is bogus.
>> IIUC, Apple does not provide us with libxml-2.0.pc in their SDK, so probably
>> you should have installed libxml2 on your own.
>> 
>> YAMAMOTO Mitsuharu
>> mituharu <at> math.s.chiba-u.ac.jp

> It appears that the libxml-2.0.pc file was installed when I used brew to install some package a few weeks ago. I renamed libxml-2.0.pc to something else and re-ran the configure and make and it built without error. I'm sorry for the false alarm and thanks for your assistance

Homebrew seems to require the installation of Command Line Tools for
Xcode.

  https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Installation.md

If you follow the above instructions, then /usr/include will be
created and the build of Emacs will succeed.

				     YAMAMOTO Mitsuharu
				mituharu <at> math.s.chiba-u.ac.jp




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#22552; Package emacs. (Fri, 05 Feb 2016 16:34:02 GMT) Full text and rfc822 format available.

Message #24 received at 22552 <at> debbugs.gnu.org (full text, mbox):

From: Henry Unger <hunger <at> hitech.com>
To: 'YAMAMOTO Mitsuharu' <mituharu <at> math.s.chiba-u.ac.jp>
Cc: 22552 <at> debbugs.gnu.org
Subject: RE: bug#22552: 25.1; 25.0.90 build fails on Mac OS X 10.11
Date: Thu, 4 Feb 2016 22:49:32 -0800
> -----Original Message-----
> From: YAMAMOTO Mitsuharu [mailto:mituharu <at> math.s.chiba-u.ac.jp]
> Sent: Thursday, February 04, 2016 7:37 PM
> To: Henry Unger <hunger <at> hitech.com>
> Cc: 22552 <at> debbugs.gnu.org
> Subject: Re: bug#22552: 25.1; 25.0.90 build fails on Mac OS X 10.11
> 
> >>>>> On Thu, 4 Feb 2016 18:39:55 -0800, Henry Unger
> <hunger <at> hitech.com> said:
> 
> > $ pkg-config --cflags 'libxml-2.0 > 2.6.17'
> > -I/usr/include/libxml2
> 
> > /usr/include does not exist per se.
> 
> This means libxml-2.0.pc in your installation of libxml2 is bogus.
> IIUC, Apple does not provide us with libxml-2.0.pc in their SDK, so probably
> you should have installed libxml2 on your own.
> 
> 				     YAMAMOTO Mitsuharu
> 				mituharu <at> math.s.chiba-u.ac.jp

It appears that the libxml-2.0.pc file was installed when I used brew to install some package a few weeks ago. I renamed libxml-2.0.pc to something else and re-ran the configure and make and it built without error. I'm sorry for the false alarm and thanks for your assistance

Henry Unger
hunger <at> hitech.com
  







bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 05 Mar 2016 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 113 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.