FreeBSD Bugzilla – Attachment 252478 Details for
Bug 280590
devel/simdjson: fix build with clang 19
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
devel/simdjson: fix build with clang 19
devel__simdjson-fix-clang19-build-1.diff (text/plain), 3.31 KB, created by
Dimitry Andric
on 2024-08-03 14:04:28 UTC
(
hide
)
Description:
devel/simdjson: fix build with clang 19
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2024-08-03 14:04:28 UTC
Size:
3.31 KB
patch
obsolete
>commit 3cb45e66366b7b2b775ea8386f3bf8978e641dd0 >Author: Dimitry Andric <dim@FreeBSD.org> >Date: 2024-08-03T15:58:40+02:00 > > devel/simdjson: fix build with clang 19 > > With clang 19, if a port uses simdjson.h, it leads to compile errors: > > In file included from /wrkdirs/usr/ports/sysutils/intel-pcm/work/pcm-202405/src/pcm-raw.cpp:31: > /usr/local/include/simdjson.h:6156:13: error: no member named 'print_newline' in 'base_formatter<formatter>' > 6156 | this->print_newline(); > | ~~~~ ^ > /usr/local/include/simdjson.h:6160:13: error: no member named 'print_indents' in 'base_formatter<formatter>' > 6160 | this->print_indents(depth); > | ~~~~ ^ > /usr/local/include/simdjson.h:6164:13: error: no member named 'print_space' in 'base_formatter<formatter>' > 6164 | this->print_space(); > | ~~~~ ^ > > Upstream <https://github.com/simdjson/simdjson/commit/5d35e7ca> fixes > this, but it does not directly add the change to the generated single > header version of simdjson.h. So apply the fix to both the individual > header and the amalgamated version. > >diff --git a/devel/simdjson/Makefile b/devel/simdjson/Makefile >index 69e8fe65332a..a035cc77293b 100644 >--- a/devel/simdjson/Makefile >+++ b/devel/simdjson/Makefile >@@ -1,6 +1,7 @@ > PORTNAME= simdjson > DISTVERSIONPREFIX= v > DISTVERSION= 3.6.2 >+PORTREVISION= 1 > CATEGORIES= devel > > MAINTAINER= olevole@olevole.ru >diff --git a/devel/simdjson/files/patch-include_simdjson_dom_serialization.h b/devel/simdjson/files/patch-include_simdjson_dom_serialization.h >new file mode 100644 >index 000000000000..09dc68e86977 >--- /dev/null >+++ b/devel/simdjson/files/patch-include_simdjson_dom_serialization.h >@@ -0,0 +1,21 @@ >+--- include/simdjson/dom/serialization.h.orig 2023-12-01 18:56:12 UTC >++++ include/simdjson/dom/serialization.h >+@@ -57,15 +57,15 @@ class base_formatter { (public) >+ simdjson_inline void one_char(char c); >+ >+ simdjson_inline void call_print_newline() { >+- this->print_newline(); >++ static_cast<formatter*>(this)->print_newline(); >+ } >+ >+ simdjson_inline void call_print_indents(size_t depth) { >+- this->print_indents(depth); >++ static_cast<formatter*>(this)->print_indents(depth); >+ } >+ >+ simdjson_inline void call_print_space() { >+- this->print_space(); >++ static_cast<formatter*>(this)->print_space(); >+ } >+ >+ protected: >diff --git a/devel/simdjson/files/patch-singleheader_simdjson.h b/devel/simdjson/files/patch-singleheader_simdjson.h >new file mode 100644 >index 000000000000..e41f85236f17 >--- /dev/null >+++ b/devel/simdjson/files/patch-singleheader_simdjson.h >@@ -0,0 +1,21 @@ >+--- singleheader/simdjson.h.orig 2023-12-01 18:56:12 UTC >++++ singleheader/simdjson.h >+@@ -6153,15 +6153,15 @@ class base_formatter { (public) >+ simdjson_inline void one_char(char c); >+ >+ simdjson_inline void call_print_newline() { >+- this->print_newline(); >++ static_cast<formatter*>(this)->print_newline(); >+ } >+ >+ simdjson_inline void call_print_indents(size_t depth) { >+- this->print_indents(depth); >++ static_cast<formatter*>(this)->print_indents(depth); >+ } >+ >+ simdjson_inline void call_print_space() { >+- this->print_space(); >++ static_cast<formatter*>(this)->print_space(); >+ } >+ >+ protected:
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 280590
: 252478