couchdb icon indicating copy to clipboard operation
couchdb copied to clipboard

try compiling for sm 115

Open big-r81 opened this issue 1 year ago • 1 comments

Simple starting point...

Got the following compile error:

==> couch (compile)
Compiling /Users/big-r/Documents/Developer/CouchDB/couchdb/src/couch/priv/couch_js/115/main.cpp
/Users/big-r/Documents/Developer/CouchDB/couchdb/src/couch/priv/couch_js/115/main.cpp:50:5: error: excess elements in struct initializer
    JS_GlobalObjectTraceHook
    ^~~~~~~~~~~~~~~~~~~~~~~~
/Users/big-r/Documents/Developer/CouchDB/couchdb/src/couch/priv/couch_js/115/main.cpp:255:5: error: cannot initialize a member subobject of type 'JSCSPEvalChecker' (aka 'bool (*)(JSContext *, JS::RuntimeCode, Handle<JSString *>)') with an lvalue of type 'bool (JSContext *, JS::HandleString)' (aka 'bool (JSContext *, Handle<JSString *>)'): different number of parameters (3 vs 2)
    csp_allows,
    ^~~~~~~~~~
2 errors generated.
ERROR: compile failed while processing /Users/big-r/Documents/Developer/CouchDB/couchdb/src/couch: rebar_abort
make: *** [couch] Error 1

Like @nickva found out in #4305 csp_allows gets an extra flag. I looked at this migration guide, but found nothing which is affecting us (really? idk!).

big-r81 avatar Jul 22 '24 19:07 big-r81

Fixing the compilation errors and now getting the following error when running http://127.0.0.1:15984/_utils/#/verifyinstall:

[error] 2024-07-22T19:27:50.849320Z [email protected] <0.897.0> -------- OS Process Error <0.906.0> :: {<<"TypeError">>,{[]}}

So almost the same as for sm 102.

big-r81 avatar Jul 22 '24 19:07 big-r81

Closing in favour of https://github.com/apache/couchdb/pull/5314

janl avatar Oct 19 '24 12:10 janl