bugGNU gettext - Bugs: bug #41879, Build fails with Apple's LLVM 5.1...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #41879: Build fails with Apple's LLVM 5.1 (Clang 503.0.38)

Submitter:  Joe Burnett <jahburnit>
Submitted:  Sun 16 Mar 2014 04:50:11 PM UTC
   
 
Category:  Build Severity:  3 - Normal
Item Group:  None Status:  Invalid
Privacy:  Public Assigned to:  ueno
Open/Closed:  Closed

Sun 16 Mar 2014 11:56:14 PM UTC, comment #1: 

I guess this is the same problem which was fixed a year ago in gnulib:
http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00124.html
and gettext-0.18.3.2 ships with it.

From the error log, it seems you are using older version.  Could you confirm it with the latest?

Daiki Ueno <ueno>
Group administrator
Sun 16 Mar 2014 04:50:11 PM UTC, original submission:  

Here is a transcription of the build log:

/bin/sh ../libtool  --tag=CC   --mode=compile xcrun clang -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I..  -I../intl -I../intl -I.. -I.. -DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1  -I../intl   -I///usr/include/libxml2 -I./libcroco    -g -O2 -c -o stpncpy.lo stpncpy.c
libtool: compile:  xcrun clang -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I.. -I../intl -I../intl -I.. -I.. -DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1 -I../intl -I///usr/include/libxml2 -I./libcroco -g -O2 -c stpncpy.c  -fno-common -DPIC -o .libs/stpncpy.o
stpncpy.c:34:1: error: expected parameter declarator
__stpncpy (char *dest, const char *src, size_t n)
^
stpncpy.c:28:20: note: expanded from macro '__stpncpy'
# define __stpncpy stpncpy
                   ^
/usr/include/secure/_string.h:110:5: note: expanded from macro 'stpncpy'
  ((__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)
                                                              ^
stpncpy.c:34:1: error: expected ')'
stpncpy.c:28:20: note: expanded from macro '__stpncpy'
# define __stpncpy stpncpy
                   ^
/usr/include/secure/_string.h:110:5: note: expanded from macro 'stpncpy'
  ((__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)
                                                              ^
stpncpy.c:34:1: note: to match this '('
stpncpy.c:28:20: note: expanded from macro '__stpncpy'
# define __stpncpy stpncpy
                   ^
/usr/include/secure/_string.h:110:5: note: expanded from macro 'stpncpy'
  ((__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)
                                                     ^
stpncpy.c:34:1: error: expected ')'
__stpncpy (char *dest, const char *src, size_t n)
^
stpncpy.c:28:20: note: expanded from macro '__stpncpy'
# define __stpncpy stpncpy
                   ^
/usr/include/secure/_string.h:110:27: note: expanded from macro 'stpncpy'
  ((__darwin_obsz0 (dest) != (size_t) -1)                               \
                          ^
stpncpy.c:34:1: note: to match this '('
stpncpy.c:28:20: note: expanded from macro '__stpncpy'
# define __stpncpy stpncpy
                   ^
/usr/include/secure/_string.h:110:4: note: expanded from macro 'stpncpy'
  ((__darwin_obsz0 (dest) != (size_t) -1)                               \
   ^
stpncpy.c:34:1: error: expected ')'
__stpncpy (char *dest, const char *src, size_t n)
^
stpncpy.c:28:20: note: expanded from macro '__stpncpy'
# define __stpncpy stpncpy
                   ^
/usr/include/secure/_string.h:111:4: note: expanded from macro 'stpncpy'
   ? __builtin___stpncpy_chk (dest, src, len, __darwin_obsz (dest))     \
   ^
stpncpy.c:34:1: note: to match this '('
stpncpy.c:28:20: note: expanded from macro '__stpncpy'
# define __stpncpy stpncpy
                   ^
/usr/include/secure/_string.h:110:3: note: expanded from macro 'stpncpy'
  ((__darwin_obsz0 (dest) != (size_t) -1)                               \
  ^
stpncpy.c:34:1: error: conflicting types for '__builtin_object_size'
__stpncpy (char *dest, const char *src, size_t n)
^
stpncpy.c:28:20: note: expanded from macro '__stpncpy'
# define __stpncpy stpncpy
                   ^
/usr/include/secure/_string.h:110:5: note: expanded from macro 'stpncpy'
  ((__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)
                               ^
stpncpy.c:34:1: error: definition of builtin function '__builtin_object_size'
__stpncpy (char *dest, const char *src, size_t n)
^
stpncpy.c:28:20: note: expanded from macro '__stpncpy'
# define __stpncpy stpncpy
                   ^
/usr/include/secure/_string.h:110:5: note: expanded from macro 'stpncpy'
  ((__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)
                               ^
stpncpy.c:39:7: error: use of undeclared identifier 'n'
  if (n >= 4)
      ^
stpncpy.c:41:19: error: use of undeclared identifier 'n'
      size_t n4 = n >> 2;
                  ^
stpncpy.c:45:16: error: use of undeclared identifier 'src'
          c = *src++;
               ^
stpncpy.c:49:16: error: use of undeclared identifier 'src'
          c = *src++;
               ^
stpncpy.c:53:16: error: use of undeclared identifier 'src'
          c = *src++;
               ^
stpncpy.c:57:16: error: use of undeclared identifier 'src'
          c = *src++;
               ^
stpncpy.c:64:7: error: use of undeclared identifier 'n'
      n -= dest - s;
      ^
stpncpy.c:69:3: error: use of undeclared identifier 'n'
  n &= 3;
  ^
stpncpy.c:70:7: error: use of undeclared identifier 'n'
  if (n == 0)
      ^
stpncpy.c:75:12: error: use of undeclared identifier 'src'
      c = *src++;
           ^
stpncpy.c:76:9: error: use of undeclared identifier 'n'
      --n;
        ^
stpncpy.c:80:11: error: use of undeclared identifier 'n'
      if (n == 0)
          ^
stpncpy.c:85:10: error: use of undeclared identifier 'n'
  while (n-- > 0)
         ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

Joe Burnett <jahburnit>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by haible (Updated the item)
  • -email is unavailable- added by ueno (Posted a comment)
  • -email is unavailable- added by jahburnit (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-27 haible CategoryNone Build
        Assigned toNone ueno
    2014-05-11 ueno StatusNeed Info Invalid
        Open/ClosedOpen Closed
    2014-03-26 ueno StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code