smadaminov / ovs-dpdk-meson-issues

VMware Summer 2021
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

compile ova on windows using clang #14

Open williamtu opened 3 years ago

williamtu commented 3 years ago

error message below


make[2]: Entering directory '/c/ovs/datapath'
make[3]: Entering directory '/c/ovs/datapath'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/c/ovs/datapath'
make[2]: Leaving directory '/c/ovs/datapath'
make[2]: Entering directory '/c/ovs'
source='lib/bfd.c' object='lib/bfd.lo' libtool=yes \
DEPDIR=.deps depmode=msvc7 /bin/sh ./build-aux/depcomp \
/bin/sh ./libtool  --tag=CC   --mode=compile clang-cl -DHAVE_CONFIG_H -I.   -I ./include/windows -I ./datapath-windows/include -Ic:
/PTHREADS-BUILT/include -O2 -I ./include -I ./include -I ./lib -I ./lib    -Wstrict-prototypes -Wextra -Wno-sign-compare -Wpointer-
arith -Wformat -Wformat-security -Wswitch-enum -Wunused-parameter -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wold-style-
definition -Wmissing-prototypes -Wmissing-field-initializers -Wthread-safety -fno-strict-aliasing -Wswitch-bool -Wlogical-not-paren
theses -Wsizeof-array-argument -Wshift-negative-value -Qunused-arguments -Wshadow -Wno-null-pointer-arithmetic -Warray-bounds-point
er-arithmetic    -DHAVE_AVX512F -c -o lib/bfd.lo lib/bfd.c
source='lib/bundle.c' object='lib/bundle.lo' libtool=yes \
DEPDIR=.deps depmode=msvc7 /bin/sh ./build-aux/depcomp \
/bin/sh ./libtool  --tag=CC   --mode=compile clang-cl -DHAVE_CONFIG_H -I.   -I ./include/windows -I ./datapath-windows/include -Ic:
/PTHREADS-BUILT/include -O2 -I ./include -I ./include -I ./lib -I ./lib    -Wstrict-prototypes -Wextra -Wno-sign-compare -Wpointer-
arith -Wformat -Wformat-security -Wswitch-enum -Wunused-parameter -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wold-style-
definition -Wmissing-prototypes -Wmissing-field-initializers -Wthread-safety -fno-strict-aliasing -Wswitch-bool -Wlogical-not-paren
theses -Wsizeof-array-argument -Wshift-negative-value -Qunused-arguments -Wshadow -Wno-null-pointer-arithmetic -Warray-bounds-point
er-arithmetic    -DHAVE_AVX512F -c -o lib/bundle.lo lib/bundle.c
In file included from lib/bfd.c:16:
In file included from ./lib/bfd.h:24:
In file included from ./lib/packets.h:26:
In file included from ./include\openvswitch/packets.h:22:
./include\openvswitch/tun-metadata.h(66,19): error: static_assert expression is not an integral constant expression
BUILD_ASSERT_DECL(offsetof(struct tun_metadata, opts) % 8 == 0);
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include\openvswitch/compiler.h(250,5): note: expanded from macro 'offsetof'
    ((size_t)((char *)&(((type *)0)->member) - (char *)0))
    ^
./include\openvswitch/compiler.h(269,48): note: expanded from macro 'BUILD_ASSERT_DECL'
#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)
                                               ^~~~
./include\openvswitch/tun-metadata.h(66,19): note: cast that performs the conversions of a reinterpret_cast is not allowed in a
      constant expression
./include\openvswitch/compiler.h(250,15): note: expanded from macro 'offsetof'
    ((size_t)((char *)&(((type *)0)->member) - (char *)0))
              ^
In file included from lib/bundle.c:27:
In file included from ./lib/nx-match.h:24:
In file included from ./lib/flow.h:30:
In file included from ./include\openvswitch/flow.h:20:
In file included from ./include\openvswitch/packets.h:22:
./include\openvswitch/tun-metadata.h(66,19): error: static_assert expression is not an integral constant expression
BUILD_ASSERT_DECL(offsetof(struct tun_metadata, opts) % 8 == 0);
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include\openvswitch/compiler.h(250,5): note: expanded from macro 'offsetof'
    ((size_t)((char *)&(((type *)0)->member) - (char *)0))
    ^
./include\openvswitch/compiler.h(269,48): note: expanded from macro 'BUILD_ASSERT_DECL'
#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)
                                               ^~~~
./include\openvswitch/tun-metadata.h(66,19): note: cast that performs the conversions of a reinterpret_cast is not allowed in a
      constant expression
./include\openvswitch/compiler.h(250,15): note: expanded from macro 'offsetof'In file included from
lib/bfd.c    ((size_t)((char *)&(((type *)0)->member) - (char *)0))
:              ^
16:
In file included from ./lib/bfd.h:24:
In file included from ./lib/packets.h:32:
./lib/tun-metadata.h(40,6): In file included from lib/bundle.c:warning27: :
In file included from ./lib/nx-match.h:24:
forwardIn file included from  ./lib/flow.h:30:
references./include\openvswitch/flow.h(169,19):  toerror:  'enum'static_assert  types expressionare is not an  aintegral constant
Microsoftexpression
extensionBUILD_ASSERT_DECL(offsetof(struct flow, igmp_group_ip4) + sizeof(uint32_t)

      ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[-Wmicrosoft-enum-forward-reference]./include\openvswitch/compiler.h(250,5):
note: enum ofperr tun_metadata_table_mod(struct ofputil_tlv_table_mod *,expanded from macro 'offsetof'

     ^    ((size_t)((char *)&(((type *)0)->member) - (char *)0))

    ^
./include\openvswitch/compiler.h(269,48): note: expanded from macro 'BUILD_ASSERT_DECL'
#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)
                                               ^~~~
./include\openvswitch/flow.h(169,19): note: cast that performs the conversions of a reinterpret_cast is not allowed in a constant
      expression
./include\openvswitch/compiler.h(250,15): note: expanded from macro 'offsetof'
    ((size_t)((char *)&(((type *)0)->member) - (char *)0))
              ^
In file included from lib/bfd.c:16:
In file included from ./lib/bfd.h:24:
./lib/packets.h(138,19): error: static_assert expression is not an integral constant expression
BUILD_ASSERT_DECL(offsetof(struct pkt_metadata, cacheline0) == 0);
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include\openvswitch/compiler.h(250,5): note: expanded from macro 'offsetof'
    ((size_t)((char *)&(((type *)0)->member) - (char *)0))
    ^
./include\openvswitch/compiler.h(269,48): note: expanded from macro 'BUILD_ASSERT_DECL'
#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)
                                               ^~~~
./lib/packets.h(138,49): note: cannot access field of null pointer
BUILD_ASSERT_DECL(offsetof(struct pkt_metadata, cacheline0) == 0);
                                                ^
./lib/packets.h(139,19): error: static_assert expression is not an integral constant expression
BUILD_ASSERT_DECL(offsetof(struct pkt_metadata, cacheline1) ==
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include\openvswitch/compiler.h(250,5): note: expanded from macro 'offsetof'
    ((size_t)((char *)&(((type *)0)->member) - (char *)0))
    ^
./include\openvswitch/compiler.h(269,48): note: expanded from macro 'BUILD_ASSERT_DECL'
#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)
                                               ^~~~
./lib/packets.h(139,19): note: cast that performs the conversions of a reinterpret_cast is not allowed in a constant expression
./include\openvswitch/compiler.h(250,15): note: expanded from macro 'offsetof'
    ((size_t)((char *)&(((type *)0)->member) - (char *)0))
              ^
In file included from lib/bfd.c:16:
In file included from ./lib/bfd.h:24:
./lib/packets.h(141,19): error: static_assert expression is not an integral constant expression
BUILD_ASSERT_DECL(offsetof(struct pkt_metadata, cacheline2) ==
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include\openvswitch/compiler.h(250,5): note: expanded from macro 'offsetof'
    ((size_t)((char *)&(((type *)0)->member) - (char *)0))
    ^
./include\openvswitch/compiler.h(269,48): note: In file included from expandedlib/bundle.c :from27 :
macroIn file included from  ./lib/nx-match.h'BUILD_ASSERT_DECL':
24#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR):

In file included from                                                ^~~~./lib/flow.h:
31:
./lib/packets.h./lib/packets.h(138,19): (141error: ,19static_assert) :expression  is not an integralnote constant:  castexpression

thatBUILD_ASSERT_DECL(offsetof(struct pkt_metadata, cacheline0) == 0);
performs~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ the conversions
of ./include\openvswitch/compiler.ha( 250reinterpret_cast ,is5 )not allowed:  in notea : constantexpanded  expressionfrom
 macro./include\openvswitch/compiler.h ('offsetof'250
,15    ((size_t)((char *)&(((type *)0)->member) - (char *)0)))
:    ^
note: ./include\openvswitch/compiler.hexpanded( 269from, 48macro) :'offsetof'
note:     ((size_t)((char *)&(((type *)0)->member) - (char *)0))
expanded               ^
from macro 'BUILD_ASSERT_DECL'
#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)
                                               ^~~~In file included from
lib/bfd.c:./lib/packets.h16(:
138In file included from ./lib/bfd.h,:4924):
:./lib/packets.h (189note,: 49cannot) :access  fieldwarning of null pointer:
unusedBUILD_ASSERT_DECL(offsetof(struct pkt_metadata, cacheline0) == 0);
                                                 ^parameter
 'md' [-Wunused-parameter]
./lib/packets.hpkt_metadata_prefetch_init(struct pkt_metadata *md)(
139                                                ^
,19): error: static_assert expression is not an integral constant expression
BUILD_ASSERT_DECL(offsetof(struct pkt_metadata, cacheline1) ==
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include\openvswitch/compiler.h(250,5): note: expanded from macro 'offsetof'
    ((size_t)((char *)&(((type *)0)->member) - (char *)0))
    ^
./include\openvswitch/compiler.h(269,48): note: expanded from macro 'BUILD_ASSERT_DECL'
#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)
                                               ^~~~
./lib/packets.h(139,19): note: cast that performs the conversions of a reinterpret_cast is not allowed in a constant expression
./include\openvswitch/compiler.h(250,15): note: expanded from macro 'offsetof'
    ((size_t)((char *)&(((type *)0)->member) - (char *)0))
              ^
In file included from lib/bundle.c:27:
In file included from ./lib/nx-match.h:24:
In file included from ./lib/flow.h:31:
./lib/packets.h(141,19): error: static_assert expression is not an integral constant expression
BUILD_ASSERT_DECL(offsetof(struct pkt_metadata, cacheline2) ==
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include\openvswitch/compiler.h(250,5): In file included from lib/bfd.cnote:: 28expanded:
 In file included from from./lib/dp-packet.h macro :'offsetof'28
:
    ((size_t)((char *)&(((type *)0)->member) - (char *)0))./lib/netdev-afxdp.h
(81    ^,
34)./include\openvswitch/compiler.h:( 269,48)warning::  unused noteparameter:  expanded from 'p'macro  [-Wunused-parameter]'BUILD_A
SSERT_DECL'

free_afxdp_buf(struct dp_packet *p OVS_UNUSED)#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)

                                 ^                                               ^~~~

./lib/packets.h(141,19): note: cast that performs the conversionsIn file included from  lib/bfd.cof: a reinterpret_cast is 28not al
lowed :
inIn file included from  ./lib/dp-packet.ha: 29constant:
 ./lib/netdev-dpdk.hexpression(
158,./include\openvswitch/compiler.h33(250,15): ):note : warningexpanded from : macro unused parameter 'offsetof''buf'
     ((size_t)((char *)&(((type *)0)->member) - (char *)0))[-Wunused-parameter]

              ^free_dpdk_buf(struct dp_packet *buf OVS_UNUSED)

                                ^
In file included from lib/bundle.c:27:
In file included from ./lib/nx-match.h:24:
In file included from ./lib/flow.h:31:
./lib/packets.h(189,49): warning: unused parameter 'md' [-Wunused-parameter]
pkt_metadata_prefetch_init(struct pkt_metadata *md)
                                                ^
In file included from lib/bfd.c:28:
In file included from ./lib/dp-packet.h:33:
In file included from ./lib/flow.h:30:
./include\openvswitch/flow.h(169,19): error: static_assert expression is not an integral constant expression
BUILD_ASSERT_DECL(offsetof(struct flow, igmp_group_ip4) + sizeof(uint32_t)
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include\openvswitch/compiler.h(250,5): note: expanded from macro 'offsetof'
    ((size_t)((char *)&(((type *)0)->member) - (char *)0))
    ^
./include\openvswitch/compiler.h(269,48): note: expanded from macro 'BUILD_ASSERT_DECL'
#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)
                                               ^~~~
./include\openvswitch/flow.h(169,19): note: cast that performs the conversions of a reinterpret_cast is not allowed in a constant
      expression
./include\openvswitch/compiler.h(250,15): note: expanded from macro 'offsetof'
    ((size_t)((char *)&(((type *)0)->member) - (char *)0))
              ^
In file included from lib/bundle.c:31:
./include\openvswitch/ofp-actions.h(552,19): error: static_assert expression is not an integral constant expression
BUILD_ASSERT_DECL(offsetof(struct ofpact_set_field, value)
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include\openvswitch/compiler.h(250,5): note: expanded from macro 'offsetof'
    ((size_t)((char *)&(((type *)0)->member) - (char *)0))
    ^
./include\openvswitch/compiler.h(269,48): note: expanded from macro 'BUILD_ASSERT_DECL'
#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)
In file included from                                                ^~~~lib/bfd.c
:28:
./include\openvswitch/ofp-actions.h./lib/dp-packet.h(622,43): (552warning,: 19):unused  parameter 'p'note : [-Wunused-parameter]cas
t
 dp_packet_init_specific(struct dp_packet *p OVS_UNUSED)that
                                           ^performs
 the conversions of a reinterpret_cast is not allowed in a
      constant expression
./include\openvswitch/compiler.h(250,15): note: expanded from macro 'offsetof'
    ((size_t)((char *)&(((type *)0)->member) - (char *)0))
              ^
In file included from lib/bundle.c:31:
./include\openvswitch/ofp-actions.h(554,19): error: static_assert expression is not an integral constant expression
BUILD_ASSERT_DECL(offsetof(struct ofpact_set_field, value)
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include\openvswitch/compiler.h(250,5): note: expanded from macro 'offsetof'
    ((size_t)((char *)&(((type *)0)->member) - (char *)0))
    ^
./include\openvswitch/compiler.h(269,48): note: expanded from macro 'BUILD_ASSERT_DECL'
#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)
                                               ^~~~
./include\openvswitch/ofp-actions.h(554,19): note: cast that performs the conversions of a reinterpret_cast is not allowed in a
      constant expression
./include\openvswitch/compiler.h(250,15): note: expanded from macro 'offsetof'
    ((size_t)((char *)&(((type *)0)->member) - (char *)0))
              ^
In file included from lib/bundle.c:31:
./include\openvswitch/ofp-actions.h(662,19): error: static_assert expression is not an integral constant expression
BUILD_ASSERT_DECL(offsetof(struct ofpact_nest, actions) % OFPACT_ALIGNTO == 0);
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include\openvswitch/compiler.h(250,5): note: expanded from macro 'offsetof'
    ((size_t)((char *)&(((type *)0)->member) - (char *)0))
    ^
./include\openvswitch/compiler.h(269,48): note: expanded from macro 'BUILD_ASSERT_DECL'
#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)
                                               ^~~~
./include\openvswitch/ofp-actions.h(662,19): note: cast that performs the conversions of a reinterpret_cast is not allowed in a
In file included from       lib/bfd.cconstant: 36expression:

In file included from ./lib/odp-util.h./include\openvswitch/compiler.h:(27250:
,./include\openvswitch/ofp-actions.h15()552:, 19)note::  expanded errorfrom:  macrostatic_assert expression  is'offsetof'
not    ((size_t)((char *)&(((type *)0)->member) - (char *)0))
an              ^
integral constant expressionIn file included from
lib/bundle.cBUILD_ASSERT_DECL(offsetof(struct ofpact_set_field, value):
31~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~:

./include\openvswitch/ofp-actions.h(./include\openvswitch/compiler.h(663250,,195))::  note: errorexpanded:  from macrostatic_assert
  'offsetof'expression
     ((size_t)((char *)&(((type *)0)->member) - (char *)0))
is    ^
 not./include\openvswitch/compiler.h (an269 ,integral48 )constant expression:
 BUILD_ASSERT_DECL(offsetof(struct ofpact_nest, actions)
note~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~:
expanded ./include\openvswitch/compiler.hfrom( 250macro, 'BUILD_ASSERT_DECL'5
)#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR):
                                                ^~~~
note: ./include\openvswitch/ofp-actions.hexpanded from macro 'offsetof'(
552    ((size_t)((char *)&(((type *)0)->member) - (char *)0))
,    ^
19)./include\openvswitch/compiler.h(269,48): : note: noteexpanded : from macrocast  'BUILD_ASSERT_DECL'that
 #define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)performs
                                                ^~~~
the ./include\openvswitch/ofp-actions.hconversions( 663of,19 )a:  reinterpret_castnote : iscast that  notperforms  allowedthe  inco
nversions  aof
       aconstant  reinterpret_castexpression
is not allowed in./include\openvswitch/compiler.h (a250
,      15constant) :expression
note./include\openvswitch/compiler.h: (expanded250 ,from15 )macro:  'offsetof'note:
expanded    ((size_t)((char *)&(((type *)0)->member) - (char *)0))
from              ^ macro 'offsetof'

    ((size_t)((char *)&(((type *)0)->member) - (char *)0))
              ^
In file included from lib/bfd.c:36:
In file included from ./lib/odp-util.h:27:
./include\openvswitch/ofp-actions.h(In file included from 554lib/bundle.c,:31:
19./include\openvswitch/ofp-actions.h)(:711 ,19error): : static_asserterror : expression static_assertis  expressionnot  isan  noti
ntegral  anconstant  integralexpression
constantBUILD_ASSERT_DECL(offsetof(struct ofpact_set_field, value) expression

~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~BUILD_ASSERT_DECL(offsetof(struct ofpact_conntrack, actions)

./include\openvswitch/compiler.h~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(250,
5): ./include\openvswitch/compiler.h(250,note5: )expanded: note:  expanded from macrofrom  'offsetof'macro
 'offsetof'    ((size_t)((char *)&(((type *)0)->member) - (char *)0))

    ((size_t)((char *)&(((type *)0)->member) - (char *)0))    ^

    ^
./include\openvswitch/compiler.h(./include\openvswitch/compiler.h269(,26948,)48:) : note: noteexpanded:  expandedfrom  frommacro  m
acro'BUILD_ASSERT_DECL'
'BUILD_ASSERT_DECL'#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)

#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)                                               ^~~~

                                               ^~~~
./include\openvswitch/ofp-actions.h(./include\openvswitch/ofp-actions.h711(,55419,)19:):  note: notecast:  castthat  thatperforms
performsthe  theconversions  conversionsof  ofa a  reinterpret_castreinterpret_cast  isis not  notallowed  allowedin  ina
a
constant       constantexpression
expression./include\openvswitch/compiler.h
(250./include\openvswitch/compiler.h(,25015,)15:):  notenote: : expandedexpanded  fromfrom macro  'offsetof'macro
     ((size_t)((char *)&(((type *)0)->member) - (char *)0))'offsetof'

              ^    ((size_t)((char *)&(((type *)0)->member) - (char *)0))

              ^
In file included from lib/bundle.c:31:
./include\openvswitch/ofp-actions.h(713,19): error: static_assert expression is not anIn file included from  lib/bfd.cintegral: con
stant expression36
:
BUILD_ASSERT_DECL(offsetof(struct ofpact_conntrack, actions)In file included from
./lib/odp-util.h~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~:
27:
./include\openvswitch/compiler.h./include\openvswitch/ofp-actions.h((250,5): 662note: ,expanded 19from) macro:  'offsetof'error
:     ((size_t)((char *)&(((type *)0)->member) - (char *)0))
static_assert    ^
expression ./include\openvswitch/compiler.his( 269not, an48) :integral  constantnote:  expandedexpression
fromBUILD_ASSERT_DECL(offsetof(struct ofpact_nest, actions) % OFPACT_ALIGNTO == 0);
 macro ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'BUILD_ASSERT_DECL'

#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)
./include\openvswitch/compiler.h                                               ^~~~(
250,./include\openvswitch/ofp-actions.h5(713,19))::  note: notecast that performs : theexpanded  conversionsfrom  ofmacro  a'offset
of'
reinterpret_cast    ((size_t)((char *)&(((type *)0)->member) - (char *)0))
is    ^
not ./include\openvswitch/compiler.hallowed( 269in, 48a)
:       constant noteexpression:
expanded ./include\openvswitch/compiler.h(from250 ,macro15 )'BUILD_ASSERT_DECL':
note: #define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)expanded
                                                ^~~~from
 macro./include\openvswitch/ofp-actions.h 'offsetof'(
662    ((size_t)((char *)&(((type *)0)->member) - (char *)0)),
19              ^)
: note: cast that performs the conversions of a reinterpret_cast is not allowed in a
      constant expression
./include\openvswitch/compiler.h(250,15): note: expanded from macro 'offsetof'
    ((size_t)((char *)&(((type *)0)->member) - (char *)0))
              ^
In file included from lib/bundle.c:31In file included from :
lib/bfd.c./include\openvswitch/ofp-actions.h:(361315,1):
:In file included from  ./lib/odp-util.h:error: 27:
static_assert./include\openvswitch/ofp-actions.h (expression663 ,is not 19an) integral constant :expression
errorOFPACTS:
static_assert^~~~~~~
expression ./include\openvswitch/ofp-actions.h(64,5is) :not  notean:  expandedintegral  fromconstant  macroexpression 'OFPACTS'

BUILD_ASSERT_DECL(offsetof(struct ofpact_nest, actions)
    OFPACT(OUTPUT,          ofpact_output,      ofpact, "output")       \
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

./include\openvswitch/compiler.h(./include\openvswitch/ofp-actions.h250(,12645,23))::  notenote: : expandedexpanded  fromfrom  macr
omacro  'offsetof''OFPACT'

    ((size_t)((char *)&(((type *)0)->member) - (char *)0))    BUILD_ASSERT_DECL(offsetof(struct STRUCT, ofpact) == 0);            \

    ^    ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

./include\openvswitch/compiler.h(./include\openvswitch/compiler.h269(,25048,)5:) : note: noteexpanded:  expandedfrom  frommacro  ma
cro'BUILD_ASSERT_DECL'
'offsetof'#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)

    ((size_t)((char *)&(((type *)0)->member) - (char *)0))                                               ^~~~

    ^
./include\openvswitch/ofp-actions.h(663,19./include\openvswitch/compiler.h)(:269 ,48note): :cast  thatnote : performsexpanded  thef
rom  conversionsmacro  of'BUILD_ASSERT_DECL'
a#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)
reinterpret_cast                                               ^~~~
is ./include\openvswitch/ofp-actions.hnot( 1315allowed, 1in) :a
      noteconstant:  cannotexpression
access ./include\openvswitch/compiler.hfield( 250of, 15null )pointer:
 ./include\openvswitch/ofp-actions.h(note64: ,expanded5 )from:  macro note'offsetof':
expanded    ((size_t)((char *)&(((type *)0)->member) - (char *)0)) from
macro              ^
'OFPACTS'
    OFPACT(OUTPUT,          ofpact_output,      ofpact, "output")       \
    ^
./include\openvswitch/ofp-actions.h(1264,47): In file included from lib/bfd.cnote:: 36expanded:
 In file included from from./lib/odp-util.h macro 'OFPACT':
27    BUILD_ASSERT_DECL(offsetof(struct STRUCT, ofpact) == 0);            \:

./include\openvswitch/ofp-actions.h                                              ^(
711,19): error: ./include\openvswitch/ofp-actions.h(static_assert1315 ,expression1 ):is  noterror : an static_assertintegral  expre
ssionconstant expression
isBUILD_ASSERT_DECL(offsetof(struct ofpact_conntrack, actions) not
an~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
integral ./include\openvswitch/compiler.hconstant expression(
250,OFPACTS
5^~~~~~~
):./include\openvswitch/ofp-actions.h( 64,note5: )expanded:  from macronote : 'offsetof'expanded
     ((size_t)((char *)&(((type *)0)->member) - (char *)0))from macro 'OFPACTS'

    ^    OFPACT(OUTPUT,          ofpact_output,      ofpact, "output")       \

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include\openvswitch/compiler.h(./include\openvswitch/ofp-actions.h269(,127148,)23): : note: noteexpanded from : macroexpanded  'O
FPACT'from
     BUILD_ASSERT_DECL(offsetof(struct STRUCT, MEMBER)                   \macro
     ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'BUILD_ASSERT_DECL'./include\openvswitch/compiler.h
(#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)250
,                                               ^~~~
5)./include\openvswitch/ofp-actions.h:( 711,note19: ):expanded  fromnote : macrocast  'offsetof'that
     ((size_t)((char *)&(((type *)0)->member) - (char *)0))performs
     ^the
 conversions./include\openvswitch/compiler.h (of a 269reinterpret_cast, 48is) :not  allowednote : inexpanded  afrom macro
'BUILD_ASSERT_DECL'
constant#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)
expression                                               ^~~~

./include\openvswitch/ofp-actions.h./include\openvswitch/compiler.h((1315250,,115))::  note: notecannot:  expandedaccess  fromfield
  ofmacro  'offsetof'null
     ((size_t)((char *)&(((type *)0)->member) - (char *)0))pointer

              ^
./include\openvswitch/ofp-actions.h(64,49)In file included from :lib/bfd.c :36note:
: In file included from expanded ./lib/odp-util.hfrom: 27macro:
 'OFPACTS'./include\openvswitch/ofp-actions.h
(    OFPACT(OUTPUT,          ofpact_output,      ofpact, "output")       \713
,                                                ^19
): error: ./include\openvswitch/ofp-actions.hstatic_assert( 1315expression, 1is) :not  anerror:  integralstatic_assert  constantexp
ression  expressionis not an integral
 BUILD_ASSERT_DECL(offsetof(struct ofpact_conntrack, actions)constant
 ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~expression

./include\openvswitch/compiler.hOFPACTS
(^~~~~~~250
,5): ./include\openvswitch/ofp-actions.h(note64: ,expanded5 )from:  macro note: 'offsetof'expanded
from    ((size_t)((char *)&(((type *)0)->member) - (char *)0)) macro
     ^'OFPACTS'

./include\openvswitch/compiler.h    OFPACT(OUTPUT,          ofpact_output,      ofpact, "output")       \
(    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
269,./include\openvswitch/ofp-actions.h48()1276:, 23)note::  expanded notefrom:  macroexpanded  'BUILD_ASSERT_DECL'from
macro#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)
'OFPACT'                                               ^~~~

    BUILD_ASSERT_DECL(!offsetof(struct STRUCT, MEMBER)                  \
./include\openvswitch/ofp-actions.h    ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(
713,./include\openvswitch/compiler.h19()269:, 48note): :cast  that noteperforms the : conversionsexpanded  offrom  amacro  reinterp
ret_cast is not 'BUILD_ASSERT_DECL'allowed
 #define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)in
                                                ^~~~
a
./include\openvswitch/ofp-actions.h      (constant1315 expression,
1): ./include\openvswitch/compiler.h(note250: ,cannot15 )access: field  ofnote : nullexpanded  pointerfrom
 macro ./include\openvswitch/ofp-actions.h(64'offsetof',
49    ((size_t)((char *)&(((type *)0)->member) - (char *)0)))
:              ^
note: expanded from macro 'OFPACTS'
    OFPACT(OUTPUT,          ofpact_output,      ofpact, "output")       \
                                                ^
./include\openvswitch/ofp-actions.h(1315,1): error: static_assert expression is not an integral constant expression
OFPACTS
In file included from ^~~~~~~lib/bfd.c
:36:
./include\openvswitch/ofp-actions.hIn file included from (./lib/odp-util.h65:27:
,./include\openvswitch/ofp-actions.h5(1315),:1 ):note : error: expanded static_assertfrom  expressionmacro  is'OFPACTS'
not    OFPACT(GROUP,           ofpact_group,       ofpact, "group")        \
an    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 integral./include\openvswitch/ofp-actions.h (constant1264 ,expression23
)OFPACTS:
 ^~~~~~~
note: ./include\openvswitch/ofp-actions.hexpanded( 64from, 5macro) :'OFPACT'
note    BUILD_ASSERT_DECL(offsetof(struct STRUCT, ofpact) == 0);            \:
expanded    ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ from
macro ./include\openvswitch/compiler.h'OFPACTS'(250
,5):     OFPACT(OUTPUT,          ofpact_output,      ofpact, "output")       \
note    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~:
expanded ./include\openvswitch/ofp-actions.h(from1264 ,macro23 )'offsetof':
     ((size_t)((char *)&(((type *)0)->member) - (char *)0))
note    ^:
expanded ./include\openvswitch/compiler.hfrom( 269macro,48) :'OFPACT'
note    BUILD_ASSERT_DECL(offsetof(struct STRUCT, ofpact) == 0);            \
:     ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~expanded
 from./include\openvswitch/compiler.h macro( 250'BUILD_ASSERT_DECL',5)
:#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)
note                                               ^~~~
: expanded./include\openvswitch/ofp-actions.h (from1315 ,macro1 )'offsetof':
     ((size_t)((char *)&(((type *)0)->member) - (char *)0))
note    ^:
cannot ./include\openvswitch/compiler.haccess( 269field, 48of) null:  pointernote
: ./include\openvswitch/ofp-actions.hexpanded( 65from,5 )macro: 'BUILD_ASSERT_DECL'
note#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR):
expanded                                               ^~~~
 from./include\openvswitch/ofp-actions.h macro 'OFPACTS'(
1315    OFPACT(GROUP,           ofpact_group,       ofpact, "group")        \,
1    ^
):./include\openvswitch/ofp-actions.h (1264note: ,cannot47 ): access notefield:  expandedof  fromnull  macropointer
'OFPACT'./include\openvswitch/ofp-actions.h
(    BUILD_ASSERT_DECL(offsetof(struct STRUCT, ofpact) == 0);            \64
,5                                              ^)
: note: expanded from./include\openvswitch/ofp-actions.h( 1315macro, 1'OFPACTS')
:    OFPACT(OUTPUT,          ofpact_output,      ofpact, "output")       \
error    ^:
static_assert ./include\openvswitch/ofp-actions.hexpression( 1264is,47):  notnote : anexpanded integral  fromconstant expression
macroOFPACTS
'OFPACT'^~~~~~~

    BUILD_ASSERT_DECL(offsetof(struct STRUCT, ofpact) == 0);            \
./include\openvswitch/ofp-actions.h(65,5):                                               ^note:
expanded from macro 'OFPACTS'
    OFPACT(GROUP,           ofpact_group,       ofpact, "group")        \./include\openvswitch/ofp-actions.h
(    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1315,./include\openvswitch/ofp-actions.h1()1271:, 23)error::  static_assert expression noteis : notexpanded an  fromintegral  const
antmacro  expression'OFPACT'

OFPACTS
    BUILD_ASSERT_DECL(offsetof(struct STRUCT, MEMBER)                   \^~~~~~~

    ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include\openvswitch/ofp-actions.h(64,./include\openvswitch/compiler.h5()250:, 5):note : noteexpanded:  fromexpanded  frommacro  m
acro 'OFPACTS''offsetof'

    ((size_t)((char *)&(((type *)0)->member) - (char *)0))    OFPACT(OUTPUT,          ofpact_output,      ofpact, "output")       \

    ^    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

./include\openvswitch/compiler.h./include\openvswitch/ofp-actions.h((2691271,,4823):) : note: noteexpanded:  expandedfrom macro 'OF
PACT'
from    BUILD_ASSERT_DECL(offsetof(struct STRUCT, MEMBER)                   \
macro    ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 'BUILD_ASSERT_DECL'./include\openvswitch/compiler.h(250,5):
note: #define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)expanded
                                                ^~~~from macro 'offsetof'

    ((size_t)((char *)&(((type *)0)->member) - (char *)0))./include\openvswitch/ofp-actions.h
(    ^
1315,./include\openvswitch/compiler.h1()269,:48 ): note: notecannot:  expandedaccess  fromfield of  macronull  'BUILD_ASSERT_DECL'p
ointer

#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)
./include\openvswitch/ofp-actions.h                                               ^~~~(
65,./include\openvswitch/ofp-actions.h49()1315:, 1)note::  expanded notefrom:  cannotmacro access 'OFPACTS'
field    OFPACT(GROUP,           ofpact_group,       ofpact, "group")        \ of
null                                                ^
pointer
./include\openvswitch/ofp-actions.h(64,49./include\openvswitch/ofp-actions.h)(:1315 ,1note: )expanded: from macro  'OFPACTS'error
:     OFPACT(OUTPUT,          ofpact_output,      ofpact, "output")       \
static_assert                                                ^
expression is not an./include\openvswitch/ofp-actions.h (integral constant1315 ,expression1
)OFPACTS
:^~~~~~~
error: ./include\openvswitch/ofp-actions.h(65static_assert, 5expression) is not:  annote : integralexpanded  constantfrom  expressi
onmacro
 OFPACTS'OFPACTS'

^~~~~~~    OFPACT(GROUP,           ofpact_group,       ofpact, "group")        \

./include\openvswitch/ofp-actions.h(    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~64
,5):./include\openvswitch/ofp-actions.h (1276note,23): : noteexpanded:  expandedfrom  frommacro  'OFPACTS'macro
     OFPACT(OUTPUT,          ofpact_output,      ofpact, "output")       \'OFPACT'

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    BUILD_ASSERT_DECL(!offsetof(struct STRUCT, MEMBER)
      \

./include\openvswitch/ofp-actions.h    ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(
1276,./include\openvswitch/compiler.h(269,4823): ):note:  expanded notefrom:  expanded from macro 'OFPACT'macro
     BUILD_ASSERT_DECL(!offsetof(struct STRUCT, MEMBER)                  \
'BUILD_ASSERT_DECL'    ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

./include\openvswitch/compiler.h(269#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR),48)
:                                               ^~~~
 ./include\openvswitch/ofp-actions.h(1315,note1: )expanded:  from macro 'BUILD_ASSERT_DECL'note
: #define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)cannot
                                                ^~~~access
 field./include\openvswitch/ofp-actions.h (1315,1): of note: nullcannot access  fieldpointer
of ./include\openvswitch/ofp-actions.hnull pointer(
65./include\openvswitch/ofp-actions.h(,6449):, 49)note: : noteexpanded:  expandedfrom from macro  'OFPACTS'macro
     OFPACT(OUTPUT,          ofpact_output,      ofpact, "output")       \
'OFPACTS'                                                ^

    OFPACT(GROUP,           ofpact_group,       ofpact, "group")        \
                                                ^
./include\openvswitch/ofp-actions.h(1315,1): error: ./include\openvswitch/ofp-actions.h(static_assert1315 expression, 1is not an) :
integral  constanterror : expressionstatic_assert
 OFPACTSexpression
 ^~~~~~~is
 not ./include\openvswitch/ofp-actions.han( 65integral,5):  constantnote:  expandedexpression
from macro 'OFPACTS'OFPACTS

    OFPACT(GROUP,           ofpact_group,       ofpact, "group")        \
^~~~~~~    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

./include\openvswitch/ofp-actions.h./include\openvswitch/ofp-actions.h((1264,23): 66note: ,expanded from 5macro 'OFPACT')
:    BUILD_ASSERT_DECL(offsetof(struct STRUCT, ofpact) == 0);            \
     ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: ./include\openvswitch/compiler.hexpanded( 250from, 5macro )'OFPACTS':
     OFPACT(CONTROLLER,      ofpact_controller,  userdata, "controller") \note
:     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
expanded ./include\openvswitch/ofp-actions.hfrom( 1264macro ,'offsetof'
23    ((size_t)((char *)&(((type *)0)->member) - (char *)0)))
:    ^
note: ./include\openvswitch/compiler.hexpanded( 269from, 48macro) :'OFPACT'
note:     BUILD_ASSERT_DECL(offsetof(struct STRUCT, ofpact) == 0);            \
expanded    ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
from macro./include\openvswitch/compiler.h ('BUILD_ASSERT_DECL'250
,#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)5
)                                               ^~~~
: ./include\openvswitch/ofp-actions.h(note1315: ,expanded1 )from:  macronote:  cannot'offsetof'
access    ((size_t)((char *)&(((type *)0)->member) - (char *)0))
field     ^of
 null pointer./include\openvswitch/compiler.h(
269,48./include\openvswitch/ofp-actions.h)(:65 ,5note): : noteexpanded:  expandedfrom  macrofrom  'BUILD_ASSERT_DECL'macro
 #define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)'OFPACTS'

                                               ^~~~    OFPACT(GROUP,           ofpact_group,       ofpact, "group")        \

./include\openvswitch/ofp-actions.h    ^(
1315,./include\openvswitch/ofp-actions.h1()1264,:47 ):note : notecannot:  expandedaccess  field fromof null macro  'OFPACT'pointer

    BUILD_ASSERT_DECL(offsetof(struct STRUCT, ofpact) == 0);            \
./include\openvswitch/ofp-actions.h                                              ^(
66,5): note: ./include\openvswitch/ofp-actions.hexpanded (from1315 ,macro1 )'OFPACTS':
     OFPACT(CONTROLLER,      ofpact_controller,  userdata, "controller") \
error    ^:
static_assert ./include\openvswitch/ofp-actions.hexpression( is not an 1264integral, 47constant )expression:
 OFPACTS
note^~~~~~~:
expanded ./include\openvswitch/ofp-actions.hfrom( 65macro, 'OFPACT'5
)    BUILD_ASSERT_DECL(offsetof(struct STRUCT, ofpact) == 0);            \:
                                               ^
note: expanded from macro 'OFPACTS'./include\openvswitch/ofp-actions.h
(    OFPACT(GROUP,           ofpact_group,       ofpact, "group")        \
1315    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
,1./include\openvswitch/ofp-actions.h)(:1271 ,23error): : static_assert expressionnote is : notexpanded  anfrom  integralmacro  'OF
PACT'constant
     BUILD_ASSERT_DECL(offsetof(struct STRUCT, MEMBER)                   \expression

    ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~OFPACTS

./include\openvswitch/compiler.h(250^~~~~~~,
5):./include\openvswitch/ofp-actions.h (66note,: 5expanded) :from  macronote : 'offsetof'expanded
     ((size_t)((char *)&(((type *)0)->member) - (char *)0))from
     ^macro
 'OFPACTS'./include\openvswitch/compiler.h
(    OFPACT(CONTROLLER,      ofpact_controller,  userdata, "controller") \269
,    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~48
):./include\openvswitch/ofp-actions.h (1271note: ,expanded23 )from:  macro note'BUILD_ASSERT_DECL':
expanded#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)
from                                               ^~~~
macro ./include\openvswitch/ofp-actions.h'OFPACT'(
1315    BUILD_ASSERT_DECL(offsetof(struct STRUCT, MEMBER)                   \,
1    ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~)
: ./include\openvswitch/compiler.h(note: 250cannot, 5): access field noteof:  expandednull  frompointer
macro ./include\openvswitch/ofp-actions.h'offsetof'(
65    ((size_t)((char *)&(((type *)0)->member) - (char *)0)),
49    ^)
: ./include\openvswitch/compiler.h(note269: ,expanded48 )from:  macro note'OFPACTS':
expanded    OFPACT(GROUP,           ofpact_group,       ofpact, "group")        \
from                                                ^
 macro 'BUILD_ASSERT_DECL'
#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)./include\openvswitch/ofp-actions.h
(                                               ^~~~1315
,1): ./include\openvswitch/ofp-actions.h(error1315: ,1static_assert) :expression is not an  integral noteconstant:  cast expression
that
 OFPACTSperforms
 ^~~~~~~the
 conversions./include\openvswitch/ofp-actions.h (of65 ,a5 )reinterpret_cast:  is notenot:  expandedallowed  fromin  macroa
'OFPACTS'
constant    OFPACT(GROUP,           ofpact_group,       ofpact, "group")        \
expression    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

./include\openvswitch/ofp-actions.h(1276,23./include\openvswitch/ofp-actions.h)(:66 ,5note): :expanded  fromnote : macroexpanded  '
OFPACT'from macro
 'OFPACTS'    BUILD_ASSERT_DECL(!offsetof(struct STRUCT, MEMBER)                  \

    OFPACT(CONTROLLER,      ofpact_controller,  userdata, "controller") \    ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~

    ^
./include\openvswitch/compiler.h./include\openvswitch/ofp-actions.h((2691271,,4823))::  note: note: expandedexpanded  fromfrom  mac
romacro  'BUILD_ASSERT_DECL''OFPACT'

#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)
    BUILD_ASSERT_DECL(offsetof(struct STRUCT, MEMBER)                   \
                                               ^~~~                      ^

./include\openvswitch/ofp-actions.h./include\openvswitch/compiler.h(250,15)(:1315 ,1note): :expanded from macro  'offsetof'note
:     ((size_t)((char *)&(((type *)0)->member) - (char *)0))cannot access
               ^field
 of null pointer
fatal error./include\openvswitch/ofp-actions.h: (65too, 49many):  errors emitted,note stopping : nowexpanded  [-ferror-limit=]from
 macro 'OFPACTS'
    OFPACT(GROUP,           ofpact_group,       ofpact, "group")        \
                                                ^
./include\openvswitch/ofp-actions.h(1315,1): error: static_assert expression is not an integral constant expression
OFPACTS
^~~~~~~
./include\openvswitch/ofp-actions.h(66,5): note: expanded from macro 'OFPACTS'
    OFPACT(CONTROLLER,      ofpact_controller,  userdata, "controller") \
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include\openvswitch/ofp-actions.h(1264,23): note: expanded from macro 'OFPACT'
    BUILD_ASSERT_DECL(offsetof(struct STRUCT, ofpact) == 0);            \
    ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include\openvswitch/compiler.h(250,5): note: expanded from macro 'offsetof'
    ((size_t)((char *)&(((type *)0)->member) - (char *)0))
    ^
./include\openvswitch/compiler.h(269,48): note: expanded from macro 'BUILD_ASSERT_DECL'
#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)
                                               ^~~~
./include\openvswitch/ofp-actions.h(1315,1): note: cannot access field of null pointer
./include\openvswitch/ofp-actions.h(66,5): note: expanded from macro 'OFPACTS'
    OFPACT(CONTROLLER,      ofpact_controller,  userdata, "controller") \
    ^
./include\openvswitch/ofp-actions.h(1264,47): note: expanded from macro 'OFPACT'
    BUILD_ASSERT_DECL(offsetof(struct STRUCT, ofpact) == 0);            \
                                              ^
./include\openvswitch/ofp-actions.h(1315,1): error: static_assert expression is not an integral constant expression
OFPACTS
^~~~~~~
./include\openvswitch/ofp-actions.h(66,5): note: expanded from macro 'OFPACTS'
    OFPACT(CONTROLLER,      ofpact_controller,  userdata, "controller") \
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include\openvswitch/ofp-actions.h(1271,23): note: expanded from macro 'OFPACT'
    BUILD_ASSERT_DECL(offsetof(struct STRUCT, MEMBER)                   \
    ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include\openvswitch/compiler.h(250,5): note: expanded from macro 'offsetof'
    ((size_t)((char *)&(((type *)0)->member) - (char *)0))
    ^
./include\openvswitch/compiler.h(269,48): note: expanded from macro 'BUILD_ASSERT_DECL'
#define BUILD_ASSERT_DECL(EXPR) _Static_assert(EXPR, #EXPR)
                                               ^~~~
./include\openvswitch/ofp-actions.h(1315,1): note: cast that performs the conversions of a reinterpret_cast is not allowed in a
      constant expression
./include\openvswitch/ofp-actions.h(66,5): note: expanded from macro 'OFPACTS'
    OFPACT(CONTROLLER,      ofpact_controller,  userdata, "controller") \
    ^
./include\openvswitch/ofp-actions.h(1271,23): note: expanded from macro 'OFPACT'
    BUILD_ASSERT_DECL(offsetof(struct STRUCT, MEMBER)                   \
                      ^
./include\openvswitch/compiler.h(250,15): note: expanded from macro 'offsetof'
    ((size_t)((char *)&(((type *)0)->member) - (char *)0))
              ^
williamtu commented 3 years ago

after fixing the offsetof.


./lib/tun-metadata.h(40,6): warning: forward references to 'enum' types are a Microsoft extension
      [-Wmicrosoft-enum-forward-reference]
enum ofperr tun_metadata_table_mod(struct ofputil_tlv_table_mod *,
     ^
In file included from lib/smap.c:22:
./lib/packets.h(189,49): warning: unused parameter 'md' [-Wunused-parameter]
pkt_metadata_prefetch_init(struct pkt_metadata *md)
                                                ^
2 warnings generated.
libtool: compile:  clang-cl -DHAVE_CONFIG_H -I. -I ./include/windows -I ./datapath-windows/include -Ic:/PTHREADS-BUILT/include -O2
-I ./include -I ./include -I ./lib -I ./lib -Wstrict-prototypes -Wextra -Wno-sign-compare -Wpointer-arith -Wformat -Wformat-securit
y -Wswitch-enum -Wunused-parameter -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes
 -Wmissing-field-initializers -Wthread-safety -fno-strict-aliasing -Wswitch-bool -Wlogical-not-parentheses -Wsizeof-array-argument
-Wshift-negative-value -Qunused-arguments -Wshadow -Wno-null-pointer-arithmetic -Warray-bounds-pointer-arithmetic -DHAVE_AVX512F -c
 -showIncludes lib/smap.c -o lib/smap.obj
source='lib/sort.c' object='lib/sort.lo' libtool=yes \
DEPDIR=.deps depmode=msvc7 /bin/sh ./build-aux/depcomp \
/bin/sh ./libtool  --tag=CC   --mode=compile clang-cl -DHAVE_CONFIG_H -I.   -I ./include/windows -I ./datapath-windows/include -Ic:
/PTHREADS-BUILT/include -O2 -I ./include -I ./include -I ./lib -I ./lib    -Wstrict-prototypes -Wextra -Wno-sign-compare -Wpointer-
arith -Wformat -Wformat-security -Wswitch-enum -Wunused-parameter -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wold-style-
definition -Wmissing-prototypes -Wmissing-field-initializers -Wthread-safety -fno-strict-aliasing -Wswitch-bool -Wlogical-not-paren
theses -Wsizeof-array-argument -Wshift-negative-value -Qunused-arguments -Wshadow -Wno-null-pointer-arithmetic -Warray-bounds-point
er-arithmetic    -DHAVE_AVX512F -c -o lib/sort.lo lib/sort.c
In file included from lib/socket-util.c:18:
./lib/socket-util.h(68,45): warning: declaration of 'struct timespec' will not be visible outside of this function [-Wvisibility]
int get_mtime(const char *file_name, struct timespec *mtime);
                                            ^
./lib/socket-util.h(148,40): warning: unused parameter 'style' [-Wunused-parameter]
static inline int make_unix_socket(int style, bool nonblock,
                                       ^
./lib/socket-util.h(148,52): warning: unused parameter 'nonblock' [-Wunused-parameter]
static inline int make_unix_socket(int style, bool nonblock,
                                                   ^
./lib/socket-util.h(149,48): warning: unused parameter 'bind_path' [-Wunused-parameter]
                                   const char *bind_path,
                                               ^
./lib/socket-util.h(150,48): warning: unused parameter 'connect_path' [-Wunused-parameter]
                                   const char *connect_path)
                                               ^
In file included from lib/socket-util.c:37:
./include/windows\unistd.h(97,25): warning: cast from function call of type 'intptr_t' (aka 'long long') to non-matching type
      'HANDLE' (aka 'void *') [-Wbad-function-cast]
    HANDLE h = (HANDLE) _get_osfhandle(fd);
                        ^~~~~~~~~~~~~~~~~~
In file included from lib/socket-util.c:39:
In file included from ./lib/ovs-thread.h:20:
In file included from c:/PTHREADS-BUILT/include\pthread.h:72:
c:/PTHREADS-BUILT/include\_ptw32.h(120,15): warning: 'HAVE_STRUCT_TIMESPEC' macro redefined [-Wmacro-redefined]
#      define HAVE_STRUCT_TIMESPEC
              ^
.\config.h(202,9): note: previous definition is here
#define HAVE_STRUCT_TIMESPEC 1
        ^
In file included from lib/socket-util.c:40:
In file included from ./lib/packets.h:32:
./lib/tun-metadata.h(40,6): warning: forward references to 'enum' types are a Microsoft extension
      [-Wmicrosoft-enum-forward-reference]
enum ofperr tun_metadata_table_mod(struct ofputil_tlv_table_mod *,
     ^
In file included from lib/socket-util.c:40:
./lib/packets.h(189,49): warning: unused parameter 'md' [-Wunused-parameter]
pkt_metadata_prefetch_init(struct pkt_metadata *md)
                                                ^
lib/socket-util.c(167,30): warning: incompatible pointer types passing 'ULONG *' (aka 'unsigned long *') to parameter of type
      'ovs_be32 *' (aka 'unsigned int *') [-Wincompatible-pointer-types]
    if (!ip_parse(host_name, &addr->s_addr)) {
                             ^~~~~~~~~~~~~
./lib/packets.h(678,40): note: passing argument to parameter 'ip' here
bool ip_parse(const char *s, ovs_be32 *ip);
                                       ^
lib/socket-util.c(204,29): warning: incompatible pointer types passing 'ULONG *' (aka 'unsigned long *') to parameter of type
      'ovs_be32 *' (aka 'unsigned int *') [-Wincompatible-pointer-types]
    if (ip_parse(host_name, &addr->s_addr)) {
                            ^~~~~~~~~~~~~
./lib/packets.h(678,40): note: passing argument to parameter 'ip' here
bool ip_parse(const char *s, ovs_be32 *ip);
                                       ^
lib/socket-util.c(330,13): warning: 'read' is deprecated: The POSIX name for this item is deprecated. Instead, use the ISO C and
      C++ conformant name: _read. See online help for details. [-Wdeprecated-declarations]
        if (read(fd, buffer, sizeof buffer) <= 0) {
            ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt_io.h(522,9): note: 'read' has been explicitly marked
      deprecated here
        _CRT_NONSTDC_DEPRECATE(_read)
        ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt.h(335,50): note: expanded from macro
      '_CRT_NONSTDC_DEPRECATE'
        #define _CRT_NONSTDC_DEPRECATE(_NewName) _CRT_DEPRECATE_TEXT(             \
                                                 ^
c:\BuildTools\VC\Tools\MSVC\14.29.30037\include\vcruntime.h(310,47): note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
lib/socket-util.c(496,41): warning: incompatible pointer types passing 'ULONG *' (aka 'unsigned long *') to parameter of type
      'ovs_be32 *' (aka 'unsigned int *') [-Wincompatible-pointer-types]
        if (host_s && !ip_parse(host_s, &sin->sin_addr.s_addr)) {
                                        ^~~~~~~~~~~~~~~~~~~~~
./lib/packets.h(678,40): note: passing argument to parameter 'ip' here
bool ip_parse(const char *s, ovs_be32 *ip);
                                       ^
lib/socket-util.c(801,26): warning: 'read' is deprecated: The POSIX name for this item is deprecated. Instead, use the ISO C and
      C++ conformant name: _read. See online help for details. [-Wdeprecated-declarations]
        ssize_t retval = read(fd, p, size);
                         ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt_io.h(522,9): note: 'read' has been explicitly marked
      deprecated here
        _CRT_NONSTDC_DEPRECATE(_read)
        ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt.h(335,50): note: expanded from macro
      '_CRT_NONSTDC_DEPRECATE'
        #define _CRT_NONSTDC_DEPRECATE(_NewName) _CRT_DEPRECATE_TEXT(             \
                                                 ^
c:\BuildTools\VC\Tools\MSVC\14.29.30037\include\vcruntime.h(310,47): note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
lib/socket-util.c(822,26): warning: 'write' is deprecated: The POSIX name for this item is deprecated. Instead, use the ISO C and
      C++ conformant name: _write. See online help for details. [-Wdeprecated-declarations]
        ssize_t retval = write(fd, p, size);
                         ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt_io.h(557,24): note: 'write' has been explicitly marked
      deprecated here
        _Check_return_ _CRT_NONSTDC_DEPRECATE(_write)
                       ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\corecrt.h(335,50): note: expanded from macro
      '_CRT_NONSTDC_DEPRECATE'
        #define _CRT_NONSTDC_DEPRECATE(_NewName) _CRT_DEPRECATE_TEXT(             \
                                                 ^
c:\BuildTools\VC\Tools\MSVC\14.29.30037\include\vcruntime.h(310,47): note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
lib/socket-util.c(840,30): warning: unused parameter 'file_name' [-Wunused-parameter]
fsync_parent_dir(const char *file_name)
                             ^
lib/socket-util.c(875,1): error: conflicting types for 'get_mtime'
get_mtime(const char *file_name, struct timespec *mtime)
^
./lib/socket-util.h(68,5): note: previous declaration is here
int get_mtime(const char *file_name, struct timespec *mtime);
    ^
lib/socket-util.c(1028,17): warning: unused parameter 'fd' [-Wunused-parameter]
describe_fd(int fd)
                ^
17 warnings and 1 error generated.
libtool: compile:  clang-cl -DHAVE_CONFIG_H -I. -I ./include/windows -I ./datapath-windows/include -Ic:/PTHREADS-BUILT/include -O2
-I ./include -I ./include -I ./lib -I ./lib -Wstrict-prototypes -Wextra -Wno-sign-compare -Wpointer-arith -Wformat -Wformat-securit
y -Wswitch-enum -Wunused-parameter -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes
 -Wmissing-field-initializers -Wthread-safety -fno-strict-aliasing -Wswitch-bool -Wlogical-not-parentheses -Wsizeof-array-argument
-Wshift-negative-value -Qunused-arguments -Wshadow -Wno-null-pointer-arithmetic -Warray-bounds-pointer-arithmetic -DHAVE_AVX512F -c
 -showIncludes lib/socket-util.c -o lib/socket-util.obj
make[2]: *** [Makefile:4599: lib/socket-util.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
libtool: compile:  clang-cl -DHAVE_CONFIG_H -I. -I ./include/windows -I ./datapath-windows/include -Ic:/PTHREADS-BUILT/include -O2
-I ./include -I ./include -I ./lib -I ./lib -Wstrict-prototypes -Wextra -Wno-sign-compare -Wpointer-arith -Wformat -Wformat-securit
y -Wswitch-enum -Wunused-parameter -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes
 -Wmissing-field-initializers -Wthread-safety -fno-strict-aliasing -Wswitch-bool -Wlogical-not-parentheses -Wsizeof-array-argument
-Wshift-negative-value -Qunused-arguments -Wshadow -Wno-null-pointer-arithmetic -Warray-bounds-pointer-arithmetic -DHAVE_AVX512F -c
 -showIncludes lib/sort.c -o lib/sort.obj

make[2]: Leaving directory '/c/ovs'
make[1]: *** [Makefile:5360: all-recursive] Error 1
make[1]: Leaving directory '/c/ovs'
make: *** [Makefile:3048: all] Error 2