Debian wheezy has gcc 4.6 which can be installed from the default repos (the package gcc-4.6) alongside GCC 4.7. Once installed you should be able to run:
export CXX=g++-4.6 export CC=gcc-4.6 ./configure Then do the rest of the normal build (I'd recommend some flags like --enable-optimize if you're going to be putting the resulting binary into production). The Mesosphere mesos debian wheezy packages are currently built that way. I don't see a JIRA about the gcc 4.7 thing currently, I'll ping the person who has been doing some research into enabling it and see what the status looks like (I suspect it won't land, if it is going to happen, until Mesos 0.23). On Thu, Jan 1, 2015 at 9:40 AM, Tomas Barton <[email protected]> wrote: > Hi Cody, > > thanks for an update! I've tried building Mesos 0.21 on Debian Wheezy (gcc > 4.7) which seems to be the only version that is currently not supported. > I've made incorrect conclusion that 4.7 is no longer supported. Is there an > issue in JIRA for this problem? > > Upgrading gcc on Wheezy is not really an option because it would require > upgrading libc and therefore too many components in the system. > > Tomas > > On 29 December 2014 at 19:40, Cody Maloney <[email protected]> wrote: > >> I made a mistake there. After the next release (0.22) then support for >> GCC 4.4 will be dropped. 0.21 and 0.22 should be compatible with GCC 4.4 - >> 4.9 (Excluding gcc 4.7, although hopefully that will be resolved before >> 0.22). >> >> On all these compilers we compile with C++11 support. Different code >> paths using more of C++11 are enabled when gcc 4.8+ is used. >> >> >> >> On Sat, Dec 27, 2014 at 10:11 AM, Cody Maloney <[email protected]> >> wrote: >> >>> Actually back to GCC 4.4 is going to be supported for Mesos 0.21. Post >>> 0.21 the plan is currently GCC 4.6 at a minimum, 4.7 if we can get that >>> working well (There are some issues in how Future is currently >>> implemented), so that a Debian Wheezy stable compiler will work. >>> >>> On Sat, Dec 27, 2014 at 12:09 AM, Tomas Barton <[email protected]> >>> wrote: >>> >>>> Hi, >>>> >>>> Mesos >= 0.21 requires GCC >= 4.8 for building >>>> >>>> https://issues.apache.org/jira/browse/MESOS-1044 >>>> >>>> Tomas >>>> >>>> On 18 December 2014 at 07:38, Ritwik <[email protected]> wrote: >>>> >>>>> Thanks Michael for your reply. >>>>> >>>>> *I was able to resolve the issue by upgrading from GCC 4.6 to GCC 4.8* >>>>> >>>>> It seems to work perfectly now, however, not knowing what caused the >>>>> problem might prove to be bad in the long run. >>>>> >>>>> Thanks again for all the help. >>>>> >>>>> On 18 December 2014 at 01:40, Michael Park <[email protected]> wrote: >>>>>> >>>>>> Hi Ritwik, >>>>>> >>>>>> I've seen this problem before but haven't had time to look into it. >>>>>> We made C++11 a requirement so the Makefile actually isn't the issue >>>>>> here. >>>>>> >>>>>> I can look into it though, >>>>>> >>>>>> Thanks for bringing it up! >>>>>> >>>>>> MPark >>>>>> >>>>>> On 17 December 2014 at 07:44, Ritwik <[email protected]> wrote: >>>>>> > >>>>>> > I dug around the error message a bit. I see the compilation being >>>>>> done >>>>>> > using: >>>>>> > -std=c++0x >>>>>> > The error message seems to be related to creating rvalue references >>>>>> which >>>>>> > is a new feature of C++11. Does the make file need an update? >>>>>> > >>>>>> > On 17 December 2014 at 15:42, Ritwik <[email protected]> >>>>>> wrote: >>>>>> > > >>>>>> > > Hi, >>>>>> > > >>>>>> > > I was trying to build Mesos using 'make'. Here is what I got: >>>>>> > > >>>>>> > > http://code.stypi.com/pw3146dx >>>>>> > > >>>>>> > > Is this a known issue? It would be great if someone could suggest >>>>>> a >>>>>> > > workaround. >>>>>> > > >>>>>> > > Thanks. >>>>>> > > >>>>>> > > Best Regards, >>>>>> > > >>>>>> > > -- >>>>>> > > *Ritwik Yadav* >>>>>> > > >>>>>> > > >>>>>> > >>>>>> > -- >>>>>> > *Ritwik Yadav* >>>>>> > >>>>>> > Department of Computer Science and Engineering, >>>>>> > Indian Institute of Technology, >>>>>> > Kharagpur. >>>>>> > >>>>>> > Cell: +91-9635-152346 >>>>>> > Twitter: @iRitwik <https://twitter.com/#%21/iRitwik> >>>>>> > >>>>>> >>>>> >>>>> >>>>> -- >>>>> *Ritwik Yadav* >>>>> >>>>> Department of Computer Science and Engineering, >>>>> Indian Institute of Technology, >>>>> Kharagpur. >>>>> >>>>> Cell: +91-9635-152346 >>>>> Twitter: @iRitwik <https://twitter.com/#%21/iRitwik> >>>>> >>>> >>>> >>> >> >

