[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#953815: libc6-dev: Cannot build GNU Emacs - limits.h error in configure



Package: libc6-dev
Version: 2.30-2
Severity: normal

Dear Maintainer,

I cannot build GNU Emacs on Debian unstable after the latest update - configure
fails with an error with the limits.h include.

Here is a minimal reproduction:

$ cat test.c
#include <stdlib.h>
#include <limits.h>

int main(void) {
    exit(0);
}
$ gcc -Wall test.c
In file included from test.c:2:
/usr/include/limits.h:124:26: error: no include path in which to search for limits.h
  124 | # include_next <limits.h>
      |                          ^
$ 

On Debian stable the example program compiles without problem.

For completeness, here are the errors from the config.log produced by GNU Emacs'
configure:

configure:6307: checking how to run the C preprocessor
configure:6338: gcc -E  conftest.c
In file included from conftest.c:11:
/usr/include/limits.h:124:26: error: no include path in which to search for limits.h
  124 | # include_next <limits.h>
      |                          ^
configure:6338: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Emacs"
| #define PACKAGE_TARNAME "emacs"
| #define PACKAGE_VERSION "28.0.50"
| #define PACKAGE_STRING "GNU Emacs 28.0.50"
| #define PACKAGE_BUGREPORT "bug-gnu-emacs@gnu.org"
| #define PACKAGE_URL "https://www.gnu.org/software/emacs/";
| #define HAVE_PDUMPER 1
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|                    Syntax error
configure:6338: gcc -E  conftest.c
In file included from conftest.c:11:
/usr/include/limits.h:124:26: error: no include path in which to search for limits.h
  124 | # include_next <limits.h>
      |                          ^
configure:6338: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Emacs"
| #define PACKAGE_TARNAME "emacs"
| #define PACKAGE_VERSION "28.0.50"
| #define PACKAGE_STRING "GNU Emacs 28.0.50"
| #define PACKAGE_BUGREPORT "bug-gnu-emacs@gnu.org"
| #define PACKAGE_URL "https://www.gnu.org/software/emacs/";
| #define HAVE_PDUMPER 1
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|                    Syntax error
configure:6338: gcc -E -traditional-cpp  conftest.c
In file included from /usr/include/features.h:447,
                 from /usr/include/assert.h:36,
                 from conftest.c:14:
/usr/include/x86_64-linux-gnu/sys/cdefs.h:30:3: error: #error "You need a ISO C conforming compiler to use the glibc headers"
   30 | # error "You need a ISO C conforming compiler to use the glibc headers"
      |   ^~~~~
configure:6338: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Emacs"
| #define PACKAGE_TARNAME "emacs"
| #define PACKAGE_VERSION "28.0.50"
| #define PACKAGE_STRING "GNU Emacs 28.0.50"
| #define PACKAGE_BUGREPORT "bug-gnu-emacs@gnu.org"
| #define PACKAGE_URL "https://www.gnu.org/software/emacs/";
| #define HAVE_PDUMPER 1
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|                    Syntax error

  [...]

configure:6427: error: in `/usr/src/emacs':
configure:6429: error: C preprocessor "/lib/cpp" fails sanity check

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.4.0-4-amd64 (SMP w/12 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libc6-dev depends on:
ii  libc-dev-bin    2.30-2
ii  libc6           2.30-2
ii  libcrypt-dev    1:4.4.15-1
ii  linux-libc-dev  5.4.19-1

libc6-dev recommends no packages.

Versions of packages libc6-dev suggests:
pn  glibc-doc     <none>
ii  manpages-dev  5.05-1

-- no debconf information


Reply to: