Skip to content

Strange spack/build_environment.py error when trying to build libpciaccess on SNL CEE RHEL6 machine #13189

@bartlettroscoe

Description

@bartlettroscoe

snl-atdm-issue

On a Sandia CEE RHEL6 machine, I get the following build error for libpciaccess:

$ ./atdm-spack/spack/bin/spack install [email protected]%[email protected] cppflags="-fPIC" cxxflags="-fPIC" fflags="-fPIC"

==> [email protected] : externally installed in /scratch/rabartl/Spack.base2/atdm-spack/spack/opt/spack/linux-rhel6-x86_64/gcc-7.2.0/libtool-2.4.6-njk2pzudiprn45ehlnzckluqlojzvv2j
==> [email protected] : already registered in DB
==> pkgconf is already installed in /scratch/rabartl/Spack.base2/atdm-spack/spack/opt/spack/linux-rhel6-x86_64/gcc-7.2.0/pkgconf-1.5.4-uf5tave4hl3qvjyoxgzarmymvn5smof7
==> [email protected] : externally installed in /scratch/rabartl/Spack.base2/atdm-spack/spack/opt/spack/linux-rhel6-x86_64/gcc-7.2.0/util-macros-1.19.1-rjakshkke76bd6gyseig6y5shdrnv3kn
==> [email protected] : already registered in DB
==> Installing libpciaccess
==> Searching for binary cache of libpciaccess
==> Finding buildcaches in /scratch/rabartl/Spack.base2/atdm-spack/atdm-spack-tarball-mirror/build_cache
==> No binary for libpciaccess found: installing from source
==> Error: AssertionError: 

/scratch/rabartl/Spack.base2/atdm-spack/spack/lib/spack/spack/build_environment.py:784, in child_process:
        781            tb_string = traceback.format_exc()
        782
        783            # build up some context from the offending package so we can
  >>    784            # show that, too.
        785            package_context = get_package_context(tb)
        786
        787            build_log = None

I have no idea how to debug this. This is pointing to a comment, not even a line of code.

Spack version:

42386db "Use Package.headers for -I options (#10623)"
Author: Massimiliano Culpo <[email protected]>
Date:   Tue Feb 26 19:42:30 2019 +0100 (8 months ago)

M       lib/spack/env/cc
M       lib/spack/llnl/util/filesystem.py
M       lib/spack/spack/build_environment.py
M       lib/spack/spack/test/build_environment.py
M       lib/spack/spack/test/conftest.py
M       lib/spack/spack/test/llnl/util/filesystem.py
M       var/spack/repos/builtin/packages/libxml2/package.py

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions