Skip to contentSkip to conversation

Build failed in Jenkins: ceph-master #94

DISCUSSION Willem Jan Withagen 3 participants 5 messages Dec 17, 2016 – Dec 19, 2016 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hi,

My FreeBSD builder starts to complain during compilation about the error repeated below.

--WjW

n file included from /home/jenkins/workspace/ceph-master/src/common/config.cc:15:
In file included from /home/jenkins/workspace/ceph-master/src/auth/Auth.h:18:
In file included from /home/jenkins/workspace/ceph-master/src/auth/Crypto.h:18:
In file included from /home/jenkins/workspace/ceph-master/src/include/types.h:21:
In file included from /home/jenkins/workspace/ceph-master/src/include/uuid.h:8:
In file included from /home/jenkins/workspace/ceph-master/src/include/encoding.h:19:
In file included from /home/jenkins/workspace/ceph-master/src/include/rados/memory.h:4:
In file included from /usr/include/c++/v1/memory:599:
/usr/include/c++/v1/type_traits:2857:38: error: incomplete type 'md_config_t::option_host_t' used in type trait expression
: public integral_constant<bool, __is_constructible(_Tp, _Args...)>
^
/home/jenkins/workspace/ceph-master/src/common/config.cc:110:31: note:
in instantiation of template class 'std::__1::is_constructible<md_config_t::option_host_t>' requested here typename std::enable_if<!std::is_constructible<T>::value,

                              ^

/home/jenkins/workspace/ceph-master/src/common/config_opts.h:16:1: note:
while substituting explicitly-specified template arguments into function template 'create_validator'
OPTION(host, OPT_STR, "localhost")
^ /home/jenkins/workspace/ceph-master/src/common/config.cc:168:37: note:
expanded from macro 'OPTION'

#define OPTION(name, type, def_val) OPTION4(name, type, def_val, false)
                                    ^
/home/jenkins/workspace/ceph-master/src/common/config.cc:167:24: note:
expanded from macro 'OPTION4'
                       create_validator<option_##name##_t>() },
                       ^

/home/jenkins/workspace/ceph-master/src/common/config_opts.h:16:1: note:
forward declaration of 'md_config_t::option_host_t' OPTION(host, OPT_STR, "localhost")
^ /home/jenkins/workspace/ceph-master/src/common/config.h:321:12: note:
expanded from macro 'OPTION'

    struct option_##name##_t;
           ^

<scratch space>:51:1: note: expanded from here
option_host_t
^

#2 lore raw

This is due to the recently added config option validators [1] (aimed to solve the API issue with rbd_default_features option).

It uses std::is_constructible to check if a type exists or just forward declared. Apparently, it does not work for clang. Using std::is_destructible instead looks like work [2].

[1] https://github.com/ceph/ceph/pull/12486
[2] https://github.com/trociny/ceph/commit/bd584fe797e30d666800cd4d9b440d4b51d1d27e

Quoted 60 lines · Willem Jan Withagen

Hi,

My FreeBSD builder starts to complain during compilation about the error repeated below.

--WjW

n file included from /home/jenkins/workspace/ceph-master/src/common/config.cc:15:
In file included from /home/jenkins/workspace/ceph-master/src/auth/Auth.h:18:
In file included from /home/jenkins/workspace/ceph-master/src/auth/Crypto.h:18:
In file included from /home/jenkins/workspace/ceph-master/src/include/types.h:21:
In file included from /home/jenkins/workspace/ceph-master/src/include/uuid.h:8:
In file included from /home/jenkins/workspace/ceph-master/src/include/encoding.h:19:
In file included from /home/jenkins/workspace/ceph-master/src/include/rados/memory.h:4:
In file included from /usr/include/c++/v1/memory:599:
/usr/include/c++/v1/type_traits:2857:38: error: incomplete type 'md_config_t::option_host_t' used in type trait expression
: public integral_constant<bool, __is_constructible(_Tp, _Args...)>
^
/home/jenkins/workspace/ceph-master/src/common/config.cc:110:31: note:
in instantiation of template class 'std::__1::is_constructible<md_config_t::option_host_t>' requested here typename std::enable_if<!std::is_constructible<T>::value,

                              ^

/home/jenkins/workspace/ceph-master/src/common/config_opts.h:16:1: note:
while substituting explicitly-specified template arguments into function template 'create_validator'
OPTION(host, OPT_STR, "localhost")
^ /home/jenkins/workspace/ceph-master/src/common/config.cc:168:37: note:
expanded from macro 'OPTION'

#define OPTION(name, type, def_val) OPTION4(name, type, def_val, false)
                                    ^
/home/jenkins/workspace/ceph-master/src/common/config.cc:167:24: note:
expanded from macro 'OPTION4'
                       create_validator<option_##name##_t>() },
                       ^

/home/jenkins/workspace/ceph-master/src/common/config_opts.h:16:1: note:
forward declaration of 'md_config_t::option_host_t' OPTION(host, OPT_STR, "localhost")
^ /home/jenkins/workspace/ceph-master/src/common/config.h:321:12: note:
expanded from macro 'OPTION'

    struct option_##name##_t;
           ^

<scratch space>:51:1: note: expanded from here
option_host_t
^
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 1 line
Mykola Golub
#3 lore raw
Quoted 9 lines · Mykola Golub

This is due to the recently added config option validators [1] (aimed to solve the API issue with rbd_default_features option).

It uses std::is_constructible to check if a type exists or just forward declared. Apparently, it does not work for clang. Using std::is_destructible instead looks like work [2].

[1] https://github.com/ceph/ceph/pull/12486
[2] https://github.com/trociny/ceph/commit/bd584fe797e30d666800cd4d9b440d4b51d1d27e

Hi Mykola,

This seems to be a nice workaround.
I'll submit a PR.

--WjW

#4 lore raw

Actually, it's already merged into the master branch [1]. Thanks.

[1] https://github.com/ceph/ceph/pull/12565

Quoted 22 lines · Willem Jan Withagen
Quoted 9 lines · Mykola Golub

This is due to the recently added config option validators [1] (aimed to solve the API issue with rbd_default_features option).

It uses std::is_constructible to check if a type exists or just forward declared. Apparently, it does not work for clang. Using std::is_destructible instead looks like work [2].

[1] https://github.com/ceph/ceph/pull/12486
[2] https://github.com/trociny/ceph/commit/bd584fe797e30d666800cd4d9b440d4b51d1d27e

Hi Mykola,

This seems to be a nice workaround.
I'll submit a PR.

--WjW

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 1 line
Jason
#5 lore raw
Quoted 3 lines · Jason Dillaman

Actually, it's already merged into the master branch [1]. Thanks.

[1] https://github.com/ceph/ceph/pull/12565

Yup, I saw... Thanx for the speedy patch.

in the mean time also submitted:
Clang/str_list.h: fix clang warning about std::move #12570

So I guess we're working out the odd bits and pieces that Clang brings with it.

--WjW

Quoted 26 lines · Willem Jan Withagen
Quoted 22 lines · Mykola Golub
Quoted 9 lines

This is due to the recently added config option validators [1] (aimed to solve the API issue with rbd_default_features option).

It uses std::is_constructible to check if a type exists or just forward declared. Apparently, it does not work for clang. Using std::is_destructible instead looks like work [2].

[1] https://github.com/ceph/ceph/pull/12486
[2] https://github.com/trociny/ceph/commit/bd584fe797e30d666800cd4d9b440d4b51d1d27e

Hi Mykola,

This seems to be a nice workaround.
I'll submit a PR.

--WjW

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html