Closed Bug 1776254 Opened 2 years ago Closed 2 years ago

Cannot build library for SM embedding examples, missing ProfilingCategoryList.h

Categories

(Core :: JavaScript Engine, defect, P3)

defect

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox-esr102 --- fixed
firefox104 --- fixed

People

(Reporter: yury, Assigned: ptomato)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The following https://github.com/mozilla-spidermonkey/spidermonkey-embedding-examples/blob/esr91/docs/Building%20SpiderMonkey.md , but I build on esr102 branch.

As soon as I try building examples, I get:
In file included from sm-bench.cpp:1:
In file included from /Users/yury/bin/mozjs/include/mozjs-102/jsapi.h:30:
In file included from /Users/yury/bin/mozjs/include/mozjs-102/js/CallAndConstruct.h:15:
In file included from /Users/yury/bin/mozjs/include/mozjs-102/js/RootingAPI.h:27:
In file included from /Users/yury/bin/mozjs/include/mozjs-102/js/ProfilingStack.h:16:
/Users/yury/bin/mozjs/include/mozjs-102/js/ProfilingCategory.h:13:10: fatal error: 'js/ProfilingCategoryList.h' file not found
#include "js/ProfilingCategoryList.h" // MOZ_PROFILING_CATEGORY_LIST
^~~~~~~~~~~~~~~~~~~~~~~~~~~~

(Workaround: copying ProfilingCategoryList.h to include/mozjs-102/js/ fixes things)

See Also: → 1768629
Blocks: sm-embedding
Type: task → defect
Severity: -- → S3
Priority: -- → P3

NI myself, as this has come up multiple times and I may have cycles to look at this in the next bit.

Flags: needinfo?(mgaudet)

Ok; I lied. I'm not going to get to this any time soon.

Flags: needinfo?(mgaudet)

When installing embedded SpiderMonkey, we need to install the generated
header ProfilingCategoryList.h into /usr/include/mozjs-___/js/ because
that's where the rest of the SpiderMonkey code expects to find it.
It's not automatically installed already, because it's generated.

Thanks to Arai for the suggestion of where to look.

Assignee: nobody → philip.chimento
Status: NEW → ASSIGNED
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/eb2b21f037a5 Install ProfilingCategoryList.h (r=arai)
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch

Comment on attachment 9286696 [details]
Bug 1776254 - Install ProfilingCategoryList.h (r?arai)

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: Installing this header is required for compiling programs that use embedded SpiderMonkey. Without it, embedder programs will get compile errors.
  • User impact if declined: In practice, downstreams would have to carry this patch themselves anyway, or manually copy the header during their build processes.
  • Fix Landed on Version: 104
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): The change is not part of the build for Firefox. If something were somehow to go wrong anyway in the Firefox build, it would be an error at build time, not at run time, and so would be obvious.
Attachment #9286696 - Flags: approval-mozilla-esr102?

Comment on attachment 9286696 [details]
Bug 1776254 - Install ProfilingCategoryList.h (r?arai)

Approved for 102.2esr. Thanks for staying on top of these issues, as always, Philip!

Attachment #9286696 - Flags: approval-mozilla-esr102? → approval-mozilla-esr102+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: