You are not logged in.

#1 2020-08-22 19:15:11

afader
Member
Registered: 2013-09-12
Posts: 102

[SOLVED] GNOME/polkit/Gjs will require js78, not js68

I tried installing spidermonkey-git from aur but I could not use the mozjs-78 it produced to install gjs-git.

Last edited by afader (2020-08-29 00:58:58)

Offline

#2 2020-08-22 19:17:39

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 3,334

Re: [SOLVED] GNOME/polkit/Gjs will require js78, not js68

Moving to AUR issues.

Offline

#3 2020-08-22 19:30:50

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 7,868

Re: [SOLVED] GNOME/polkit/Gjs will require js78, not js68

You need to be WAY more specific.

Offline

#4 2020-08-22 20:53:45

loqs
Member
Registered: 2014-03-06
Posts: 11,602

Re: [SOLVED] GNOME/polkit/Gjs will require js78, not js68

git clone https://aur.archlinux.org/spidermonkey-git.git
Cloning into 'spidermonkey-git'...
remote: Enumerating objects: 8, done.
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 8 (delta 0), reused 8 (delta 0), pack-reused 0
Unpacking objects: 100% (8/8), 2.42 KiB | 2.42 MiB/s, done.
$ cd spidermonkey-git/
$ extra-x86_64-build 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community               5.1 MiB  1601 KiB/s 00:03 [######################] 100%
:: Starting full system upgrade...
 there is nothing to do
==> Building in chroot for [extra] (x86_64)...
==> Synchronizing chroot copy [/var/lib/archbuild/extra-x86_64/root] -> [builduser]...done
==> Making package: spidermonkey-git 51.0a1.r45e888f-1 (Sat Aug 22 20:40:16 2020)
==> Retrieving sources...
  -> Cloning gecko-dev git repo...
Cloning into bare repository '/tmp/spidermonkey-git/gecko-dev'...
remote: Enumerating objects: 766, done.
remote: Counting objects: 100% (766/766), done.
remote: Compressing objects: 100% (616/616), done.
remote: Total 8965922 (delta 191), reused 396 (delta 141), pack-reused 8965156
Receiving objects: 100% (8965922/8965922), 2.77 GiB | 9.13 MiB/s, done.
Resolving deltas: 100% (7271083/7271083), done.
==> Validating source files with md5sums...
    gecko-dev ... Skipped
==> Making package: spidermonkey-git 51.0a1.r45e888f-1 (Sat 22 Aug 2020 20:48:51 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...

Packages (12) compiler-rt-10.0.1-1  libedit-20191231_3.1-1  libnsl-1.3.0-1
              llvm-libs-10.0.1-1  pcre2-10.35-1  perl-error-0.17029-2
              perl-mailtools-2.21-4  perl-timedate-2.33-2  autoconf2.13-2.13-6
              clang-10.0.1-1  git-2.28.0-1  python2-2.7.18-1

Total Download Size:     0.17 MiB
Total Installed Size:  399.65 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 autoconf2.13-2.1...   169.9 KiB  1770 KiB/s 00:00 [######################] 100%
(12/12) checking keys in keyring                   [######################] 100%
(12/12) checking package integrity                 [######################] 100%
(12/12) loading package files                      [######################] 100%
(12/12) checking for file conflicts                [######################] 100%
:: Processing package changes...
( 1/12) installing perl-error                      [######################] 100%
( 2/12) installing perl-timedate                   [######################] 100%
( 3/12) installing perl-mailtools                  [######################] 100%
( 4/12) installing pcre2                           [######################] 100%
( 5/12) installing git                             [######################] 100%
Optional dependencies for git
    tk: gitk and git gui
    perl-libwww: git svn
    perl-term-readkey: git svn and interactive.singlekey setting
    perl-mime-tools: git send-email
    perl-net-smtp-ssl: git send-email TLS support
    perl-authen-sasl: git send-email TLS support
    perl-mediawiki-api: git mediawiki support
    perl-datetime-format-iso8601: git mediawiki support
    perl-lwp-protocol-https: git mediawiki https support
    perl-cgi: gitweb (web interface) support
    python: git svn & git p4
    subversion: git svn
    org.freedesktop.secrets: keyring credential helper
    libsecret: libsecret credential helper [installed]
( 6/12) installing libedit                         [######################] 100%
( 7/12) installing llvm-libs                       [######################] 100%
( 8/12) installing compiler-rt                     [######################] 100%
( 9/12) installing clang                           [######################] 100%
Optional dependencies for clang
    openmp: OpenMP support in clang with -fopenmp
    python: for scan-view and git-clang-format
    llvm: referenced by some clang headers
(10/12) installing autoconf2.13                    [######################] 100%
(11/12) installing libnsl                          [######################] 100%
(12/12) installing python2                         [######################] 100%
Optional dependencies for python2
    tk: for IDLE
    python2-setuptools
    python2-pip
:: Running post-transaction hooks...
(1/2) Warn about old perl modules
(2/2) Updating the info directory file...
==> Retrieving sources...
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Creating working copy of gecko-dev git repo...
Cloning into 'gecko-dev'...
done.
Updating files: 100% (283640/283640), done.
==> Starting pkgver()...
==> ERROR: pkgver is not allowed to contain colons, forward slashes, hyphens or whitespace.
==> ERROR: pkgver() generated an invalid version: python2: can't open file 'python/mozbuild/mozbuild/milestone.py': [Errno 2] No such file or directory
3c98465c9d32.r
==> ERROR: Build failed, check /var/lib/archbuild/extra-x86_64/builduser/build
3c98465c9d32.r

Given the PKGBUILD in AUR fails in pkgver what PKGBUILD are you using?

Offline

#5 2020-08-23 15:31:13

afader
Member
Registered: 2013-09-12
Posts: 102

Re: [SOLVED] GNOME/polkit/Gjs will require js78, not js68

I'm sorry. I should have explained. I checked out the spidermonkey-git pkgbuild and I changed the commit to use to the latest one in the gecko-dev github that would be version 78. Also tried building version 81.

It builds successfully and I can install the .so file to /usr/lib, and it gets detected by the gjs meson build script, but it fails a test. I can also install the mozjs-78 .so file from Fedora rpm extract. However, this one seems to have been compiled with debug symbols which the build also doesn't like.

Basically, is there a good way to install this. I'm assuming that I'm not supposed to take the spidermonkey-git build script and point at a newer commit with no changes. Even though it built fine.

Offline

#6 2020-08-23 15:54:12

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 7,868

Re: [SOLVED] GNOME/polkit/Gjs will require js78, not js68

First off, that's not how -git packages work. I have no idea what you changed, but they always use the latest commit in the default branch.

Second, what do you mean you can install the .so file to /usr/lib? That's not how packages work. And copying libraries from Fedora? Seriously?

Lastly, a test failure may or may not be a problem. Without giving ACTUAL info, we don't know.

Offline

#7 2020-08-23 16:06:35

afader
Member
Registered: 2013-09-12
Posts: 102

Re: [SOLVED] GNOME/polkit/Gjs will require js78, not js68

If you install the latest spidermonkey-git it is version 81. I had to check out an older commit to get version 78 which the gnome git builds want. All I did was add '#<commit-sha>' to the end of the git source line in the pkgbuild. It built fine. I am using the same spidermonkey-git pkgbuild. but maybe it needs to be updated.

In this particular package's case, /usr/lib is where I see the current (old) js68. So I'm not saying that I installed it by hand there. That's where the library ends up as a result of this pkgbuild. After I install spidermonkey-git that's where I see 78 or 81. Only have 68 there now.

-rwxr-xr-x   1 root root   26M Aug  1 15:35 libmozjs-68.so

I agree that I shouldn't have expected the Fedora version to work. I just want to get a working version and most of the other big distributions seem to have a working version 78 of this library, but Arch doesn't seem to. So I figured I would give it a try. It did detect it but it did not like the debug symbols.

I agree the test failure may just be noise. Is there a way for gjs-git to ignore it for meson build options?

I'm happy to move this in the right direction or read a manual or docs if there are any. I don't have the actual line from the complaining gjs-git build right now. It takes a while to recompile spidermonkey-git. I was hoping there was something else for me to try before I try it again.

Offline

#8 2020-08-23 17:50:22

loqs
Member
Registered: 2014-03-06
Posts: 11,602

Re: [SOLVED] GNOME/polkit/Gjs will require js78, not js68

What is the commit or the full PKGBUILD so others can reproduce the spidermonkey-git you are using?  Did you not consider flagging spidermonkey-git out of date?
Edit:
79 was introduced with https://github.com/mozilla/gecko-dev/co … ada70cfba3 and its parent is 1221b4d144c61b565e4b7214e38baba12c8f21c7
Which produces:

Cloning into 'gecko-dev'...
done.
Updating files: 100% (283727/283727), done.
Updating files: 100% (40921/40921), done.
Switched to a new branch 'makepkg'
==> Starting pkgver()...
==> ERROR: pkgver is not allowed to contain colons, forward slashes, hyphens or whitespace.
==> ERROR: pkgver() generated an invalid version: python2: can't open file 'python/mozbuild/mozbuild/milestone.py': [Errno 2] No such file or directory
1221b4d144c6.r

Please post the PKGBUILD you are using.

Last edited by loqs (2020-08-23 22:01:31)

Offline

#9 2020-08-28 15:55:52

afader
Member
Registered: 2013-09-12
Posts: 102

Re: [SOLVED] GNOME/polkit/Gjs will require js78, not js68

I was using the spidermonkey-git pkgbuild and I didn't have that error, but my python points to python3, so that may be why. I don't think the spidermonkey-git pkgbuild is broken per se.

However, I think I figured out the problem. https://gitlab.gnome.org/GNOME/gjs/-/issues/340 I need to build from https://github.com/ptomato/mozjs mozjs78 branch. Not the main gecko-dev. Since there are special GNOME patches needed for this.

I'm building it now and I'll edit this post with the results, but hopeful this will solve it.

Offline

#10 2020-08-28 16:46:16

afader
Member
Registered: 2013-09-12
Posts: 102

Re: [SOLVED] GNOME/polkit/Gjs will require js78, not js68

 andrew@obsidian  spidermonkey-git   master ✘ ✹ ✭   sudo pacman -U spidermonkey-git-e5a2eb99f.r-1-x86_64.pkg.tar.lzo                                                                                                                 12:44:33  ruby 2.7.1
loading packages...
resolving dependencies...
looking for conflicting packages...

Package (1)       New Version    Net Change

spidermonkey-git  e5a2eb99f.r-1  122.18 MiB

Total Installed Size:  122.18 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring                                                                                                                            [###############################################################################################] 100%
(1/1) checking package integrity                                                                                                                          [###############################################################################################] 100%
(1/1) loading package files                                                                                                                               [###############################################################################################] 100%
(1/1) checking for file conflicts                                                                                                                         [###############################################################################################] 100%
(1/1) checking available disk space                                                                                                                       [###############################################################################################] 100%
:: Processing package changes...
(1/1) installing spidermonkey-git                                                                                                                         [###############################################################################################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Removing unnecessary cached files (keeping the latest two)…
==> no candidate packages found for pruning

 andrew@obsidian  spidermonkey-git   master ✘ ✹ ✭   yay -S gjs-git mutter-git gnome-shell-git gsettings-desktop-schemas-git                                                                                                          12:44:40  ruby 2.7.1
:: Checking for conflicts...
:: Checking for inner conflicts...
 ->
Package conflicts found:
 -> Installing gnome-desktop-git will remove: gnome-desktop
 -> Installing gjs-git will remove: gjs
 -> Installing mutter-git will remove: mutter
 -> Installing gnome-shell-git will remove: gnome-shell
 -> Installing gsettings-desktop-schemas-git will remove: gsettings-desktop-schemas
 -> Installing pipewire-git will remove: pipewire
 -> Conflicting packages will have to be confirmed manually
[Aur:6]  gjs-git-2:1.63.91+2+g6ea0f836-1  gsettings-desktop-schemas-git-3.37.1.r2.g4acad3c-1  gnome-desktop-git-1:3.31.4+1+g4501279a-1  pipewire-git-0.3.10.24.g157b15d6-1  mutter-git-3.35.91+97+gf27de9620-1  gnome-shell-git-1:3.37.1+80+g71b3b03b2-1

  6 gjs-git                          (Build Files Exist)
  5 gsettings-desktop-schemas-git    (Build Files Exist)
  4 gnome-desktop-git                (Build Files Exist)
  3 pipewire-git                     (Build Files Exist)
  2 mutter-git                       (Build Files Exist)
  1 gnome-shell-git                  (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: PKGBUILD up to date, Skipping (1/6): gnome-shell-git
:: PKGBUILD up to date, Skipping (2/6): gnome-desktop-git
:: PKGBUILD up to date, Skipping (3/6): gjs-git
:: PKGBUILD up to date, Skipping (4/6): gsettings-desktop-schemas-git
:: PKGBUILD up to date, Skipping (5/6): pipewire-git
:: PKGBUILD up to date, Skipping (6/6): mutter-git
  6 gjs-git                          (Build Files Exist)
  5 gsettings-desktop-schemas-git    (Build Files Exist)
  4 gnome-desktop-git                (Build Files Exist)
  3 pipewire-git                     (Build Files Exist)
  2 mutter-git                       (Build Files Exist)
  1 gnome-shell-git                  (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: (1/6) Parsing SRCINFO: gjs-git
:: (2/6) Parsing SRCINFO: gsettings-desktop-schemas-git
:: (3/6) Parsing SRCINFO: gnome-desktop-git
:: (4/6) Parsing SRCINFO: pipewire-git
:: (5/6) Parsing SRCINFO: mutter-git
:: (6/6) Parsing SRCINFO: gnome-shell-git
==> Making package: gjs-git 2:1.63.91+2+g6ea0f836-1 (Fri 28 Aug 2020 12:44:59 PM EDT)
==> Retrieving sources...
  -> Updating gjs git repo...
Fetching origin
==> Validating source files with sha256sums...
    gjs ... Skipped
==> Making package: gsettings-desktop-schemas-git 3.37.1.r2.g4acad3c-1 (Fri 28 Aug 2020 12:45:00 PM EDT)
==> Retrieving sources...
  -> Updating gsettings-desktop-schemas git repo...
Fetching origin
==> Validating source files with sha256sums...
    gsettings-desktop-schemas ... Skipped
==> Making package: gnome-desktop-git 1:3.31.4+1+g4501279a-1 (Fri 28 Aug 2020 12:45:01 PM EDT)
==> Retrieving sources...
  -> Updating gnome-desktop git repo...
Fetching origin
==> Validating source files with sha256sums...
    gnome-desktop ... Skipped
==> Making package: pipewire-git 0.3.10.24.g157b15d6-1 (Fri 28 Aug 2020 12:45:04 PM EDT)
==> Retrieving sources...
  -> Updating pipewire git repo...
Fetching origin
==> Validating source files with sha256sums...
    pipewire ... Skipped
==> Making package: mutter-git 3.35.91+97+gf27de9620-1 (Fri 28 Aug 2020 12:45:05 PM EDT)
==> Retrieving sources...
  -> Updating mutter git repo...
Fetching origin
From https://gitlab.gnome.org/GNOME/mutter
 - [deleted]             (none)     -> gbsneto/fix-unset-cursor-metadata
remote: Enumerating objects: 1796, done.
remote: Counting objects: 100% (1283/1283), done.
remote: Compressing objects: 100% (299/299), done.
remote: Total 1060 (delta 883), reused 925 (delta 761), pack-reused 0
Receiving objects: 100% (1060/1060), 236.07 KiB | 4.72 MiB/s, done.
Resolving deltas: 100% (883/883), completed with 138 local objects.
   f69bb2097..2b67030db  master                         -> master
 + f42c773fe...2d89f9e85 refs/merge-requests/1286/merge -> refs/merge-requests/1286/merge  (forced update)
 + 939572de6...feba855e6 refs/merge-requests/1309/merge -> refs/merge-requests/1309/merge  (forced update)
 + 074a2e990...c0d7a7521 refs/merge-requests/1318/merge -> refs/merge-requests/1318/merge  (forced update)
 + f13698cf2...e86df24ce refs/merge-requests/1339/merge -> refs/merge-requests/1339/merge  (forced update)
 + 7e209c4e5...4b8d5ae0e refs/merge-requests/1383/merge -> refs/merge-requests/1383/merge  (forced update)
 + d3498112f...5f52cb21b refs/merge-requests/1403/merge -> refs/merge-requests/1403/merge  (forced update)
 + e825341a3...2b67030db refs/merge-requests/1417/head  -> refs/merge-requests/1417/head  (forced update)
 + 548f21e2f...0f79d60a9 refs/merge-requests/1417/merge -> refs/merge-requests/1417/merge  (forced update)
 * [new ref]             refs/pipelines/208568          -> refs/pipelines/208568
==> Validating source files with sha256sums...
    mutter ... Skipped
==> Making package: gnome-shell-git 1:3.37.1+80+g71b3b03b2-1 (Fri 28 Aug 2020 12:45:07 PM EDT)
==> Retrieving sources...
  -> Updating gnome-shell git repo...
Fetching origin
==> Validating source files with sha256sums...
    gnome-shell ... Skipped
==> Making package: gjs-git 2:1.63.91+2+g6ea0f836-1 (Fri 28 Aug 2020 12:45:08 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating gjs git repo...
Fetching origin
==> Validating source files with sha256sums...
    gjs ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of gjs git repo...
Cloning into 'gjs'...
done.
==> Starting pkgver()...
==> Updated version: gjs-git 2:1.65.91+9+ga8506503-1
==> Sources are ready.
==> Making package: gjs-git 2:1.65.91+9+ga8506503-1 (Fri 28 Aug 2020 12:45:10 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
+ exec meson setup --prefix /usr --libdir /usr/lib --libexecdir /usr/lib --bindir /usr/bin --sbindir /usr/bin --includedir /usr/include --datadir /usr/share --mandir /usr/share/man --infodir /usr/share/info --localedir /usr/share/locale --sysconfdir /etc --localstatedir /var --sharedstatedir /var/lib --buildtype release --wrap-mode nofallback gjs build -D b_lto=true
The Meson build system
Version: 0.55.999
Source dir: /home/andrew/.cache/yay/gjs-git/src/gjs
Build dir: /home/andrew/.cache/yay/gjs-git/src/build
Build type: native build
Project name: gjs
Project version: 1.65.92
Using 'CFLAGS' from environment with value: '-march=native -mtune=native -O3 -pipe -fstack-protector-strong -fno-plt -I/opt/cuda/include'
Using 'LDFLAGS' from environment with value: '-Wl,-O1,--sort-common,--as-needed,-z,relro'
Using 'CPPFLAGS' from environment with value: '-D_FORTIFY_SOURCE=2'
Using 'CXXFLAGS' from environment with value: '-march=native -mtune=native -O3 -pipe -fstack-protector-strong -fno-plt -I/opt/cuda/include'
Using 'LDFLAGS' from environment with value: '-Wl,-O1,--sort-common,--as-needed,-z,relro'
Using 'CPPFLAGS' from environment with value: '-D_FORTIFY_SOURCE=2'
Using 'CFLAGS' from environment with value: '-march=native -mtune=native -O3 -pipe -fstack-protector-strong -fno-plt -I/opt/cuda/include'
Using 'LDFLAGS' from environment with value: '-Wl,-O1,--sort-common,--as-needed,-z,relro'
Using 'CPPFLAGS' from environment with value: '-D_FORTIFY_SOURCE=2'
C compiler for the host machine: ccache cc (gcc 10.2.0 "cc (GCC) 10.2.0")
C linker for the host machine: cc ld.bfd 2.35
Using 'CXXFLAGS' from environment with value: '-march=native -mtune=native -O3 -pipe -fstack-protector-strong -fno-plt -I/opt/cuda/include'
Using 'LDFLAGS' from environment with value: '-Wl,-O1,--sort-common,--as-needed,-z,relro'
Using 'CPPFLAGS' from environment with value: '-D_FORTIFY_SOURCE=2'
C++ compiler for the host machine: ccache c++ (gcc 10.2.0 "c++ (GCC) 10.2.0")
C++ linker for the host machine: c++ ld.bfd 2.35
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C++ supports arguments -fno-strict-aliasing: YES
Compiler for C++ supports arguments -Wno-variadic-macros -Wvariadic-macros: YES
Compiler for C++ supports arguments -Wno-missing-field-initializers -Wmissing-field-initializers: YES
Compiler for C supports arguments -Wno-typedef-redefinition -Wtypedef-redefinition: NO
Compiler for C++ supports link arguments -Bsymbolic-functions: YES
Compiler for C supports arguments -fno-semantic-interposition: YES
Compiler for C++ supports arguments -fno-semantic-interposition: YES
Compiler for C++ supports arguments -fno-rtti: YES
Found pkg-config: /usr/bin/pkg-config (1.7.3)
Run-time dependency glib-2.0 found: YES 2.64.5
Run-time dependency gthread-2.0 found: YES 2.64.5
Run-time dependency gobject-2.0 found: YES 2.64.5
Run-time dependency gio-2.0 found: YES 2.64.5
Run-time dependency libffi found: YES 3.3
Run-time dependency gobject-introspection-1.0 found: YES 1.64.1
Run-time dependency mozjs-78 found: YES 78.0.1
Run-time dependency cairo found: YES 1.17.3
Run-time dependency cairo-gobject found: YES 1.17.3
Run-time dependency cairo-xlib found: YES 1.17.3
Run-time dependency sysprof-capture-4 found: YES 3.37.90
Library readline found: YES
Checking for function "timer_settime" : NO
Library rt found: YES
Checking for function "timer_settime" with dependency -lrt: YES
Header <signal.h> has symbol "SIGEV_THREAD_ID" : YES
Checking if "SpiderMonkey is a non-debug build" with dependency mozjs-78 compiles: YES
Checking if "SpiderMonkey sanity check" with dependency mozjs-78 runs: NO (-11)

gjs/meson.build:251:4: ERROR: Problem encountered: A minimal SpiderMonkey program
could not be compiled, linked, or run. Most likely you should build it with a
different configuration. Check the recommended configuration:
https://github.com/spidermonkey-embedders/spidermonkey-embedding-examples/blob/esr78/docs/Building%20SpiderMonkey.md

A full log can be found at /home/andrew/.cache/yay/gjs-git/src/build/meson-logs/meson-log.txt
==> ERROR: A failure occurred in build().
    Aborting...
error making: gjs-git
 andrew@obsidian  spidermonkey-git   master ✘ ✹ ✭   cat /home/andrew/.cache/yay/gjs-git/src/build/meson-logs/meson-log.txt                                                                                                           12:45:14  ruby 2.7.1
Build started at 2020-08-28T12:45:10.948233
Main binary: /usr/bin/python
Build Options: -Db_lto=true -Dprefix=/usr -Dbindir=/usr/bin -Ddatadir=/usr/share -Dincludedir=/usr/include -Dinfodir=/usr/share/info -Dlibdir=/usr/lib -Dlibexecdir=/usr/lib -Dlocaledir=/usr/share/locale -Dlocalstatedir=/var -Dmandir=/usr/share/man -Dsbindir=/usr/bin -Dsharedstatedir=/var/lib -Dsysconfdir=/etc -Dbuildtype=release -Dwrap_mode=nofallback
Python system: Linux
The Meson build system
Version: 0.55.999
Source dir: /home/andrew/.cache/yay/gjs-git/src/gjs
Build dir: /home/andrew/.cache/yay/gjs-git/src/build
Build type: native build
Project name: gjs
Project version: 1.65.92
None of 'CC' are defined in the environment, not changing global flags.
Using 'CFLAGS' from environment with value: '-march=native -mtune=native -O3 -pipe -fstack-protector-strong -fno-plt -I/opt/cuda/include'
Using 'LDFLAGS' from environment with value: '-Wl,-O1,--sort-common,--as-needed,-z,relro'
Using 'CPPFLAGS' from environment with value: '-D_FORTIFY_SOURCE=2'
None of 'CC_LD' are defined in the environment, not changing global flags.
Sanity testing C compiler: ccache cc
Is cross compiler: False.
None of 'CC_LD' are defined in the environment, not changing global flags.
Sanity check compiler command line: ccache cc /home/andrew/.cache/yay/gjs-git/src/build/meson-private/sanitycheckc.c -o /home/andrew/.cache/yay/gjs-git/src/build/meson-private/sanitycheckc.exe -march=native -mtune=native -O3 -pipe -fstack-protector-strong -fno-plt -I/opt/cuda/include -D_FORTIFY_SOURCE=2 -pipe -D_FILE_OFFSET_BITS=64 -Wl,-O1,--sort-common,--as-needed,-z,relro
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /home/andrew/.cache/yay/gjs-git/src/build/meson-private/sanitycheckc.exe
C compiler for the build machine: ccache cc (gcc 10.2.0 "cc (GCC) 10.2.0")
C linker for the build machine: cc ld.bfd 2.35
None of 'AR' are defined in the environment, not changing global flags.
None of 'CXX' are defined in the environment, not changing global flags.
Using 'CXXFLAGS' from environment with value: '-march=native -mtune=native -O3 -pipe -fstack-protector-strong -fno-plt -I/opt/cuda/include'
Using 'LDFLAGS' from environment with value: '-Wl,-O1,--sort-common,--as-needed,-z,relro'
Using 'CPPFLAGS' from environment with value: '-D_FORTIFY_SOURCE=2'
None of 'CXX_LD' are defined in the environment, not changing global flags.
Sanity testing C++ compiler: ccache c++
Is cross compiler: False.
None of 'CXX_LD' are defined in the environment, not changing global flags.
Sanity check compiler command line: ccache c++ /home/andrew/.cache/yay/gjs-git/src/build/meson-private/sanitycheckcpp.cc -o /home/andrew/.cache/yay/gjs-git/src/build/meson-private/sanitycheckcpp.exe -march=native -mtune=native -O3 -pipe -fstack-protector-strong -fno-plt -I/opt/cuda/include -D_FORTIFY_SOURCE=2 -pipe -D_FILE_OFFSET_BITS=64 -Wl,-O1,--sort-common,--as-needed,-z,relro
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /home/andrew/.cache/yay/gjs-git/src/build/meson-private/sanitycheckcpp.exe
C++ compiler for the build machine: ccache c++ (gcc 10.2.0 "c++ (GCC) 10.2.0")
C++ linker for the build machine: c++ ld.bfd 2.35
None of 'CC' are defined in the environment, not changing global flags.
Using 'CFLAGS' from environment with value: '-march=native -mtune=native -O3 -pipe -fstack-protector-strong -fno-plt -I/opt/cuda/include'
Using 'LDFLAGS' from environment with value: '-Wl,-O1,--sort-common,--as-needed,-z,relro'
Using 'CPPFLAGS' from environment with value: '-D_FORTIFY_SOURCE=2'
None of 'CC_LD' are defined in the environment, not changing global flags.
Sanity testing C compiler: ccache cc
Is cross compiler: False.
None of 'CC_LD' are defined in the environment, not changing global flags.
Sanity check compiler command line: ccache cc /home/andrew/.cache/yay/gjs-git/src/build/meson-private/sanitycheckc.c -o /home/andrew/.cache/yay/gjs-git/src/build/meson-private/sanitycheckc.exe -march=native -mtune=native -O3 -pipe -fstack-protector-strong -fno-plt -I/opt/cuda/include -D_FORTIFY_SOURCE=2 -pipe -D_FILE_OFFSET_BITS=64 -Wl,-O1,--sort-common,--as-needed,-z,relro
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /home/andrew/.cache/yay/gjs-git/src/build/meson-private/sanitycheckc.exe
C compiler for the host machine: ccache cc (gcc 10.2.0 "cc (GCC) 10.2.0")
C linker for the host machine: cc ld.bfd 2.35
None of 'AR' are defined in the environment, not changing global flags.
None of 'CXX' are defined in the environment, not changing global flags.
Using 'CXXFLAGS' from environment with value: '-march=native -mtune=native -O3 -pipe -fstack-protector-strong -fno-plt -I/opt/cuda/include'
Using 'LDFLAGS' from environment with value: '-Wl,-O1,--sort-common,--as-needed,-z,relro'
Using 'CPPFLAGS' from environment with value: '-D_FORTIFY_SOURCE=2'
None of 'CXX_LD' are defined in the environment, not changing global flags.
Sanity testing C++ compiler: ccache c++
Is cross compiler: False.
None of 'CXX_LD' are defined in the environment, not changing global flags.
Sanity check compiler command line: ccache c++ /home/andrew/.cache/yay/gjs-git/src/build/meson-private/sanitycheckcpp.cc -o /home/andrew/.cache/yay/gjs-git/src/build/meson-private/sanitycheckcpp.exe -march=native -mtune=native -O3 -pipe -fstack-protector-strong -fno-plt -I/opt/cuda/include -D_FORTIFY_SOURCE=2 -pipe -D_FILE_OFFSET_BITS=64 -Wl,-O1,--sort-common,--as-needed,-z,relro
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /home/andrew/.cache/yay/gjs-git/src/build/meson-private/sanitycheckcpp.exe
C++ compiler for the host machine: ccache c++ (gcc 10.2.0 "c++ (GCC) 10.2.0")
C++ linker for the host machine: c++ ld.bfd 2.35
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: x86_64
Host machine cpu: x86_64
Target machine cpu family: x86_64
Target machine cpu: x86_64
Running compile:
Working directory:  /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpw5ssqetg
Command line:  ccache c++ -I/opt/cuda/include /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpw5ssqetg/testfile.cpp -o /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpw5ssqetg/output.obj -pipe -c -march=native -mtune=native -O3 -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -fno-strict-aliasing

Code:
 extern int i;
int i;

Compiler stdout:

Compiler stderr:

Compiler for C++ supports arguments -fno-strict-aliasing: YES
Running compile:
Working directory:  /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmp7envrq84
Command line:  ccache c++ -I/opt/cuda/include /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmp7envrq84/testfile.cpp -o /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmp7envrq84/output.obj -pipe -c -march=native -mtune=native -O3 -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wno-variadic-macros -Wvariadic-macros

Code:
 extern int i;
int i;

Compiler stdout:

Compiler stderr:

Compiler for C++ supports arguments -Wno-variadic-macros -Wvariadic-macros: YES
Running compile:
Working directory:  /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmp0hbsaep3
Command line:  ccache c++ -I/opt/cuda/include /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmp0hbsaep3/testfile.cpp -o /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmp0hbsaep3/output.obj -pipe -c -march=native -mtune=native -O3 -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wno-missing-field-initializers -Wmissing-field-initializers

Code:
 extern int i;
int i;

Compiler stdout:

Compiler stderr:

Compiler for C++ supports arguments -Wno-missing-field-initializers -Wmissing-field-initializers: YES
Running compile:
Working directory:  /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpcpl4rnvt
Command line:  ccache cc -I/opt/cuda/include /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpcpl4rnvt/testfile.c -o /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpcpl4rnvt/output.obj -pipe -c -march=native -mtune=native -O3 -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -O0 -Wno-typedef-redefinition -Wtypedef-redefinition

Code:
 extern int i;
int i;

Compiler stdout:

Compiler stderr:
 cc: error: unrecognized command-line option '-Wtypedef-redefinition'

Compiler for C supports arguments -Wno-typedef-redefinition -Wtypedef-redefinition: NO
None of 'CXX_LD' are defined in the environment, not changing global flags.
Running compile:
Working directory:  /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmp5_5gsmrk
Command line:  ccache c++ -I/opt/cuda/include /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmp5_5gsmrk/testfile.cpp -o /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmp5_5gsmrk/output.exe -pipe -march=native -mtune=native -O3 -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wl,--fatal-warnings -Bsymbolic-functions -Wl,-O1,--sort-common,--as-needed,-z,relro

Code:
 int main(void) { return 0; }

Compiler stdout:

Compiler stderr:

Compiler for C++ supports link arguments -Bsymbolic-functions: YES
Running compile:
Working directory:  /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmp02vlsm23
Command line:  ccache cc -I/opt/cuda/include /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmp02vlsm23/testfile.c -o /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmp02vlsm23/output.obj -pipe -c -march=native -mtune=native -O3 -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -O0 -fno-semantic-interposition

Code:
 extern int i;
int i;

Compiler stdout:

Compiler stderr:

Compiler for C supports arguments -fno-semantic-interposition: YES
Running compile:
Working directory:  /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpi9r_9hs4
Command line:  ccache c++ -I/opt/cuda/include /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpi9r_9hs4/testfile.cpp -o /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpi9r_9hs4/output.obj -pipe -c -march=native -mtune=native -O3 -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -fno-semantic-interposition

Code:
 extern int i;
int i;

Compiler stdout:

Compiler stderr:

Compiler for C++ supports arguments -fno-semantic-interposition: YES
Running compile:
Working directory:  /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpbfkmchkd
Command line:  ccache c++ -I/opt/cuda/include /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpbfkmchkd/testfile.cpp -o /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpbfkmchkd/output.obj -pipe -c -march=native -mtune=native -O3 -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -fno-rtti

Code:
 extern int i;
int i;

Compiler stdout:

Compiler stderr:

Compiler for C++ supports arguments -fno-rtti: YES
Pkg-config binary for MachineChoice.HOST is not cached.
None of 'PKG_CONFIG' are defined in the environment, not changing global flags.
Pkg-config binary missing from cross or native file, or env var undefined.
Trying a default Pkg-config fallback at pkg-config
Found pkg-config: /usr/bin/pkg-config (1.7.3)
Determining dependency 'glib-2.0' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config --modversion glib-2.0` -> 0
2.64.5
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config --cflags glib-2.0` -> 0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config glib-2.0 --libs` -> 0
-L/usr/lib -lglib-2.0
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config glib-2.0 --libs` -> 0
-lglib-2.0
None of 'PKG_CONFIG_PATH' are defined in the environment, not changing global flags.
None of 'CXX_LD' are defined in the environment, not changing global flags.
Running compile:
Working directory:  /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmp7vmprbup
Command line:  ccache c++ -I/opt/cuda/include /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmp7vmprbup/testfile.cpp -o /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmp7vmprbup/output.exe -pipe -march=native -mtune=native -O3 -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wl,-O1,--sort-common,--as-needed,-z,relro

Code:
 #include<stdio.h>

        int main(void) {
            printf("%ld\n", (long)(sizeof(void *)));
            return 0;
        };
Compiler stdout:

Compiler stderr:
 In file included from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmp7vmprbup/testfile.cpp:1:
/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
  397 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
      |    ^~~~~~~

Program stdout:

8

Program stderr:


Running compile:
Working directory:  /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpkhfvp1ln
Command line:  ccache c++ -I/opt/cuda/include /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpkhfvp1ln/testfile.cpp -o /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpkhfvp1ln/output.obj -pipe -c -march=native -mtune=native -O3 -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -O0 -fpermissive --print-search-dirs

Code:

Compiler stdout:
 install: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/
programs: =/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu/10.2.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/
libraries: =/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/lib/x86_64-pc-linux-gnu/10.2.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/lib/../lib/:/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../x86_64-pc-linux-gnu/10.2.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib/:/lib/x86_64-pc-linux-gnu/10.2.0/:/lib/../lib/:/usr/lib/x86_64-pc-linux-gnu/10.2.0/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/lib/:/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../:/lib/:/usr/lib/

Compiler stderr:

Run-time dependency glib-2.0 found: YES 2.64.5
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'gthread-2.0' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config --modversion gthread-2.0` -> 0
2.64.5
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config --cflags gthread-2.0` -> 0
-pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config gthread-2.0 --libs` -> 0
-L/usr/lib -lgthread-2.0 -pthread -lglib-2.0
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config gthread-2.0 --libs` -> 0
-lgthread-2.0 -pthread -lglib-2.0
None of 'PKG_CONFIG_PATH' are defined in the environment, not changing global flags.
Run-time dependency gthread-2.0 found: YES 2.64.5
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'gobject-2.0' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config --modversion gobject-2.0` -> 0
2.64.5
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config --cflags gobject-2.0` -> 0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config gobject-2.0 --libs` -> 0
-L/usr/lib -lgobject-2.0 -lglib-2.0
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config gobject-2.0 --libs` -> 0
-lgobject-2.0 -lglib-2.0
None of 'PKG_CONFIG_PATH' are defined in the environment, not changing global flags.
Run-time dependency gobject-2.0 found: YES 2.64.5
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'gio-2.0' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config --modversion gio-2.0` -> 0
2.64.5
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config --cflags gio-2.0` -> 0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/libmount -I/usr/include/blkid
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config gio-2.0 --libs` -> 0
-L/usr/lib -lgio-2.0 -lgobject-2.0 -lglib-2.0
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config gio-2.0 --libs` -> 0
-lgio-2.0 -lgobject-2.0 -lglib-2.0
None of 'PKG_CONFIG_PATH' are defined in the environment, not changing global flags.
Run-time dependency gio-2.0 found: YES 2.64.5
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'libffi' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config --modversion libffi` -> 0
3.3
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config --cflags libffi` -> 0

PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config libffi --libs` -> 0
-L/usr/lib/../lib -lffi
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config libffi --libs` -> 0
-L/usr/lib/../lib -lffi
None of 'PKG_CONFIG_PATH' are defined in the environment, not changing global flags.
Run-time dependency libffi found: YES 3.3
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'gobject-introspection-1.0' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config --modversion gobject-introspection-1.0` -> 0
1.64.1
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config --cflags gobject-introspection-1.0` -> 0
-I/usr/include/gobject-introspection-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config gobject-introspection-1.0 --libs` -> 0
-L/usr/lib -lgirepository-1.0 -lgobject-2.0 -lglib-2.0
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config gobject-introspection-1.0 --libs` -> 0
-lgirepository-1.0 -lgobject-2.0 -lglib-2.0
None of 'PKG_CONFIG_PATH' are defined in the environment, not changing global flags.
Run-time dependency gobject-introspection-1.0 found: YES 1.64.1
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'mozjs-78' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config --modversion mozjs-78` -> 0
78.0.1
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config --cflags mozjs-78` -> 0
-include /usr/include/mozjs-78/js/RequiredDefines.h -isystem /usr/include/mozjs-78
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config mozjs-78 --libs` -> 0
-L/usr/lib -lmozjs-78
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config mozjs-78 --libs` -> 0
-lmozjs-78
None of 'PKG_CONFIG_PATH' are defined in the environment, not changing global flags.
Run-time dependency mozjs-78 found: YES 78.0.1
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'cairo' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config --modversion cairo` -> 0
1.17.3
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config --cflags cairo` -> 0
-I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config cairo --libs` -> 0
-L/usr/lib -lcairo
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config cairo --libs` -> 0
-lcairo
None of 'PKG_CONFIG_PATH' are defined in the environment, not changing global flags.
Run-time dependency cairo found: YES 1.17.3
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'cairo-gobject' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config --modversion cairo-gobject` -> 0
1.17.3
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config --cflags cairo-gobject` -> 0
-I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config cairo-gobject --libs` -> 0
-L/usr/lib -lcairo-gobject -lcairo -lgobject-2.0 -lglib-2.0
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config cairo-gobject --libs` -> 0
-lcairo-gobject -lcairo -lgobject-2.0 -lglib-2.0
None of 'PKG_CONFIG_PATH' are defined in the environment, not changing global flags.
Run-time dependency cairo-gobject found: YES 1.17.3
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'cairo-xlib' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config --modversion cairo-xlib` -> 0
1.17.3
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config --cflags cairo-xlib` -> 0
-I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config cairo-xlib --libs` -> 0
-L/usr/lib -lcairo -lX11 -lXext
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config cairo-xlib --libs` -> 0
-lcairo -lX11 -lXext
None of 'PKG_CONFIG_PATH' are defined in the environment, not changing global flags.
Run-time dependency cairo-xlib found: YES 1.17.3
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'sysprof-capture-4' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config --modversion sysprof-capture-4` -> 0
3.37.90
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config --cflags sysprof-capture-4` -> 0
-I/usr/include/sysprof-4 -pthread
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config sysprof-capture-4 --libs` -> 0
-L/usr/lib -lsysprof-capture-4 -pthread
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config sysprof-capture-4 --libs` -> 0
-lsysprof-capture-4 -pthread
None of 'PKG_CONFIG_PATH' are defined in the environment, not changing global flags.
Run-time dependency sysprof-capture-4 found: YES 3.37.90
None of 'CXX_LD' are defined in the environment, not changing global flags.
Running compile:
Working directory:  /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmp5on5lbqq
Command line:  ccache c++ -I/opt/cuda/include /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmp5on5lbqq/testfile.cpp -o /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmp5on5lbqq/output.exe -pipe -march=native -mtune=native -O3 -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wl,--start-group -lreadline -Wl,--end-group -Wl,--allow-shlib-undefined -Wl,-O1,--sort-common,--as-needed,-z,relro

Code:
 int main(void) { return 0; }

Compiler stdout:

Compiler stderr:

Library readline found: YES
Running compile:
Working directory:  /tmp/tmpk888mmze
Command line:  ccache c++ /tmp/tmpk888mmze/testfile.cpp -o /tmp/tmpk888mmze/output.obj -pipe -D_FILE_OFFSET_BITS=64 -c -std=c++17

Code:
 int i = static_cast<int>(0);
Compiler stdout:

Compiler stderr:

Compiler accepts -std=c++17: YES
None of 'CXX_LD' are defined in the environment, not changing global flags.
Running compile:
Working directory:  /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpjly10lgp
Command line:  ccache c++ -I/opt/cuda/include /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpjly10lgp/testfile.cpp -o /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpjly10lgp/output.exe -pipe -march=native -mtune=native -O3 -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -std=c++17 -Wl,--start-group -lreadline -Wl,--end-group -Wl,-O1,--sort-common,--as-needed,-z,relro

Code:

#include <cstdio>
#include <readline/readline.h>
int main(void) {
    readline("foo");
    return 0;
}
Compiler stdout:

Compiler stderr:
 In file included from /usr/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/os_defines.h:39,
                 from /usr/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/c++config.h:518,
                 from /usr/include/c++/10.2.0/cstdio:41,
                 from /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpjly10lgp/testfile.cpp:2:
/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
  397 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
      |    ^~~~~~~

None of 'CXX_LD' are defined in the environment, not changing global flags.
Running compile:
Working directory:  /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpagzu4yvk
Command line:  ccache c++ -I/opt/cuda/include /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpagzu4yvk/testfile.cpp -o /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpagzu4yvk/output.exe -pipe -march=native -mtune=native -O3 -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -std=c++17 -Wl,-O1,--sort-common,--as-needed,-z,relro

Code:

        #define timer_settime meson_disable_define_of_timer_settime

        #include <limits.h>
        #undef timer_settime

        #ifdef __cplusplus
        extern "C"
        #endif
        char timer_settime (void);

        #if defined __stub_timer_settime || defined __stub___timer_settime
        fail fail fail this function is not going to work
        #endif

        int main(void) {
          return timer_settime ();
        }
Compiler stdout:

Compiler stderr:
 In file included from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/limits.h:26,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include-fixed/limits.h:195,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include-fixed/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include-fixed/limits.h:34,
                 from /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpagzu4yvk/testfile.cpp:4:
/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
  397 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
      |    ^~~~~~~
/usr/bin/ld: /tmp/ccxf2PpC.o: in function `main':
testfile.cpp:(.text+0x6): undefined reference to `timer_settime'
collect2: error: ld returned 1 exit status

None of 'CXX_LD' are defined in the environment, not changing global flags.
Running compile:
Working directory:  /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmp4jglk21x
Command line:  ccache c++ -I/opt/cuda/include /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmp4jglk21x/testfile.cpp -o /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmp4jglk21x/output.exe -pipe -march=native -mtune=native -O3 -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -std=c++17 -Wl,-O1,--sort-common,--as-needed,-z,relro

Code:

        int main(void) {

        /* With some toolchains (MSYS2/mingw for example) the compiler
         * provides various builtins which are not really implemented and
         * fall back to the stdlib where they aren't provided and fail at
         * build/link time. In case the user provides a header, including
         * the header didn't lead to the function being defined, and the
         * function we are checking isn't a builtin itself we assume the
         * builtin is not functional and we just error out. */
        #if !1 && !defined(timer_settime) && !0
            #error "No definition for __builtin_timer_settime found in the prefix"
        #endif

        #ifdef __has_builtin
            #if !__has_builtin(__builtin_timer_settime)
                #error "__builtin_timer_settime not found"
            #endif
        #elif ! defined(timer_settime)
            __builtin_timer_settime;
        #endif
        return 0;
        }
Compiler stdout:

Compiler stderr:
 /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmp4jglk21x/testfile.cpp:17:18: error: #error "__builtin_timer_settime not found"
   17 |                 #error "__builtin_timer_settime not found"
      |                  ^~~~~

Checking for function "timer_settime" : NO
None of 'CXX_LD' are defined in the environment, not changing global flags.
Running compile:
Working directory:  /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpp4g_qezj
Command line:  ccache c++ -I/opt/cuda/include /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpp4g_qezj/testfile.cpp -o /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpp4g_qezj/output.exe -pipe -march=native -mtune=native -O3 -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wl,--start-group -lrt -Wl,--end-group -Wl,--allow-shlib-undefined -Wl,-O1,--sort-common,--as-needed,-z,relro

Code:
 int main(void) { return 0; }

Compiler stdout:

Compiler stderr:

Library rt found: YES
None of 'CXX_LD' are defined in the environment, not changing global flags.
Running compile:
Working directory:  /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmptzeahqxp
Command line:  ccache c++ -I/opt/cuda/include /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmptzeahqxp/testfile.cpp -o /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmptzeahqxp/output.exe -pipe -march=native -mtune=native -O3 -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -std=c++17 -Wl,--start-group -lrt -Wl,--end-group -Wl,-O1,--sort-common,--as-needed,-z,relro

Code:

        #define timer_settime meson_disable_define_of_timer_settime

        #include <limits.h>
        #undef timer_settime

        #ifdef __cplusplus
        extern "C"
        #endif
        char timer_settime (void);

        #if defined __stub_timer_settime || defined __stub___timer_settime
        fail fail fail this function is not going to work
        #endif

        int main(void) {
          return timer_settime ();
        }
Compiler stdout:

Compiler stderr:
 In file included from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/limits.h:26,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include-fixed/limits.h:195,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include-fixed/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include-fixed/limits.h:34,
                 from /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmptzeahqxp/testfile.cpp:4:
/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
  397 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
      |    ^~~~~~~

Checking for function "timer_settime" with dependency -lrt: YES
Running compile:
Working directory:  /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmppf51qpg7
Command line:  ccache c++ -I/opt/cuda/include /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmppf51qpg7/testfile.cpp -o /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmppf51qpg7/output.obj -pipe -c -march=native -mtune=native -O3 -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -std=c++17

Code:

        #include <signal.h>
        int main(void) {
            /* If it's not defined as a macro, try to use as a symbol */
            #ifndef SIGEV_THREAD_ID
                SIGEV_THREAD_ID;
            #endif
            return 0;
        }
Compiler stdout:

Compiler stderr:
 In file included from /usr/include/signal.h:25,
                 from /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmppf51qpg7/testfile.cpp:2:
/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
  397 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
      |    ^~~~~~~

Header <signal.h> has symbol "SIGEV_THREAD_ID" : YES
Running compile:
Working directory:  /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpqwhfr7ih
Command line:  ccache c++ -I/opt/cuda/include /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpqwhfr7ih/testfile.cpp -o /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmpqwhfr7ih/output.obj -pipe -c -include /usr/include/mozjs-78/js/RequiredDefines.h -isystem /usr/include/mozjs-78 -march=native -mtune=native -O3 -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -std=c++17

Code:

#include <js-config.h>
#ifdef JS_DEBUG
#error debug yes, if we did not already error out due to DEBUG not being defined
#endif

Compiler stdout:

Compiler stderr:

Checking if "SpiderMonkey is a non-debug build" with dependency mozjs-78 compiles: YES
None of 'CXX_LD' are defined in the environment, not changing global flags.
Running compile:
Working directory:  /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmp44o_dxhw
Command line:  ccache c++ -I/opt/cuda/include /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmp44o_dxhw/testfile.cpp -o /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmp44o_dxhw/output.exe -pipe -include /usr/include/mozjs-78/js/RequiredDefines.h -isystem /usr/include/mozjs-78 -march=native -mtune=native -O3 -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -std=c++17 -Wl,--start-group /usr/lib/libmozjs-78.so -Wl,--end-group -Wl,-O1,--sort-common,--as-needed,-z,relro

Code:

#include <js/Initialization.h>
int main(void) {
    if (!JS_Init()) return 1;
    JS_ShutDown();
    return 0;
}

Compiler stdout:

Compiler stderr:
 In file included from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdint.h:26,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include/stdint.h:9,
                 from /usr/include/mozjs-78/mozilla/Types.h:19,
                 from /usr/include/mozjs-78/mozilla/Assertions.h:21,
                 from /usr/include/mozjs-78/mozilla/Casting.h:12,
                 from /usr/include/mozjs-78/jstypes.h:25,
                 from /usr/include/mozjs-78/js/Initialization.h:11,
                 from /home/andrew/.cache/yay/gjs-git/src/build/meson-private/tmp44o_dxhw/testfile.cpp:2:
/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
  397 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
      |    ^~~~~~~

Program stdout:


Program stderr:


Checking if "SpiderMonkey sanity check" with dependency mozjs-78 runs: NO (-11)

gjs/meson.build:251:4: ERROR: Problem encountered: A minimal SpiderMonkey program
could not be compiled, linked, or run. Most likely you should build it with a
different configuration. Check the recommended configuration:
https://github.com/spidermonkey-embedders/spidermonkey-embedding-examples/blob/esr78/docs/Building%20SpiderMonkey.md

Last edited by afader (2020-08-28 16:47:51)

Offline

#11 2020-08-28 17:17:20

loqs
Member
Registered: 2014-03-06
Posts: 11,602

Re: [SOLVED] GNOME/polkit/Gjs will require js78, not js68

Please post the PKGBUILD you are using.  I have a PKGBUILD for js78 that builds but fails check.

Offline

#12 2020-08-28 18:35:07

afader
Member
Registered: 2013-09-12
Posts: 102

Re: [SOLVED] GNOME/polkit/Gjs will require js78, not js68

# Maintainer: PkmX <pkmx.tw@gmail.com>

pkgname=spidermonkey-git
_gitname=mozjs
pkgver=e5a2eb99f.r
pkgrel=1
pkgdesc="Mozilla's JavaScript engine used in Firefox"
arch=('i686' 'x86_64')
url='https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey'
license=('MPL')
depends=('zlib')
makedepends=('git' 'clang' 'autoconf2.13' 'python2')
provides=('spidermonkey')
conflicts=('spidermonkey')
source=("$_gitname::git+https://github.com/ptomato/mozjs")
md5sums=('SKIP')

pkgver() {
  cd "$_gitname"
  printf '%s.r%s' $(python2 python/mozbuild/mozbuild/milestone.py --topsrcdir .) $(git rev-parse --short HEAD)
}

build() {
  cd "$_gitname/js/src"
  autoconf-2.13
  mkdir -p build_OPT.OBJ
  cd build_OPT.OBJ
  # configure fails with hardened clang, reset CPPFLAGS
  CC=clang CXX=clang++ CPPFLAGS= ../configure --prefix=/usr
  make
}

package() {
  cd "$_gitname/js/src/build_OPT.OBJ"
  make DESTDIR="$pkgdir" install
  # Resolve symlinks so they don't point to $srcdir
  for l in $(find "$pkgdir/usr/include/" -type l); do
    cp --remove-destination $(readlink $l) $l
  done
  install -D ../../../LICENSE "$pkgdir/usr/share/licenses/spidermonkey-git/LICENSE"
}

# vim:set ts=2 sw=2 et:

Offline

#13 2020-08-28 18:39:51

loqs
Member
Registered: 2014-03-06
Posts: 11,602

Re: [SOLVED] GNOME/polkit/Gjs will require js78, not js68

pkgname=js78
pkgver=78.1.0
pkgrel=1
pkgdesc="Mozilla's JavaScript engine used in Firefox"
arch=('i686' 'x86_64')
url='https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey'
license=('MPL')
depends=('gcc-libs' 'readline' 'zlib' 'sh')
makedepends=('autoconf2.13' 'python' 'rust' 'llvm' 'clang')
checkdepends=(mercurial git)
_relver=${pkgver}esr
source=(https://archive.mozilla.org/pub/firefox/releases/$_relver/source/firefox-$_relver.source.tar.xz{,.asc}
#patches from https://github.com/ptomato/mozjs/commits/mozjs78
        36bb7982b41e0ef9a65f7174252ab996cd6777bd.patch
        b2974f8a6558d2dc4517b49ee313a9900a853285.patch
        e5a2eb99f653ae03c67e536df1d55d265a0a1605.patch)
sha256sums=('3600a396d9312c5e9f637b267926ca4771d84a56b26b960cc7d72e98683b64a2'
            'SKIP'
            '694d967413937708bd6e07d2cbc1528c84fabf135562a1e1ac73b10ccfc22947'
            '8ade0ad9de134ccaa11e9e88813dbb1bee19802cf38a8b0722edaa67dbb1da29'
            'a670eb8da33f8cdb8c03787b5c9672601ddbf09209aaed3ebccbc35494771687')
validpgpkeys=('14F26682D0916CDD81E37B6D61B7B526D98F0353') # Mozilla Software Releases <release@mozilla.com>

prepare() {
  cd firefox-$pkgver
  mkdir obj
#  patch -p1 -i ../36bb7982b41e0ef9a65f7174252ab996cd6777bd.patch
  patch -p1 -i ../b2974f8a6558d2dc4517b49ee313a9900a853285.patch
  patch -p1 -i ../e5a2eb99f653ae03c67e536df1d55d265a0a1605.patch
}

build() {
  local configure_args=(
    --prefix=/usr
    --disable-debug
    --disable-debug-symbols
    --disable-jemalloc
    --disable-strip
    --enable-hardening
#    --enable-lto #changed,  build fails with undefined reference to `__rust_probestack'
    --enable-optimize
#    --enable-posix-nspr-emulation #changed,  option removed
    --enable-readline
    --enable-release
    --enable-shared-js
    --disable-tests #changed,  check failed
#    --enable-unaligned-private-values #changed.  option removed
    --with-intl-api
    --with-system-zlib
    --without-system-icu
  )
#--enable-rust-simd
#--disable-cargo-incremental

  export AR=llvm-ar
  export NM=llvm-nm
  export RANLIB=llvm-ranlib

  cd firefox-$pkgver/obj

  sh ../js/src/configure "${configure_args[@]}"
  make
}

#check() {
#  local jstests_extra_args=(
#    --format=none
#    --exclude-random
#  ) jittest_extra_args=(
#    --format=none
#    --timeout 300
#  ) jittest_test_args=(
#    basic
#  )

#  cd firefox-$pkgver/obj
#  make -C js/src check-jstests check-jit-test \
#    JSTESTS_EXTRA_ARGS="${jstests_extra_args[*]}" \
#    JITTEST_EXTRA_ARGS="${jittest_extra_args[*]}" \
#    JITTEST_TEST_ARGS="${jittest_test_args[*]}"
#}

package() {
  cd firefox-$pkgver/obj
  make DESTDIR="$pkgdir" install
  rm "$pkgdir"/usr/lib/*.ajs
  find "$pkgdir"/usr/{lib/pkgconfig,include} -type f -exec chmod -c a-x {} +
}

Patches are from https://github.com/ptomato/mozjs with the matching commit id

Edit:

pkgname=gjs-git
_pkgname=gjs
pkgver=1.65.91+3+g735a704c
pkgrel=1
epoch=2
pkgdesc="Javascript Bindings for GNOME"
url="https://gitlab.gnome.org/GNOME/gjs/blob/master/doc/Home.md"
arch=(x86_64)
license=(GPL)
depends=('cairo' 'gobject-introspection-runtime' 'js78' 'dconf')
makedepends=('gobject-introspection' 'git' 'autoconf-archive' 'sysprof' 'meson')
checkdepends=('valgrind' 'xorg-server-xvfb')
provides=(gjs=$pkgver)
conflicts=('gjs')
source=("git+https://gitlab.gnome.org/GNOME/gjs.git/")
sha256sums=('SKIP')

pkgver() {
  cd $_pkgname
  git describe --tags | sed 's/-/+/g'
}

build() {
  arch-meson $_pkgname build -D skip_dbus_tests=true -D skip_gtk_tests=true
  ninja -C build
}

check() {
  meson test -C build --print-errorlogs
}

package() {
  DESTDIR="$pkgdir" meson install -C build
}

Last edited by loqs (2020-08-30 23:12:37)

Offline

#14 2020-08-29 00:58:41

afader
Member
Registered: 2013-09-12
Posts: 102

Re: [SOLVED] GNOME/polkit/Gjs will require js78, not js68

Your js78 works for me. Thank you

Offline

#15 2020-08-29 02:15:16

loqs
Member
Registered: 2014-03-06
Posts: 11,602

Re: [SOLVED] GNOME/polkit/Gjs will require js78, not js68

Could you get gsj-git to pass check with it?

Offline

#16 2020-08-30 18:55:48

titaniumtown
Member
Registered: 2020-04-24
Posts: 10

Re: [SOLVED] GNOME/polkit/Gjs will require js78, not js68

Could someone create an aur package for js78?

Offline

#17 2020-08-30 23:12:09

loqs
Member
Registered: 2014-03-06
Posts: 11,602

Re: [SOLVED] GNOME/polkit/Gjs will require js78, not js68

titaniumtown did the PKGBUILD I posted work for you?  I didabled the check function as it fails.
Building gjs-git with it,  the check for gjs fails the following tests:

==> Starting check()...
ninja: Entering directory `/build/gjs-git/src/build'
ninja: no work to do.
 1/49 gjs:C / API tests                 FAIL           1.74s (exit status 0)
 2/49 gjs:Scripts / CommandLine         FAIL           1.40s (exit status 0)
 3/49 gjs:Scripts / Warnings            OK             0.49s
 4/49 gjs:JS / self                     OK             0.08s
 5/49 gjs:JS / ByteArray                OK             0.08s
 6/49 gjs:JS / Exceptions               OK             0.13s
 7/49 gjs:JS / Format                   OK             0.13s
 8/49 gjs:JS / Fundamental              OK             0.08s
 9/49 gjs:JS / Gettext                  OK             0.07s
10/49 gjs:JS / GIMarshalling            FAIL           0.22s (exit status 0)
11/49 gjs:JS / Gio                      OK             0.13s
12/49 gjs:JS / GLib                     OK             0.12s
13/49 gjs:JS / GObject                  OK             0.12s
14/49 gjs:JS / GObjectClass             OK             0.17s
15/49 gjs:JS / GObjectInterface         OK             0.12s
16/49 gjs:JS / GTypeClass               OK             0.07s
17/49 gjs:JS / Importer                 OK             0.12s
18/49 gjs:JS / Introspection            FAIL           0.12s (exit status 0)
19/49 gjs:JS / Lang                     OK             0.07s
20/49 gjs:JS / LegacyByteArray          OK             0.07s
21/49 gjs:JS / LegacyClass              OK             0.12s
22/49 gjs:JS / LegacyGObject            OK             0.17s
23/49 gjs:JS / Mainloop                 OK             0.22s
24/49 gjs:JS / Namespace                OK             0.07s
25/49 gjs:JS / Package                  OK             0.12s
26/49 gjs:JS / ParamSpec                OK             0.12s
27/49 gjs:JS / Regress                  FAIL           0.17s (exit status 0)
28/49 gjs:JS / Signals                  OK             0.07s
29/49 gjs:JS / System                   OK             0.12s
30/49 gjs:JS / Tweener                  OK             0.12s
31/49 gjs:JS / WarnLib                  OK             0.12s
32/49 gjs:JS / Cairo                    FAIL           0.12s (exit status 0)
33/49 gjs:Debugger / backtrace command  OK             0.07s
34/49 gjs:Debugger / breakpoint command OK             0.07s
35/49 gjs:Debugger / continue command   OK             0.07s
36/49 gjs:Debugger / delete command     OK             0.07s
37/49 gjs:Debugger / detach command     OK             0.07s
38/49 gjs:Debugger / down-up command    OK             0.07s
39/49 gjs:Debugger / finish command     OK             0.08s
40/49 gjs:Debugger / frame command      OK             0.07s
41/49 gjs:Debugger / keys command       OK             0.07s
42/49 gjs:Debugger / next command       OK             0.07s
43/49 gjs:Debugger / print command      OK             0.07s
44/49 gjs:Debugger / quit command       OK             0.07s
45/49 gjs:Debugger / return command     OK             0.07s
46/49 gjs:Debugger / set command        OK             0.07s
47/49 gjs:Debugger / step command       OK             0.07s
48/49 gjs:Debugger / throw command      OK             0.07s
49/49 gjs:Debugger / until command      OK             0.03s

Offline

#18 2020-08-31 00:05:14

titaniumtown
Member
Registered: 2020-04-24
Posts: 10

Re: [SOLVED] GNOME/polkit/Gjs will require js78, not js68

I don't know what the patches I need are. idk what was meant by getting them from the commits.

Offline

#19 2020-08-31 00:16:43

loqs
Member
Registered: 2014-03-06
Posts: 11,602

Re: [SOLVED] GNOME/polkit/Gjs will require js78, not js68

Offline

#20 2020-08-31 00:30:34

titaniumtown
Member
Registered: 2020-04-24
Posts: 10

Re: [SOLVED] GNOME/polkit/Gjs will require js78, not js68

Oh, ok. Thanks!

Offline

#21 2020-08-31 00:40:59

titaniumtown
Member
Registered: 2020-04-24
Posts: 10

Re: [SOLVED] GNOME/polkit/Gjs will require js78, not js68

Any ideas on when js78 will be in the official repos?

Offline

#22 2020-08-31 00:42:48

titaniumtown
Member
Registered: 2020-04-24
Posts: 10

Re: [SOLVED] GNOME/polkit/Gjs will require js78, not js68

huh, gjs-git failed to build.

Offline

#23 2020-08-31 00:49:41

titaniumtown
Member
Registered: 2020-04-24
Posts: 10

Re: [SOLVED] GNOME/polkit/Gjs will require js78, not js68

Oh, wait it was just that check you were talking about.

Offline

#24 2020-08-31 15:21:09

titaniumtown
Member
Registered: 2020-04-24
Posts: 10

Re: [SOLVED] GNOME/polkit/Gjs will require js78, not js68

Ok, gnome-shell-git fails to build. crap.

Offline

#25 2020-08-31 15:23:20

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 9,947
Website

Re: [SOLVED] GNOME/polkit/Gjs will require js78, not js68

Please stop multiposting. If you are the last person to post in a topic, use the edit button to amend that post with any additional information you have to add.


Sakura:-
Mobo: MSI X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: nVidia GeForce GTX 970 // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 5x 1TB HDD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB