Closed Bug 1789315 Opened 2 years ago Closed 1 year ago

Build failure with ENABLE_RECORD_TUPLE

Categories

(Core :: JavaScript Engine, defect, P1)

defect

Tracking

()

RESOLVED FIXED
109 Branch
Tracking Status
firefox109 --- fixed

People

(Reporter: tjc, Assigned: tjc)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Steps to reproduce:

Built bookmarks/central from https://phabricator.services.mozilla.com/rMOZILLACENTRALab10436a5d1eeaf57f7b260b8844b2e34ee557e0 with the following MOZCONFIG options:

ac_add_options --enable-optimize --enable-debug --enable-record-tuple --disable-jit --enable-warnings-as-errors --enable-js-shell --with-ccache=sccache

Actual results:

The build fails:

netwerk/sctp/datachannel
In file included from Unified_cpp_js_src16.cpp:20:
/home/tjc/gecko-fork/js/src/vm/Iteration.cpp:257:16: error: use of undeclared identifier 'JS_StringToId'
          if (!JS_StringToId(cx, key, &id)) {
               ^
/home/tjc/gecko-fork/js/src/vm/Iteration.cpp:275:18: error: use of undeclared identifier 'JS_IndexToId'; did you mean 'IndexToId'?
            if (!JS_IndexToId(cx, i, &id)) {
                 ^~~~~~~~~~~~
                 IndexToId
/home/tjc/gecko-fork/js/src/vm/JSAtom-inl.h:109:13: note: 'IndexToId' declared here
inline bool IndexToId(JSContext* cx, uint32_t index, MutableHandleId idp) {
            ^
2 errors generated.

Expected results:

I'll submit a patch to fix this (missing include), but I thought that builds with ENABLE_RECORD_TUPLE set were running on CI as per bug 1744967 -- or does it just build the JS shell and not the entire browser?

Assignee: nobody → tjc
Status: NEW → ASSIGNED
Attachment #9293198 - Attachment description: Bug 1789315 - Fix missing include in vm/Iteration.cpp r?anba A missing #include of jsapi.h was causing a build failure when building the entire browser with ENABLE_RECORD_TUPLE set. → Bug 1789315 - Fix missing include in vm/Iteration.cpp r?anba
Blocks: sm-meta
Severity: -- → S3
Priority: -- → P1
Attachment #9293198 - Attachment description: Bug 1789315 - Fix missing include in vm/Iteration.cpp r?anba → Bug 1789315 - Eliminate jsapi.h dependency from vm/Iteration.cpp r?anba
Blocks: 1658309
Blocks: 1765477

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:tjc, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit auto_nag documentation.

Flags: needinfo?(tjc)
Flags: needinfo?(andrebargull)
Pushed by andre.bargull@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/c10dbb5e7167
Eliminate jsapi.h dependency from vm/Iteration.cpp r=anba
Flags: needinfo?(tjc)
Flags: needinfo?(andrebargull)
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: