[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_CHECK_SIZEOF fails with GCC 3.0.4
From: |
Pascal Haakmat |
Subject: |
Re: AC_CHECK_SIZEOF fails with GCC 3.0.4 |
Date: |
Mon, 13 Jan 2003 12:57:40 +0100 |
User-agent: |
Mutt/1.2.5i |
13/01/03 12:44, Pascal Haakmat wrote:
> --- config.log:
My apologies, the config.log from the previous message was the wrong
one. Here is the correct file.
Pascal.
--- correct 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: gcc
configure:1506: checking for C compiler version
configure:1509: gcc --version </dev/null >&5
3.0.4
configure:1512: $? = 0
configure:1514: gcc -v </dev/null >&5
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:1517: $? = 0
configure:1519: gcc -V </dev/null >&5
gcc: argument to `-V' is missing
configure:1522: $? = 1
configure:1548: checking for C compiler default output
configure:1551: gcc 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: gcc -o conftest conftest.c >&5
configure:1633: $? = 0
configure:1655: result:
configure:1661: checking for suffix of object files
configure:1685: gcc -c conftest.c >&5
configure:1688: $? = 0
configure:1707: result: o
configure:1711: checking whether we are using the GNU C compiler
configure:1738: gcc -c conftest.c >&5
configure:1741: $? = 0
configure:1744: test -s conftest.o
configure:1747: $? = 0
configure:1759: result: yes
configure:1765: checking whether gcc accepts -g
configure:1789: gcc -c -g conftest.c >&5
configure:1792: $? = 0
configure:1795: test -s conftest.o
configure:1798: $? = 0
configure:1808: result: yes
configure:1835: gcc -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: gcc -E conftest.c
configure:1986: $? = 0
configure:2013: gcc -E conftest.c
configure:2009:28: 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: gcc -E
configure:2071: gcc -E conftest.c
configure:2077: $? = 0
configure:2104: gcc -E conftest.c
configure:2100:28: 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: gcc -E conftest.c
configure:2170: $? = 0
configure:2255: gcc -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: gcc -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: gcc -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: gcc -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: gcc -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: gcc -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: gcc -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: gcc -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: gcc -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: gcc -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: gcc -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: gcc -o conftest -g -O2 conftest.c >&5
/tmp/cc3ItQrW.s: Assembler messages:
/tmp/cc3ItQrW.s:416: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc3ItQrW.s:416: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc3ItQrW.s:416: Error: Rest of line ignored. First ignored character is
`,'.
configure:2675: $? = 1
configure: program exited with status 1
configure: failed program was:
#line 2630 "configure"
#include "confdefs.h"
#include <stdio.h>
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
# include <stdlib.h>
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
# include <memory.h>
# endif
# include <string.h>
#endif
#if HAVE_STRINGS_H
# include <strings.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#else
# if HAVE_STDINT_H
# include <stdint.h>
# endif
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
long longval () { return (long) (sizeof (int)); }
unsigned long ulongval () { return (long) (sizeof (int)); }
#include <stdio.h>
#include <stdlib.h>
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long) (sizeof (int))) < 0)
{
long i = longval ();
if (i != ((long) (sizeof (int))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long) (sizeof (int))))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
configure:2688: error: cannot compute sizeof (int), 77
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=set
ac_cv_env_CC_value=gcc
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='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_g=yes
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
configure: exit 1