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%] Building CXX object src/libutil/CMakeFiles/OpenImageIO_Util.dir/filter.cpp.o
cd /builddir/build/BUILD/oiio-Release-1.6.9/build/linux/src/libutil && /usr/bin/c++ -DNDEBUG -DOpenImageIO_Util_EXPORTS -DUSE_EXTERNAL_PUGIXML=1 -DUSE_FIELD3D=1 -DUSE_FREETYPE -DUSE_OCIO=1 -DUSE_OPENCV -DUSE_OPENEXR_VERSION2=1 -DUSE_OPENSSL=1 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/usr/include/OpenEXR -I/usr/include/libraw -I/builddir/build/BUILD/oiio-Release-1.6.9/src/include -I/builddir/build/BUILD/oiio-Release-1.6.9/build/linux/include/OpenImageIO -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -O2 -g -DNDEBUG -fPIC -Wall -Werror -fno-math-errno -Wno-error=unused-local-typedefs -Wno-unused-local-typedefs -Wno-unused-result -o CMakeFiles/OpenImageIO_Util.dir/filter.cpp.o -c /builddir/build/BUILD/oiio-Release-1.6.9/src/libutil/filter.cpp
In file included from /builddir/build/BUILD/oiio-Release-1.6.9/src/include/OpenImageIO/pugiconfig.hpp:41:0,
from /builddir/build/BUILD/oiio-Release-1.6.9/src/include/OpenImageIO/pugixml.hpp:20,
from /builddir/build/BUILD/oiio-Release-1.6.9/src/libOpenImageIO/formatspec.cpp:45:
/builddir/build/BUILD/oiio-Release-1.6.9/src/include/OpenImageIO/pugixml.cpp: 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::xml_document_struct' and size '44' in a region of type 'char [1]' and size '1' [-Werror=placement-new]
_root = new (page->data) impl::xml_document_struct(page);
^
Any ideas would be appreciated.
Thanks,
Richard
-- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx http://lists.fedoraproject.org/admin/lists/devel@xxxxxxxxxxxxxxxxxxxxxxx