FreeBSD Bugzilla – Attachment 242253 Details for
Bug 271493
graphics/freeimage: fix build with clang 16
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
graphics/freeimage: fix build with clang 16
graphics__freeimage-fix-clang16-build-1.diff (text/plain), 2.44 KB, created by
Dimitry Andric
on 2023-05-18 15:14:09 UTC
(
hide
)
Description:
graphics/freeimage: fix build with clang 16
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2023-05-18 15:14:09 UTC
Size:
2.44 KB
patch
obsolete
>commit ad920bd24c5360fb44df693e0b41a86ee31091ae >Author: Dimitry Andric <dim@FreeBSD.org> >Date: 2023-05-18 17:08:08 +0200 > > graphics/freeimage: fix build with clang 16 > > Since clang 16 (and gcc 11) the default C++ standard is now gnu++17. > Because graphics/freeimage's Makefile does not explicitly set its C++ > standard, this leads to several errors: > > In file included from Source/FreeImage/PluginEXR.cpp:33: > In file included from Source/FreeImage/../OpenEXR/IlmImf/ImfOutputFile.h:46: > In file included from Source/OpenEXR/IlmImf/ImfHeader.h:51: > Source/OpenEXR/Imath/ImathVec.h:228:34: error: ISO C++17 does not allow dynamic exception specifications [-Wdynamic-exception-spec] > const Vec2 & normalizeExc () throw (IEX_NAMESPACE::MathExc); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Source/OpenEXR/Imath/ImathVec.h:228:34: note: use 'noexcept(false)' instead > const Vec2 & normalizeExc () throw (IEX_NAMESPACE::MathExc); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > noexcept(false) > Source/OpenEXR/Imath/ImathVec.h:232:37: error: ISO C++17 does not allow dynamic exception specifications [-Wdynamic-exception-spec] > Vec2<T> normalizedExc () const throw (IEX_NAMESPACE::MathExc); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Source/OpenEXR/Imath/ImathVec.h:232:37: note: use 'noexcept(false)' instead > Vec2<T> normalizedExc () const throw (IEX_NAMESPACE::MathExc); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > noexcept(false) > > Because these constructs are no longer available in C++17, add > USE_CXXSTD=gnu++14 to compile for C++14 with GNU extensions instead. > >diff --git a/graphics/freeimage/Makefile b/graphics/freeimage/Makefile >index 04ac430f0d73..b21a2e774291 100644 >--- a/graphics/freeimage/Makefile >+++ b/graphics/freeimage/Makefile >@@ -21,6 +21,7 @@ BROKEN_mips= fails to compile: section referenced in discarded section > BROKEN_mips64= fails to compile: opcode not supported on this processor: mips3 (mips3) 'madd $4,$5' > > USES= cpe dos2unix gmake zip >+USE_CXXSTD= gnu++14 > CPE_VENDOR= ${PORTNAME}_project > DOS2UNIX_FILES= Source/LibOpenJPEG/opj_malloc.h \ > Source/LibRawLite/dcraw/dcraw.c \
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 271493
: 242253