Oooh, that would be great to make work. I'm so lazy, to start VMs when doing dev and light testing. :)
On Fri, Mar 11, 2016 at 9:20 AM, Russell Bryant <russ...@ovn.org> wrote: > On Thu, Mar 10, 2016 at 5:43 PM, Ben Pfaff <b...@ovn.org> wrote: > > > Has anyone tried building OVS on Mac OS X? If it built there, then we > > could enable OS X builds on travis, which would give us some BSD-style > > operating system test coverage. > > > > I don't have a Mac so I can't test this myself. > > > > I tried it on a mac I have at home. It failed. I have put in zero effort > trying to fix it, though. > > > libtool: compile: gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I > ./lib -I ./lib -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare > -Wpointer-arith -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 -Qunused-arguments -g -O2 -MT lib/bfd.lo -MD -MP -MF > lib/.deps/bfd.Tpo -c lib/bfd.c -o lib/bfd.o > In file included from lib/bfd.c:16: > In file included from ./lib/bfd.h:24: > In file included from ./lib/packets.h:32: > In file included from ./lib/unaligned.h:21: > ./lib/byte-order.h:27:1: error: expected ')' > htonll(uint64_t n) > ^ > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sys/_endian.h:141:25: > note: expanded from > macro 'htonll' > #define htonll(x) __DARWIN_OSSwapInt64(x) > ^ > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libkern/_OSByteOrder.h:78:30: > note: > expanded from macro '__DARWIN_OSSwapInt64' > (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : > _OSSwapInt64(x)) > ^ > ./lib/byte-order.h:27:1: note: to match this '(' > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sys/_endian.h:141:25: > note: expanded from > macro 'htonll' > #define htonll(x) __DARWIN_OSSwapInt64(x) > ^ > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libkern/_OSByteOrder.h:78:5: > note: expanded > from macro '__DARWIN_OSSwapInt64' > (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : > _OSSwapInt64(x)) > ^ > In file included from lib/bfd.c:16: > In file included from ./lib/bfd.h:24: > In file included from ./lib/packets.h:32: > In file included from ./lib/unaligned.h:21: > ./lib/byte-order.h:27:1: error: static declaration of > '__builtin_constant_p' follows non-static declaration > htonll(uint64_t n) > ^ > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sys/_endian.h:141:25: > note: expanded from > macro 'htonll' > #define htonll(x) __DARWIN_OSSwapInt64(x) > ^ > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libkern/_OSByteOrder.h:78:6: > note: expanded > from macro '__DARWIN_OSSwapInt64' > (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : > _OSSwapInt64(x)) > ^ > ./lib/util.h:366:13: note: previous implicit declaration is here > return (__builtin_constant_p(n <= UINT32_MAX) && n <= UINT32_MAX > ^ > In file included from lib/bfd.c:16: > In file included from ./lib/bfd.h:24: > In file included from ./lib/packets.h:32: > In file included from ./lib/unaligned.h:21: > ./lib/byte-order.h:27:1: error: definition of builtin function > '__builtin_constant_p' > htonll(uint64_t n) > ^ > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sys/_endian.h:141:25: > note: expanded from > macro 'htonll' > #define htonll(x) __DARWIN_OSSwapInt64(x) > ^ > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libkern/_OSByteOrder.h:78:6: > note: expanded > from macro '__DARWIN_OSSwapInt64' > (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : > _OSSwapInt64(x)) > ^ > In file included from lib/bfd.c:16: > In file included from ./lib/bfd.h:24: > In file included from ./lib/packets.h:32: > In file included from ./lib/unaligned.h:21: > ./lib/byte-order.h:33:1: error: expected ')' > ntohll(ovs_be64 n) > ^ > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sys/_endian.h:140:25: > note: expanded from > macro 'ntohll' > #define ntohll(x) __DARWIN_OSSwapInt64(x) > ^ > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libkern/_OSByteOrder.h:78:30: > note: > expanded from macro '__DARWIN_OSSwapInt64' > (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : > _OSSwapInt64(x)) > ^ > ./lib/byte-order.h:33:1: note: to match this '(' > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sys/_endian.h:140:25: > note: expanded from > macro 'ntohll' > #define ntohll(x) __DARWIN_OSSwapInt64(x) > ^ > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libkern/_OSByteOrder.h:78:5: > note: expanded > from macro '__DARWIN_OSSwapInt64' > (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : > _OSSwapInt64(x)) > ^ > In file included from lib/bfd.c:16: > In file included from ./lib/bfd.h:24: > In file included from ./lib/packets.h:32: > In file included from ./lib/unaligned.h:21: > ./lib/byte-order.h:33:1: error: static declaration of > '__builtin_constant_p' follows non-static declaration > ntohll(ovs_be64 n) > ^ > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sys/_endian.h:140:25: > note: expanded from > macro 'ntohll' > #define ntohll(x) __DARWIN_OSSwapInt64(x) > ^ > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libkern/_OSByteOrder.h:78:6: > note: expanded > from macro '__DARWIN_OSSwapInt64' > (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : > _OSSwapInt64(x)) > ^ > ./lib/util.h:366:13: note: previous implicit declaration is here > return (__builtin_constant_p(n <= UINT32_MAX) && n <= UINT32_MAX > ^ > In file included from lib/bfd.c:16: > In file included from ./lib/bfd.h:24: > In file included from ./lib/packets.h:32: > In file included from ./lib/unaligned.h:21: > ./lib/byte-order.h:33:1: error: definition of builtin function > '__builtin_constant_p' > ntohll(ovs_be64 n) > ^ > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sys/_endian.h:140:25: > note: expanded from > macro 'ntohll' > #define ntohll(x) __DARWIN_OSSwapInt64(x) > ^ > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libkern/_OSByteOrder.h:78:6: > note: expanded > from macro '__DARWIN_OSSwapInt64' > (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : > _OSSwapInt64(x)) > ^ > lib/bfd.c:1089:39: warning: format specifies type 'unsigned char' but the > argument has type 'int' [-Wformat] > bfd->name, message, p->vers_diag >> VERS_SHIFT, > ^~~~~~~~~~~~~~~~~~~~~~~~~~ > 1 warning and 6 errors generated. > make[2]: *** [lib/bfd.lo] Error 1 > make[1]: *** [all-recursive] Error 1 > make: *** [all] Error 2 > _______________________________________________ > dev mailing list > dev@openvswitch.org > http://openvswitch.org/mailman/listinfo/dev > _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev