spack / spack

A flexible package manager that supports multiple versions, configurations, platforms, and compilers.
https://spack.io
Other
4.27k stars 2.26k forks source link

Installation issue: glib, meson: error: unrecognized arguments: -j6 #32455

Closed cessenat closed 2 years ago

cessenat commented 2 years ago

Steps to reproduce the issue

$ spack spec -I glib
Input spec
--------------------------------
 -   glib@2.72.3%gcc@8.4.0~libmount

Concretized
--------------------------------
 -   glib@2.72.3%gcc@8.4.0~libmount patches=b3fd450 tracing=none arch=linux-centos7-skylake
[+]      ^gettext@0.21%gcc@8.4.0+bzip2+curses+git~libunistring+libxml2+tar+xz arch=linux-centos7-skylake
[+]          ^bzip2@1.0.8%gcc@8.4.0~debug~pic+shared arch=linux-centos7-skylake
[+]              ^diffutils@3.8%gcc@8.4.0 arch=linux-centos7-skylake
[+]                  ^libiconv@1.16%gcc@8.4.0 libs=shared,static arch=linux-centos7-skylake
[+]          ^libxml2@2.9.13%gcc@8.4.0~python arch=linux-centos7-skylake
[+]              ^pkgconf@1.8.0%gcc@8.4.0 arch=linux-centos7-skylake
[+]              ^xz@5.2.5%gcc@8.4.0~pic libs=shared,static arch=linux-centos7-skylake
[+]              ^zlib@1.2.12%gcc@8.4.0+optimize+pic+shared patches=0d38234 arch=linux-centos7-skylake
[+]          ^ncurses@6.2%gcc@8.4.0~symlinks+termlib abi=none arch=linux-centos7-skylake
[+]          ^tar@1.34%gcc@8.4.0 zip=pigz arch=linux-centos7-skylake
[+]              ^pigz@2.7%gcc@8.4.0 arch=linux-centos7-skylake
[+]              ^zstd@1.5.2%gcc@8.4.0+programs compression=none libs=shared,static arch=linux-centos7-skylake
[+]      ^libffi@3.4.2%gcc@8.4.0 arch=linux-centos7-skylake
 -       ^meson@0.62.2%gcc@8.4.0 patches=9c87472,aa6c50d arch=linux-centos7-skylake
[+]          ^ninja@1.11.0%gcc@8.4.0 arch=linux-centos7-skylake
[+]              ^python@3.7.7%gcc@8.4.0+bz2+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tix~tkinter~ucs4~uuid+zlib patches=0d98e93,f2fd060 arch=linux-centos7-skylake
[+]          ^py-pip@22.1.2%gcc@8.4.0 arch=linux-centos7-skylake
[+]              ^python@3.7.7%gcc@8.4.0+bz2+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tix~tkinter~ucs4~uuid+zlib patches=0d98e93,f2fd060 arch=linux-centos7-skylake
[-]          ^py-setuptools@65.0.0%gcc@8.4.0 arch=linux-centos7-skylake
[+]          ^py-wheel@0.37.1%gcc@8.4.0 arch=linux-centos7-skylake
[+]      ^pcre@8.45%gcc@8.4.0~jit+multibyte+utf arch=linux-centos7-skylake
[+]      ^perl@5.30.3%gcc@8.4.0+cpanm+shared+threads arch=linux-centos7-skylake

Error message

Error message
==> Installing glib-2.72.3-34rok55i44vhhfcxvl4xvhufvbzz47s2
==> No binary for glib-2.72.3-34rok55i44vhhfcxvl4xvhufvbzz47s2 found: installing from source
==> Using cached archive: /home/cessenat/spack/var/spack/cache/_source-cache/archive/4a/4a39a2f624b8512d500d5840173eda7fa85f51c109052eae806acece85d345f0.tar.xz
==> Applied patch /home/cessenat/spack/var/spack/repos/builtin/packages/glib/meson-gettext-2.66.patch
==> Ran patch() for glib
==> glib: Executing phase: 'install'
==> Error: ProcessError: Command exited with status 2:
    '/home/cessenat/opt/spack/linux-centos7-skylake/gcc-8.4.0/meson-0.62.2-hjwckkcb43uino6ep7h3xzbt4ythc72i/bin/meson' '-j6' '..' '--prefix=/home/cessenat/opt/spack/linux-centos7-skylake/gcc-8.4.0/glib-2.72.3-34rok55i44vhhfcxvl4xvhufvbzz47s2' '--libdir=/home/cessenat/opt/spack/linux-centos7-skylake/gcc-8.4.0/glib-2.72.3-34rok55i44vhhfcxvl4xvhufvbzz47s2/lib' '-Dbuildtype=release' '-Dstrip=false' '-Ddefault_library=shared' '-Dgettext=external' '-Dlibmount=disabled' '-Diconv=external' '-Ddtrace=false' '-Dsystemtap=false' '-Dselinux=disabled' '-Dgtk_doc=false'

1 error found in build log:
     2    ==> [2022-08-31-09:00:30.255984] FILTER FILE: gobject/glib-genmarshal.in [replacing "^#!/usr/bin/env @PYTHON@"]
     3    ==> [2022-08-31-09:00:30.259047] FILTER FILE: gobject/glib-mkenums.in [replacing "^#!/usr/bin/env @PYTHON@"]
     4    ==> [2022-08-31-09:00:30.266746] '/home/cessenat/opt/spack/linux-centos7-skylake/gcc-8.4.0/meson-0.62.2-hjwckkcb43uino6ep7h3xzbt4
1          ythc72i/bin/meson' '-j6' '..' '--prefix=/home/cessenat/opt/spack/linux-centos7-skylake/gcc-8.4.0/glib-2.72.3-34rok55i44vhhfcxvl4x
          vhufvbzz47s2' '--libdir=/home/cessenat/opt/spack/linux-centos7-skylake/gcc-8.4.0/glib-2.72.3-34rok55i44vhhfcxvl4xvhufvbzz47s2/lib
          ' '-Dbuildtype=release' '-Dstrip=false' '-Ddefault_library=shared' '-Dgettext=external' '-Dlibmount=disabled' '-Diconv=external' 
          '-Ddtrace=false' '-Dsystemtap=false' '-Dselinux=disabled' '-Dgtk_doc=false'
     5    usage: meson [-h]
     6                 {setup,configure,dist,install,introspect,init,test,wrap,subprojects,help,rewrite,compile,devenv,env2mfile}
     7                 ...
  >> 8    meson: error: unrecognized arguments: -j6

See build log for details:
  /home/cessenat/tmp/spack-stage-glib-2.72.3-34rok55i44vhhfcxvl4xvhufvbzz47s2/spack-build-out.txt

Information on your system

Additional information

spack-build-env.txt spack-build-out.txt @michaelkuhn Maybe @trws could help since it may be related to the make_jobs issue from meson.

General information

cessenat commented 2 years ago

Oh sorry for the noise I had altered the meson package, forget about this issue @trws and @michaelkuhn