DevHeads.net

OpenImageIO GCC 8 build problem?

A scratch build works fine on Fedora 27...

Error during build[1]:
*** WARNING *** there are active plugins, do not report this as a bug
unless you can reproduce it without enabling any plugins.
Event | Plugins
PLUGIN_FINISH_UNIT | annobin: Generate final annotations
PLUGIN_START_UNIT | annobin: Generate global annotations
PLUGIN_ALL_PASSES_END | annobin: Generate per-function
annotations
In file included from /builddir/build/BUILD/oiio-Release-1.8.8/src/include/
OpenImageIO/imageio.h:59,
from /builddir/build/BUILD/oiio-Release-1.8.8/src/include/
OpenImageIO/imagebuf.h:46,
from /builddir/build/BUILD/oiio-Release-1.8.8/src/
libOpenImageIO/imagebufalgo_compare.cpp:41:
/builddir/build/BUILD/oiio-Release-1.8.8/src/libOpenImageIO/imagebufalgo_compare.cpp:
In instantiation of 'bool OpenImageIO_v1_8::color_count_(const
OpenImageIO_v1_8::ImageBuf&, OpenImageIO_v1_8::atomic_ll*, int, const
float*, const float*, OpenImageIO_v1_8::ROI, int) [with T = float;
OpenImageIO_v1_8::atomic_ll = std::atomic<long long int>]':
/builddir/build/BUILD/oiio-Release-1.8.8/src/libOpenImageIO/imagebufalgo_compare.cpp:546:5:
required from here
/builddir/build/BUILD/oiio-Release-1.8.8/src/include/OpenImageIO/platform.h:191:36:
internal compiler error: in maybe_undo_parenthesized_ref, at
cp/semantics.c:1736
#define ALLOCA(type, size) ((size) != 0 ? ((type*)alloca((size) * sizeof
(type))) : nullptr)
~~~~~~~^~~~
/builddir/build/BUILD/oiio-Release-1.8.8/src/libOpenImageIO/imagebufalgo_compare.cpp:501:24:
note: in expansion of macro 'ALLOCA'
long long *n = ALLOCA (long long, ncolors);
^~~~~~

Ideas?

Thanks,
Richard

[1] <a href="http://koji.fedoraproject.org/koji/taskinfo?taskID=24761376" title="http://koji.fedoraproject.org/koji/taskinfo?taskID=24761376">http://koji.fedoraproject.org/koji/taskinfo?taskID=24761376</a>

Comments

Re: OpenImageIO GCC 8 build problem?

By Jakub Jelinek at 02/10/2018 - 14:24

On Sat, Feb 10, 2018 at 06:42:00AM -0600, Richard Shaw wrote:
Likely <a href="http://gcc.gnu.org/PR83204" title="http://gcc.gnu.org/PR83204">http://gcc.gnu.org/PR83204</a> .

Jakub

Re: OpenImageIO GCC 8 build problem?

By Richard Shaw at 02/10/2018 - 14:32

Looks like it, rebuilding with C++11 let it complete. Would rebuilding with
11 cause an ABI change? I don't really want to rebuild all the
dependencies...

Thanks,
Richard

Re: OpenImageIO GCC 8 build problem?

By Jonathan Wakely at 02/12/2018 - 09:29

On 10/02/18 12:32 -0600, Richard Shaw wrote:
I already read the other replies suggesting waiting for the new GCC,
but for the record: no, it wouldn't.

Re: OpenImageIO GCC 8 build problem?

By Christoph Junghans at 02/12/2018 - 19:19

On Mon, Feb 12, 2018 at 6:29 AM, Jonathan Wakely
< ... at fedoraproject dot org> wrote:
Christoph

Re: OpenImageIO GCC 8 build problem?

By =?ISO-8859-1?Q?... at 02/10/2018 - 14:40

On Sat, 2018-02-10 at 12:32 -0600, Richard Shaw wrote:
I think the better is wait for gcc be fixed in Fedora, since looks like
is already fixed upstream .

Re: OpenImageIO GCC 8 build problem?

By Jakub Jelinek at 02/10/2018 - 14:38

On Sat, Feb 10, 2018 at 12:32:47PM -0600, Richard Shaw wrote:
I'll do another GCC build tonight, might take a day or so to make it into
the buildroots if all goes well.

Jakub

Re: OpenImageIO GCC 8 build problem?

By Richard Shaw at 02/11/2018 - 10:41

I'm still waiting on the armv7hl build but the rest have completed so
thanks!

Richard

Re: OpenImageIO GCC 8 build problem?

By M A Young at 02/10/2018 - 12:35

As it says "internal compiler error" it is clearly a bug in gcc8 or in
annobin, and either way it should be reported in Bugzilla.

Michael Young

Re: OpenImageIO GCC 8 build problem?

By =?ISO-8859-1?Q?... at 02/10/2018 - 12:31

On Sat, 2018-02-10 at 06:42 -0600, Richard Shaw wrote:
seems something like [1] I had search for "in
maybe_undo_parenthesized_ref"
[1]https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83204