Flexible I/O Tester development
 help / color / mirror / Atom feed
From: Bruce Cran <bruce@cran.org.uk>
To: "fio@vger.kernel.org" <fio@vger.kernel.org>
Subject: FreeBSD build broken following _Static_assert commit
Date: Mon, 29 Jun 2015 16:34:24 -0600	[thread overview]
Message-ID: <5591C7F0.1090004@cran.org.uk> (raw)

On FreeBSD 10.1 with clang 3.4.1, a standard "gmake" build now fails with:

libfio.c:309:21: error: static_assert expression is not an integral 
constant expression
         compiletime_assert((offsetof(struct thread_stat, 
percentile_list) % 8) == 0, "stat percentile_list");
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./compiler/compiler.h:39:59: note: expanded from macro 'compiletime_assert'
#define compiletime_assert(condition, msg) _Static_assert(condition, msg)
                                                           ^
libfio.c:309:22: note: cast that performs the conversions of a 
reinterpret_cast is not allowed in a constant expression
         compiletime_assert((offsetof(struct thread_stat, 
percentile_list) % 8) == 0, "stat percentile_list");
                             ^
./flist.h:10:33: note: expanded from macro 'offsetof'
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
                                 ^
./compiler/compiler.h:39:59: note: expanded from macro 'compiletime_assert'
#define compiletime_assert(condition, msg) _Static_assert(condition, msg)
                                                           ^
libfio.c:310:21: error: static_assert expression is not an integral 
constant expression
         compiletime_assert((offsetof(struct thread_stat, 
total_run_time) % 8) == 0, "total_run_time");
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./compiler/compiler.h:39:59: note: expanded from macro 'compiletime_assert'
#define compiletime_assert(condition, msg) _Static_assert(condition, msg)
                                                           ^
libfio.c:310:22: note: cast that performs the conversions of a 
reinterpret_cast is not allowed in a constant expression
         compiletime_assert((offsetof(struct thread_stat, 
total_run_time) % 8) == 0, "total_run_time");
                             ^
./flist.h:10:33: note: expanded from macro 'offsetof'
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
                                 ^
./compiler/compiler.h:39:59: note: expanded from macro 'compiletime_assert'
#define compiletime_assert(condition, msg) _Static_assert(condition, msg)
                                                           ^
libfio.c:311:21: error: static_assert expression is not an integral 
constant expression
         compiletime_assert((offsetof(struct thread_stat, 
total_err_count) % 8) == 0, "total_err_count");
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./compiler/compiler.h:39:59: note: expanded from macro 'compiletime_assert'
#define compiletime_assert(condition, msg) _Static_assert(condition, msg)
                                                           ^
libfio.c:311:22: note: cast that performs the conversions of a 
reinterpret_cast is not allowed in a constant expression
         compiletime_assert((offsetof(struct thread_stat, 
total_err_count) % 8) == 0, "total_err_count");
                             ^
./flist.h:10:33: note: expanded from macro 'offsetof'
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
                                 ^
./compiler/compiler.h:39:59: note: expanded from macro 'compiletime_assert'
#define compiletime_assert(condition, msg) _Static_assert(condition, msg)
                                                           ^
libfio.c:312:21: error: static_assert expression is not an integral 
constant expression
         compiletime_assert((offsetof(struct thread_stat, 
latency_percentile) % 8) == 0, "stat latency_percentile");
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./compiler/compiler.h:39:59: note: expanded from macro 'compiletime_assert'
#define compiletime_assert(condition, msg) _Static_assert(condition, msg)
                                                           ^
libfio.c:312:22: note: cast that performs the conversions of a 
reinterpret_cast is not allowed in a constant expression
         compiletime_assert((offsetof(struct thread_stat, 
latency_percentile) % 8) == 0, "stat latency_percentile");
                             ^
./flist.h:10:33: note: expanded from macro 'offsetof'
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
                                 ^
./compiler/compiler.h:39:59: note: expanded from macro 'compiletime_assert'
#define compiletime_assert(condition, msg) _Static_assert(condition, msg)
                                                           ^
libfio.c:313:21: error: static_assert expression is not an integral 
constant expression
         compiletime_assert((offsetof(struct thread_options_pack, 
zipf_theta) % 8) == 0, "zipf_theta");
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./compiler/compiler.h:39:59: note: expanded from macro 'compiletime_assert'
#define compiletime_assert(condition, msg) _Static_assert(condition, msg)
                                                           ^
libfio.c:313:22: note: cast that performs the conversions of a 
reinterpret_cast is not allowed in a constant expression
         compiletime_assert((offsetof(struct thread_options_pack, 
zipf_theta) % 8) == 0, "zipf_theta");
                             ^
./flist.h:10:33: note: expanded from macro 'offsetof'
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
                                 ^
./compiler/compiler.h:39:59: note: expanded from macro 'compiletime_assert'
#define compiletime_assert(condition, msg) _Static_assert(condition, msg)
                                                           ^
libfio.c:314:21: error: static_assert expression is not an integral 
constant expression
         compiletime_assert((offsetof(struct thread_options_pack, 
pareto_h) % 8) == 0, "pareto_h");
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./compiler/compiler.h:39:59: note: expanded from macro 'compiletime_assert'
#define compiletime_assert(condition, msg) _Static_assert(condition, msg)
                                                           ^
libfio.c:314:22: note: cast that performs the conversions of a 
reinterpret_cast is not allowed in a constant expression
         compiletime_assert((offsetof(struct thread_options_pack, 
pareto_h) % 8) == 0, "pareto_h");
                             ^
./flist.h:10:33: note: expanded from macro 'offsetof'
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
                                 ^
./compiler/compiler.h:39:59: note: expanded from macro 'compiletime_assert'
#define compiletime_assert(condition, msg) _Static_assert(condition, msg)
                                                           ^
libfio.c:315:21: error: static_assert expression is not an integral 
constant expression
         compiletime_assert((offsetof(struct thread_options_pack, 
percentile_list) % 8) == 0, "percentile_list");
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./compiler/compiler.h:39:59: note: expanded from macro 'compiletime_assert'
#define compiletime_assert(condition, msg) _Static_assert(condition, msg)
                                                           ^
libfio.c:315:22: note: cast that performs the conversions of a 
reinterpret_cast is not allowed in a constant expression
         compiletime_assert((offsetof(struct thread_options_pack, 
percentile_list) % 8) == 0, "percentile_list");
                             ^
./flist.h:10:33: note: expanded from macro 'offsetof'
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
                                 ^
./compiler/compiler.h:39:59: note: expanded from macro 'compiletime_assert'
#define compiletime_assert(condition, msg) _Static_assert(condition, msg)
                                                           ^
libfio.c:316:21: error: static_assert expression is not an integral 
constant expression
         compiletime_assert((offsetof(struct thread_options_pack, 
latency_percentile) % 8) == 0, "latency_percentile");
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./compiler/compiler.h:39:59: note: expanded from macro 'compiletime_assert'
#define compiletime_assert(condition, msg) _Static_assert(condition, msg)
                                                           ^
libfio.c:316:22: note: cast that performs the conversions of a 
reinterpret_cast is not allowed in a constant expression
         compiletime_assert((offsetof(struct thread_options_pack, 
latency_percentile) % 8) == 0, "latency_percentile");
                             ^
./flist.h:10:33: note: expanded from macro 'offsetof'
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
                                 ^
./compiler/compiler.h:39:59: note: expanded from macro 'compiletime_assert'
#define compiletime_assert(condition, msg) _Static_assert(condition, msg)
                                                           ^
8 errors generated.

-- 
Bruce

             reply	other threads:[~2015-06-29 22:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-29 22:34 Bruce Cran [this message]
2015-06-30  2:48 ` FreeBSD build broken following _Static_assert commit Jens Axboe
2015-06-30  3:41   ` Bruce Cran
2015-06-30  3:46     ` Jens Axboe
2015-06-30 13:22       ` Bruce Cran
2015-06-30 13:51         ` Jens Axboe

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=5591C7F0.1090004@cran.org.uk \
    --to=bruce@cran.org.uk \
    --cc=fio@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox