Skip to content

Installation issue: clingo #28183

@rchoudhary

Description

@rchoudhary

Steps to reproduce the issue

% spack install py-matplotlib backend=qt5agg arch=m1 
...
==> Installing clingo-bootstrap-spack-gmmjcapqovtzrdbsqrcserdmlh334c5w
==> No binary for clingo-bootstrap-spack-gmmjcapqovtzrdbsqrcserdmlh334c5w found: installing from source
==> Error: RuntimeError: Unable to locate libpython3.9.a libraries in /opt/homebrew/Caskroom/miniforge/base/lib

/Users/rutvik/spack/var/spack/repos/builtin/packages/python/package.py:828, in libs:
        825                return LibraryList(os.path.join(macos_developerdir, ldlibrary))
        826            else:
        827                msg = 'Unable to locate {0} libraries in {1}'
  >>    828                raise RuntimeError(msg.format(ldlibrary, libdir))
        829        else:
        830            library = self.config_vars['LIBRARY']
        831


==> Error: cannot bootstrap the "clingo" Python module from spec "clingo-bootstrap@spack+python %apple-clang target=aarch64" due to the following failures:
    'spack-install' raised InstallError: Terminating after first install failure: RuntimeError: Unable to locate libpython3.9.a libraries in /opt/homebrew/Caskroom/miniforge/base/lib
    Please run `spack -d spec zlib` for more verbose error messages

Information on your system

  • Spack: 0.17.1-677-c2e1a12cdf
  • Python: 3.9.7
  • Platform: darwin-monterey-m1
  • Concretizer: clingo

Additional information

I have Python 3.9 through Miniforge. If I check /opt/homebrew/Caskroom/miniforge/base/lib I see that I have libpython3.9.dylib but not libpython3.9.a.

@alalazo @tgamb

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

Labels

armbootstrapAnything that has to do with Spack building its own dependencies.build-errormacOS

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions