Compilation error: call to deleted function 'js_value_to_c'
System information
What is your operating system and version? (e.g. "Linux, Fedora 29" or "macOS 10.13")
macOS 12.3 / arm64
$ clang++ --version
Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: arm64-apple-darwin21.3.0
What is your version of GJS? (e.g. "1.54.1-fc29.1" or "commit 4ab70efb")
1.71.1
Bug information
Compiling with system clang results in a call to deleted function
error:
:info:build /usr/bin/clang++ -Ilibgjs-internal.a.p -I. -I../gjs-1.71.1 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gobject-introspection-1.0 -I/opt/local/include/nspr -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include/ossp -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -I/opt/local/include -fcolor-diagnostics -include-pch libgjs-internal.a.p/gjs_pch.hh.pch -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -std=c++17 -fno-rtti -O0 -g -fno-strict-aliasing -Wno-variadic-macros -Wno-missing-field-initializers -pipe -Os -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -isystem /opt/local/include/mozjs-91 -DGJS_COMPILATION '-DGJS_JS_DIR="/opt/local/share/gjs-1.0"' '-DPKGLIBDIR="/opt/local/lib/gjs"' '-DG_LOG_DOMAIN="Gjs"' -MD -MQ libgjs-internal.a.p/gi_value.cpp.o -MF libgjs-internal.a.p/gi_value.cpp.o.d -o libgjs-internal.a.p/gi_value.cpp.o -c ../gjs-1.71.1/gi/value.cpp
:info:build In file included from ../gjs-1.71.1/gi/value.cpp:30:
:info:build In file included from ../gjs-1.71.1/gi/arg-inl.h:19:
:info:build ../gjs-1.71.1/gi/js-value-inl.h:281:20: error: call to deleted function 'js_value_to_c'
:info:build bool ret = js_value_to_c(cx, value, out);
:info:build ^~~~~~~~~~~~~
:info:build ../gjs-1.71.1/gi/value.cpp:483:18: note: in instantiation of function template specialization 'Gjs::js_value_to_c_checked<long long, long>' requested here
:info:build if (Gjs::js_value_to_c_checked<int64_t>(context, value, &i,
:info:build ^
:info:build ../gjs-1.71.1/gi/js-value-inl.h:124:41: note: candidate function [with TAG = GI_TYPE_TAG_VOID, T = long] has been explicitly deleted
:info:build GJS_JSAPI_RETURN_CONVENTION inline bool js_value_to_c(JSContext*,
:info:build ^
:info:build ../gjs-1.71.1/gi/js-value-inl.h:281:20: error: call to deleted function 'js_value_to_c'
:info:build bool ret = js_value_to_c(cx, value, out);
:info:build ^~~~~~~~~~~~~
:info:build ../gjs-1.71.1/gi/value.cpp:516:18: note: in instantiation of function template specialization 'Gjs::js_value_to_c_checked<unsigned long long, unsigned long>' requested here
:info:build if (Gjs::js_value_to_c_checked<uint64_t>(context, value, &i,
:info:build ^
:info:build ../gjs-1.71.1/gi/js-value-inl.h:124:41: note: candidate function [with TAG = GI_TYPE_TAG_VOID, T = unsigned long] has been explicitly deleted
:info:build GJS_JSAPI_RETURN_CONVENTION inline bool js_value_to_c(JSContext*,
:info:build ^
:info:build 2 errors generated.
Any ideas?