Hi @ToradexAI,
I have followed that custom layer are noww commented and run the basic layer but now I got an new erro accquired in the build!
| /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/jsapi.cpp:2683:29: note: 'ar.mozilla::Maybe<js::AutoRealm>::<unnamed>.mozilla::detail::MaybeStorage<js::AutoRealm, false>::<unnamed>.mozilla::detail::MaybeStorageBase<js::AutoRealm, false>::mStorage.mozilla::detail::MaybeStorageBase<js::AutoRealm, false>::Union::val.js::AutoRealm::origin_' was declared here
| 2683 | mozilla::Maybe<AutoRealm> ar;
| | ^~
| In file included from /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/build/dist/include/js/CallArgs.h:73,
| from /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/jsfriendapi.h:12,
| from /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/ErrorReporting.h:12,
| from /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/Warnings.cpp:16,
| from Unified_cpp_js_src25.cpp:2:
| In member function 'void JS::Rooted<T>::registerWithRootLists(JS::RootedListHeads&) [with T = JSObject*]',
| inlined from 'JS::Rooted<T>::Rooted(const RootingContext&, S&&) [with RootingContext = JSContext*; S = JS::Handle<JSObject*>&; T = JSObject*]' at /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/build/dist/include/js/RootingAPI.h:1174:26,
| inlined from 'bool ReshapeForProtoMutation(JSContext*, JS::HandleObject)' at /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/Watchtower.cpp:158:28,
| inlined from 'bool WatchProtoChangeImpl(JSContext*, JS::HandleObject)' at /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/Watchtower.cpp:176:31:
| /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/build/dist/include/js/RootingAPI.h:1141:18: warning: storing the address of local variable 'pobj' in '((js::StackRootedBase**)cx)[3]' [-Wdangling-pointer=]
| 1141 | *this->stack = this;
| | ~~~~~~~~~~~~~^~~~~~
| In file included from Unified_cpp_js_src25.cpp:11:
| /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/Watchtower.cpp: In function 'bool WatchProtoChangeImpl(JSContext*, JS::HandleObject)':
| /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/Watchtower.cpp:158:16: note: 'pobj' declared here
| 158 | RootedObject pobj(cx, obj);
| | ^~~~
| /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/Watchtower.cpp:172:45: note: 'cx' declared here
| 172 | static bool WatchProtoChangeImpl(JSContext* cx, HandleObject obj) {
| | ~~~~~~~~~~~^~
| In member function 'void JS::Rooted<T>::registerWithRootLists(JS::RootedListHeads&) [with T = JSString*]',
| inlined from 'JS::Rooted<T>::Rooted(const RootingContext&, S&&) [with RootingContext = JSContext*; S = JSLinearString*; T = JSString*]' at /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/build/dist/include/js/RootingAPI.h:1174:26,
| inlined from 'bool AddToWatchtowerLog(JSContext*, const char*, JS::HandleObject, JS::HandleValue)' at /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/Watchtower.cpp:31:62:
| /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/build/dist/include/js/RootingAPI.h:1141:18: warning: storing the address of local variable 'kindString' in '((js::StackRootedBase**)cx)[6]' [-Wdangling-pointer=]
| 1141 | *this->stack = this;
| | ~~~~~~~~~~~~~^~~~~~
| /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/Watchtower.cpp: In function 'bool AddToWatchtowerLog(JSContext*, const char*, JS::HandleObject, JS::HandleValue)':
| /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/Watchtower.cpp:31:16: note: 'kindString' declared here
| 31 | RootedString kindString(cx, NewStringCopyZ<CanGC>(cx, kind));
| | ^~~~~~~~~~
| /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/Watchtower.cpp:24:43: note: 'cx' declared here
| 24 | static bool AddToWatchtowerLog(JSContext* cx, const char* kind,
| | ~~~~~~~~~~~^~
| In member function 'void JS::Rooted<T>::registerWithRootLists(JS::RootedListHeads&) [with T = JSObject*]',
| inlined from 'JS::Rooted<T>::Rooted(const RootingContext&, S&&) [with RootingContext = JSContext*; S = JSObject*; T = JSObject*]' at /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/build/dist/include/js/RootingAPI.h:1174:26,
| inlined from 'bool ReshapeForShadowedProp(JSContext*, JS::Handle<js::NativeObject*>, JS::HandleId)' at /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/Watchtower.cpp:73:48,
| inlined from 'static bool js::Watchtower::watchPropertyAddSlow(JSContext*, JS::Handle<js::NativeObject*>, JS::HandleId)' at /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/Watchtower.cpp:109:32:
| /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/build/dist/include/js/RootingAPI.h:1141:18: warning: storing the address of local variable 'proto' in '((js::StackRootedBase**)cx)[3]' [-Wdangling-pointer=]
| 1141 | *this->stack = this;
| | ~~~~~~~~~~~~~^~~~~~
| /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/Watchtower.cpp: In static member function 'static bool js::Watchtower::watchPropertyAddSlow(JSContext*, JS::Handle<js::NativeObject*>, JS::HandleId)':
| /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/Watchtower.cpp:73:16: note: 'proto' declared here
| 73 | RootedObject proto(cx, obj->staticPrototype());
| | ^~~~~
| /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/Watchtower.cpp:104:50: note: 'cx' declared here
| 104 | bool Watchtower::watchPropertyAddSlow(JSContext* cx, Handle<NativeObject*> obj,
| | ~~~~~~~~~~~^~
| In member function 'void JS::Rooted<T>::registerWithRootLists(JS::RootedListHeads&) [with T = js::PropMap*]',
| inlined from 'JS::Rooted<T>::Rooted(const RootingContext&, S&&) [with RootingContext = JSContext*; S = js::PropMap*; T = js::PropMap*]' at /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/build/dist/include/js/RootingAPI.h:1174:26,
| inlined from 'static bool js::Watchtower::watchPropertyChangeSlow(JSContext*, JS::Handle<js::NativeObject*>, JS::HandleId, js::PropertyFlags)' at /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/Watchtower.cpp:242:70:
| /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/build/dist/include/js/RootingAPI.h:1141:18: warning: storing the address of local variable 'map' in '((js::StackRootedBase**)cx)[11]' [-Wdangling-pointer=]
| 1141 | *this->stack = this;
| | ~~~~~~~~~~~~~^~~~~~
| /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/Watchtower.cpp: In static member function 'static bool js::Watchtower::watchPropertyChangeSlow(JSContext*, JS::Handle<js::NativeObject*>, JS::HandleId, js::PropertyFlags)':
| /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/Watchtower.cpp:242:22: note: 'map' declared here
| 242 | Rooted<PropMap*> map(cx, obj->shape()->lookup(cx, id, &propIndex));
| | ^~~
| /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/Watchtower.cpp:228:53: note: 'cx' declared here
| 228 | bool Watchtower::watchPropertyChangeSlow(JSContext* cx,
| | ~~~~~~~~~~~^~
| In file included from /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/build/dist/include/js/CallArgs.h:73,
| from /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/build/dist/include/js/CallNonGenericMethod.h:12,
| from /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/NamespaceImports.h:15,
| from /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/NativeObject.h:17,
| from /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/builtin/AtomicsObject.h:15,
| from /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/JSContext.h:17,
| from /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/threading/ProtectedData.cpp:10,
| from Unified_cpp_js_src9.cpp:2:
| In member function 'void JS::Rooted<T>::registerWithRootLists(JS::RootedListHeads&) [with T = JSObject*]',
| inlined from 'JS::Rooted<T>::Rooted(const RootingContext&, S&&) [with RootingContext = JSContext*; S = JSObject*; T = JSObject*]' at /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/build/dist/include/js/RootingAPI.h:1174:26,
| inlined from 'static bool js::UnmappedArgumentsObject::obj_resolve(JSContext*, JS::HandleObject, JS::HandleId, bool*)' at /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/ArgumentsObject.cpp:962:70:
| /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/build/dist/include/js/RootingAPI.h:1141:18: warning: storing the address of local variable 'throwTypeError' in '((js::StackRootedBase**)cx)[3]' [-Wdangling-pointer=]
| 1141 | *this->stack = this;
| | ~~~~~~~~~~~~~^~~~~~
| In file included from Unified_cpp_js_src9.cpp:47:
| /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/ArgumentsObject.cpp: In static member function 'static bool js::UnmappedArgumentsObject::obj_resolve(JSContext*, JS::HandleObject, JS::HandleId, bool*)':
| /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/ArgumentsObject.cpp:961:18: note: 'throwTypeError' declared here
| 961 | RootedObject throwTypeError(
| | ^~~~~~~~~~~~~~
| /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/ArgumentsObject.cpp:943:54: note: 'cx' declared here
| 943 | bool UnmappedArgumentsObject::obj_resolve(JSContext* cx, HandleObject obj,
| | ~~~~~~~~~~~^~
| In member function 'void JS::Rooted<T>::registerWithRootLists(JS::RootedListHeads&) [with T = js::SharedShape*]',
| inlined from 'JS::Rooted<T>::Rooted(const RootingContext&, S&&) [with RootingContext = JSContext*; S = js::SharedShape*; T = js::SharedShape*]' at /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/build/dist/include/js/RootingAPI.h:1174:26,
| inlined from 'static js::ArgumentsObject* js::ArgumentsObject::createTemplateObject(JSContext*, bool)' at /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/ArgumentsObject.cpp:240:65:
| /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/build/dist/include/js/RootingAPI.h:1141:18: warning: storing the address of local variable 'shape' in '((js::StackRootedBase**)cx)[5]' [-Wdangling-pointer=]
| 1141 | *this->stack = this;
| | ~~~~~~~~~~~~~^~~~~~
| /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/ArgumentsObject.cpp: In static member function 'static js::ArgumentsObject* js::ArgumentsObject::createTemplateObject(JSContext*, bool)':
| /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/ArgumentsObject.cpp:238:24: note: 'shape' declared here
| 238 | Rooted<SharedShape*> shape(cx, SharedShape::getInitialShape(
| | ^~~~~
| /home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/js/src/vm/ArgumentsObject.cpp:230:67: note: 'cx' declared here
| 230 | ArgumentsObject* ArgumentsObject::createTemplateObject(JSContext* cx,
| | ~~~~~~~~~~~^~
| make[3]: Leaving directory '/home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/build/js/src'
| make[2]: Leaving directory '/home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/build'
| make[1]: *** [/home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/config/recurse.mk:34: compile] Error 2
| make[1]: Leaving directory '/home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/build'
| make: *** [/home/hari/oe-core/build/tmp/work/armv8a-tdx-linux/mozjs-115/115.8.0/firefox-115.8.0/config/rules.mk:361: default] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/hari/oe-core/build/../layers/meta-openembedded/meta-oe/recipes-extended/mozjs/mozjs-115_115.8.0.bb:do_compile) failed with exit code '1'
Setscene tasks: 5770 of 5770
Currently 6 running tasks (7478 of 11854) 63% |############################################## |
0: linux-toradex-6.6.101+git-r0 do_compile - 25m40s (pid 3302273)
1: qtxmlpatterns-native-5.15.13+git-r0 do_compile - 3m11s (pid 3519872)
2: librsvg-native-2.57.1-r0 do_compile - 2m39s (pid 3527506)
3: coreutils-native-9.4-r0 do_configure - 2m23s (pid 3530114)
4: boost-1.84.0-r0 do_package - 2m19s (pid 3530424)
5: alsa-utils-1.2.11-r0 do_install - 12s (pid 3544336)
Why the basic bsp layer’s are failing for the bsp version 7.5.0 given in the toradex docs i have followed that to build the OS.