bug-autoconf
[Top][All Lists]
Advanced

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

AC_CHECK_SIZEOF fails with GCC 3.0.4


From: Pascal Haakmat
Subject: AC_CHECK_SIZEOF fails with GCC 3.0.4
Date: Mon, 13 Jan 2003 12:44:37 +0100
User-agent: Mutt/1.2.5i

Hello,

autoconf 2.53 (as distributed with Red Hat 8) may have a bug.

Running autoconf on the following two-line configure.in:

AC_INIT(test, 0)
AC_CHECK_SIZEOF(int)

generates a configure script that fails on gcc 3.0.4 (as distributed
with Red Hat 7.2). config.log has been attached. 

A copy of this bug report has been entered at bugzilla.redhat.com.

Pascal.

--- Example:
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.0.4/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --host=i386-redhat-linux --with-system-zlib
Thread model: posix
gcc version 3.0.4 (Red Hat Linux 7.2 3.0.4-1)
$ ./configure
<output deleted>
checking size of int... configure: error: cannot compute sizeof (int), 77
$ export CC=kgcc
$ kgcc -v
address@hidden autoconf-bug]$ kgcc -v
Reading specs from
/usr/lib/gcc-lib/i386-glibc21-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
<output deleted>
checking size of int... 4
$

--- config.log:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by test configure 0, which was
generated by GNU Autoconf 2.53.  Invocation command line was

  $ ./configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = awacs.dhs.org
uname -m = i686
uname -r = 2.4.16-xfs-ll-ide-hm
uname -s = Linux
uname -v = #2 SMP Thu Dec 19 08:00:12 CET 2002

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/bin
PATH: /bin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /usr/java/jdk1.3.1_01/bin/
PATH: /home/p/bin
PATH: /usr/jdk1.2.2/bin
PATH: /home/p/audio-tools


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1236: checking for gcc
configure:1262: result: kgcc
configure:1506: checking for C compiler version
configure:1509: kgcc --version </dev/null >&5
egcs-2.91.66
configure:1512: $? = 0
configure:1514: kgcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i386-glibc21-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
configure:1517: $? = 0
configure:1519: kgcc -V </dev/null >&5
kgcc: argument to `-V' is missing
configure:1522: $? = 1
configure:1548: checking for C compiler default output
configure:1551: kgcc    conftest.c  >&5
configure:1554: $? = 0
configure:1587: result: a.out
configure:1592: checking whether the C compiler works
configure:1598: ./a.out
configure:1601: $? = 0
configure:1616: result: yes
configure:1623: checking whether we are cross compiling
configure:1625: result: no
configure:1628: checking for suffix of executables
configure:1630: kgcc -o conftest    conftest.c  >&5
configure:1633: $? = 0
configure:1655: result: 
configure:1661: checking for suffix of object files
configure:1685: kgcc -c   conftest.c >&5
configure:1688: $? = 0
configure:1707: result: o
configure:1711: checking whether we are using the GNU C compiler
configure:1738: kgcc -c   conftest.c >&5
configure:1741: $? = 0
configure:1744: test -s conftest.o
configure:1747: $? = 0
configure:1759: result: yes
configure:1765: checking whether kgcc accepts -g
configure:1789: kgcc -c -g  conftest.c >&5
configure:1792: $? = 0
configure:1795: test -s conftest.o
configure:1798: $? = 0
configure:1808: result: yes
configure:1835: kgcc -c -g -O2  conftest.c >&5
conftest.c:2: parse error before `me'
configure:1838: $? = 1
configure: failed program was:
#ifndef __cplusplus
  choke me
#endif
configure:1954: checking how to run the C preprocessor
configure:1980: kgcc -E  conftest.c
configure:1986: $? = 0
configure:2013: kgcc -E  conftest.c
configure:2009: ac_nonexistent.h: No such file or directory
configure:2019: $? = 1
configure: failed program was:
#line 2008 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
configure:2056: result: kgcc -E
configure:2071: kgcc -E  conftest.c
configure:2077: $? = 0
configure:2104: kgcc -E  conftest.c
configure:2100: ac_nonexistent.h: No such file or directory
configure:2110: $? = 1
configure: failed program was:
#line 2099 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
configure:2150: checking for ANSI C header files
configure:2164: kgcc -E  conftest.c
configure:2170: $? = 0
configure:2255: kgcc -o conftest -g -O2   conftest.c  >&5
configure:2258: $? = 0
configure:2260: ./conftest
configure:2263: $? = 0
configure:2277: result: yes
configure:2301: checking for sys/types.h
configure:2314: kgcc -c -g -O2  conftest.c >&5
configure:2317: $? = 0
configure:2320: test -s conftest.o
configure:2323: $? = 0
configure:2333: result: yes
configure:2301: checking for sys/stat.h
configure:2314: kgcc -c -g -O2  conftest.c >&5
configure:2317: $? = 0
configure:2320: test -s conftest.o
configure:2323: $? = 0
configure:2333: result: yes
configure:2301: checking for stdlib.h
configure:2314: kgcc -c -g -O2  conftest.c >&5
configure:2317: $? = 0
configure:2320: test -s conftest.o
configure:2323: $? = 0
configure:2333: result: yes
configure:2301: checking for string.h
configure:2314: kgcc -c -g -O2  conftest.c >&5
configure:2317: $? = 0
configure:2320: test -s conftest.o
configure:2323: $? = 0
configure:2333: result: yes
configure:2301: checking for memory.h
configure:2314: kgcc -c -g -O2  conftest.c >&5
configure:2317: $? = 0
configure:2320: test -s conftest.o
configure:2323: $? = 0
configure:2333: result: yes
configure:2301: checking for strings.h
configure:2314: kgcc -c -g -O2  conftest.c >&5
configure:2317: $? = 0
configure:2320: test -s conftest.o
configure:2323: $? = 0
configure:2333: result: yes
configure:2301: checking for inttypes.h
configure:2314: kgcc -c -g -O2  conftest.c >&5
configure:2317: $? = 0
configure:2320: test -s conftest.o
configure:2323: $? = 0
configure:2333: result: yes
configure:2301: checking for stdint.h
configure:2314: kgcc -c -g -O2  conftest.c >&5
configure:2317: $? = 0
configure:2320: test -s conftest.o
configure:2323: $? = 0
configure:2333: result: yes
configure:2301: checking for unistd.h
configure:2314: kgcc -c -g -O2  conftest.c >&5
configure:2317: $? = 0
configure:2320: test -s conftest.o
configure:2323: $? = 0
configure:2333: result: yes
configure:2345: checking for int
configure:2372: kgcc -c -g -O2  conftest.c >&5
configure:2375: $? = 0
configure:2378: test -s conftest.o
configure:2381: $? = 0
configure:2391: result: yes
configure:2394: checking size of int
configure:2672: kgcc -o conftest -g -O2   conftest.c  >&5
configure:2675: $? = 0
configure:2677: ./conftest
configure:2680: $? = 0
configure:2700: result: 4

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=set
ac_cv_env_CC_value=kgcc
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_objext=o
ac_cv_prog_CPP='kgcc -E'
ac_cv_prog_ac_ct_CC=kgcc
ac_cv_prog_cc_g=yes
ac_cv_sizeof_int=4
ac_cv_type_int=yes

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "test"
#define PACKAGE_TARNAME "test"
#define PACKAGE_VERSION "0"
#define PACKAGE_STRING "test 0"
#define PACKAGE_BUGREPORT ""
#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 SIZEOF_INT 4

configure: exit 0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]