Skip to content

Installation issue: meson broken on multilib systems with lib/lib64 split (like openSUSE) #26546

@dev-zero

Description

@dev-zero

Steps to reproduce the issue

$ spack install meson
$ spack load meson
$ meson --help
meson --help
Traceback (most recent call last):
  File "/sw-ng/spack/opt/spack/linux-opensuse_leap15-sandybridge/gcc-11.2.0/meson-0.59.2-w3xwpklyb6mnoosqb6oclexad6clr2on/bin/meson", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3123, in <module>
    @_call_aside
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3107, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3136, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 578, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 895, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 781, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'meson==0.59.2' distribution was not found and is required by the application
$ echo $PYTHONPATH
/sw-ng/spack/opt/spack/linux-opensuse_leap15-sandybridge/gcc-11.2.0/py-setuptools-57.4.0-p7r4vvplum63eqqx6tf7qwfitk7ppalp/lib64/python3.6/site-packages:/sw-ng/spack/opt/spack/linux-opensuse_leap15-sandybridge/gcc-11.2.0/meson-0.59.2-w3xwpklyb6mnoosqb6oclexad6clr2on/lib64/python3.6/site-packages:/sw-ng/spack/opt/spack/linux-opensuse_leap15-sandybridge/gcc-11.2.0/py-setuptools-57.4.0-p7r4vvplum63eqqx6tf7qwfitk7ppalp/lib64/python3.6/site-packages:/sw-ng/spack/opt/spack/linux-opensuse_leap15-sandybridge/gcc-11.2.0/ninja-1.10.2-x4i5ucjcn43khkqqjam4ae3xqcn5ahtk/misc
$ ls /sw-ng/spack/opt/spack/linux-opensuse_leap15-sandybridge/gcc-11.2.0/meson-0.59.2-w3xwpklyb6mnoosqb6oclexad6clr2on/lib64/python3.6/site-packages
$ ls /sw-ng/spack/opt/spack/linux-opensuse_leap15-sandybridge/gcc-11.2.0/meson-0.59.2-w3xwpklyb6mnoosqb6oclexad6clr2on/lib/python3.6/site-packages
meson-0.59.2-py3.6.egg-info  mesonbuild

Meaning: the directory included in $PYTHONPATH does not contain the Meson distro while the lib dir would.

@michaelkuhn

Information on your system

  • Spack: 0.16.3-4672-572791006d
  • Python: 3.6.13
  • Platform: linux-opensuse_leap15-sandybridge
  • Concretizer: clingo

Additional information

Since this is not a build problem, but rather that the installed files are broken I don't have the spack-build* files.
I wonder whether this is a general problem with Python packages.

General information

  • I have run spack debug report and reported the version of Spack/Python/Platform
  • I have run spack maintainers <name-of-the-package> and @mentioned any maintainers
  • I have uploaded the build log and environment files
  • I have searched the issues of this repo and believe this is not a duplicate

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions