* Error when building from master branch
@ 2020-07-12 17:48 Kaushal Modi
2020-07-12 18:35 ` Paul Eggert
0 siblings, 1 reply; 4+ messages in thread
From: Kaushal Modi @ 2020-07-12 17:48 UTC (permalink / raw)
To: Emacs developers
[-- Attachment #1: Type: text/plain, Size: 1492 bytes --]
Hello,
When building emacs from master branch, I get the below error:
OS: CentOS Linux release 7.6.1810 (Core)
Other than --prefix, my configure switches are "--with-modules
--with-harfbuzz --with-imagemagick".
I tried running "make bootstrap" and still got the same error.
=====
In file included from /usr/lib/glib-2.0/include/glibconfig.h:9,
from /usr/include/glib-2.0/glib/gtypes.h:32,
from /usr/include/glib-2.0/glib/galloca.h:32,
from /usr/include/glib-2.0/glib.h:30,
from /usr/include/gtk-3.0/gdk/gdkconfig.h:13,
from /usr/include/gtk-3.0/gdk/gdk.h:30,
from /usr/include/gtk-3.0/gtk/gtk.h:30,
from xterm.h:49,
from emacsgtkfixed.c:25:
emacsgtkfixed.c: In function ‘emacs_fixed_get_type’:
emacsgtkfixed.c:51:1: error: size of array
‘_GStaticAssertCompileTimeAssertion_3’ is negative
51 | G_DEFINE_TYPE (EmacsFixed, emacs_fixed, GTK_TYPE_FIXED)
| ^~~~~~~~~~~~~
emacsgtkfixed.c:51:1: error: size of array
‘_GStaticAssertCompileTimeAssertion_4’ is negative
51 | G_DEFINE_TYPE (EmacsFixed, emacs_fixed, GTK_TYPE_FIXED)
| ^~~~~~~~~~~~~
emacsgtkfixed.c:51:1: error: size of array
‘_GStaticAssertCompileTimeAssertion_5’ is negative
51 | G_DEFINE_TYPE (EmacsFixed, emacs_fixed, GTK_TYPE_FIXED)
| ^~~~~~~~~~~~~
make[2]: *** [emacsgtkfixed.o] Error 1
=====
--
Kaushal Modi
[-- Attachment #2: Type: text/html, Size: 1951 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Error when building from master branch
2020-07-12 17:48 Error when building from master branch Kaushal Modi
@ 2020-07-12 18:35 ` Paul Eggert
2020-07-27 1:26 ` Kaushal Modi
0 siblings, 1 reply; 4+ messages in thread
From: Paul Eggert @ 2020-07-12 18:35 UTC (permalink / raw)
To: Kaushal Modi; +Cc: Emacs developers
On 7/12/20 10:48 AM, Kaushal Modi wrote:
> emacsgtkfixed.c: In function ‘emacs_fixed_get_type’:
> emacsgtkfixed.c:51:1: error: size of array
> ‘_GStaticAssertCompileTimeAssertion_3’ is negative
> 51 | G_DEFINE_TYPE (EmacsFixed, emacs_fixed, GTK_TYPE_FIXED)
> | ^~~~~~~~~~~~~
I'm not seeing the problem on Fedora 31.
My guess is that your pkg-config setup doesn't match your libraries. This sort
of thing can be a pain to debug. Possibly you can work around the problem by
setting PKG_CONFIG_LIBDIR in your environment.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Error when building from master branch
2020-07-12 18:35 ` Paul Eggert
@ 2020-07-27 1:26 ` Kaushal Modi
2020-07-27 2:48 ` Kaushal Modi
0 siblings, 1 reply; 4+ messages in thread
From: Kaushal Modi @ 2020-07-27 1:26 UTC (permalink / raw)
To: Paul Eggert; +Cc: Emacs developers
[-- Attachment #1: Type: text/plain, Size: 1571 bytes --]
On Sun, Jul 12, 2020 at 2:36 PM Paul Eggert <eggert@cs.ucla.edu> wrote:
> On 7/12/20 10:48 AM, Kaushal Modi wrote:
>
> > emacsgtkfixed.c: In function ‘emacs_fixed_get_type’:
> > emacsgtkfixed.c:51:1: error: size of array
> > ‘_GStaticAssertCompileTimeAssertion_3’ is negative
> > 51 | G_DEFINE_TYPE (EmacsFixed, emacs_fixed, GTK_TYPE_FIXED)
> > | ^~~~~~~~~~~~~
>
> I'm not seeing the problem on Fedora 31.
>
> My guess is that your pkg-config setup doesn't match your libraries. This
> sort
> of thing can be a pain to debug. Possibly you can work around the problem
> by
> setting PKG_CONFIG_LIBDIR in your environment.
>
Hello Paul,
Sorry for the late reply. I was waiting to find some time so that I could
do a deep-dive into this issue.
I spent few hours on this today, but couldn't get emacs to build on CentOS
7. I tried with the default pkg-config 0.27.1. That failed with the same
error.
Then I installed pkg-config 0.28.0 (which worked well for me on RHEL 6.8),
but the same error using that.
And then the same thing with pkg-config 0.29.2 as well.
I also tried out your suggestion to set the env var PKG_CONFIG_LIBDIR. I
set it with the same value of my default PKG_CONFIG_DIR that contains the
paths of all the necessary pkgconfig dirs (I hope that is the right value
to set for PKG_CONFIG_LIBDIR). But still couldn't get past this error.
What does that G_DEFINE_TYPE check do in emacsgtkfixed.c? Is there some
local hack I can do to that .c file so that I can get past this error?
Thanks.
[-- Attachment #2: Type: text/html, Size: 2103 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-07-27 2:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-12 17:48 Error when building from master branch Kaushal Modi
2020-07-12 18:35 ` Paul Eggert
2020-07-27 1:26 ` Kaushal Modi
2020-07-27 2:48 ` Kaushal Modi
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).