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)

Submitted by:  Joe Burnett <jahburnit>
Submitted on:  Sun 16 Mar 2014 04:50:11 PM UTC  
 
Category: BuildSeverity: 3 - Normal
Item Group: NoneStatus: Invalid
Privacy: PublicAssigned to: Daiki Ueno <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>
Project AdministratorIn charge of this item.
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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 27 Nov 2016 11:45:00 AM UTChaibleCategoryNone=>Build
      Assigned toNone=>ueno
    Sun 11 May 2014 12:12:48 AM UTCuenoStatusNeed Info=>Invalid
      Open/ClosedOpen=>Closed
    Wed 26 Mar 2014 03:24:22 AM UTCuenoStatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1