[ovs-dev] WINDOWS userspace build broken

Ankur Sharma ankursharma at vmware.com
Tue Aug 12 17:45:30 UTC 2014


Hi,

Just to add to it.
make distcheck is also failing with following error

ERROR: files left in build directory after distclean:
./lib/ofp-actions.inc1
./lib/ofp-actions.inc2


Regards,
Ankur
________________________________________
From: dev <dev-bounces at openvswitch.org> on behalf of Alin Serdean <aserdean at cloudbasesolutions.com>
Sent: Tuesday, August 12, 2014 10:39 AM
To: Ben Pfaff; dev at openvswitch.org
Subject: [ovs-dev] WINDOWS userspace build broken

Hi Ben,

I noticed today the windows build was broken.

Error is:
        source='lib/bundle.c' object='lib/bundle.lo' libtool=yes \
        DEPDIR=.deps depmode=none /bin/sh ./build-aux/depcomp \
        /bin/sh ./libtool  --tag=CC   --mode=compile ./build-aux/cccl -DHAVE_CON
FIG_H -I.   -I ./include/windows -I ./datapath-windows/include -IC:/pthread/incl
ude -I ./include -I ./include -I ./lib -I ./lib    -Wstrict-prototypes -Wall -We
xtra -Wno-sign-compare -Wpointer-arith -Wformat-security -Wno-format-zero-length
-Wswitch-enum -Wunused-parameter -Wstrict-aliasing -Wbad-function-cast -Wcast-a
lign -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-f
ield-initializers -Wthread-safety  -g -c -o lib/bundle.lo lib/bundle.c
libtool: compile:  ./build-aux/cccl -DHAVE_CONFIG_H -I. -I ./include/windows -I
./datapath-windows/include -IC:/pthread/include -I ./include -I ./include -I ./l
ib -I ./lib -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare -Wpointer-arith
-Wformat-security -Wno-format-zero-length -Wswitch-enum -Wunused-parameter -Wstr
ict-aliasing -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wold-style-de
finition -Wmissing-prototypes -Wmissing-field-initializers -Wthread-safety -g -c
lib/bundle.c
cl -nologo -EHsc -DHAVE_CONFIG_H -I. -I ./include/windows -I ./datapath-windows/
include -IC:/pthread/include -I ./include -I ./include -I ./lib -I ./lib -Zi -c
lib/bundle.c
bundle.c
c:\temp\12_08_2014\ovs\lib\hash.h(142) : warning C4028: formal parameter 1 diffe
rent from declaration
c:\temp\12_08_2014\ovs\lib\hash.h(148) : warning C4028: formal parameter 1 diffe
rent from declaration
c:\temp\12_08_2014\ovs\lib\hash.h(148) : warning C4028: formal parameter 2 diffe
rent from declaration
c:\temp\12_08_2014\ovs\lib\ofp-actions.h(465) : error C2229: struct 'ofpact_nest
' has an illegal zero-sized array
make[2]: *** [lib/bundle.lo] Error 1
make[2]: Leaving directory `/c/temp/12_08_2014/ovs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/temp/12_08_2014/ovs'
make: *** [all] Error 2

Expanding the problem a bit:
struct ofpact_nest {
    struct ofpact ofpact;
    uint8_t pad[PAD_SIZE(sizeof(struct ofpact), OFPACT_ALIGNTO)];
    struct ofpact actions[];
};
Means PAD_SIZE(sizeof(struct ofpact), OFPACT_ALIGNTO) turns out
to be 0 (https://urldefense.proofpoint.com/v1/url?u=http://msdn.microsoft.com/en-us/library/0scy7z2d.aspx&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=f6EhnZ0ORGZNt5QbYmRaOxfWfx%2Bqd3KEiPf3%2FYaollU%3D%0A&m=v1ApWvk72iuSCqa%2Bffhdc3CvkZGV2PnDHxacomH3bMw%3D%0A&s=d7dce791a5b5dec48629ebac311d9f7c378139dd3486d0139cec0858d5a800a6 ).

Commit  since build was broken:
c2d936a ofp-actions: Centralize all OpenFlow action code for maintainability.

Thanks,
Alin.
_______________________________________________
dev mailing list
dev at openvswitch.org
https://urldefense.proofpoint.com/v1/url?u=http://openvswitch.org/mailman/listinfo/dev&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=f6EhnZ0ORGZNt5QbYmRaOxfWfx%2Bqd3KEiPf3%2FYaollU%3D%0A&m=v1ApWvk72iuSCqa%2Bffhdc3CvkZGV2PnDHxacomH3bMw%3D%0A&s=9402ab68dc412e5e9a4cf3450f68614bb5d4c9ace6d568ac9aea4f6c87fde54a



More information about the dev mailing list