From: Mykola Golub <to.my.trociny@gmail.com>
To: Willem Jan Withagen <wjw@digiware.nl>
Cc: Ceph Development <ceph-devel@vger.kernel.org>,
Jason Dillaman <jdillama@redhat.com>
Subject: Re: Fwd: Build failed in Jenkins: ceph-master #94
Date: Mon, 19 Dec 2016 09:02:43 +0200 [thread overview]
Message-ID: <20161219070242.GA1543@gmail.com> (raw)
In-Reply-To: <93c0f8ac-a1e1-eaed-19bc-1be68b31f06f@digiware.nl>
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
On Sat, Dec 17, 2016 at 01:34:48PM +0100, Willem Jan Withagen wrote:
> 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 majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Mykola Golub
next prev parent reply other threads:[~2016-12-19 7:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <2025831951.53.1481945498160.JavaMail.jenkins@cephdev.digiware.nl>
2016-12-17 12:34 ` Fwd: Build failed in Jenkins: ceph-master #94 Willem Jan Withagen
2016-12-19 7:02 ` Mykola Golub [this message]
2016-12-19 15:43 ` Willem Jan Withagen
2016-12-19 15:45 ` Jason Dillaman
2016-12-19 17:07 ` Willem Jan Withagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161219070242.GA1543@gmail.com \
--to=to.my.trociny@gmail.com \
--cc=ceph-devel@vger.kernel.org \
--cc=jdillama@redhat.com \
--cc=wjw@digiware.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.