GNU bug report logs - #18711
Numerous unknown attribute '__alloc_size__' warnings when using clang

Previous Next

Package: guile;

Reported by: William S Fulton <wsf <at> fultondesigns.co.uk>

Date: Mon, 13 Oct 2014 20:58:02 UTC

Severity: normal

Done: Mark H Weaver <mhw <at> netris.org>

Bug is archived. No further changes may be made.

Forwarded to bdwgc@lists.opendylan.org

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18711 in the body.
You can then email your comments to 18711 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#18711; Package guile. (Mon, 13 Oct 2014 20:58:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to William S Fulton <wsf <at> fultondesigns.co.uk>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Mon, 13 Oct 2014 20:58:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: William S Fulton <wsf <at> fultondesigns.co.uk>
To: bug-guile <at> gnu.org
Subject: Numerous unknown attribute '__alloc_size__' warnings when using clang
Date: Mon, 13 Oct 2014 21:56:53 +0100
A simple

#include <libguile.h>

generates the numerous warnings given below:


In file included from example_wrap.c:702:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile.h:37:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/async.h:28:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/threads.h:36:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/pthread-threads.h:33:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/bdw-gc.h:47:
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc.h:411:23: warning: unknown attribute '__alloc_size__' ignored [-Wattributes]
GC_API GC_ATTR_MALLOC GC_ATTR_ALLOC_SIZE(1) void * GC_CALL
^
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc_config_macros.h:249:54: note: expanded from macro 'GC_ATTR_ALLOC_SIZE'
# define GC_ATTR_ALLOC_SIZE(argnum) __attribute__((__alloc_size__(argnum)))
^
In file included from example_wrap.c:702:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile.h:37:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/async.h:28:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/threads.h:36:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/pthread-threads.h:33:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/bdw-gc.h:47:
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc.h:413:23: warning: unknown attribute '__alloc_size__' ignored [-Wattributes]
GC_API GC_ATTR_MALLOC GC_ATTR_ALLOC_SIZE(1) void * GC_CALL
^
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc_config_macros.h:249:54: note: expanded from macro 'GC_ATTR_ALLOC_SIZE'
# define GC_ATTR_ALLOC_SIZE(argnum) __attribute__((__alloc_size__(argnum)))
^
In file included from example_wrap.c:702:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile.h:37:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/async.h:28:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/threads.h:36:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/pthread-threads.h:33:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/bdw-gc.h:47:
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc.h:418:23: warning: unknown attribute '__alloc_size__' ignored [-Wattributes]
GC_API GC_ATTR_MALLOC GC_ATTR_ALLOC_SIZE(1) void * GC_CALL
^
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc_config_macros.h:249:54: note: expanded from macro 'GC_ATTR_ALLOC_SIZE'
# define GC_ATTR_ALLOC_SIZE(argnum) __attribute__((__alloc_size__(argnum)))
^
In file included from example_wrap.c:702:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile.h:37:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/async.h:28:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/threads.h:36:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/pthread-threads.h:33:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/bdw-gc.h:47:
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc.h:420:23: warning: unknown attribute '__alloc_size__' ignored [-Wattributes]
GC_API GC_ATTR_MALLOC GC_ATTR_ALLOC_SIZE(1) void * GC_CALL
^
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc_config_macros.h:249:54: note: expanded from macro 'GC_ATTR_ALLOC_SIZE'
# define GC_ATTR_ALLOC_SIZE(argnum) __attribute__((__alloc_size__(argnum)))
^
In file included from example_wrap.c:702:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile.h:37:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/async.h:28:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/threads.h:36:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/pthread-threads.h:33:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/bdw-gc.h:47:
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc.h:424:23: warning: unknown attribute '__alloc_size__' ignored [-Wattributes]
GC_API GC_ATTR_MALLOC GC_ATTR_ALLOC_SIZE(2) void * GC_CALL
^
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc_config_macros.h:249:54: note: expanded from macro 'GC_ATTR_ALLOC_SIZE'
# define GC_ATTR_ALLOC_SIZE(argnum) __attribute__((__alloc_size__(argnum)))
^
In file included from example_wrap.c:702:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile.h:37:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/async.h:28:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/threads.h:36:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/pthread-threads.h:33:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/bdw-gc.h:47:
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc.h:487:46: warning: unknown attribute '__alloc_size__' ignored [-Wattributes]
/* 'realloc' attr */ GC_ATTR_ALLOC_SIZE(2);
^
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc_config_macros.h:249:54: note: expanded from macro 'GC_ATTR_ALLOC_SIZE'
# define GC_ATTR_ALLOC_SIZE(argnum) __attribute__((__alloc_size__(argnum)))
^
In file included from example_wrap.c:702:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile.h:37:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/async.h:28:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/threads.h:36:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/pthread-threads.h:33:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/bdw-gc.h:47:
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc.h:742:23: warning: unknown attribute '__alloc_size__' ignored [-Wattributes]
GC_API GC_ATTR_MALLOC GC_ATTR_ALLOC_SIZE(1) void * GC_CALL
^
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc_config_macros.h:249:54: note: expanded from macro 'GC_ATTR_ALLOC_SIZE'
# define GC_ATTR_ALLOC_SIZE(argnum) __attribute__((__alloc_size__(argnum)))
^
In file included from example_wrap.c:702:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile.h:37:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/async.h:28:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/threads.h:36:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/pthread-threads.h:33:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/bdw-gc.h:47:
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc.h:744:23: warning: unknown attribute '__alloc_size__' ignored [-Wattributes]
GC_API GC_ATTR_MALLOC GC_ATTR_ALLOC_SIZE(1) void * GC_CALL
^
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc_config_macros.h:249:54: note: expanded from macro 'GC_ATTR_ALLOC_SIZE'
# define GC_ATTR_ALLOC_SIZE(argnum) __attribute__((__alloc_size__(argnum)))
^
In file included from example_wrap.c:702:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile.h:37:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/async.h:28:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/threads.h:36:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/pthread-threads.h:33:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/bdw-gc.h:47:
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc.h:757:23: warning: unknown attribute '__alloc_size__' ignored [-Wattributes]
GC_API GC_ATTR_MALLOC GC_ATTR_ALLOC_SIZE(1) void * GC_CALL
^
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc_config_macros.h:249:54: note: expanded from macro 'GC_ATTR_ALLOC_SIZE'
# define GC_ATTR_ALLOC_SIZE(argnum) __attribute__((__alloc_size__(argnum)))
^
In file included from example_wrap.c:702:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile.h:37:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/async.h:28:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/threads.h:36:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/pthread-threads.h:33:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/bdw-gc.h:47:
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc.h:759:23: warning: unknown attribute '__alloc_size__' ignored [-Wattributes]
GC_API GC_ATTR_MALLOC GC_ATTR_ALLOC_SIZE(1) void * GC_CALL
^
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc_config_macros.h:249:54: note: expanded from macro 'GC_ATTR_ALLOC_SIZE'
# define GC_ATTR_ALLOC_SIZE(argnum) __attribute__((__alloc_size__(argnum)))
^
In file included from example_wrap.c:702:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile.h:37:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/async.h:28:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/threads.h:36:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/pthread-threads.h:33:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/bdw-gc.h:47:
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc.h:764:23: warning: unknown attribute '__alloc_size__' ignored [-Wattributes]
GC_API GC_ATTR_MALLOC GC_ATTR_ALLOC_SIZE(1) void * GC_CALL
^
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc_config_macros.h:249:54: note: expanded from macro 'GC_ATTR_ALLOC_SIZE'
# define GC_ATTR_ALLOC_SIZE(argnum) __attribute__((__alloc_size__(argnum)))
^
In file included from example_wrap.c:702:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile.h:37:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/async.h:28:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/threads.h:36:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/pthread-threads.h:33:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/bdw-gc.h:47:
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc.h:766:23: warning: unknown attribute '__alloc_size__' ignored [-Wattributes]
GC_API GC_ATTR_MALLOC GC_ATTR_ALLOC_SIZE(1) void * GC_CALL
^
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc_config_macros.h:249:54: note: expanded from macro 'GC_ATTR_ALLOC_SIZE'
# define GC_ATTR_ALLOC_SIZE(argnum) __attribute__((__alloc_size__(argnum)))
^
In file included from example_wrap.c:702:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile.h:37:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/async.h:28:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/threads.h:36:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/pthread-threads.h:33:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/bdw-gc.h:47:
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc.h:773:23: warning: unknown attribute '__alloc_size__' ignored [-Wattributes]
GC_API GC_ATTR_MALLOC GC_ATTR_ALLOC_SIZE(1) void * GC_CALL
^
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc_config_macros.h:249:54: note: expanded from macro 'GC_ATTR_ALLOC_SIZE'
# define GC_ATTR_ALLOC_SIZE(argnum) __attribute__((__alloc_size__(argnum)))
^
In file included from example_wrap.c:702:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile.h:37:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/async.h:28:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/threads.h:36:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/pthread-threads.h:33:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/bdw-gc.h:47:
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc.h:776:23: warning: unknown attribute '__alloc_size__' ignored [-Wattributes]
GC_API GC_ATTR_MALLOC GC_ATTR_ALLOC_SIZE(1) void * GC_CALL
^
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc_config_macros.h:249:54: note: expanded from macro 'GC_ATTR_ALLOC_SIZE'
# define GC_ATTR_ALLOC_SIZE(argnum) __attribute__((__alloc_size__(argnum)))
^
In file included from example_wrap.c:702:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile.h:37:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/async.h:28:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/threads.h:36:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/pthread-threads.h:33:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/bdw-gc.h:47:
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc.h:778:23: warning: unknown attribute '__alloc_size__' ignored [-Wattributes]
GC_API GC_ATTR_MALLOC GC_ATTR_ALLOC_SIZE(1) void * GC_CALL
^
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc_config_macros.h:249:54: note: expanded from macro 'GC_ATTR_ALLOC_SIZE'
# define GC_ATTR_ALLOC_SIZE(argnum) __attribute__((__alloc_size__(argnum)))
^
In file included from example_wrap.c:702:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile.h:37:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/async.h:28:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/threads.h:36:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/pthread-threads.h:33:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/bdw-gc.h:47:
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc.h:781:23: warning: unknown attribute '__alloc_size__' ignored [-Wattributes]
GC_API GC_ATTR_MALLOC GC_ATTR_ALLOC_SIZE(1) void * GC_CALL
^
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc_config_macros.h:249:54: note: expanded from macro 'GC_ATTR_ALLOC_SIZE'
# define GC_ATTR_ALLOC_SIZE(argnum) __attribute__((__alloc_size__(argnum)))
^
In file included from example_wrap.c:702:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile.h:37:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/async.h:28:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/threads.h:36:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/pthread-threads.h:33:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/bdw-gc.h:47:
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc.h:787:46: warning: unknown attribute '__alloc_size__' ignored [-Wattributes]
/* 'realloc' attr */ GC_ATTR_ALLOC_SIZE(2);
^
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc_config_macros.h:249:54: note: expanded from macro 'GC_ATTR_ALLOC_SIZE'
# define GC_ATTR_ALLOC_SIZE(argnum) __attribute__((__alloc_size__(argnum)))
^
In file included from example_wrap.c:702:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile.h:37:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/async.h:28:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/threads.h:36:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/pthread-threads.h:33:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/bdw-gc.h:47:
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc.h:804:23: warning: unknown attribute '__alloc_size__' ignored [-Wattributes]
GC_API GC_ATTR_MALLOC GC_ATTR_ALLOC_SIZE(1) void * GC_CALL
^
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc_config_macros.h:249:54: note: expanded from macro 'GC_ATTR_ALLOC_SIZE'
# define GC_ATTR_ALLOC_SIZE(argnum) __attribute__((__alloc_size__(argnum)))
^
In file included from example_wrap.c:702:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile.h:37:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/async.h:28:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/threads.h:36:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/pthread-threads.h:33:
In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/bdw-gc.h:47:
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc.h:806:29: warning: unknown attribute '__alloc_size__' ignored [-Wattributes]
GC_API /* 'realloc' attr */ GC_ATTR_ALLOC_SIZE(2) void * GC_CALL
^
/usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc_config_macros.h:249:54: note: expanded from macro 'GC_ATTR_ALLOC_SIZE'
# define GC_ATTR_ALLOC_SIZE(argnum) __attribute__((__alloc_size__(argnum)))
^
19 warnings generated.


System information:

$ guile --version | head -n 1
guile (GNU Guile) 2.0.11

$ clang --version
Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix

$ xcodebuild -version -sdk | head -n 2
MacOSX10.9.sdk - OS X 10.9 (macosx10.9)
SDKVersion: 10.9

$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.9.5
BuildVersion: 13F34

$ uname -a
Darwin itako16071.miso 13.4.0 Darwin Kernel Version 13.4.0: Sun Aug 17 19:50:11 PDT 2014; root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64









Information forwarded to bug-guile <at> gnu.org:
bug#18711; Package guile. (Tue, 14 Oct 2014 03:55:02 GMT) Full text and rfc822 format available.

Message #8 received at 18711 <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: William S Fulton <wsf <at> fultondesigns.co.uk>
Cc: bdwgc <at> lists.opendylan.org, 18711 <at> debbugs.gnu.org
Subject: Re: bug#18711: Numerous unknown attribute '__alloc_size__' warnings
 when using clang
Date: Mon, 13 Oct 2014 23:53:57 -0400
[Forwarding this bug report to bdwgc <at> lists.opendylan.org]

William S Fulton <wsf <at> fultondesigns.co.uk> writes:

> A simple
>
> #include <libguile.h>
>
> generates the numerous warnings given below:
>
>
> In file included from example_wrap.c:702:
> In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile.h:37:
> In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/async.h:28:
> In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/threads.h:36:
> In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/pthread-threads.h:33:
> In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/bdw-gc.h:47:
> /usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc.h:411:23: warning: unknown attribute '__alloc_size__' ignored [-Wattributes]
> GC_API GC_ATTR_MALLOC GC_ATTR_ALLOC_SIZE(1) void * GC_CALL
> ^
> /usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc_config_macros.h:249:54: note: expanded from macro 'GC_ATTR_ALLOC_SIZE'
> # define GC_ATTR_ALLOC_SIZE(argnum) __attribute__((__alloc_size__(argnum)))
> ^

This is clearly an issue with bdwgc on clang, and possibly only on
Apple's version of clang.  Here's the relevant section of
gc/gc_config_macros.h from bdwgc 7.4.2:

--8<---------------cut here---------------start------------->8---
#ifndef GC_ATTR_ALLOC_SIZE
  /* 'alloc_size' attribute improves __builtin_object_size correctness. */
  /* Only single-argument form of 'alloc_size' attribute is used.       */
# if defined(__GNUC__) && (__GNUC__ > 4 \
        || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3 && !defined(__ICC)) \
        || __clang_major__ > 3 \
        || (__clang_major__ == 3 && __clang_minor__ >= 2))
#   define GC_ATTR_ALLOC_SIZE(argnum) __attribute__((__alloc_size__(argnum)))
# else
#   define GC_ATTR_ALLOC_SIZE(argnum)
# endif
#endif
--8<---------------cut here---------------end--------------->8---

You can see that the bdwgc developers have made an effort to check both
GCC and clang version numbers before using the __alloc_size__ attribute.
The code above seems to suggest that they believed clang 3.2 or later
supported this attribute, whereas your version of clang seems to be
based on upstream clang 3.5.  Perhaps Apple removed support for this
attribute from their clang?

In any case, this needs to be taken up with the bdwgc developers.

    Regards,
      Mark


> System information:
>
> $ guile --version | head -n 1
> guile (GNU Guile) 2.0.11
>
> $ clang --version
> Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
> Target: x86_64-apple-darwin13.4.0
> Thread model: posix
>
> $ xcodebuild -version -sdk | head -n 2
> MacOSX10.9.sdk - OS X 10.9 (macosx10.9)
> SDKVersion: 10.9
>
> $ sw_vers
> ProductName: Mac OS X
> ProductVersion: 10.9.5
> BuildVersion: 13F34
>
> $ uname -a
> Darwin itako16071.miso 13.4.0 Darwin Kernel Version 13.4.0: Sun Aug 17
> 19:50:11 PDT 2014; root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64




Set bug forwarded-to-address to 'bdwgc <at> lists.opendylan.org'. Request was from Mark H Weaver <mhw <at> netris.org> to control <at> debbugs.gnu.org. (Tue, 14 Oct 2014 04:00:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-guile <at> gnu.org:
bug#18711; Package guile. (Tue, 14 Oct 2014 07:11:01 GMT) Full text and rfc822 format available.

Message #13 received at 18711 <at> debbugs.gnu.org (full text, mbox):

From: William S Fulton <wsf <at> fultondesigns.co.uk>
To: Mark H Weaver <mhw <at> netris.org>
Cc: bdwgc <at> lists.opendylan.org, 18711 <at> debbugs.gnu.org
Subject: Re: bug#18711: Numerous unknown attribute '__alloc_size__' warnings
 when using clang
Date: Tue, 14 Oct 2014 08:10:45 +0100
Thanks for analysing and pointing in the right direction Mark. With this 
info I found 
https://github.com/ivmai/bdwgc/commit/8fc1f3b61b02320848b035ccccd59e04e77d3f6b#diff-b3f85dde7694cbd1268ea9ed20db1b1aR244 
which looks like it fixes it in the next release of bdwgc (7.5).

Unfortunately this warning fails our tests as the build log is too big 
(this warning leads to > 4GByte build logs as the header is used in 
hundreds of our tests), so I'll suppress it some other way until 7.5 is 
released.

William

On 14/10/14 04:53, Mark H Weaver wrote:
> [Forwarding this bug report to bdwgc <at> lists.opendylan.org]
>
> William S Fulton <wsf <at> fultondesigns.co.uk> writes:
>
>> A simple
>>
>> #include <libguile.h>
>>
>> generates the numerous warnings given below:
>>
>>
>> In file included from example_wrap.c:702:
>> In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile.h:37:
>> In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/async.h:28:
>> In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/threads.h:36:
>> In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/pthread-threads.h:33:
>> In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/bdw-gc.h:47:
>> /usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc.h:411:23: warning: unknown attribute '__alloc_size__' ignored [-Wattributes]
>> GC_API GC_ATTR_MALLOC GC_ATTR_ALLOC_SIZE(1) void * GC_CALL
>> ^
>> /usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc_config_macros.h:249:54: note: expanded from macro 'GC_ATTR_ALLOC_SIZE'
>> # define GC_ATTR_ALLOC_SIZE(argnum) __attribute__((__alloc_size__(argnum)))
>> ^
> This is clearly an issue with bdwgc on clang, and possibly only on
> Apple's version of clang.  Here's the relevant section of
> gc/gc_config_macros.h from bdwgc 7.4.2:
>
> --8<---------------cut here---------------start------------->8---
> #ifndef GC_ATTR_ALLOC_SIZE
>    /* 'alloc_size' attribute improves __builtin_object_size correctness. */
>    /* Only single-argument form of 'alloc_size' attribute is used.       */
> # if defined(__GNUC__) && (__GNUC__ > 4 \
>          || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3 && !defined(__ICC)) \
>          || __clang_major__ > 3 \
>          || (__clang_major__ == 3 && __clang_minor__ >= 2))
> #   define GC_ATTR_ALLOC_SIZE(argnum) __attribute__((__alloc_size__(argnum)))
> # else
> #   define GC_ATTR_ALLOC_SIZE(argnum)
> # endif
> #endif
> --8<---------------cut here---------------end--------------->8---
>
> You can see that the bdwgc developers have made an effort to check both
> GCC and clang version numbers before using the __alloc_size__ attribute.
> The code above seems to suggest that they believed clang 3.2 or later
> supported this attribute, whereas your version of clang seems to be
> based on upstream clang 3.5.  Perhaps Apple removed support for this
> attribute from their clang?
>
> In any case, this needs to be taken up with the bdwgc developers.
>
>      Regards,
>        Mark
>
>
>> System information:
>>
>> $ guile --version | head -n 1
>> guile (GNU Guile) 2.0.11
>>
>> $ clang --version
>> Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
>> Target: x86_64-apple-darwin13.4.0
>> Thread model: posix
>>
>> $ xcodebuild -version -sdk | head -n 2
>> MacOSX10.9.sdk - OS X 10.9 (macosx10.9)
>> SDKVersion: 10.9
>>
>> $ sw_vers
>> ProductName: Mac OS X
>> ProductVersion: 10.9.5
>> BuildVersion: 13F34
>>
>> $ uname -a
>> Darwin itako16071.miso 13.4.0 Darwin Kernel Version 13.4.0: Sun Aug 17
>> 19:50:11 PDT 2014; root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64





Information forwarded to bug-guile <at> gnu.org:
bug#18711; Package guile. (Tue, 14 Oct 2014 10:10:02 GMT) Full text and rfc822 format available.

Message #16 received at 18711 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Mark H Weaver <mhw <at> netris.org>
Cc: bdwgc <at> lists.opendylan.org, William S Fulton <wsf <at> fultondesigns.co.uk>,
 18711 <at> debbugs.gnu.org
Subject: Re: bug#18711: Numerous unknown attribute '__alloc_size__' warnings
 when using clang
Date: Tue, 14 Oct 2014 12:09:37 +0200
Mark H Weaver <mhw <at> netris.org> skribis:

> This is clearly an issue with bdwgc on clang, and possibly only on
> Apple's version of clang.  Here's the relevant section of
> gc/gc_config_macros.h from bdwgc 7.4.2:
>
> #ifndef GC_ATTR_ALLOC_SIZE
>   /* 'alloc_size' attribute improves __builtin_object_size correctness. */
>   /* Only single-argument form of 'alloc_size' attribute is used.       */
> # if defined(__GNUC__) && (__GNUC__ > 4 \
>         || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3 && !defined(__ICC)) \
>         || __clang_major__ > 3 \
>         || (__clang_major__ == 3 && __clang_minor__ >= 2))
> #   define GC_ATTR_ALLOC_SIZE(argnum) __attribute__((__alloc_size__(argnum)))
> # else
> #   define GC_ATTR_ALLOC_SIZE(argnum)
> # endif
> #endif

AFAIK, Clang and ICC define __GNUC__ by default, even though they don’t
implement all the features of the corresponding GCC, which may explain
why the above doesn’t work as expected.

> You can see that the bdwgc developers have made an effort to check both
> GCC and clang version numbers before using the __alloc_size__ attribute.
> The code above seems to suggest that they believed clang 3.2 or later
> supported this attribute, whereas your version of clang seems to be
> based on upstream clang 3.5.  Perhaps Apple removed support for this
> attribute from their clang?

I think for Clang the right way would be to use the ‘__has_attribute’
magic macro:

  http://clang.llvm.org/docs/LanguageExtensions.html#has-attribute

Ludo’.




Reply sent to Mark H Weaver <mhw <at> netris.org>:
You have taken responsibility. (Wed, 15 Oct 2014 16:41:02 GMT) Full text and rfc822 format available.

Notification sent to William S Fulton <wsf <at> fultondesigns.co.uk>:
bug acknowledged by developer. (Wed, 15 Oct 2014 16:41:03 GMT) Full text and rfc822 format available.

Message #21 received at 18711-done <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: William S Fulton <wsf <at> fultondesigns.co.uk>
Cc: 18711-done <at> debbugs.gnu.org
Subject: Re: bug#18711: Numerous unknown attribute '__alloc_size__' warnings
 when using clang
Date: Wed, 15 Oct 2014 12:39:54 -0400
William S Fulton <wsf <at> fultondesigns.co.uk> writes:

> Thanks for analysing and pointing in the right direction Mark. With
> this info I found
> https://github.com/ivmai/bdwgc/commit/8fc1f3b61b02320848b035ccccd59e04e77d3f6b#diff-b3f85dde7694cbd1268ea9ed20db1b1aR244
> which looks like it fixes it in the next release of bdwgc (7.5).

Thanks for letting us know.  I'm closing this bug now.

    Regards,
      Mark




Information forwarded to bug-guile <at> gnu.org:
bug#18711; Package guile. (Thu, 16 Oct 2014 22:15:02 GMT) Full text and rfc822 format available.

Message #24 received at 18711 <at> debbugs.gnu.org (full text, mbox):

From: Ivan Maidanski <ivmai <at> mail.ru>
To: William S Fulton <wsf <at> fultondesigns.co.uk>
Cc: bdwgc <at> lists.opendylan.org,
 Mark H Weaver <mhw <at> netris.org>, 18711 <at> debbugs.gnu.org
Subject: Re[2]: [Gc] bug#18711: Numerous unknown attribute '__alloc_size__' warnings when using clang
Date: Fri, 17 Oct 2014 02:07:58 +0400
[Message part 1 (text/plain, inline)]
 Hi William,

I merged the fix to master:  https://github.com/ivmai/bdwgc/commit/b725923951d77f5c6792c2797f89179267c58c9c

Regards,
Ivan

Tue, 14 Oct 2014 08:10:45 +0100 from William S Fulton <wsf <at> fultondesigns.co.uk>:
>Thanks for analysing and pointing in the right direction Mark. With this 
>info I found 
>https://github.com/ivmai/bdwgc/commit/8fc1f3b61b02320848b035ccccd59e04e77d3f6b#diff-b3f85dde7694cbd1268ea9ed20db1b1aR244
>which looks like it fixes it in the next release of bdwgc (7.5).
>
>Unfortunately this warning fails our tests as the build log is too big 
>(this warning leads to > 4GByte build logs as the header is used in 
>hundreds of our tests), so I'll suppress it some other way until 7.5 is 
>released.
>
>William
>
>On 14/10/14 04:53, Mark H Weaver wrote:
>> [Forwarding this bug report to bdwgc <at> lists.opendylan.org]
>>
>> William S Fulton < wsf <at> fultondesigns.co.uk > writes:
>>
>>> A simple
>>>
>>> #include <libguile.h>
>>>
>>> generates the numerous warnings given below:
>>>
>>>
>>> In file included from example_wrap.c:702:
>>> In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile.h:37:
>>> In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/async.h:28:
>>> In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/threads.h:36:
>>> In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/pthread-threads.h:33:
>>> In file included from /usr/local/Cellar/guile/2.0.11_1/include/guile/2.0/libguile/bdw-gc.h:47:
>>> /usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc.h:411:23: warning: unknown attribute '__alloc_size__' ignored [-Wattributes]
>>> GC_API GC_ATTR_MALLOC GC_ATTR_ALLOC_SIZE(1) void * GC_CALL
>>> ^
>>> /usr/local/Cellar/bdw-gc/7.4.2/include/gc/gc_config_macros.h:249:54: note: expanded from macro 'GC_ATTR_ALLOC_SIZE'
>>> # define GC_ATTR_ALLOC_SIZE(argnum) __attribute__((__alloc_size__(argnum)))
>>> ^
>> This is clearly an issue with bdwgc on clang, and possibly only on
>> Apple's version of clang.  Here's the relevant section of
>> gc/gc_config_macros.h from bdwgc 7.4.2:
>>
>> --8<---------------cut here---------------start------------->8---
>> #ifndef GC_ATTR_ALLOC_SIZE
>>    /* 'alloc_size' attribute improves __builtin_object_size correctness. */
>>    /* Only single-argument form of 'alloc_size' attribute is used.       */
>> # if defined(__GNUC__) && (__GNUC__ > 4 \
>>          || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3 && !defined(__ICC)) \
>>          || __clang_major__ > 3 \
>>          || (__clang_major__ == 3 && __clang_minor__ >= 2))
>> #   define GC_ATTR_ALLOC_SIZE(argnum) __attribute__((__alloc_size__(argnum)))
>> # else
>> #   define GC_ATTR_ALLOC_SIZE(argnum)
>> # endif
>> #endif
>> --8<---------------cut here---------------end--------------->8---
>>
>> You can see that the bdwgc developers have made an effort to check both
>> GCC and clang version numbers before using the __alloc_size__ attribute.
>> The code above seems to suggest that they believed clang 3.2 or later
>> supported this attribute, whereas your version of clang seems to be
>> based on upstream clang 3.5.  Perhaps Apple removed support for this
>> attribute from their clang?
>>
>> In any case, this needs to be taken up with the bdwgc developers.
>>
>>      Regards,
>>        Mark
>>
>>
>>> System information:
>>>
>>> $ guile --version | head -n 1
>>> guile (GNU Guile) 2.0.11
>>>
>>> $ clang --version
>>> Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
>>> Target: x86_64-apple-darwin13.4.0
>>> Thread model: posix
>>>
>>> $ xcodebuild -version -sdk | head -n 2
>>> MacOSX10.9.sdk - OS X 10.9 (macosx10.9)
>>> SDKVersion: 10.9
>>>
>>> $ sw_vers
>>> ProductName: Mac OS X
>>> ProductVersion: 10.9.5
>>> BuildVersion: 13F34
>>>
>>> $ uname -a
>>> Darwin itako16071.miso 13.4.0 Darwin Kernel Version 13.4.0: Sun Aug 17
>>> 19:50:11 PDT 2014; root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64
>_______________________________________________
>bdwgc mailing list
>bdwgc <at> lists.opendylan.org
>https://lists.opendylan.org/mailman/listinfo/bdwgc

[Message part 2 (text/html, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 14 Nov 2014 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 276 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.