Skip to content

mpifileutils: install from buildcache fails due to configure_args #14449

@eugeneswalker

Description

@eugeneswalker

Installing mpifileutils from build cache fails

==> Installing mpifileutils
==> Searching for binary cache of mpifileutils
==> Fetching s3://uoregon/spack/build_cache/linux-ubuntu18.04-x86_64/gcc-7.3.0/mpifileutils-develop/linux-ubuntu18.04-x86_64-gcc-7.3.0-mpifileutils-develop-4lo3yspw6662oc2o6oj7iv77kdnh6vtt.spack
==> Installing mpifileutils from binary cache
gpg: Signature made Sat Dec 21 17:23:01 2019 UTC
gpg:                using RSA key 7D344E2992071B0AAAE1EDB0E68DE2A80314303D
gpg: Good signature from "prl" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 7D34 4E29 9207 1B0A AAE1  EDB0 E68D E2A8 0314 303D
==> Relocating package from
  /super/absurdly/ridiculously/obnoxiously/long/path/for/relocation to /super/absurdly/ridiculously/obnoxiously/long/path/for/relocation.
==> Successfully installed mpifileutils from binary cache
[+] /super/absurdly/ridiculously/obnoxiously/long/path/for/relocation/linux-ubuntu18.04-x86_64/gcc-7.3.0/mpifileutils-develop-4lo3yspw6662oc2o6oj7iv77kdnh6vtt
==> Error: name 'pwd' is not defined

I believe this is because the package for mpifileutils has this:

    def configure_args(self):
        ...
        args.append("CPPFLAGS=-I%s/src/common" % pwd())
        ...

https://github.com/spack/spack/blob/develop/var/spack/repos/builtin/packages/mpifileutils/package.py#L102

Possibly / probably related to closed issue #14361 and pending PR #11084

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions