[Bug 273682] graphics/rawtherapee: Fails to build with GCC 13: error: expected identifier before '__is_convertible'

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 10 Sep 2023 07:42:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273682

            Bug ID: 273682
           Summary: graphics/rawtherapee: Fails to build with GCC 13:
                    error: expected identifier before '__is_convertible'
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: mandree@FreeBSD.org
          Reporter: salvadore@freebsd.org
            Blocks: 273397
          Assignee: mandree@FreeBSD.org
             Flags: maintainer-feedback?(mandree@FreeBSD.org)

This bug report blocks the update of GCC_DEFAULT to 13. This webpage can help
finding a fix: https://gcc.gnu.org/gcc-13/porting_to.html

FAILED: rtexif/CMakeFiles/rtexif.dir/fujiattribs.cc.o 
/usr/local/bin/g++13 -DAUTO_GDK_FLUSH=0 -DMYFILE_MMAP -DNDEBUG -DRT_FFTW3F_OMP
-DSTRICT_MUTEX=1 -DTRACE_MYRWMUTEX=0 -DUSE_CANBERRA -D_DNDEBUG
-I/wrkdirs/usr/ports/graphics/rawtherapee/work/.build/rtexif
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include/glibmm-2.4 -I/usr/local/lib/glibmm-2.4/include
-I/usr/local/include/sigc++-2.0 -I/usr/local/lib/sigc++-2.0/include
-I/usr/local/include/gtk-3.0 -I/usr/local/include/pango-1.0
-I/usr/local/include/cairo -I/usr/local/include/gdk-pixbuf-2.0
-I/usr/local/include/freetype2 -I/usr/local/include/harfbuzz
-I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include
-I/usr/local/include/atk-1.0 -I/usr/local/include/pixman-1
-I/usr/local/include/libpng16 -I/usr/local/include/gio-unix-2.0
-I/usr/local/include/fribidi -I/usr/local/include/libepoll-shim
-I/usr/local/include/at-spi2-atk/2.0 -I/usr/local/include/at-spi-2.0
-I/usr/local/include/gtkmm-3.0 -I/usr/local/lib/gtkmm-3.0/include
-I/usr/local/include/atkmm-1.6 -I/usr/local/include/gtk-3.0/unix-print
-I/usr/local/include/gdkmm-3.0 -I/usr/local/lib/gdkmm-3.0/include
-I/usr/local/include/giomm-2.4 -I/usr/local/lib/giomm-2.4/include
-I/usr/local/include/pangomm-1.4 -I/usr/local/lib/pangomm-1.4/include
-I/usr/local/include/cairomm-1.0 -I/usr/local/lib/cairomm-1.0/include -O2 -pipe
 -I/usr/local/include -fPIC -flto=3 -O3 -funroll-loops -fstack-protector-strong
-Wl,-rpath=/usr/local/lib/gcc13  -stdlib=libc++ -Wl,-rpath=/usr/local/lib/gcc13
-isystem /usr/local/include -std=c++11 -ffp-contract=off -mtune=generic
-Werror=unused-label -Werror=delete-incomplete -fno-math-errno -Wno-attributes
-Wall -Wuninitialized -Wcast-qual -Wno-deprecated-declarations
-Wno-unused-result -Wunused-macros -fopenmp -Werror=unknown-pragmas -O2 -pipe 
-I/usr/local/include -fPIC -flto=3 -O3 -funroll-loops -fstack-protector-strong
-Wl,-rpath=/usr/local/lib/gcc13  -stdlib=libc++ -Wl,-rpath=/usr/local/lib/gcc13
-isystem /usr/local/include  -DNDEBUG  -fPIC -MD -MT
rtexif/CMakeFiles/rtexif.dir/fujiattribs.cc.o -MF
rtexif/CMakeFiles/rtexif.dir/fujiattribs.cc.o.d -o
rtexif/CMakeFiles/rtexif.dir/fujiattribs.cc.o -c
/wrkdirs/usr/ports/graphics/rawtherapee/work/rawtherapee-5.9/rtexif/fujiattribs.cc
In file included from /usr/include/c++/v1/math.h:309,
                 from /usr/include/c++/v1/cmath:308,
                 from
/wrkdirs/usr/ports/graphics/rawtherapee/work/rawtherapee-5.9/rtexif/rtexif.h:21,
                 from
/wrkdirs/usr/ports/graphics/rawtherapee/work/rawtherapee-5.9/rtexif/fujiattribs.cc:20:
/usr/include/c++/v1/type_traits:1770:8: error: expected identifier before
'__is_convertible'
 1770 | struct __is_convertible
      |        ^~~~~~~~~~~~~~~~

Full log:
https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-09-06_17h55m19s/logs/errors/rawtherapee-5.9_3.log

There are other bugs similar to this one, such as bug #273671 or bug #273674.


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273397
[Bug 273397] [exp-run] Update GCC_DEFAULT to 13 etc.
-- 
You are receiving this mail because:
You are the assignee for the bug.