Re: Facing build issue in GJS.



Hi,

"Embedding1" was added in SpiderMonkey 68.4, so make sure that you have a later version.

Cheers,
Philip C

On Tue, Jul 7, 2020 at 5:01 AM Libre Tan via _javascript_-list <_javascript_-list gnome org> wrote:
Hi All,

I am trying to build GJS, however I am facing an issue with the build and I would like some help in resolving it.

The first 2 steps of the build went fine.
1. SpiderMonkey built fine. Version 68.
2. GJS $ meson _build is done with all OK.
3. However $ ninja -C _build throws below error.

$ ninja -C _build
ninja: Entering directory `_build'
[1/87] Compiling C++ object 'gjs@sha/gi_enumeration.cpp.o'.
FAILED: gjs@sha/gi_enumeration.cpp.o
clang++ -Igjs@sha -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gobject-introspection-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -fvisibility=hidden -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -std=c++14 -g -fno-strict-aliasing -Wno-variadic-macros -Wno-missing-field-initializers -fno-semantic-interposition -fno-rtti -fPIC -pthread -isystem/usr/include/sysprof-3 -isystem/usr/include/gio-unix-2.0 -isystem/usr/include/libmount -isystem/usr/include/blkid -isystem/usr/include/glib-2.0 -isystem/usr/lib/x86_64-linux-gnu/glib-2.0/include -include /usr/local/include/mozjs-68/js-confdefs.h -isystem /usr/local/include/mozjs-68 -DGJS_COMPILATION '-DGJS_JS_DIR="/usr/local/share/gjs-1.0"' '-DPKGLIBDIR="/usr/local/lib/x86_64-linux-gnu/gjs"' '-DG_LOG_DOMAIN="Gjs"' -MD -MQ 'gjs@sha/gi_enumeration.cpp.o' -MF 'gjs@sha/gi_enumeration.cpp.o.d' -o 'gjs@sha/gi_enumeration.cpp.o' -c ../gi/enumeration.cpp
In file included from ../gi/enumeration.cpp:24:
./config.h:32:9: warning: 'HAVE_UNISTD_H' macro redefined [-Wmacro-redefined]
#define HAVE_UNISTD_H
        ^
/usr/local/include/mozjs-68/js-confdefs.h:59:9: note: previous definition is here
#define HAVE_UNISTD_H 1
        ^
In file included from ../gi/enumeration.cpp:35:
../gi/wrapperutils.h:79:64: error: no member named 'Embedding1' in 'JS::MemoryUse'
constexpr JS::MemoryUse GObjectInstanceStruct = JS::MemoryUse::Embedding1;
                                                                                ~~~~~~~~~~~~~~~^

It is not able to find Embedding1

I also grepped through the spiderMonkey and GJS code bases and "Embedding1" is not defined anywhere.

Am I missing something?

I apologise if this is not the correct forum for asking such queries. If so please redirect me to the correct channel for resolving such queries.

Thank you.


_______________________________________________
_javascript_-list mailing list
_javascript_-list gnome org
https://mail.gnome.org/mailman/listinfo/_javascript_-list


--
Philip


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]