Re: Help with Rawhide build error with GCC 6.0

2016-02-04 Thread Jonathan Wakely
On 04/02/16 00:08 +0100, Kevin Kofler wrote: Jonathan Wakely wrote: A workaround would be to make it too hard for the compiler to see the problem: void* ptr = page->data; _root = new (ptr) impl::xml_document_struct(page); This way GCC doesn't see that the address refers to a 1-byte array.

Re: Help with Rawhide build error with GCC 6.0

2016-02-03 Thread Kevin Kofler
Jonathan Wakely wrote: > A workaround would be to make it too hard for the compiler to see the > problem: > > void* ptr = page->data; > _root = new (ptr) impl::xml_document_struct(page); > > This way GCC doesn't see that the address refers to a 1-byte array. Why not simply: char data[ #i

Re: Help with Rawhide build error with GCC 6.0

2016-02-03 Thread Jonathan Wakely
On 03/02/16 17:30 +, Jonathan Wakely wrote: On 03/02/16 10:59 -0600, Richard Shaw wrote: With the release of GCC 6.0 in Rawhide I'm having a build warning/error[1,2] with OpenImageIO I'm not sure what to do with (other than adding a flag to ignore it). tl;dr either add -Wno-error=placement

Re: Help with Rawhide build error with GCC 6.0

2016-02-03 Thread Jonathan Wakely
On 03/02/16 10:59 -0600, Richard Shaw wrote: With the release of GCC 6.0 in Rawhide I'm having a build warning/error[1,2] with OpenImageIO I'm not sure what to do with (other than adding a flag to ignore it). tl;dr either add -Wno-error=placement-new for now or try the workaround at the bottom

Re: Help with Rawhide build error with GCC 6.0

2016-02-03 Thread Richard Shaw
On Wed, Feb 3, 2016 at 11:15 AM, Florian Weimer wrote: > On 02/03/2016 05:59 PM, Richard Shaw wrote: > > > In member function 'void > OpenImageIO::v1_6::pugi::xml_document::create()': > > > /builddir/build/BUILD/oiio-Release-1.6.9/src/include/OpenImageIO/pugixml.cpp:5143:58: > > error: placement

Re: Help with Rawhide build error with GCC 6.0

2016-02-03 Thread Florian Weimer
On 02/03/2016 05:59 PM, Richard Shaw wrote: > In member function 'void OpenImageIO::v1_6::pugi::xml_document::create()': > /builddir/build/BUILD/oiio-Release-1.6.9/src/include/OpenImageIO/pugixml.cpp:5143:58: > error: placement new constructing an object of type > 'OpenImageIO::v1_6::pugi::impl::x

Help with Rawhide build error with GCC 6.0

2016-02-03 Thread Richard Shaw
With the release of GCC 6.0 in Rawhide I'm having a build warning/error[1,2] with OpenImageIO I'm not sure what to do with (other than adding a flag to ignore it). Upstream is looking into it but currently thinks that the pugixml API is requiring a method that GCC 6.0 doesn't like: [ 3%] Buildi