From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: Building: alloc.c:766:1: error: negative width in bit-field `_gl_verify_error_if_negative' Date: Mon, 13 Feb 2012 12:50:14 -0800 Organization: UCLA Computer Science Department Message-ID: <4F397786.3030503@cs.ucla.edu> References: <20120212110253.GA11925@acm.acm> <4F382FB0.2000506@cs.ucla.edu> <20120213130702.GA26954@acm.acm> <4F394100.2030704@cs.ucla.edu> <20120213203456.GC26954@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1329166229 27890 80.91.229.3 (13 Feb 2012 20:50:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Feb 2012 20:50:29 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 13 21:50:28 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rx2qt-00023p-3C for ged-emacs-devel@m.gmane.org; Mon, 13 Feb 2012 21:50:23 +0100 Original-Received: from localhost ([::1]:51069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rx2qr-00068C-Vr for ged-emacs-devel@m.gmane.org; Mon, 13 Feb 2012 15:50:21 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:48536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rx2qp-000683-JA for emacs-devel@gnu.org; Mon, 13 Feb 2012 15:50:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rx2qn-0003Tt-Ga for emacs-devel@gnu.org; Mon, 13 Feb 2012 15:50:19 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:39399) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rx2qn-0003Tj-9o for emacs-devel@gnu.org; Mon, 13 Feb 2012 15:50:17 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 2B49139E800A; Mon, 13 Feb 2012 12:50:16 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id o1DEsaKcv2o2; Mon, 13 Feb 2012 12:50:15 -0800 (PST) Original-Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 62DDD39E8006; Mon, 13 Feb 2012 12:50:15 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20120131 Thunderbird/10.0 In-Reply-To: <20120213203456.GC26954@acm.acm> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 131.179.128.62 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:148578 Archived-At: Your compilation environment appears to have a problem, in this part of config.log: configure:17999: checking for bit size of ptrdiff_t configure:18004: gcc -std=gnu99 -o conftest -g -O2 -Wl,-znocombreloc conftest.c -lncurses -llockfile -lm -lxml2 -lSM -lICE -lXrender -lXft -lgnutls -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lMagickWand -lMagickCore -pthread -lrsvg-2 -lm -lgio-2.0 -lgdk_pixbuf-2.0 -lcairo -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lX11 -lpthread -ldbus-1 -lpthread -lrt >&5 /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libMagickCore.so.4, needed by /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../lib64/libMagickWand.so, not found (try using -rpath or -rpath-link) configure:18004: $? = 0 configure:18004: ./conftest ./conftest: error while loading shared libraries: libMagickCore.so.4: cannot open shared object file: No such file or directory configure:18004: $? = 127 configure: program exited with status 127 You probably need to fix this, for other reasons. But before you fix it, could you please see whether the following patch avoids the static assertion failure? Thanks. diff --git a/lib/stdint.in.h b/lib/stdint.in.h index 54ec7e0..08f362e 100644 --- a/lib/stdint.in.h +++ b/lib/stdint.in.h @@ -481,6 +481,7 @@ typedef int _verify_intmax_size[sizeof (intmax_t) == sizeof (uintmax_t) /* 7.18.3. Limits of other integer types */ /* ptrdiff_t limits */ +#if @APPLE_UNIVERSAL_BUILD@ || @BITSIZEOF_PTRDIFF_T@ #undef PTRDIFF_MIN #undef PTRDIFF_MAX #if @APPLE_UNIVERSAL_BUILD@ @@ -497,8 +498,10 @@ typedef int _verify_intmax_size[sizeof (intmax_t) == sizeof (uintmax_t) # define PTRDIFF_MAX \ _STDINT_MAX (1, @BITSIZEOF_PTRDIFF_T@, 0@PTRDIFF_T_SUFFIX@) #endif +#endif /* sig_atomic_t limits */ +#if @BITSIZEOF_SIG_ATOMIC_T@ #undef SIG_ATOMIC_MIN #undef SIG_ATOMIC_MAX #define SIG_ATOMIC_MIN \ @@ -507,9 +510,10 @@ typedef int _verify_intmax_size[sizeof (intmax_t) == sizeof (uintmax_t) #define SIG_ATOMIC_MAX \ _STDINT_MAX (@HAVE_SIGNED_SIG_ATOMIC_T@, @BITSIZEOF_SIG_ATOMIC_T@, \ 0@SIG_ATOMIC_T_SUFFIX@) - +#endif /* size_t limit */ +#if @APPLE_UNIVERSAL_BUILD@ || @BITSIZEOF_SIZE_T@ #undef SIZE_MAX #if @APPLE_UNIVERSAL_BUILD@ # ifdef _LP64 @@ -520,6 +524,7 @@ typedef int _verify_intmax_size[sizeof (intmax_t) == sizeof (uintmax_t) #else # define SIZE_MAX _STDINT_MAX (0, @BITSIZEOF_SIZE_T@, 0@SIZE_T_SUFFIX@) #endif +#endif /* wchar_t limits */ /* Get WCHAR_MIN, WCHAR_MAX. @@ -537,20 +542,24 @@ typedef int _verify_intmax_size[sizeof (intmax_t) == sizeof (uintmax_t) # include # undef _GL_JUST_INCLUDE_SYSTEM_WCHAR_H #endif +#if @BITSIZEOF_WCHAR_T@ #undef WCHAR_MIN #undef WCHAR_MAX #define WCHAR_MIN \ _STDINT_MIN (@HAVE_SIGNED_WCHAR_T@, @BITSIZEOF_WCHAR_T@, 0@WCHAR_T_SUFFIX@) #define WCHAR_MAX \ _STDINT_MAX (@HAVE_SIGNED_WCHAR_T@, @BITSIZEOF_WCHAR_T@, 0@WCHAR_T_SUFFIX@) +#endif /* wint_t limits */ +#if @BITSIZEOF_WINT_T@ #undef WINT_MIN #undef WINT_MAX #define WINT_MIN \ _STDINT_MIN (@HAVE_SIGNED_WINT_T@, @BITSIZEOF_WINT_T@, 0@WINT_T_SUFFIX@) #define WINT_MAX \ _STDINT_MAX (@HAVE_SIGNED_WINT_T@, @BITSIZEOF_WINT_T@, 0@WINT_T_SUFFIX@) +#endif /* 7.18.4. Macros for integer constants */