On Fri, Jun 10, 2016 at 11:59 AM, Gregg Reynolds <dev at mobileink.com> wrote:
> Hi list, > > For the Darwin port I'm using c11/c++11. Works great on my mac, including > the Ubuntu I run in a VM. > > However, it makes Jenkins puke. Turns out there are (at least) two > problems: > > 1. On the Mac, Boost must be compiled with c++11 support. I use brew > boost so 'brew info boost' tells me I have that. I don't know of a way to > detect whether Boost was built with c++11 mode, > (forgot to mention "on Jenkins") > but I'm getting the following error: > > /usr/local/include/boost/mpl/sizeof.hpp:27:20: error: invalid application > of 'sizeof' to an incomplete type 'OC::OCRepresentation' > > and I found > http://stackoverflow.com/questions/18139710/using-c11-in-macos-x-and-compiled-boost-libraries-conundrum, > which makes me think that Jenkins is using a pre-c++11 Boost. > > 2. On Linux, I'm using Ubuntu 14.04, and it looks like Jenkins is in the > vicinity, but my gcc is version 4.8.4, whereas Jenkins has version 4.6.3 > (March 2012). This is a problem. The first feature-complete support for > c++11 came with version 4.8.1 (May 2013). > > One of the reasons I went with 100% c11/c++11 is because the codebase is > littered with a variety of modes, c99, gnu99, c++0x, etc. which seems > unseemly. c11/c++11 have been around for five years now, seems reasonable > to adopt them. Are there any issues that militate against this? > > What are the chances of getting an upgrade of Jenkins? I understand the > Linux Foundation babysits Jenkins but this is obviously an issue developers > have an interest in. > > Thanks, > > Gregg > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160610/719c5dee/attachment.html>
