> -----Original Message----- > From: dev <ovs-dev-boun...@openvswitch.org> On Behalf Of Ben Pfaff > Sent: Friday, February 14, 2020 2:20 AM > To: William Tu <u9012...@gmail.com> > Cc: <d...@openvswitch.org> <d...@openvswitch.org>; Alin Gabriel Serdean > <aserd...@ovn.org> > Subject: Re: [ovs-dev] [PATCH RFC]: windows: cross-compile using mingw-w64 > gcc. > > On Thu, Feb 13, 2020 at 04:08:20PM -0800, William Tu wrote: > > On Thu, Feb 13, 2020 at 3:50 PM Ben Pfaff <b...@ovn.org> wrote: > > > > > > On Tue, Feb 11, 2020 at 11:13:35AM -0800, William Tu wrote: > > > > Currently we use MSVC to compile OVS on Windows. The patch tries > > > > to cross-compile OVS for windows using gcc from mingw-w64. > > > > The patch still shows lots of warnings I haven't fixed, but now it > > > > can generate all the .exe and I tested on windows 10 (no kernel > > > > module). [Alin Serdean] The patch as is will break MSVC though. > > > > > > I'm enthusiastic about supporting fewer families of compilers. MSVC > > > is very different from Clang and GCC. > > > > Yes, it also makes the build process simpler. > > > > One problem is that we have to compile the Windows kernel module, and > > it has to use MSVC. > > That should be solvable, since the Windows kernel module is quite separate > from the rest of the OVS code.
[Alin Serdean] Thanks a lot for the patch, but I'm not sure about this direction to be honest. It might be better to create a list of `pros` and `cons`. [Pros] Can be used to cross compile. [Cons] - It would create additional include issues, i.e. `unistd.h` is defined for mingw but not for MSVC. - Support/Security - what happens if we hit an issue with the compiler or libraries. I agree with Ben, it would be ideal to move to Clang at some point. This will help us in the long term and it will us also to cross compile. > > Yes, it also makes the build process simpler. Beside the need to have Windows to compile. Why is the current build process complex? -- Alin. _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev