[Bug 273680] games/libretro-px68k: Fails to build with GCC 13: error: expected identifier before '__is_convertible'

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

            Bug ID: 273680
           Summary: games/libretro-px68k: 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: ports-bugs@FreeBSD.org
          Reporter: salvadore@freebsd.org
            Blocks: 273397

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

g++13 -c -ofmgen/file.o fmgen/file.cpp -O2 -pipe  -fstack-protector-strong
-Wl,-rpath=/usr/local/lib/gcc13  -stdlib=libc++ -Wl,-rpath=/usr/local/lib/gcc13
 -g -O2  -fno-merge-constants -D__LINUX__ -DNO_MERCURY
-DPX68K_VERSION=\"0.15+\" -DGIT_VERSION=\"" "\" -DHAVE_C68K -O2 -ffast-math
-fomit-frame-pointer -I. -I./libretro-common/include -I./libretro -I./x68k
-I./fmgen -I./win32api -DC68K_NO_JUMP_TABLE -D__LIBRETRO__   -fPIC 
-fpermissive
g++13 -c -ofmgen/fmg_wrap.o fmgen/fmg_wrap.cpp -O2 -pipe 
-fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13  -stdlib=libc++
-Wl,-rpath=/usr/local/lib/gcc13  -g -O2  -fno-merge-constants -D__LINUX__
-DNO_MERCURY -DPX68K_VERSION=\"0.15+\" -DGIT_VERSION=\"" "\" -DHAVE_C68K -O2
-ffast-math -fomit-frame-pointer -I. -I./libretro-common/include -I./libretro
-I./x68k -I./fmgen -I./win32api -DC68K_NO_JUMP_TABLE -D__LIBRETRO__   -fPIC 
-fpermissive
g++13 -c -ofmgen/fmgen.o fmgen/fmgen.cpp -O2 -pipe  -fstack-protector-strong
-Wl,-rpath=/usr/local/lib/gcc13  -stdlib=libc++ -Wl,-rpath=/usr/local/lib/gcc13
 -g -O2  -fno-merge-constants -D__LINUX__ -DNO_MERCURY
-DPX68K_VERSION=\"0.15+\" -DGIT_VERSION=\"" "\" -DHAVE_C68K -O2 -ffast-math
-fomit-frame-pointer -I. -I./libretro-common/include -I./libretro -I./x68k
-I./fmgen -I./win32api -DC68K_NO_JUMP_TABLE -D__LIBRETRO__   -fPIC 
-fpermissive
In file included from /usr/include/c++/v1/math.h:309,
                 from fmgen/headers.h:10,
                 from fmgen/file.cpp:5:
/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/libretro-px68k-0.20220311_1.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.