bug-autoconf
[Top][All Lists]
Advanced

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

2.59: AC_FUNC_SETVBUF_REVERSED broken on Intel C++ 8.0.055


From: Matthias Andree
Subject: 2.59: AC_FUNC_SETVBUF_REVERSED broken on Intel C++ 8.0.055
Date: Tue, 10 Feb 2004 21:32:02 +0100
User-agent: Mutt/1.5.5.1i

Hi,

AC_FUNC_SETVBUF_REVERSED does not work properly with Intel C++ 8.0.055
"icc" and always returns "yes" on my SuSE Linux 8.2/glibc 2.3.2 system.

Minimal configure.ac:

AC_INIT
AC_FUNC_SETVBUF_REVERSED

Command line:

env - INTEL_LICENSE_FILE=$INTEL_LICENSE_FILE \
PATH=/usr/bin:/bin:/opt/intel_cc_80/bin ./configure CC=icc

Resulting 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 configure, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure CC=icc

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

hostname = merlin
uname -m = i686
uname -r = 2.6.3-rc1
uname -s = Linux
uname -v = #2 Sat Feb 7 13:51:54 CET 2004

/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/bin
PATH: /bin
PATH: /opt/intel_cc_80/bin


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

configure:1290: checking for gcc
configure:1316: result: icc
configure:1560: checking for C compiler version
configure:1563: icc --version </dev/null >&5
8.0
configure:1566: $? = 0
configure:1568: icc -v </dev/null >&5
Version 8.0
configure:1571: $? = 0
configure:1573: icc -V </dev/null >&5
Intel(R) C++ Compiler for 32-bit applications, Version 8.0   Build 20031016Z 
Package ID: l_cc_p_8.0.055
Copyright (C) 1985-2003 Intel Corporation.  All rights reserved.
FOR NON-COMMERCIAL USE ONLY

icc: Command line error: no files specified; for help type "icc -help"
configure:1576: $? = 1
configure:1599: checking for C compiler default output file name
configure:1602: icc    conftest.c  >&5
configure:1605: $? = 0
configure:1651: result: a.out
configure:1656: checking whether the C compiler works
configure:1662: ./a.out
configure:1665: $? = 0
configure:1682: result: yes
configure:1689: checking whether we are cross compiling
configure:1691: result: no
configure:1694: checking for suffix of executables
configure:1696: icc -o conftest    conftest.c  >&5
configure:1699: $? = 0
configure:1724: result: 
configure:1730: checking for suffix of object files
configure:1751: icc -c   conftest.c >&5
configure:1754: $? = 0
configure:1776: result: o
configure:1780: checking whether we are using the GNU C compiler
configure:1804: icc -c   conftest.c >&5
configure:1810: $? = 0
configure:1814: test -z 
                         || test ! -s conftest.err
configure:1817: $? = 0
configure:1820: test -s conftest.o
configure:1823: $? = 0
configure:1836: result: yes
configure:1842: checking whether icc accepts -g
configure:1863: icc -c -g  conftest.c >&5
configure:1869: $? = 0
configure:1873: test -z 
                         || test ! -s conftest.err
configure:1876: $? = 0
configure:1879: test -s conftest.o
configure:1882: $? = 0
configure:1893: result: yes
configure:1910: checking for icc option to accept ANSI C
configure:1980: icc  -c -g -O2  conftest.c >&5
configure:1986: $? = 0
configure:1990: test -z 
                         || test ! -s conftest.err
configure:1993: $? = 0
configure:1996: test -s conftest.o
configure:1999: $? = 0
configure:2017: result: none needed
configure:2035: icc -c -g -O2  conftest.c >&5
conftest.c(2): error: identifier "choke" is undefined
    choke me
    ^

conftest.c(3): error: expected a ";"

compilation aborted for conftest.c (code 2)
configure:2041: $? = 2
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif
configure:2174: checking for function prototypes
configure:2177: result: yes
configure:2195: checking whether setvbuf arguments are reversed
configure:2220: icc -o conftest -g -O2   conftest.c  >&5
conftest.c(13): warning #147: declaration is incompatible with "int 
setvbuf(FILE *restrict, char *restrict, int, size_t={unsigned int})" (declared 
at line 278 of "/usr/include/stdio.h")
           int (setvbuf) (FILE *, int, char *, size_t);
                ^

configure:2226: $? = 0
configure:2230: test -z 
                         || test ! -s conftest.err
configure:2233: $? = 0
configure:2236: test -s conftest
configure:2239: $? = 0
configure:2260: icc -o conftest -g -O2   conftest.c  >&5
conftest.c(13): warning #147: declaration is incompatible with "int 
setvbuf(FILE *restrict, char *restrict, int, size_t={unsigned int})" (declared 
at line 278 of "/usr/include/stdio.h")
              int (setvbuf) (FILE *, int, char *, size_t);
                   ^

conftest.c(18): warning #167: argument of type "char *" is incompatible with 
parameter of type "int"
  char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
                                    ^

conftest.c(18): warning #167: argument of type "int" is incompatible with 
parameter of type "char *"
  char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
                                          ^

conftest.c(18): warning #152: conversion of nonzero integer to pointer
  char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
                                          ^

configure:2266: $? = 0
configure:2270: test -z 
                         || test ! -s conftest.err
configure:2273: $? = 0
configure:2276: test -s conftest
configure:2279: $? = 0
configure:2310: icc -o conftest -g -O2   conftest.c  >&5
conftest.c(19): warning #167: argument of type "int" is incompatible with 
parameter of type "char *restrict"
                if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
                                     ^

conftest.c(19): warning #152: conversion of nonzero integer to pointer
                if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
                                     ^

conftest.c(19): warning #167: argument of type "char *" is incompatible with 
parameter of type "int"
                if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
                                             ^

configure:2313: $? = 0
configure:2315: ./conftest
configure:2318: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| /* end confdefs.h.  */
| #include <stdio.h>
| int
| main ()
| {
| /* This call has the arguments reversed.
|                  A reversed system may check and see that the address of buf
|                  is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
|               char buf;
|               if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
|                 exit (1);
|               putchar ('\r');
|               exit (0); /* Non-reversed systems SEGV here.  */
|   ;
|   return 0;
| }
configure:2347: result: yes

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

ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=set
ac_cv_env_CC_value=icc
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_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_func_setvbuf_reversed=yes
ac_cv_objext=o
ac_cv_prog_ac_ct_CC=icc
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=

## ----------------- ##
## Output variables. ##
## ----------------- ##

CC='icc'
CFLAGS='-g -O2'
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
LDFLAGS=''
LIBS=''
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
SHELL='/bin/sh'
ac_ct_CC='icc'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
exec_prefix='NONE'
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

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

#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PROTOTYPES 1
#define SETVBUF_REVERSED 1
#define __PROTOTYPES 1

configure: exit 0

-- 
Matthias Andree

Encrypt your mail: my GnuPG key ID is 0x052E7D95




reply via email to

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