Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 1424580 - OpenImageIO: FTBFS in rawhide
Summary: OpenImageIO: FTBFS in rawhide
Alias: None
Product: Fedora
Classification: Fedora
Component: OpenImageIO
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Richard Shaw
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: F26FTBFS 1423076 1423080 1423104
TreeView+ depends on / blocked
Reported: 2017-02-17 17:37 UTC by Fedora Release Engineering
Modified: 2017-02-19 14:35 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2017-02-19 14:35:06 UTC
Type: ---

Attachments (Terms of Use)
build.log (181.85 KB, text/plain)
2017-02-17 17:37 UTC, Fedora Release Engineering
no flags Details
root.log (124.74 KB, text/plain)
2017-02-17 17:37 UTC, Fedora Release Engineering
no flags Details
state.log (639 bytes, text/plain)
2017-02-17 17:37 UTC, Fedora Release Engineering
no flags Details

Description Fedora Release Engineering 2017-02-17 17:37:33 UTC
Your package OpenImageIO failed to build from source in current rawhide.

For details on mass rebuild see

Comment 1 Fedora Release Engineering 2017-02-17 17:37:38 UTC
Created attachment 1254993 [details]

Comment 2 Fedora Release Engineering 2017-02-17 17:37:41 UTC
Created attachment 1254994 [details]

Comment 3 Fedora Release Engineering 2017-02-17 17:37:43 UTC
Created attachment 1254995 [details]

Comment 4 Richard Shaw 2017-02-17 21:39:11 UTC
I've submitted the following to upstream's development mailing list but if anyone else has an idea...

[ 47%] Building CXX object src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/rla.imageio/rlaoutput.cpp.o
cd /builddir/build/BUILD/oiio-Release-1.7.10/build/linux/src/libOpenImageIO && /usr/bin/c++   -DEMBED_PLUGINS=1 -DNDEBUG -DOpenImageIO_EXPORTS -DUSE_BOOST_ASIO=1 -DUSE_EXTERNAL_PUGIXML=1 -DUSE_FIELD3D=1 -DUSE_FREETYPE -DUSE_GIF -DUSE_LIBRAW=1 -DUSE_OCIO=1 -DUSE_OPENCV -DUSE_OPENEXR_VERSION2=1 -DUSE_OPENSSL=1 -DUSE_WEBP=1 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/oiio-Release-1.7.10/build/linux/include/OpenImageIO -I/builddir/build/BUILD/oiio-Release-1.7.10/src/include -I/usr/include/OpenEXR -I/usr/include/libraw -I/builddir/build/BUILD/oiio-Release-1.7.10/build/linux/src/libOpenImageIO -I/usr/include/freetype2 -I/usr/include/freetype2/freetype2 -I/usr/include/freetype2/freetype2/freetype  -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 -m64 -mtune=generic -O2 -g -DNDEBUG -fPIC   -Wall -Werror -fno-math-errno -Wno-error=unused-local-typedefs -Wno-unused-local-typedefs -Wno-unused-result -Wno-error=misleading-indentation -std=c++11 -o CMakeFiles/OpenImageIO.dir/__/rla.imageio/rlaoutput.cpp.o -c /builddir/build/BUILD/oiio-Release-1.7.10/src/rla.imageio/rlaoutput.cpp
/builddir/build/BUILD/oiio-Release-1.7.10/src/rla.imageio/rlaoutput.cpp: In member function 'virtual bool OpenImageIO::v1_7::RLAOutput::open(const string&, const OpenImageIO::v1_7::ImageSpec&, OpenImageIO::v1_7::ImageOutput::OpenMode)':
/builddir/build/BUILD/oiio-Release-1.7.10/src/rla.imageio/rlaoutput.cpp:177:1: error: '%.10f' directive output truncated writing between 12 and 321 bytes into a region of size 8 [-Werror=format-truncation=]
 RLAOutput::open (const std::string &name, const ImageSpec &userspec,
In file included from /usr/include/stdio.h:939:0,
                 from /usr/include/c++/7/cstdio:42,
                 from /builddir/build/BUILD/oiio-Release-1.7.10/src/rla.imageio/rlaoutput.cpp:31:
/usr/include/bits/stdio2.h:65:44: note: '__builtin___snprintf_chk' output between 13 and 322 bytes into a destination of size 8
        __bos (__s), __fmt, __va_arg_pack ());

Comment 5 Jonathan Wakely 2017-02-18 00:51:44 UTC
Disable -Werror?

Comment 6 Ralf Corsepius 2017-02-19 06:54:52 UTC
(In reply to Jonathan Wakely from comment #5)
> Disable -Werror?

Yep, some upstreams don't seem to comprehend that -Werror doesn't have a place in production SW. Anyway, this package's upstream at least implemented a cmake option to disable -Werror: STOP_ON_WARNIN.

This at least lets building succeed.

However, there is another issue:
This packages doesn't honor CFLAGS/CXXFLAGS correctly. Instead, tries to examine the compiler version, which results into appending "-std=c++11", instead of using the compiler's and/or specified CFLAGS/CXXFLAGS.

A scratch-build with modifications/work-arounds/hacks applied to resolve these issues can be found here:

Comment 7 Richard Shaw 2017-02-19 13:40:15 UTC
I found the cmake open yesterday and was about to kick off an official build. 

Thanks for finding the c++11 problem.

Note You need to log in before you can comment on or make changes to this bug.