You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was getting a crash in CAMotics when building cbang against the latest V8 in arch linux. Embedder-vs-V8 build configuration mismatch. On embedder side sandbox is DISABLED while on V8 side it's ENABLED.
According to this link, the default build configuration was changed in V8 version 10.8. The maintainer for the Arch v8-r package that I am building against was not enabling it until the latest release, 11.4.71, so I haven't had an issue until now. I can fix it on my end with this patch, but I think it should probably be in an if block depending on the v8 version being used.
You could also just add this to your ccflags when building.
jcoffland
changed the title
V8 sandbox default change in version > 10.8
V8_ENABLE_SANDBOX must be defined for default builds of v8 version > 10.8
Apr 13, 2023
I tried setting the cxxflags and was having issues. I’ll try again with the ccflags. Thank you.
EDIT: That didn't make any difference. For some reason, when that define is added to the build line, cbang isn't finding V8. For reference, here is my complete build line: scons ccflags="-DV8_ENABLE_SANDBOX" cxxstd="c++17" disable_local="libevent sqlite3 re2 libyaml zlib bzip2 expat"
and here is from the build log: Checking for C++ header file v8.h... no
I was getting a crash in CAMotics when building cbang against the latest V8 in arch linux.
Embedder-vs-V8 build configuration mismatch. On embedder side sandbox is DISABLED while on V8 side it's ENABLED.
According to this link, the default build configuration was changed in V8 version 10.8. The maintainer for the Arch v8-r package that I am building against was not enabling it until the latest release, 11.4.71, so I haven't had an issue until now. I can fix it on my end with this patch, but I think it should probably be in an if block depending on the v8 version being used.
I haven't done extensive testing, just built and ran the
camotics.tpl
simulation in CAMotics, and that worked.The text was updated successfully, but these errors were encountered: