all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#38349: 27.0.50; process.c:134:10: fatal error: 'glib.h' file not found
@ 2019-11-23 17:32 Pankaj Jangid
  2019-11-23 17:59 ` Eli Zaretskii
  2019-11-23 18:34 ` Alan Third
  0 siblings, 2 replies; 7+ messages in thread
From: Pankaj Jangid @ 2019-11-23 17:32 UTC (permalink / raw)
  To: 38349


Got this today while building commit
b9e99ab5ac49f8cb03fc1c27eb830a24e9bdf83c.

```
/Library/Developer/CommandLineTools/usr/bin/make -C src VCSWITNESS='$(srcdir)/../.git/logs/HEAD' all
  CC       process.o
process.c:134:10: fatal error: 'glib.h' file not found
#include <glib.h>
         ^~~~~~~~
1 error generated.
make[1]: *** [process.o] Error 1
make: *** [src] Error 2
```

Below is the configuration that I use for building Emacs on my Mac.


In GNU Emacs 27.0.50
Repository revision: b9e99ab5ac49f8cb03fc1c27eb830a24e9bdf83c
Repository branch: master
Windowing system distributor 'Apple', version 10.3.1894
System Description:  Mac OS X 10.15.1

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Configured using:
 'configure LDFLAGS=-L/usr/local/opt/ruby/lib
 CPPFLAGS=-I/usr/local/opt/ruby/include
 PKG_CONFIG_PATH=:/usr/local/opt/sqlite/lib/pkgconfig:/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/ruby/lib/pkgconfig
 'HARFBUZZ_CFLAGS=-I/usr/local/Cellar/harfbuzz/2.6.4/include/harfbuzz
 -I/usr/local/Cellar/glib/2.62.2/include/glib-2.0
 -I/usr/local/Cellar/glib/2.62.2/lib/glib-2.0/include
 -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.43/include
 -I/usr/local/Cellar/graphite2/1.3.13/include'
 'HARFBUZZ_LIBS=-L/usr/local/Cellar/harfbuzz/2.6.4/lib -lharfbuzz''

Configured features:
RSVG DBUS GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS
NS MODULES THREADS JSON PDUMPER LCMS2 GMP

Important settings:
  value of $LC_CTYPE: UTF-8
  value of $LANG: en_US
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg
epg-config gnus-util rmail rmail-loaddefs text-property-search time-date
subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs
cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode elisp-mode lisp-mode prog-mode register page
tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse
jit-lock font-lock syntax facemenu font-core term/tty-colors frame
minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite charscript charprop case-table epa-hook jka-cmpr-hook help
simple abbrev obarray cl-preloaded nadvice loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
threads dbusbind kqueue cocoa ns lcms2 multi-tty make-network-process
emacs)

Memory information:
((conses 16 45181 5341)
 (symbols 48 6068 1)
 (strings 32 15304 2149)
 (string-bytes 1 503630)
 (vectors 16 10183)
 (vector-slots 8 129543 12974)
 (floats 8 19 31)
 (intervals 56 229 0)
 (buffers 1000 12))







^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#38349: 27.0.50; process.c:134:10: fatal error: 'glib.h' file not found
  2019-11-23 17:32 bug#38349: 27.0.50; process.c:134:10: fatal error: 'glib.h' file not found Pankaj Jangid
@ 2019-11-23 17:59 ` Eli Zaretskii
  2019-11-23 18:17   ` Pankaj Jangid
       [not found]   ` <m2o8x2sbj8.fsf@j4d.net>
  2019-11-23 18:34 ` Alan Third
  1 sibling, 2 replies; 7+ messages in thread
From: Eli Zaretskii @ 2019-11-23 17:59 UTC (permalink / raw)
  To: Pankaj Jangid; +Cc: 38349

> From: Pankaj Jangid <p4j@j4d.net>
> Date: Sat, 23 Nov 2019 17:32:33 +0000
> 
> Got this today while building commit
> b9e99ab5ac49f8cb03fc1c27eb830a24e9bdf83c.
> 
> ```
> /Library/Developer/CommandLineTools/usr/bin/make -C src VCSWITNESS='$(srcdir)/../.git/logs/HEAD' all
>   CC       process.o
> process.c:134:10: fatal error: 'glib.h' file not found
> #include <glib.h>
>          ^~~~~~~~
> 1 error generated.

That line is in process.c since 2013, so what changed lately on your
system that suddenly this is a problem?  Did you update your system
libraries or headers?

> Configured using:
>  'configure LDFLAGS=-L/usr/local/opt/ruby/lib
>  CPPFLAGS=-I/usr/local/opt/ruby/include
>  PKG_CONFIG_PATH=:/usr/local/opt/sqlite/lib/pkgconfig:/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/ruby/lib/pkgconfig
>  'HARFBUZZ_CFLAGS=-I/usr/local/Cellar/harfbuzz/2.6.4/include/harfbuzz
>  -I/usr/local/Cellar/glib/2.62.2/include/glib-2.0
>  -I/usr/local/Cellar/glib/2.62.2/lib/glib-2.0/include
>  -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.43/include
>  -I/usr/local/Cellar/graphite2/1.3.13/include'
>  'HARFBUZZ_LIBS=-L/usr/local/Cellar/harfbuzz/2.6.4/lib -lharfbuzz''

Isn't HarfBuzz not yet supported on macOS?  Why do you have HarfBuzz
related flags in your compilation?

Perhaps look in config.log for how HAVE_GLIB got defined, if you don't
have it.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#38349: 27.0.50; process.c:134:10: fatal error: 'glib.h' file not found
  2019-11-23 17:59 ` Eli Zaretskii
@ 2019-11-23 18:17   ` Pankaj Jangid
       [not found]   ` <m2o8x2sbj8.fsf@j4d.net>
  1 sibling, 0 replies; 7+ messages in thread
From: Pankaj Jangid @ 2019-11-23 18:17 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 38349

Eli Zaretskii <eliz@gnu.org> writes:
>> Got this today while building commit
>> b9e99ab5ac49f8cb03fc1c27eb830a24e9bdf83c.
>> 
>> ``` /Library/Developer/CommandLineTools/usr/bin/make -C src
>> VCSWITNESS='$(srcdir)/../.git/logs/HEAD' all
>>   CC process.o process.c:134:10: fatal error: 'glib.h' file not found
>> #include <glib.h>
>>          ^~~~~~~~ 1 error generated.
>
> That line is in process.c since 2013, so what changed lately on your
> system that suddenly this is a problem?  Did you update your system
> libraries or headers?
>

Yes, glib got updated today when I ran 'brew upgrade' today. But that
was a minor upgrade from 2.62.2 to 2.62.3. Here is the log,

==> Upgrading glib ==> Downloading
https://homebrew.bintray.com/bottles/glib-2.62.3.catalina.bottle.tar.gz
==> Downloading from
https://akamai.bintray.com/e4/e47b36ad0d3f8380b995573d5f545526bd6977a3196a282d91547d92d56c52f0?__gda__=exp=1574514686~hmac=ccae058958b112e9f2c2d5e76f0b940794c32a7f50e27170de5f2f259e65
########################################################################
100.0% ==> Pouring glib-2.62.3.catalina.bottle.tar.gz ==> Caveats Bash
completion has been installed to:
  /usr/local/etc/bash_completion.d ==> Summary 🍺
/usr/local/Cellar/glib/2.62.3: 435 files, 15.4MB Removing:
/usr/local/Cellar/glib/2.62.1... (435 files, 15.4MB) Removing:
/usr/local/Cellar/glib/2.62.2... (435 files, 15.4MB)

>> Configured using:
>>  'configure LDFLAGS=-L/usr/local/opt/ruby/lib
>>  CPPFLAGS=-I/usr/local/opt/ruby/include
>>  PKG_CONFIG_PATH=:/usr/local/opt/sqlite/lib/pkgconfig:/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/ruby/lib/pkgconfig
>>  'HARFBUZZ_CFLAGS=-I/usr/local/Cellar/harfbuzz/2.6.4/include/harfbuzz
>>  -I/usr/local/Cellar/glib/2.62.2/include/glib-2.0
>>  -I/usr/local/Cellar/glib/2.62.2/lib/glib-2.0/include
>>  -I/usr/local/opt/gettext/include
>>  -I/usr/local/Cellar/pcre/8.43/include
>>  -I/usr/local/Cellar/graphite2/1.3.13/include'
>>  'HARFBUZZ_LIBS=-L/usr/local/Cellar/harfbuzz/2.6.4/lib -lharfbuzz''
>
> Isn't HarfBuzz not yet supported on macOS?  Why do you have HarfBuzz
> related flags in your compilation?
>
> Perhaps look in config.log for how HAVE_GLIB got defined, if you don't
> have it.
>

When I was trying to configure with HarfBuzz support last week, I
created environment variable. I was trying various ways to include
HarfBuzz. I wasn't aware that HarfBuzz support is not yet implemented on
MacOS. But even with this setting earlier commits worked just fine.

HAVE_GLIB is defined.

Let me just do a "make bootstrap" and report in a while.

Regards,
-- 
Pankaj Jangid





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#38349: 27.0.50; process.c:134:10: fatal error: 'glib.h' file not found
  2019-11-23 17:32 bug#38349: 27.0.50; process.c:134:10: fatal error: 'glib.h' file not found Pankaj Jangid
  2019-11-23 17:59 ` Eli Zaretskii
@ 2019-11-23 18:34 ` Alan Third
  2019-11-23 18:40   ` Pankaj Jangid
  1 sibling, 1 reply; 7+ messages in thread
From: Alan Third @ 2019-11-23 18:34 UTC (permalink / raw)
  To: Pankaj Jangid; +Cc: 38349

On Sat, Nov 23, 2019 at 05:32:33PM +0000, Pankaj Jangid wrote:
> 
> Got this today while building commit
> b9e99ab5ac49f8cb03fc1c27eb830a24e9bdf83c.
> 
> ```
> /Library/Developer/CommandLineTools/usr/bin/make -C src VCSWITNESS='$(srcdir)/../.git/logs/HEAD' all
>   CC       process.o
> process.c:134:10: fatal error: 'glib.h' file not found
> #include <glib.h>
>          ^~~~~~~~
> 1 error generated.
> make[1]: *** [process.o] Error 1
> make: *** [src] Error 2
> ```

I had this a wee while back and, iirc, make bootstrap fixed it.

(Or I may have just rerun autogen.sh and configure, but make bootstrap
does that anyway.)
-- 
Alan Third





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#38349: 27.0.50; process.c:134:10: fatal error: 'glib.h' file not found
       [not found]   ` <m2o8x2sbj8.fsf@j4d.net>
@ 2019-11-23 18:39     ` Pankaj Jangid
  2019-11-23 18:42       ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Pankaj Jangid @ 2019-11-23 18:39 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 38349

>> Isn't HarfBuzz not yet supported on macOS?  Why do you have HarfBuzz
>> related flags in your compilation?
>>
>> Perhaps look in config.log for how HAVE_GLIB got defined, if you don't
>> have it.
>>
> When I was trying to configure with HarfBuzz support last week, I
> created environment variable. I was trying various ways to include
> HarfBuzz. I wasn't aware that HarfBuzz support is not yet implemented on
> MacOS. But even with this setting earlier commits worked just fine.
>
> HAVE_GLIB is defined.
>
> Let me just do a "make bootstrap" and report in a while.

"make bootstrap" fixed it. Please close this.

Regards,
-- 
Pankaj Jangid





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#38349: 27.0.50; process.c:134:10: fatal error: 'glib.h' file not found
  2019-11-23 18:34 ` Alan Third
@ 2019-11-23 18:40   ` Pankaj Jangid
  0 siblings, 0 replies; 7+ messages in thread
From: Pankaj Jangid @ 2019-11-23 18:40 UTC (permalink / raw)
  To: Alan Third; +Cc: 38349

>> process.c:134:10: fatal error: 'glib.h' file not found
>> #include <glib.h>
>>          ^~~~~~~~
>> 1 error generated.
>> make[1]: *** [process.o] Error 1
>> make: *** [src] Error 2
>> ```
>
> I had this a wee while back and, iirc, make bootstrap fixed it.
>
> (Or I may have just rerun autogen.sh and configure, but make bootstrap
> does that anyway.)

Yes. "make boostrap" fixed it.

Regards,
-- 
Pankaj Jangid





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#38349: 27.0.50; process.c:134:10: fatal error: 'glib.h' file not found
  2019-11-23 18:39     ` Pankaj Jangid
@ 2019-11-23 18:42       ` Eli Zaretskii
  0 siblings, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2019-11-23 18:42 UTC (permalink / raw)
  To: Pankaj Jangid; +Cc: 38349-done

> From: Pankaj Jangid <p4j@j4d.net>
> Cc: 38349@debbugs.gnu.org
> Date: Sat, 23 Nov 2019 18:39:41 +0000
> 
> "make bootstrap" fixed it. Please close this.

Done.





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-11-23 18:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-23 17:32 bug#38349: 27.0.50; process.c:134:10: fatal error: 'glib.h' file not found Pankaj Jangid
2019-11-23 17:59 ` Eli Zaretskii
2019-11-23 18:17   ` Pankaj Jangid
     [not found]   ` <m2o8x2sbj8.fsf@j4d.net>
2019-11-23 18:39     ` Pankaj Jangid
2019-11-23 18:42       ` Eli Zaretskii
2019-11-23 18:34 ` Alan Third
2019-11-23 18:40   ` Pankaj Jangid

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.