Bug 1424580
| Summary: | OpenImageIO: FTBFS in rawhide | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Fedora Release Engineering <releng> | ||||||||
| Component: | OpenImageIO | Assignee: | Richard Shaw <hobbes1069> | ||||||||
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
| Severity: | unspecified | Docs Contact: | |||||||||
| Priority: | unspecified | ||||||||||
| Version: | rawhide | CC: | hobbes1069, jwakely, rc040203 | ||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | --- | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2017-02-19 14:35:06 UTC | Type: | --- | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Embargoed: | |||||||||||
| Bug Depends On: | |||||||||||
| Bug Blocks: | 1423041, 1423076, 1423080, 1423104 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Fedora Release Engineering
2017-02-17 17:37:33 UTC
Created attachment 1254993 [details]
build.log
Created attachment 1254994 [details]
root.log
Created attachment 1254995 [details]
state.log
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 ());
^
Disable -Werror? (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: https://koji.fedoraproject.org/koji/taskinfo?taskID=17945711 I found the cmake open yesterday and was about to kick off an official build. Thanks for finding the c++11 problem. |