All of lore.kernel.org
 help / color / mirror / Atom feed
* Clangs is complaining about type evaluations in test_mempool.cc
@ 2016-12-27  9:35 Willem Jan Withagen
  2016-12-27 16:19 ` Adam C. Emerson
  0 siblings, 1 reply; 3+ messages in thread
From: Willem Jan Withagen @ 2016-12-27  9:35 UTC (permalink / raw)
  To: Ceph Development

[100%] Building CXX object
src/test/CMakeFiles/unittest_mempool.dir/test_mempool.cc.o
In file included from /usr/srcs/Ceph/work/ceph/src/test/test_mempool.cc:20:
In file included from
/usr/srcs/Ceph/work/ceph/src/common/ceph_argparse.h:31:
In file included from /usr/srcs/Ceph/work/ceph/src/common/entity_name.h:22:
In file included from /usr/srcs/Ceph/work/ceph/src/include/encoding.h:25:
In file included from /usr/srcs/Ceph/work/ceph/src/include/denc.h:28:
/usr/include/c++/v1/map:837:5: error: static_assert failed
"Allocator::value_type must be same type as value_type"
    static_assert((is_same<typename allocator_type::value_type,
value_type>::value),
    ^
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/srcs/Ceph/work/ceph/src/test/test_mempool.cc:235:39: note: in
instantiation of template class 'std::__1::map<int, int,
std::__1::less<int>,
mempool::pool_allocator<mempool::pool_index_t::mempool_unittest_1,
std::__1::pair<int, int> > >' requested here
    mempool::unittest_1::map<int,int> v;
                                      ^
and more of the same on test_mempool.cc: 240 and 263.

Perhaps somebody has a suggestion on how to fix this??

--WjW

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Clangs is complaining about type evaluations in test_mempool.cc
  2016-12-27  9:35 Clangs is complaining about type evaluations in test_mempool.cc Willem Jan Withagen
@ 2016-12-27 16:19 ` Adam C. Emerson
  2016-12-27 23:29   ` Willem Jan Withagen
  0 siblings, 1 reply; 3+ messages in thread
From: Adam C. Emerson @ 2016-12-27 16:19 UTC (permalink / raw)
  To: Willem Jan Withagen; +Cc: Ceph Development

On 27/12/2016, Willem Jan Withagen wrote:
> Perhaps somebody has a suggestion on how to fix this??

I suspect that the container changes in
https://github.com/ceph/ceph/pull/12626 will fix it. The denc container
encodings in master always assume the default compare and allocator
parameters.

-- 
Senior Software Engineer           Red Hat Storage, Ann Arbor, MI, US
IRC: Aemerson@{RedHat, OFTC, Freenode}
0x80F7544B90EDBFB9 E707 86BA 0C1B 62CC 152C  7C12 80F7 544B 90ED BFB9

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Clangs is complaining about type evaluations in test_mempool.cc
  2016-12-27 16:19 ` Adam C. Emerson
@ 2016-12-27 23:29   ` Willem Jan Withagen
  0 siblings, 0 replies; 3+ messages in thread
From: Willem Jan Withagen @ 2016-12-27 23:29 UTC (permalink / raw)
  To: Ceph Development

On 27-12-2016 17:19, Adam C. Emerson wrote:
> On 27/12/2016, Willem Jan Withagen wrote:
>> Perhaps somebody has a suggestion on how to fix this??
> 
> I suspect that the container changes in
> https://github.com/ceph/ceph/pull/12626 will fix it. The denc container
> encodings in master always assume the default compare and allocator
> parameters.
> 

Eh, nope,....

Clang still complains about the same thing.
It is still complaining about a type comparison, and type not being
compatible.

--WjW

/usr/bin/CC   -DCEPH_LIBDIR=\"/usr/local/lib\"
-DCEPH_PKGLIBDIR=\"/usr/local/lib/ceph\"
-I/usr/srcs/Ceph/work/ceph/build/src/include
-I/usr/srcs/Ceph/work/ceph/src -isystem /usr/local/include -isystem
/usr/srcs/Ceph/work/ceph/build/include
-I/usr/srcs/Ceph/work/ceph/src/xxHash
-I/usr/srcs/Ceph/work/ceph/src/googletest/googlemock/include
-I/usr/srcs/Ceph/work/ceph/src/googletest/googletest/include  -Wall
-Wtype-limits -Wignored-qualifiers -Winit-self -Wpointer-arith
-Werror=format-security -fno-strict-aliasing -fsigned-char
-Wno-unused-function -Wno-unused-local-typedef -Wno-varargs
-Wno-gnu-designator -Wno-missing-braces -Wno-parentheses
-Wno-deprecated-register  -ftemplate-depth-1024 -Wno-invalid-offsetof
-Wnon-virtual-dtor -Wno-inconsistent-missing-override
-Wno-mismatched-tags -Wno-unused-private-field -fdiagnostics-color=auto
-I/usr/local/include/nss/nss -I/usr/local/include/nspr
-fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc
-fno-builtin-free -Wno-null-dereference -O0 -g -fPIE   -DHAVE_CONFIG_H
-D__CEPH__ -D_REENTRANT -D_THREAD_SAFE -D__STDC_FORMAT_MACROS
-I/usr/srcs/Ceph/work/ceph/src/googletest/googlemock/include
-I/usr/srcs/Ceph/work/ceph/build/src/googletest/googlemock/include
-I/usr/srcs/Ceph/work/ceph/src/googletest/googletest/include
-I/usr/srcs/Ceph/work/ceph/build/src/googletest/googletest/include
-fno-strict-aliasing -std=c++11 -o
CMakeFiles/unittest_mempool.dir/test_mempool.cc.o -c
/usr/srcs/Ceph/work/ceph/src/test/test_mempool.cc
In file included from /usr/srcs/Ceph/work/ceph/src/test/test_mempool.cc:20:
In file included from
/usr/srcs/Ceph/work/ceph/src/common/ceph_argparse.h:31:
In file included from /usr/srcs/Ceph/work/ceph/src/common/entity_name.h:22:
In file included from /usr/srcs/Ceph/work/ceph/src/include/encoding.h:25:
In file included from /usr/srcs/Ceph/work/ceph/src/include/denc.h:29:
/usr/include/c++/v1/map:837:5: error: static_assert failed
"Allocator::value_type must be same type as value_type"
    static_assert((is_same<typename allocator_type::value_type,
value_type>::value),
    ^
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/srcs/Ceph/work/ceph/src/test/test_mempool.cc:235:39: note: in
instantiation of template class 'std::__1::map<int, int,
std::__1::less<int>,
mempool::pool_allocator<mempool::pool_index_t::mempool_unittest_1,
std::__1::pair<int, int> > >' requested here
    mempool::unittest_1::map<int,int> v;
                                      ^


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-12-27 23:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-27  9:35 Clangs is complaining about type evaluations in test_mempool.cc Willem Jan Withagen
2016-12-27 16:19 ` Adam C. Emerson
2016-12-27 23:29   ` Willem Jan Withagen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.