bug-bison
[Top][All Lists]
Advanced

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

Re: bison-2.6.1 released [stable]


From: Hans Aberg
Subject: Re: bison-2.6.1 released [stable]
Date: Mon, 30 Jul 2012 15:26:07 +0200

On 30 Jul 2012, at 15:04, Akim Demaille wrote:

> Could you investigate this?  For instance run "make V=1" to
> get the compilation for this file, and try to run the same
> command, but replacing -c by -E to get the result from the
> preprocessor.

It might be a mismatch of headers, as there is '-I/usr/local/include' in the 
compile command, whereas
$ xcrun -f clang
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang

And the directory .../usr/ here has its own include/.

Hans


----
$ make V=1
make  all-recursive
Making all in build-aux
make[2]: Nothing to be done for `all'.
Making all in po
make[2]: Nothing to be done for `all'.
Making all in runtime-po
make[2]: Nothing to be done for `all'.
Making all in lib
make  all-am
xcrun clang  -I. -I../../bison-2.6.1/lib  -I../intl -I/usr/local/include  -g 
-O2 -MT stpcpy.o -MD -MP -MF .deps/stpcpy.Tpo -c -o stpcpy.o 
../../bison-2.6.1/lib/stpcpy.c
../../bison-2.6.1/lib/stpcpy.c:36:1: error: expected parameter declarator
__stpcpy (char *dest, const char *src)
^
../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro '__stpcpy'
# define __stpcpy stpcpy
                  ^
/usr/include/secure/_string.h:99:5: note: expanded from macro 'stpcpy'
  ((__darwin_obsz0 (dest) != (size_t) -1)                               \
    ^
/usr/include/secure/_common.h:38:63: note: expanded from macro '__darwin_obsz0'
#define __darwin_obsz0(object) __builtin_object_size (object, 0)
                                                              ^
../../bison-2.6.1/lib/stpcpy.c:36:1: error: expected ')'
__stpcpy (char *dest, const char *src)
^
../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro '__stpcpy'
# define __stpcpy stpcpy
                  ^
/usr/include/secure/_string.h:99:5: note: expanded from macro 'stpcpy'
  ((__darwin_obsz0 (dest) != (size_t) -1)                               \
    ^
/usr/include/secure/_common.h:38:63: note: expanded from macro '__darwin_obsz0'
#define __darwin_obsz0(object) __builtin_object_size (object, 0)
                                                              ^
../../bison-2.6.1/lib/stpcpy.c:36:1: note: to match this '('
__stpcpy (char *dest, const char *src)
^
../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro '__stpcpy'
# define __stpcpy stpcpy
                  ^
/usr/include/secure/_string.h:99:5: note: expanded from macro 'stpcpy'
  ((__darwin_obsz0 (dest) != (size_t) -1)                               \
    ^
/usr/include/secure/_common.h:38:54: note: expanded from macro '__darwin_obsz0'
#define __darwin_obsz0(object) __builtin_object_size (object, 0)
                                                     ^
../../bison-2.6.1/lib/stpcpy.c:36:1: error: expected ')'
__stpcpy (char *dest, const char *src)
^
../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro '__stpcpy'
# define __stpcpy stpcpy
                  ^
/usr/include/secure/_string.h:99:27: note: expanded from macro 'stpcpy'
  ((__darwin_obsz0 (dest) != (size_t) -1)                               \
                          ^
../../bison-2.6.1/lib/stpcpy.c:36:1: note: to match this '('
__stpcpy (char *dest, const char *src)
^
../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro '__stpcpy'
# define __stpcpy stpcpy
                  ^
/usr/include/secure/_string.h:99:4: note: expanded from macro 'stpcpy'
  ((__darwin_obsz0 (dest) != (size_t) -1)                               \
   ^
../../bison-2.6.1/lib/stpcpy.c:36:1: error: expected ')'
__stpcpy (char *dest, const char *src)
^
../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro '__stpcpy'
# define __stpcpy stpcpy
                  ^
/usr/include/secure/_string.h:100:4: note: expanded from macro 'stpcpy'
   ? __builtin___stpcpy_chk (dest, src, __darwin_obsz (dest))           \
   ^
../../bison-2.6.1/lib/stpcpy.c:36:1: note: to match this '('
__stpcpy (char *dest, const char *src)
^
../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro '__stpcpy'
# define __stpcpy stpcpy
                  ^
/usr/include/secure/_string.h:99:3: note: expanded from macro 'stpcpy'
  ((__darwin_obsz0 (dest) != (size_t) -1)                               \
  ^
../../bison-2.6.1/lib/stpcpy.c:36:1: error: conflicting types for 
'__builtin_object_size'
__stpcpy (char *dest, const char *src)
^
../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro '__stpcpy'
# define __stpcpy stpcpy
                  ^
/usr/include/secure/_string.h:99:5: note: expanded from macro 'stpcpy'
  ((__darwin_obsz0 (dest) != (size_t) -1)                               \
    ^
/usr/include/secure/_common.h:38:32: note: expanded from macro '__darwin_obsz0'
#define __darwin_obsz0(object) __builtin_object_size (object, 0)
                               ^
/usr/include/secure/_string.h:61:56: note: '__builtin_object_size' is a builtin 
with type 'unsigned long (const void *, int)'
  return __builtin___memcpy_chk (__dest, __src, __len, __darwin_obsz0(__dest));
                                                       ^
/usr/include/secure/_common.h:38:32: note: expanded from macro '__darwin_obsz0'
#define __darwin_obsz0(object) __builtin_object_size (object, 0)
                               ^
../../bison-2.6.1/lib/stpcpy.c:36:1: error: definition of builtin function 
'__builtin_object_size'
__stpcpy (char *dest, const char *src)
^
../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro '__stpcpy'
# define __stpcpy stpcpy
                  ^
/usr/include/secure/_string.h:99:5: note: expanded from macro 'stpcpy'
  ((__darwin_obsz0 (dest) != (size_t) -1)                               \
    ^
/usr/include/secure/_common.h:38:32: note: expanded from macro '__darwin_obsz0'
#define __darwin_obsz0(object) __builtin_object_size (object, 0)
                               ^
../../bison-2.6.1/lib/stpcpy.c:39:28: error: use of undeclared identifier 'src'
  register const char *s = src;
                           ^
7 errors generated.
make[3]: *** [stpcpy.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
----




reply via email to

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