[Bug 293329] graphics/rawtherapee: Fails to build with GCC 15: fatal error: bits/functexcept.h: No such file or directory

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 21 Feb 2026 13:26:32 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293329

            Bug ID: 293329
           Summary: graphics/rawtherapee: Fails to build with GCC 15:
                    fatal error: bits/functexcept.h: No such file or
                    directory
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
               URL: https://pkg-status.freebsd.org/gohan05/data/143amd64-d
                    efault-foo/2026-01-30_10h01m25s/logs/errors/rawtherape
                    e-5.12.log
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: mandree@FreeBSD.org
          Reporter: salvadore@freebsd.org
            Blocks: 292692
          Assignee: mandree@FreeBSD.org
             Flags: maintainer-feedback?(mandree@FreeBSD.org)

The port fails to build with GCC 15 and blocks GCC_DEFAULT update to 15. Full
log in URL field. This link might be useful:
https://gcc.gnu.org/gcc-15/porting_to.html .

--- src/decoders/decoders_dcraw.lo ---
libtool: compile:  /usr/local/bin/g++15 -DPACKAGE_NAME=\"LibRaw\"
-DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.22.0-Devel202502\"
"-DPACKAGE_STRING=\"LibRaw 0.22.0-Devel202502\""
-DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\"
-DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\"
-DHAVE_JPEGLIB_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_ZLIB -I/usr/local/include
-DUSE_LCMS2 -O2 -pipe -I/usr/local/include -fPIC -O3 -funroll-loops -flto=3
-fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc15 -stdlib=libc++
-Wl,-rpath=/usr/local/lib/gcc15 -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 -O2 -pipe
-I/usr/local/inc--- src/metadata/ciff.lo ---
In file included from ./libraw/libraw_types.h:76,
                 from ./libraw/libraw_datastream.h:58,
                 from ./libraw/libraw.h:77,
                 from src/metadata/../../internal/dcraw_defs.h:22,
                 from src/metadata/ciff.cpp:19:
/usr/local/lib/gcc15/gcc/x86_64-portbld-freebsd14.3/15.2.0/include/omp.h:438:10:
fatal error: bits/functexcept.h: No such file or directory
  438 | #include <bits/functexcept.h>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.


Referenced Bugs:

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