On Tue, 29 Jul 2014 17:48:04 +0100
"Garth N. Wells" <[email protected]> wrote:

> 
> On Tue, 29 Jul, 2014 at 2:33 PM, Jan Blechta 
> <[email protected]> wrote:
> > BTW, this is the reason why
> > 
> >  - dolfin-master-quick-precise-i386
> >  - dolfin-master-quick-precise-amd64
> > 
> > buildslaves fail. Full versions do not fail because they use
> > developer build type which has -pedantic flag.
> > 
> > Options:
> > 
> >   1. simple one: adding -pedantic to CMAKE_CXX_FLAGS (which is used
> > by all build types)
> > 
> >   2. complicated: detect GCC 4.6 by build system and append
> > -pedantic
> > 
> > Which should be done?
> 
> Has the bug been reported to Ubuntu on Launchpad?

Not by me.

> The 'ideal' fix
> is that Ubuntu fix the version of gcc that is distributed with
> Precise. We've been through this before for a bug in the STL.

Could anybody try this on up-to-date Precise? I have only available one
awaiting maintenance and update for quite a long time. Maybe it has
been fixed upstream.

Are Precise buildslaves up-to-date, Johannes?

Test case:

  $ wget -O test.c 
"http://gcc.gnu.org/viewcvs/gcc/trunk/gcc/testsuite/g%2B%2B.dg/cpp0x/initlist67.C?view=co&revision=192295&content-type=text%2Fplain&pathrev=192295";
  $ c++ --version
  $ c++ -std=c++0x -c test.c # fails or passes?
  $ c++ -std=c++0x -pedantic -c test.c # should pass

or compiling current master of DOLFIN, in particular
dolfin/la/PETScPreconditioner.cpp (3-item initialize list on line 130).

Jan

> 
> Garth
> 
> > 
> > Jan
> > 
> > 
> > On Tue, 29 Jul 2014 10:23:55 +0200
> > Jan Blechta <[email protected]> wrote:
> > 
> >>  After merge 951295c 'cxx11 initializer list', DOLFIN does not 
> >> compile
> >>  with c++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 (Ubuntu 12.04
> >> Precise Pangolin, supported until 04/2017) because of bug in GCC
> >> [1].
> >> 
> >>  Workaround is simple - configuring with
> >>   -DCMAKE_CXX_FLAGS:STRING=' -pedantic '
> >> 
> >>  Maybe build system could detect this bug and apply workaround when
> >>  needed.
> >> 
> >>  [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50478
> >> 
> >>  Jan
> >>  _______________________________________________
> >>  fenics mailing list
> >>  [email protected]
> >>  http://fenicsproject.org/mailman/listinfo/fenics
> > 
> 
> _______________________________________________
> fenics mailing list
> [email protected]
> http://fenicsproject.org/mailman/listinfo/fenics

_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics

Reply via email to