qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakub Scholz <ja...@scholz.cz>
Subject Re: Dispatch: ‘posix_memalign’, declared with attribute warn_unused_result [-Werror=unused-result]
Date Tue, 20 Sep 2016 20:49:01 GMT
Thanks Ted. My build seems to work fine again now after your fix.

J.

On Tue, Sep 20, 2016 at 1:51 PM, Ted Ross <tross@redhat.com> wrote:

> Jakub,
>
> This is a bug in the DISPATCH-511 update.  I'll get it fixed.
>
> -Ted
>
> On 09/19/2016 04:00 PM, Jakub Scholz wrote:
>
>> Hi,
>>
>> I seem to have problems with building latest version of Qpid Dispatch
>> (from
>> master) on some systems. In particular on Ubuntu it seems to crash with
>> the
>> error below which I guess is related to the DISPATCH 511 JIRA / commit
>> 566a1a1
>> <https://github.com/apache/qpid-dispatch/commit/566a1a19e2c6
>> 62b40aa4477421bddb51e4e7310c>.
>>
>> Interesting enough, it seems to work fine on CentOS 7.
>>
>> Is this a bug in the dispatch code? Or do I need to use different version
>> of some libraries?
>>
>> Thansk & Regards
>> Jakub
>>
>> vagrant@vagrant-ubuntu-trusty-64:~/qpid-dispatch/build$ make all
>> [  1%] Generating schema_enum.h, schema_enum.c
>> Scanning dependencies of target qpid-dispatch
>> [  3%] Building C object src/CMakeFiles/qpid-dispatch.dir/amqp.c.o
>> [  4%] Building C object src/CMakeFiles/qpid-dispatch.dir/bitmask.c.o
>> [  6%] Building C object src/CMakeFiles/qpid-dispatch.dir/buffer.c.o
>> [  7%] Building C object src/CMakeFiles/qpid-dispatch.dir/error.c.o
>> [  9%] Building C object src/CMakeFiles/qpid-dispatch.dir/compose.c.o
>> [ 10%] Building C object
>> src/CMakeFiles/qpid-dispatch.dir/connection_manager.c.o
>> [ 12%] Building C object src/CMakeFiles/qpid-dispatch.dir/container.c.o
>> [ 14%] Building C object src/CMakeFiles/qpid-dispatch.dir/dispatch.c.o
>> [ 15%] Building C object src/CMakeFiles/qpid-dispatch.dir/entity.c.o
>> [ 17%] Building C object src/CMakeFiles/qpid-dispatch.d
>> ir/entity_cache.c.o
>> [ 18%] Building C object src/CMakeFiles/qpid-dispatch.dir/hash.c.o
>> [ 20%] Building C object src/CMakeFiles/qpid-dispatch.dir/iovec.c.o
>> [ 21%] Building C object src/CMakeFiles/qpid-dispatch.dir/iterator.c.o
>> [ 23%] Building C object src/CMakeFiles/qpid-dispatch.dir/log.c.o
>> [ 25%] Building C object src/CMakeFiles/qpid-dispatch.dir/message.c.o
>> [ 26%] Building C object src/CMakeFiles/qpid-dispatch.dir/parse.c.o
>> [ 28%] Building C object src/CMakeFiles/qpid-dispatch.dir/policy.c.o
>> [ 29%] Building C object src/CMakeFiles/qpid-dispatch.d
>> ir/posix/driver.c.o
>> [ 31%] Building C object
>> src/CMakeFiles/qpid-dispatch.dir/posix/threading.c.o
>> In file included from
>> /home/vagrant/qpid-dispatch/src/posix/threading.c:27:0:
>> /home/vagrant/qpid-dispatch/src/posix/threading.c: In function
>> ‘sys_mutex’:
>> /home/vagrant/qpid-dispatch/include/qpid/dispatch/ctools.h:39:46: error:
>> ignoring return value of ‘posix_memalign’, declared with attribute
>> warn_unused_result [-Werror=unused-result]
>>  #define NEW_CACHE_ALIGNED(t,p) posix_memalign((void*) &(p), 64,
>> (sizeof(t)
>> + (sizeof(t) % 64 ? 64 - (sizeof(t) % 64) : 0)))
>>                                               ^
>> /home/vagrant/qpid-dispatch/src/posix/threading.c:40:5: note: in
>> expansion
>> of macro ‘NEW_CACHE_ALIGNED’
>>      NEW_CACHE_ALIGNED(sys_mutex_t, mutex);
>>      ^
>> /home/vagrant/qpid-dispatch/src/posix/threading.c: In function
>> ‘sys_cond’:
>> /home/vagrant/qpid-dispatch/include/qpid/dispatch/ctools.h:39:46: error:
>> ignoring return value of ‘posix_memalign’, declared with attribute
>> warn_unused_result [-Werror=unused-result]
>>  #define NEW_CACHE_ALIGNED(t,p) posix_memalign((void*) &(p), 64,
>> (sizeof(t)
>> + (sizeof(t) % 64 ? 64 - (sizeof(t) % 64) : 0)))
>>                                               ^
>> /home/vagrant/qpid-dispatch/src/posix/threading.c:76:5: note: in
>> expansion
>> of macro ‘NEW_CACHE_ALIGNED’
>>      NEW_CACHE_ALIGNED(sys_cond_t, cond);
>>      ^
>> cc1: all warnings being treated as errors
>> make[2]: *** [src/CMakeFiles/qpid-dispatch.dir/posix/threading.c.o]
>> Error 1
>> make[1]: *** [src/CMakeFiles/qpid-dispatch.dir/all] Error 2
>> make: *** [all] Error 2
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message