From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 25 14:16:28 2012 Received: (at submit) by debbugs.gnu.org; 25 Jun 2012 18:16:28 +0000 Received: from localhost ([127.0.0.1]:57549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SjDpr-0001n1-41 for submit@debbugs.gnu.org; Mon, 25 Jun 2012 14:16:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60936) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SjDpp-0001mu-Qc for submit@debbugs.gnu.org; Mon, 25 Jun 2012 14:16:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SjDlz-0005eK-PZ for submit@debbugs.gnu.org; Mon, 25 Jun 2012 14:12:29 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:58692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjDlz-0005eF-ME for submit@debbugs.gnu.org; Mon, 25 Jun 2012 14:12:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjDly-0005eX-36 for bug-gnu-emacs@gnu.org; Mon, 25 Jun 2012 14:12:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SjDlw-0005dv-7M for bug-gnu-emacs@gnu.org; Mon, 25 Jun 2012 14:12:25 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:33940) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjDlw-0005dr-3p for bug-gnu-emacs@gnu.org; Mon, 25 Jun 2012 14:12:24 -0400 Received: from dann by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1SjDlv-0005wZ-Hn for bug-gnu-emacs@gnu.org; Mon, 25 Jun 2012 14:12:23 -0400 From: Dan Nicolaescu To: bug-gnu-emacs@gnu.org Subject: compilation failure: `ULLONG_MAX' undeclared Date: Mon, 25 Jun 2012 14:12:23 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) On an ancient machine (don't ask) building the trunk fails: gcc -c -Demacs -DHAVE_CONFIG_H -I. -I/tmp/emacs/src -I../lib -I/tmp/emacs/src/../lib -I/usr/X11R6/include -MMD -MF deps/sysdep.d -MP -g -O2 /tmp/emacs/src/sysdep.c /tmp/emacs/src/sysdep.c: In function `time_from_jiffies': /tmp/emacs/src/sysdep.c:2587: `ULLONG_MAX' undeclared (first use in this function) /tmp/emacs/src/sysdep.c:2587: (Each undeclared identifier is reported only once /tmp/emacs/src/sysdep.c:2587: for each function it appears in.) make[1]: *** [sysdep.o] Error 1 $ cat /etc/redhat-release Red Hat Linux release 7.3 (Valhalla) $ rpm -q glibc-devel glibc-devel-2.2.5-44 $ gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113) From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 26 09:14:28 2012 Received: (at 11781) by debbugs.gnu.org; 26 Jun 2012 13:14:28 +0000 Received: from localhost ([127.0.0.1]:58373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SjVb8-0003XZ-OW for submit@debbugs.gnu.org; Tue, 26 Jun 2012 09:14:27 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:38237) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SjVb4-0003XP-N1 for 11781@debbugs.gnu.org; Tue, 26 Jun 2012 09:14:24 -0400 Received: from dann by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1SjVXB-00037I-94 for 11781@debbugs.gnu.org; Tue, 26 Jun 2012 09:10:21 -0400 From: Dan Nicolaescu To: 11781@debbugs.gnu.org Subject: Re: bug#11781: compilation failure: `ULLONG_MAX' undeclared References: X-Debbugs-No-Ack: yes Date: Tue, 26 Jun 2012 09:10:21 -0400 In-Reply-To: (Dan Nicolaescu's message of "Mon, 25 Jun 2012 14:12:23 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: 11781 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Dan Nicolaescu writes: > On an ancient machine (don't ask) building the trunk fails: > > gcc -c -Demacs -DHAVE_CONFIG_H -I. -I/tmp/emacs/src -I../lib -I/tmp/emacs/src/../lib -I/usr/X11R6/include -MMD -MF deps/sysdep.d -MP -g -O2 /tmp/emacs/src/sysdep.c > /tmp/emacs/src/sysdep.c: In function `time_from_jiffies': > /tmp/emacs/src/sysdep.c:2587: `ULLONG_MAX' undeclared (first use in this function) > /tmp/emacs/src/sysdep.c:2587: (Each undeclared identifier is reported only once > /tmp/emacs/src/sysdep.c:2587: for each function it appears in.) > make[1]: *** [sysdep.o] Error 1 > > > $ cat /etc/redhat-release > Red Hat Linux release 7.3 (Valhalla) > > $ rpm -q glibc-devel > glibc-devel-2.2.5-44 > > $ gcc -v > Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs > gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113) The compilation succeeds when using "gcc -std=c99" or "gcc -std=gnu99" Looking at config.log, it tries to use -std=gnu99 but the test fails: configure:6807: gcc -std=gnu99 -c -g -O2 conftest.c >&5 conftest.c:68: array size missing in `data' conftest.c: In function `test_restrict': conftest.c:85: parse error before `unsigned' conftest.c:85: `i' undeclared (first use in this function) conftest.c:85: (Each undeclared identifier is reported only once conftest.c:85: for each function it appears in.) conftest.c:85: parse error before `)' conftest.c: In function `test_varargs': conftest.c:96: parse error before `args_copy' conftest.c:97: `args_copy' undeclared (first use in this function) conftest.c:99: parse error before `const' conftest.c:108: `str' undeclared (first use in this function) conftest.c:111: `number' undeclared (first use in this function) conftest.c:114: `fnumber' undeclared (first use in this function) conftest.c: In function `main': conftest.c:134: parse error before `char' conftest.c:141: parse error before `struct' conftest.c:143: `ia' undeclared (first use in this function) conftest.c:144: parse error before `int' conftest.c:144: `i' undeclared (first use in this function) conftest.c:144: parse error before `)' conftest.c:154: `ni' undeclared (first use in this function) conftest.c:156: parse error before `int' conftest.c:157: `dynamic_array' undeclared (first use in this function) conftest.c:160: `newvar' undeclared (first use in this function) configure:6807: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "emacs" | #define PACKAGE_TARNAME "emacs" | #define PACKAGE_VERSION "24.1.50" | #define PACKAGE_STRING "emacs 24.1.50" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "emacs" | #define VERSION "24.1.50" | #define MAIL_USE_POP 1 | #define SYNC_INPUT 1 | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _DARWIN_C_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define _FILE_OFFSET_BITS 64 | /* end confdefs.h. */ | #include | #include | #include | #include | #include | | // Check varargs macros. These examples are taken from C99 6.10.3.5. | #define debug(...) fprintf (stderr, __VA_ARGS__) | #define showlist(...) puts (#__VA_ARGS__) | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | static void | test_varargs_macros (void) | { | int x = 1234; | int y = 5678; | debug ("Flag"); | debug ("X = %d\n", x); | showlist (The first, second, and third items.); | report (x>y, "x is %d but y is %d", x, y); | } | | // Check long long types. | #define BIG64 18446744073709551615ull | #define BIG32 4294967295ul | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | #if !BIG_OK | your preprocessor is broken; | #endif | #if BIG_OK | #else | your preprocessor is broken; | #endif | static long long int bignum = -9223372036854775807LL; | static unsigned long long int ubignum = BIG64; | | struct incomplete_array | { | int datasize; | double data[]; | }; | | struct named_init { | int number; | const wchar_t *name; | double average; | }; | | typedef const char *ccp; | | static inline int | test_restrict (ccp restrict text) | { | // See if C++-style comments work. | // Iterate through items via the restricted pointer. | // Also check for declarations in for loops. | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | continue; | return 0; | } | [snip] Any idea what is going on here? From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 06 23:17:10 2012 Received: (at 11781-done) by debbugs.gnu.org; 7 Jul 2012 03:17:10 +0000 Received: from localhost ([127.0.0.1]:53487 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SnLW9-0008VD-DY for submit@debbugs.gnu.org; Fri, 06 Jul 2012 23:17:09 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:52418) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SnLW7-0008V6-4H for 11781-done@debbugs.gnu.org; Fri, 06 Jul 2012 23:17:07 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 0C9D8A6001D; Fri, 6 Jul 2012 20:12:05 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu 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 nGCEG9pyvtqZ; Fri, 6 Jul 2012 20:12:04 -0700 (PDT) Received: from [192.168.1.4] (pool-108-23-119-2.lsanca.fios.verizon.net [108.23.119.2]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 6C028A60001; Fri, 6 Jul 2012 20:12:04 -0700 (PDT) Message-ID: <4FF7A907.70607@cs.ucla.edu> Date: Fri, 06 Jul 2012 20:12:07 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: Dan Nicolaescu Subject: Re: bug#11781: compilation failure: `ULLONG_MAX' undeclared Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11781-done Cc: 11781-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) In trunk bzr 108930 I patched sysdep.c so that it defines ULLONG_MAX if the system doesn't already define it; that should fix the immediate problem so I've marked this as done. About the C99 issue: Emacs uses a standard test for C99, which checks for many C99 features that your compiler lacks. It then falls back on ordinary gcc. Perhaps this could be hacked to be smarter, though I'm not sure it's worth the aggravation if things are working for you now. From unknown Sat Aug 16 18:44:50 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 04 Aug 2012 11:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator