Coder Social home page Coder Social logo

spack / spack Goto Github PK

View Code? Open in Web Editor NEW
4.0K 101.0 2.2K 182.04 MB

A flexible package manager that supports multiple versions, configurations, platforms, and compilers.

Home Page: https://spack.io

License: Other

Python 96.98% Shell 2.09% Makefile 0.05% C 0.20% HTML 0.02% C++ 0.01% CMake 0.05% Tcl 0.01% Lua 0.01% Dockerfile 0.06% M4 0.01% Fortran 0.01% Prolog 0.39% Perl 0.01% PowerShell 0.03% Batchfile 0.04% Standard ML 0.01% RouterOS Script 0.01% Ruby 0.01% BitBake 0.01%
python spack package-manager hpc build-tools radiuss scientific-computing macos linux

spack's Introduction

Spack

CI Status Bootstrap Status Containers Status Documentation Status Code coverage Slack Matrix

Getting Started   •   Config   •   Community   •   Contributing   •   Packaging Guide

Spack is a multi-platform package manager that builds and installs multiple versions and configurations of software. It works on Linux, macOS, and many supercomputers. Spack is non-destructive: installing a new version of a package does not break existing installations, so many configurations of the same package can coexist.

Spack offers a simple "spec" syntax that allows users to specify versions and configuration options. Package files are written in pure Python, and specs allow package authors to write a single script for many different builds of the same package. With Spack, you can build your software all the ways you want to.

See the Feature Overview for examples and highlights.

To install spack and your first package, make sure you have Python. Then:

$ git clone -c feature.manyFiles=true https://github.com/spack/spack.git
$ cd spack/bin
$ ./spack install zlib

Documentation

Full documentation is available, or run spack help or spack help --all.

For a cheat sheet on Spack syntax, run spack help --spec.

Tutorial

We maintain a hands-on tutorial. It covers basic to advanced usage, packaging, developer features, and large HPC deployments. You can do all of the exercises on your own laptop using a Docker container.

Feel free to use these materials to teach users at your organization about Spack.

Community

Spack is an open source project. Questions, discussion, and contributions are welcome. Contributions can be anything from new packages to bugfixes, documentation, or even new core features.

Resources:

Contributing

Contributing to Spack is relatively easy. Just send us a pull request. When you send your request, make develop the destination branch on the Spack repository.

Your PR must pass Spack's unit tests and documentation tests, and must be PEP 8 compliant. We enforce these guidelines with our CI process. To run these tests locally, and for helpful tips on git, see our Contribution Guide.

Spack's develop branch has the latest contributions. Pull requests should target develop, and users who want the latest package versions, features, etc. can use develop.

Releases

For multi-user site deployments or other use cases that need very stable software installations, we recommend using Spack's stable releases.

Each Spack release series also has a corresponding branch, e.g. releases/v0.14 has 0.14.x versions of Spack, and releases/v0.13 has 0.13.x versions. We backport important bug fixes to these branches but we do not advance the package versions or make other changes that would change the way Spack concretizes dependencies within a release branch. So, you can base your Spack deployment on a release branch and git pull to get fixes, without the package churn that comes with develop.

The latest release is always available with the releases/latest tag.

See the docs on releases for more details.

Code of Conduct

Please note that Spack has a Code of Conduct. By participating in the Spack community, you agree to abide by its rules.

Authors

Many thanks go to Spack's contributors.

Spack was created by Todd Gamblin, [email protected].

Citing Spack

If you are referencing Spack in a publication, please cite the following paper:

On GitHub, you can copy this citation in APA or BibTeX format via the "Cite this repository" button. Or, see the comments in CITATION.cff for the raw BibTeX.

License

Spack is distributed under the terms of both the MIT license and the Apache License (Version 2.0). Users may choose either license, at their option.

All new contributions must be made under both the MIT and Apache-2.0 licenses.

See LICENSE-MIT, LICENSE-APACHE, COPYRIGHT, and NOTICE for details.

SPDX-License-Identifier: (Apache-2.0 OR MIT)

LLNL-CODE-811652

spack's People

Contributors

adamjstewart avatar alalazo avatar alecbcs avatar ax3l avatar balay avatar becker33 avatar darmac avatar davydden avatar erimar77 avatar eschnett avatar eugeneswalker avatar glennpj avatar haampie avatar hartzell avatar healther avatar iarspider avatar junghans avatar lee218llnl avatar lingnanyuan avatar mamelara avatar manuelakuhn avatar michaelkuhn avatar qwertos avatar scheibelp avatar sethrj avatar sinan81 avatar snehring avatar tgamblin avatar tldahlgren avatar wdconinc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spack's Issues

bug: unique archive directory resulting from untar not detected when there are hidden files from aside

I have a very specific problem trying to install a package on Linux.

I want to install magma from ICL http://icl.cs.utk.edu/magma/software/index.html
but it seems that the build is not done in the good directory.
Generally, when we untar a tarball, say magma-1.6.2.tar.gz, the resulting directory magma-1.6.2/ is at the same level, but in my case a folder named spack-expanded-archive/ is created and the build is done in it where the source code is actually in a lower stage in spack-expanded-archive/magma-1.6.2/.
Of course there is no Makefile in spack-expanded-archive/ but it is in spack-expanded-archive/magma-1.6.2/.

As Todd has explained, the algorithm in Spack when untaring before building is the following:

  1. download the tarball. Stage directory looks like this:
    archive.tar.gz
  2. make a spack-expanded-archive directory
    archive.tar.gz
    spack-expanded-archive/
  3. expand the archive in the new directory
    archive.tar.gz
    spack-expanded-archive/
    archive/
  4. If only ONE directory is created, move that to the top level like this, and remove the temp directory:
    archive.tar.gz
    archive/
  5. If there is more than one file created, or if the created file is not a directory, Spack just leaves the temp directory:
    archive.tar.gz
    spack-expanded-archive/
    Makefile
    src/
    etc...

In my case, the result of
tar xf http://icl.cs.utk.edu/projectsfiles/magma/downloads/magma-1.6.2.tar.gz
is a hidden file ._magma-1.6.2* and the expected directory magma-1.6.2/
so that we are not in step 4 of the algorithm anymore and Spack try to build in spack-expanded-archive/ where there is no Makefile file of course.

Maybe hidden files should be ignored when the algorithm choose whether or not it faces a crappy tarball.

provide more informative error message when package.py execs non-existent binary

For instance, building bcftools is simply untar and make; there is no ./configure file in the tarball.

But the spackage developer (erhm, that is me) failed to remove the default

    configure("--prefix=%s" % prefix)

As a result,

spack install bcftools

fails with

==> Building bcftools.
Traceback (most recent call last):
  File "/n/local/sc/lib/spack/spack/build_environment.py", line 268, in fork
    function()
  File "/n/local/sc/lib/spack/spack/package.py", line 833, in real_work
    self.install(self.spec, self.prefix)
  File "/n/local/sc/var/spack/packages/bcftools/package.py", line 40, in install
    configure("--prefix=%s" % prefix)
  File "/n/local/sc/lib/spack/spack/util/executable.py", line 77, in __call__
    stdout=subprocess.PIPE if return_output else sys.stdout)
  File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1308, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Certainly 'No such file or directory' tells me something is missing. Shouldn't it be more informative and tell me WHAT is missing?

Cannot uninstall packages if they don't have a URL

JEG: I built cbtf from the git repository using this source access line:
version('master', branch='master', git='http://git.code.sf.net/p/cbtf/cbtf')

TODD: This looks fine, although if you check out 'master' you run the risk of getting a different version every time.

JEG: and now I can't uninstall it.

JEG: spack uninstall -a cbtf
JEG: ==> Error: Class constructor failed for package 'cbtf'.
JEG Package Cbtf has no version with a URL.

TODD: Can you file a bug for this? In the meantime, try:
TODD: spack uninstall cbtf@master
TODD: do a spack find -p cbtf to see where it is installed, then just remove it manually.

JEG: I believe I had to remove the install directory.
JEG: Sorry, to be filing this weeks after being asked to.

Spack build failures do not output a path to the spack-build.out log file

When a spack build fails, it no longer shows a path to the spack-build.out log file. For example:

paul ~/C/s/bin > ./spack install memaxes
==> Installing memaxes
==> cmake is already installed in /home/paul/Clinic/spack/opt/spack/x86_64/gcc-5.2.1/cmake-3.0.2-bv634arumx3m47mpynkw5ygmiqdlcykp.
==> Installing qt
==> glib is already installed in /home/paul/Clinic/spack/opt/spack/x86_64/gcc-5.2.1/glib-2.42.1-dwjk6vntaa4dextqivrup3odqfjfg6mh.
==> libtiff is already installed in /home/paul/Clinic/spack/opt/spack/x86_64/gcc-5.2.1/libtiff-4.0.3-n6k5fnztfshg3krijefks5qmnaptvigk.
==> libxml2 is already installed in /home/paul/Clinic/spack/opt/spack/x86_64/gcc-5.2.1/libxml2-2.9.2-lt2vnkj75wp2cvi2q75azleq3kjr2alr.
==> dbus is already installed in /home/paul/Clinic/spack/opt/spack/x86_64/gcc-5.2.1/dbus-1.9.0-vk3dr7ps5csbudicoqgpk3hvl27wlz4z.
==> zlib is already installed in /home/paul/Clinic/spack/opt/spack/x86_64/gcc-5.2.1/zlib-1.2.8-5cowb3si2gbcqchtdewwxwhmypem4hdu.
==> jpeg is already installed in /home/paul/Clinic/spack/opt/spack/x86_64/gcc-5.2.1/jpeg-9a-v6w3vn6ytc4owszkccwmolwhytnbvasw.
==> Installing gtkplus
==> gdk-pixbuf is already installed in /home/paul/Clinic/spack/opt/spack/x86_64/gcc-5.2.1/gdk-pixbuf-2.31.2-n5bcojzjasynb3pn55lbyw5jebko3ptu.
==> pango is already installed in /home/paul/Clinic/spack/opt/spack/x86_64/gcc-5.2.1/pango-1.36.8-boik7co2rayuuosdnv6qnzpkiklkl4ug.
==> atk is already installed in /home/paul/Clinic/spack/opt/spack/x86_64/gcc-5.2.1/atk-2.14.0-6xy47vuatz52e3luykhccrcpm6bkptpw.
==> cairo is already installed in /home/paul/Clinic/spack/opt/spack/x86_64/gcc-5.2.1/cairo-1.14.0-rqplcapyohdgxjolv26ktt7esmqptstj.
==> Trying to fetch from http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-2.24.25.tar.xz
######################################################################## 100.0%
==> Staging archive: /home/paul/Clinic/spack/var/spack/stage/gtkplus-2.24.25-dqc66tudnnl3qte7r67vinptia3dnu7y/gtk+-2.24.25.tar.xz
==> Created stage in /home/paul/Clinic/spack/var/spack/stage/gtkplus-2.24.25-dqc66tudnnl3qte7r67vinptia3dnu7y.
==> Patched gtkplus
==> Building gtkplus.
Traceback (most recent call last):
  File "/home/paul/Clinic/spack/lib/spack/spack/build_environment.py", line 278, in fork
    function()
  File "/home/paul/Clinic/spack/lib/spack/spack/package.py", line 839, in real_work
    cleanup()
  File "/home/paul/Clinic/spack/lib/spack/spack/package.py", line 786, in cleanup
    self.remove_prefix()
  File "/home/paul/Clinic/spack/lib/spack/spack/package.py", line 614, in remove_prefix
    spack.installed_db.remove(self.spec)
  File "/home/paul/Clinic/spack/lib/spack/spack/database.py", line 74, in converter
    return function(self, spec_like, *args, **kwargs)
  File "/home/paul/Clinic/spack/lib/spack/spack/database.py", line 502, in remove
    return self._remove(spec)
  File "/home/paul/Clinic/spack/lib/spack/spack/database.py", line 472, in _remove
    key = self._get_matching_spec_key(spec)
  File "/home/paul/Clinic/spack/lib/spack/spack/database.py", line 442, in _get_matching_spec_key
    raise KeyError("No such spec in database! %s" % spec)
KeyError: 'No such spec in database! [email protected]%[email protected]=x86_64^[email protected]%[email protected]=x86_64^[email protected]%[email protected]=x86_64^[email protected]%[email protected]=x86_64^[email protected]%[email protected]=x86_64^[email protected]%[email protected]=x86_64^[email protected]%[email protected]=x86_64^[email protected]%[email protected]=x86_64^[email protected]%[email protected]=x86_64^jpeg@9a%[email protected]=x86_64^[email protected]%[email protected]=x86_64^[email protected]%[email protected]=x86_64^[email protected]%[email protected]=x86_64^[email protected]%[email protected]=x86_64^[email protected]%[email protected]=x86_64^[email protected]%[email protected]=x86_64^[email protected]%[email protected]=x86_64'
==> Error: Installation process had nonzero exit code.

`spack find` doesn't search virtual deps properly

From @markcmiller86:

From: <[email protected]> on behalf of Mark Miller <[email protected]>
Date: Wednesday, October 7, 2015 at 6:49 PM
To: Spack <[email protected]>
Subject: [spack] Would like 'spack find' to find implementations of a virtual dependency

I went looking for blas implementations. . .

[scratlantis:~/tmp] miller86% spack find blas
==> No such package: blas
[scratlantis:~/tmp] miller86% spack find netlib-blas
==> 2 installed packages.
-- macosx_10.8_x86_64 / [email protected] -------------------------------
netlib-blas@Nov2013  [email protected]

So, I am thinking spack find should find all blas implementations and not just a specific one.

Or, maybe if a find for the package as a specific package fails, then attempt same as a virtual dependency

spack providers gives you this info, but I agree with Mark that Spack find should work with simple virtual dependencies.

Testing an installation

When installing software, I like to run a quick test that the installation works fine. This is nothing more than building and running a trivial program that outputs the version numbers. Often, this catches problems with install paths or library paths. It would be good to support this as a post-install step.

`spack checksum` finds wrong URLs

I was having some problems getting spack to find the correct URL for files.

With these settings

    homepage = "http://fishshell.com/"
    url      = "http://fishshell.com/files/2.2.0/fish-2.2.0.tar.gz"
    list_url = homepage

I get the following result (with wrong URLs):

$ spack checksum fish
==> Found 5 versions of fish.
  2.2.0     http://fishshell.com/fish-2.2.0.tar.gz
  2.1.2     http://fishshell.com/fish-2.1.2.tar.gz
  2.1.1     http://fishshell.com/fish-2.1.1.tar.gz
  2.1.0     http://fishshell.com/fish-2.1.0.tar.gz
  2.0.0     http://fishshell.com/fish-2.0.0.tar.gz

How many would you like to checksum? (default is 5, q to abort)
==> Downloading...
==> Trying to fetch from http://fishshell.com/fish-2.2.0.tar.gz

curl: (22) The requested URL returned error: 404 Not Found
==> Fetching from http://fishshell.com/fish-2.2.0.tar.gz failed.
==> Error: All fetchers failed for spack-stage-Slflbn

Using dotkit on non-LC machine

@tgamblin Is it straightforward to install Dotkit on a non-LC machine? I need this on my desktop system in order to utilize spack use and/or spack load. Or is there an alternative method of sourcing the tools in the absence of dotkit?

Spack needs a better way to install packages that don't have install targets.

There are a lot of tools in filesystem.py, but there could be more. @malcook has an example where he wants symlink to be preserved when copying trees into place.

install_tree, being defined in terms of
shutil.copytree is not very useful for what I expect will be the most sought after use case, as described with a workaround : http://stackoverflow.com/a/12514470 which I employ below.

I also wonder if there are pythonic/spack-esque replacements for my os.system calls below, written for a bioinformatics ‘app’ where all executables are creates in top level directory and ‘install’ is left to user whimsy:

def install(self, spec, prefix):
    ## no configure
    make()                  # this makefile has no PREFIX or

                                # `install` target.
    ## APPROACH: executables are all at top-level, so symlink them
    ## into ./bin dir and then COPY THE ENTIRE STAGING DIRECTORY
    ## (allowing for symlinks).  This is ugly but it works, it is
    ## complete, and is consistent with how the application is
    ## packaged (if it ain't fixed don't fix it more than you
    ## must).
    mkdirp('bin')
    ## TODO: make portable to non linux?
    os.system("find * -maxdepth 0 -type f -executable -exec ln -rsf -t bin '{}' \;") #  symlink into ./bin all top-level executables.
    os.system('ln -rsf -t bin  ./scripts/*') # also, symlink into ./bin all scripts (and the ./scripts/test directory)
    copytree('./',prefix,symlinks=True)      # N.B. using copytree per http://stackoverflow.com/a/12514470

Ideally the above functionality would be available in Python and would work without the various shell commands used.

GitFetchStrategy wrongly interpreted as tarball

@tgamblin Installing ROSE on aztec works just fine, but something is different when I'm trying to install on my local tux machine:

$ spack install rose
==> Installing rose
==> boost is already installed in /export/tmp.too1/development/projects/rose/master/spack/opt/unknown_arch/[email protected]/[email protected].
==> autoconf is already installed in /export/tmp.too1/development/projects/rose/master/spack/opt/unknown_arch/[email protected]/[email protected].
==> libtool is already installed in /export/tmp.too1/development/projects/rose/master/spack/opt/unknown_arch/[email protected]/[email protected].
==> jdk is already installed in /export/tmp.too1/development/projects/rose/master/spack/opt/unknown_arch/[email protected]/jdk@8u25-linux-x64.
==> automake is already installed in /export/tmp.too1/development/projects/rose/master/spack/opt/unknown_arch/[email protected]/[email protected].
==> rose-master.
Traceback (most recent call last):
  File "./bin/spack", line 105, in <module>
    command(parser, args)
  File "/export/tmp.too1/development/projects/rose/master/spack/lib/spack/spack/cmd/install.py", line 62, in install
    ignore_deps=args.ignore_deps)
  File "/export/tmp.too1/development/projects/rose/master/spack/lib/spack/spack/package.py", line 729, in do_install
    self.do_patch()
  File "/export/tmp.too1/development/projects/rose/master/spack/lib/spack/spack/package.py", line 663, in do_patch
    self.do_stage()
  File "/export/tmp.too1/development/projects/rose/master/spack/lib/spack/spack/package.py", line 645, in do_stage
    self.do_fetch()
  File "/export/tmp.too1/development/projects/rose/master/spack/lib/spack/spack/package.py", line 633, in do_fetch
    self.stage.fetch()
  File "/export/tmp.too1/development/projects/rose/master/spack/lib/spack/spack/package.py", line 457, in stage
    mirror_path=self.mirror_path(),
  File "/export/tmp.too1/development/projects/rose/master/spack/lib/spack/spack/package.py", line 482, in mirror_path
    filename += extension(self.url) if self.url else "tar.gz"
TypeError: cannot concatenate 'str' and 'NoneType' objects

This is the Git version information in rose/package.py:

version('master', branch='master', git='https://github.com/rose-compiler/edg4x-rose.git')

From what I can tell, it looks like Spack is interpreting this as a tarball rather than a Git repository. Your guidance is appreciated!

spack path length too long for Python scripts that use #!

I suspect this will be an issue in general with spack python builds given the inherently long path:

rzalastor1@lee218:/collab/usr/gapps/python/build/spack/opt/spack/chaos_5_x86_64_ib/gcc-4.4.7/python-2.7.10-yqkr6m74axh3nafjscgtjb3zj3htx3fe/bin/ipython
bash: /collab/usr/gapps/python/build/spack/opt/spack/chaos_5_x86_64_ib/gcc-4.4.7/python-2.7.10-yqkr6m74axh3nafjscgtjb3zj3htx3fe/bin/ipython: /collab/usr/gapps/python/build/spack/opt/spack/chaos_5_x86_64_ib/gcc-4.4.7/pyt: bad interpreter: Permission denied

develop: "spack mirror remove" does not work

Hi,

The "spack mirror remove" seems to be broken:

$ spack mirror add local_filesystem file:///home/pruvost/work/spack-mirrors/spack-mirror-2015-06-24/
$ spack mirror list
local_filesystem file:///home/pruvost/work/spack-mirrors/spack-mirror-2015-06-24/
$ spack mirror remove local_filesystem
==> Error: Unknown scope None. Valid options are site, user

develop: compiler clang@unknown created for /usr/bin/clang-format

On Fedora 22 x86_64, I get a bogus clang@unknown compiler entry.

$ cat ~/.spack/compilers.yaml 
compilers:
  unknown_arch:
    [email protected]:
      cc: /usr/bin/clang
      cxx: /usr/bin/clang++
      f77: None
      fc: None
    clang@unknown:
      cc: /usr/bin/clang-format
      cxx: None
      f77: None
      fc: None
    [email protected]:
      cc: /usr/bin/gcc
      cxx: /usr/bin/g++
      f77: /usr/bin/gfortran
      fc: /usr/bin/gfortran

But clang-format is just a code formatter, part of the same rpm that provided [email protected].

Installing Blast Error: Curl: (9) Server denied you to change to the given directory

Hi I'm working with NERSC and we are thinking of implementing the spack package manager to our system.
We would like to eventually build a substantial amount of bioinformatic tools using spack.

I've been testing out writing formula using blast. I've been receiving this error:
==> Installing blast
==> Trying to fetch from ftp://ftp.ncbi.nlm.nih.gov/2.2.30/executables/blast+/2.2.30/ncbi-2.2.30-2.2.30+-src.tar.gz

curl: (9) Server denied you to change to the given directory
==> Fetching from ftp://ftp.ncbi.nlm.nih.gov/2.2.30/executables/blast+/2.2.30/ncbi-2.2.30-2.2.30+-src.tar.gz failed.
==> Error: All fetchers failed for [email protected]%[email protected]=unknown_arch

One thing that I've noticed is that it changes blast into version 2.2.30 thus giving the wrong URL. Does spack recognize the blast keyword and turns it into it's version number?

Here is the formula that I've written:

   from spack import *
   class Blast(Package) 
   homepage = "http://blast.ncbi.nlm.nih.gov"
   url      = "ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.2.30/ncbi-blast-2.2.30+-src.tar.gz"

   version('2.2.30', 'f8e9a5eb368173142fe6867208b73715')

  def install(self, spec, prefix):
      configure("--prefix=%s" % prefix)
      make()
      make("install")

Thanks for your help!

develop: default behaviour with variants

Hi,

lets say I have a variant "var" in a package "pac":

variant('var', default=False, description='Enable lib2 instead of lib1')

and optional dependencies like this:

depends_on("lib1", when='~var')
depends_on("lib2", when='+var')

what I expect writting this is to have by default a dependency to lib1 and if variant var is enabled then I depend on lib2 and no more on lib1.

so that when I invoke:

$ spack install pac

then I depend on lib1, because var is not activated. And If I invoke:

$ spack install pac+var

then I depend on lib2 and not on lib1

The problem is that for now, with this configuration, if I invoke:

$ spack install pac

Spack does not detect the dependency to lib1. To get the correct behaviour, I have to write:

$ spack install pac~var

even if "install pac" implicitly means "install pac~var".

Is it possible to get dependencies resolved with:

depends_on("lib1", when='~var')

without explicitly add the "~var" in the specs?

Thanks,
Florent

Configuration options for curl arguments

The sourceforge download issue, #59, turned out to be due to an overridden user agent. Having a way to inject options into the curl invocation to avoid or adjust things like this in the user's environment would be useful.

spack uninstall leaves behind created module/dotkit

One might reasonable expect uninstall to completely undo the results of install.

But, I not that uninstall does not touch and installed modules.

For instance:

spack install [email protected]
   ...
==> Successfully installed dos2unix.
   ...
$ module av 2>&1 | grep dos2unix
[email protected]%[email protected]
$ which dos2unix
/usr/bin/dos2unix
$ module load [email protected]%[email protected]
$ which dos2unix
/n/local/sce/spack/opt/CentOS_7_x86_64/[email protected]/[email protected]/bin/dos2unix
$ module unload [email protected]%[email protected]
$ which dos2unix
/usr/bin/dos2unix
$ spack uninstall dos2unix
==> Successfully uninstalled [email protected]%[email protected]=CentOS_7_x86_64.
$ module av 2>&1 | grep dos2unix
[email protected]%[email protected]
$ module load [email protected]%[email protected]
$ which dos2unix
/usr/bin/dos2unix

I am not sure what the best resolution of this is. Feel free to close with "works as designed". I thought I should mention it though...

spack install llvm fails

Hi there.

Trying to use spack, I hit this road block:

$ spack install llvm
==> Installing llvm
==> Trying to fetch from http://llvm.org/releases/3.5.1/llvm-3.5.1.src.tar.xz
==> Staging archive: /home/jovyan/spack/var/spack/stage/[email protected]%[email protected]=unknown_arch/llvm-3.5.1.src.tar.xz
==> Created stage in /home/jovyan/spack/var/spack/stage/[email protected]%[email protected]=unknown_arch.
==> No patches needed for llvm.
==> Building llvm.
Traceback (most recent call last):
  File "/home/jovyan/spack/lib/spack/spack/build_environment.py", line 268, in fork
    function()
  File "/home/jovyan/spack/lib/spack/spack/package.py", line 833, in real_work
    self.install(self.spec, self.prefix)
  File "/home/jovyan/spack/var/spack/packages/llvm/package.py", line 52, in install
    *std_cmake_args)
TypeError: 'NoneType' object is not callable
==> Installing llvm
==> Trying to fetch from http://llvm.org/releases/3.5.1/llvm-3.5.1.src.tar.xz
==> Staging archive: /home/jovyan/spack/var/spack/stage/[email protected]%[email protected]=unknown_arch/llvm-3.5.1.src.tar.xz
==> Created stage in /home/jovyan/spack/var/spack/stage/[email protected]%[email protected]=unknown_arch.
==> No patches needed for llvm.

This is the dockerfile used to produce that problem. Am I missing something?

Thanks for your help
Stephan

NameError: global name 'tty' is not defined

certik@redhawk:~/repos/spack/var/spack/packages(master)$ spack install
Traceback (most recent call last):
  File "/home/certik/bin/spack", line 135, in <module>
    main()
  File "/home/certik/bin/spack", line 109, in main
    return_val = command(parser, args)
  File "/home/certik/repos/spack/lib/spack/spack/cmd/install.py", line 55, in install
    tty.die("install requires at least one package argument")
NameError: global name 'tty' is not defined

Git tags not pulled in full before checkout

For repositories with tag commits that aren't reachable from the current head, the checkout of a tag in the git fetch strategy can fail. This came up with the Go repository, which doesn't get its release version tags with the initial clone.

Two options, I'll put in either one but though it best to get some feedback first:

  1. Depend on using --branch, this requires a newer version of git, but allows it to put --depth 1 and drop download bandwidth and time by a significant amount
  2. Add a pull --tags before the checkout. In principle fetch --tags would also work, but the behavior is dependent on git version. Either way, this completely prevents using a shallow clone.

Speaking of, is there a reason --depth 1 isn't in the standard flags?

How to use shell integration (setup-env.sh)

I'm trying to actually use my installed tools now by sourcing them with the setup-env.sh file, but I keep getting the message below:

aztec2@too1:echo $SHELL
/bin/bash

aztec2@too1:. share/spack/setup-env.sh

aztec2@too1:./bin/spack use rose
==> This command requires spack's shell integration.

  To initialize spack's shell commands, you must run one of
  the commands below.  Choose the right command for your shell.

  For bash and zsh:
      . /g/g12/too1/development/opt/spack/share/spack/setup-env.sh

  For csh and tcsh:
      setenv SPACK_ROOT /g/g12/too1/development/opt/spack
      source /g/g12/too1/development/opt/spack/share/spack/setup-env.csh

URL for xz package is broken

When trying to install the xz package, we see an error that indicates that the URL for the package is broken:

==> Installing xz
==> Trying to fetch from http://tukaani.org/xz/xz-5.2.0.tar.bz2

curl: (22) The requested URL returned error: 403 Forbidden
==> Fetching from http://tukaani.org/xz/xz-5.2.0.tar.bz2 failed.
==> Error: All fetchers failed for xz-5.2.0-qhllisblbadybmawb3sbs6xwby4vgeyz

Splitting qt into qt4 and qt5

Qt4 and Qt5 are sufficiently different that separate packages might make more sense. Almost every package mentioning Qt is basically requiring specific versions of Qt anyways (either transitively or explicitly).

Fail to install gcc on Mac OSX

On my Mac, g++ --version returns:

Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.1.0
Thread model: posix

When running spack install [email protected], I get the following errors:

...
configure: error: gmp.h can't be found, or is unusable.
==> Error: command './configure --prefix=/Users/lindseybugbee/Downloads/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]' returned error code 1
...
checking for MPFR... no
configure: error: libmpfr not found or uses a different ABI (including static vs shared).
==> Error: command './configure --prefix=/Users/lindseybugbee/Downloads/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]' returned error code 1
...
checking for gmp.h... no
configure: error: gmp.h can't be found, or is unusable.
==> Error: command './configure --prefix=/Users/lindseybugbee/Downloads/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]' returned error code 1

Is Spack not configured to work on OS X?

Misleading log message : 'Patched <package-name>'

When installing a package that can be conditionally patched the log message in spack/package.py:

tty.msg("Patched %s" % self.name)

is always printed, regardless of whether a patch has been applied or not. This may be misleading for someone that reads only the log messages and:

  • doesn't expect the package to be patched
  • doesn't know that the additional message:
tty.msg('Applying patch %s' % patch.path_or_url)

is logged if a patch is applied.

develop: fetching a tarball coming from a mirrored svn version fails

Hi,

I tried to install an svn version of a package from a tarball acquired with a spack mirror create.
The problem is that on the machine where I add the mirror I'm not able to install the package because the fetch step fails:

$ spack -d fetch chameleon@trunk
==> Trying to fetch from file:///home/pruvost/work/spack_mirrors/spack-mirror-2015-06-24/chameleon/chameleon-trunk.tar.gz
==> /usr/bin/curl -O -f -D - -L file:///home/pruvost/work/spack_mirrors/spack-mirror-2015-06-24/chameleon/chameleon-trunk.tar.gz -#
######################################################################## 100,0%
==> Fetching from file:///home/pruvost/work/spack_mirrors/spack-mirror-2015-06-24/chameleon/chameleon-trunk.tar.gz failed.

It is strange because if I try the command:

$  /usr/bin/curl -O -f -D - -L file:///home/pruvost/work/spack_mirrors/spack-mirror-2015-06-24/chameleon/chameleon-trunk.tar.gz

the tarball is properly downloaded in the current directory.

I do not have the problem with a released version.
I reproduce the same problem with another package using a SVN version.

Any idea?

Thanks,
Florent

problem with shebang of Python scripts being too long

Some Python packages install python scripts to be executed via bash.
If we use the Python installed with spack, the path of the python is something like:
#!/<SOME_DIR>/spack_git_repo/opt/spack/chaos_5_x86_64_ib/gcc-4.4.7/python-2.7.10- yqkr6m74axh3nafjscgtjb3zj3htx3fe/bin/python

Somehow the bash interpreter will cut it off when the shebang is longer than a certain number of characters as documented here

For me it cut off so the she-bang looked like:
``#!/<SOME_DIR>/spack_git_repo/opt/spack/chaos_5_x86_64_ib/gcc-4.4.7/python-2.7.10- yqkr6m74axh3nafjscgtjb3zj3htx3fe/bin/p`

A simple fix is to change the line of shebang to:
#!/bin/env python

Is there a better solution than manually changing all the shebangs for the python scripts?
In any case, I thought it may be nice to document this behavior somewhere in the spack documentation for Python use.
Thanks.

`depends_on` needs `when` logic

Basically, ParaView has about a dozen meaningful flags that can be twiddled for how it gets built. The dependencies that are required depend on these flags, but there seems to be no way to express it. I could add them all as unconditional depedencies, but it seems excessive to require Python, MPI, Qt, and more if all you want is to work with a C++ Catalyst interface.

virtual dependencies

Hi,

This is a question about how virtual dependencies work. On the develop branch, if run:

$ spack providers mpe
mpe2

... as expected.

If I then (arbitrarily) edit var/spack/packages/zlib/package.py and insert

"provides('mpe')"

(I know zlib doesn't do this)

and then run:

$ spack providers mpe
zlib

but there's now no mention of 'mpe2'.

Is this as intended? Should I be adding more detailed version information to the virtual deps?

This is just a test example -- the case I'm thinking of is that, say, blas could be provided by atlas, openblas, mkl, acml,

Darach

`spack install py-pandas` failed

I was using the develop branch with commit tag 1792115b4df2f6ecca18bddf462ccd4a618d9698
One of the py-pandas dependencies fails to build correctly.

The dependency is libdrm which depends on libpciaccess.

To build libpciaccess,
I did

$ spack create http://pkgs.fedoraproject.org/repo/pkgs/libpciaccess/libpciaccess-0.13.2.tar.bz2/b7c0d3afce14eedca57312a3141ec13a/libpciaccess-0.13.2.tar.bz2

And edited the following:

from spack import *

class Libpciaccess(Package):
    """Generic PCI access library"""
    homepage = "http://cgit.freedesktop.org/xorg/lib/libpciaccess/"
    url      = "http://pkgs.fedoraproject.org/repo/pkgs/libpciaccess/libpciaccess-0.13.2.tar.bz2/b7c0d3afce14eedca57312a3141ec13a/libpciaccess-0.13.2.tar.bz2"

    version('0.13.2', 'b7c0d3afce14eedca57312a3141ec13a')

    def install(self, spec, prefix):
        import os
        os.system("autoconf")
        configure('--prefix=%s' % prefix)

        make()
        make("install")

Then libdrm is still unable to find the newly installed libpciaccess library so I edited:

$ spack edit libdrm

and modified the contents to:

from spack import *

class Libdrm(Package):
    """A userspace  library for  accessing the  DRM, direct
    rendering  manager, on  Linux,  BSD and  other  operating
    systems that support the  ioctl interface."""

    homepage = "http://dri.freedesktop.org/libdrm/" # no real website...
    url      = "http://dri.freedesktop.org/libdrm/libdrm-2.4.59.tar.gz"

    version('2.4.59', '105ac7af1afcd742d402ca7b4eb168b6')
    version('2.4.33', '86e4e3debe7087d5404461e0032231c8')

    def install(self, spec, prefix):
        import os
        SPACK_ROOT = os.environ["SPACK_ROOT"]
        libpciaccess_path = [dir[0]
                             for dir in os.walk(SPACK_ROOT + "/opt/spack/")
                             if os.path.isdir(dir[0]) and
                             "libpciaccess" in dir[0]][0]

        os.environ["PCIACCESS_CFLAGS"] = libpciaccess_path + "/include"
        os.environ["PCIACCESS_LIBS"] = libpciaccess_path + "/lib"
        configure("--prefix=%s" % prefix)

        make()
        make("install")

Then when I did

$ spack install libdrm

Still there is an error about

libtool: install: error: cannot install `libkms.la' to a directory not ending in /usr/local/lib

The complete log file is here

develop branch: parallel=False does not work for make() function

when using make("install", parallel=False) the make install process is still using -j in the current develop branch state.

You can reproduce it with:
spack -d install libelf

I see that at install:
==> make -j4 install

while make("install", parallel=False) is used in the libelf package

spack create for mvapich failing

I also noted that the suggested fix in the error message "spack clean --all" is not valid.

To reproduce:
spack create http://mvapich.cse.ohio-state.edu/download/mvapich2/mv2

rzmerl156<113>: spack create http://mvapich.cse.ohio-state.edu/download/mvapich2/mv2/mvapich2-1.9.tgz
==> Creating template for package mvapich2
==> Downloading...
==> Fetching http://mvapich.cse.ohio-state.edu/download/mvapich2/mv2/mvapich2-2.tgz

######################################################################################################### 100.0%

==> Warning: The contents of /g/g0/moody20/projects/spack.git/var/spack/stage/spack-stage-azl8Wu/mvapich2-2.tgz look like HTML.
The checksum will likely be bad. If it is, you can use
'spack clean --all' to remove the bad archive, then fix
your internet gateway issue and install again.
/bin/tar: This does not look like a tar archive

gzip: stdin: not in gzip format
/bin/tar: Child returned status 1
/bin/tar: Error is not recoverable: exiting now
==> Error: command '/bin/tar --exclude=//* -tf /g/g0/moody20/projects/spack.git/var/spack/stage/spack-stage-azl8Wu/mvapich2-2.tgz' returned error code 2

Sourceforge download links unreliable

A number of packages, I noticed tmux but there are others, have sourceforge links of the form:

http://downloads.sourceforge.net/project/tmux/tmux/tmux-1.9/tmux-1.9a.tar.gz

These used to work as download links with redirect handling, but now a timestamp appears to be required. This new form appears to work (on wget from a shell):

http://downloads.sourceforge.net/project/tmux/tmux/tmux-1.9/tmux-1.9a.tar.gz?ts=$(date +%s)&use_mirror=autoselect

Not sure what the best way to address this is, but a url-handler for sourceforge might be in order.

scipy fails to build on RHEL6

==> Trying to fetch from https://pypi.python.org/packages/source/s/scipy/scipy-0.15.0.tar.gz
######################################################################## 100.0%
==> Staging archive: /home/certik/repos/spack/var/spack/stage/[email protected]%[email protected]=unknown_arch-ad579252/scipy-0.15.0.tar.gz
==> Created stage in /home/certik/repos/spack/var/spack/stage/[email protected]%[email protected]=unknown_arch-ad579252.
==> No patches needed for py-scipy.
==> Building py-scipy.
/home/certik/repos/spack/opt/unknown_arch/[email protected]/[email protected]/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
  warnings.warn(msg)
/home/certik/repos/spack/opt/unknown_arch/[email protected]/[email protected]/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'setup_requires'
  warnings.warn(msg)
/home/certik/repos/spack/opt/unknown_arch/[email protected]/[email protected]/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_suite'
  warnings.warn(msg)
lapack_opt_info:
openblas_lapack_info:
  libraries openblas not found in ['/home/certik/repos/spack/opt/unknown_arch/[email protected]/[email protected]/lib', '/usr/local/lib64', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
  NOT AVAILABLE

lapack_mkl_info:
mkl_info:
  libraries mkl,vml,guide not found in ['/home/certik/repos/spack/opt/unknown_arch/[email protected]/[email protected]/lib', '/usr/local/lib64', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
  NOT AVAILABLE

  NOT AVAILABLE

atlas_threads_info:
Setting PTATLAS=ATLAS
  libraries ptf77blas,ptcblas,atlas not found in /home/certik/repos/spack/opt/unknown_arch/[email protected]/[email protected]/lib
  libraries lapack_atlas not found in /home/certik/repos/spack/opt/unknown_arch/[email protected]/[email protected]/lib
  libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib64
  libraries lapack_atlas not found in /usr/local/lib64
  libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
  libraries lapack_atlas not found in /usr/local/lib
  libraries ptf77blas,ptcblas,atlas not found in /usr/lib64/sse2
  libraries lapack_atlas not found in /usr/lib64/sse2
  libraries ptf77blas,ptcblas,atlas not found in /usr/lib64
  libraries lapack_atlas not found in /usr/lib64
  libraries ptf77blas,ptcblas,atlas not found in /usr/lib
  libraries lapack_atlas not found in /usr/lib
  libraries ptf77blas,ptcblas,atlas not found in /usr/lib/
  libraries lapack_atlas not found in /usr/lib/
numpy.distutils.system_info.atlas_threads_info
  NOT AVAILABLE

atlas_info:
  libraries f77blas,cblas,atlas not found in /home/certik/repos/spack/opt/unknown_arch/[email protected]/[email protected]/lib
  libraries lapack_atlas not found in /home/certik/repos/spack/opt/unknown_arch/[email protected]/[email protected]/lib
  libraries f77blas,cblas,atlas not found in /usr/local/lib64
  libraries lapack_atlas not found in /usr/local/lib64
  libraries f77blas,cblas,atlas not found in /usr/local/lib
  libraries lapack_atlas not found in /usr/local/lib
  libraries f77blas,cblas,atlas not found in /usr/lib64/sse2
  libraries lapack_atlas not found in /usr/lib64/sse2
  libraries f77blas,cblas,atlas not found in /usr/lib64
  libraries lapack_atlas not found in /usr/lib64
  libraries f77blas,cblas,atlas not found in /usr/lib
  libraries lapack_atlas not found in /usr/lib
  libraries f77blas,cblas,atlas not found in /usr/lib/
  libraries lapack_atlas not found in /usr/lib/
numpy.distutils.system_info.atlas_info
  NOT AVAILABLE

/home/certik/repos/spack/opt/unknown_arch/[email protected]/[email protected]/lib/python2.7/site-packages/numpy/distutils/system_info.py:1432: UserWarning: 
    Atlas (http://math-atlas.sourceforge.net/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [atlas]) or by setting
    the ATLAS environment variable.
  warnings.warn(AtlasNotFoundError.__doc__)
lapack_info:
  libraries lapack not found in ['/home/certik/repos/spack/opt/unknown_arch/[email protected]/[email protected]/lib', '/usr/local/lib64', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
  NOT AVAILABLE

/home/certik/repos/spack/opt/unknown_arch/[email protected]/[email protected]/lib/python2.7/site-packages/numpy/distutils/system_info.py:1443: UserWarning: 
    Lapack (http://www.netlib.org/lapack/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [lapack]) or by setting
    the LAPACK environment variable.
  warnings.warn(LapackNotFoundError.__doc__)
lapack_src_info:
  NOT AVAILABLE

/home/certik/repos/spack/opt/unknown_arch/[email protected]/[email protected]/lib/python2.7/site-packages/numpy/distutils/system_info.py:1446: UserWarning: 
    Lapack (http://www.netlib.org/lapack/) sources not found.
    Directories to search for the sources can be specified in the
    numpy/distutils/site.cfg file (section [lapack_src]) or by setting
    the LAPACK_SRC environment variable.
  warnings.warn(LapackSrcNotFoundError.__doc__)
  NOT AVAILABLE

Running from scipy source directory.
Traceback (most recent call last):
  File "setup.py", line 249, in <module>
    setup_package()
  File "setup.py", line 246, in setup_package
    setup(**metadata)
  File "/home/certik/repos/spack/opt/unknown_arch/[email protected]/[email protected]/lib/python2.7/site-packages/numpy/distutils/core.py", line 135, in setup
    config = configuration()
  File "setup.py", line 173, in configuration
    config.add_subpackage('scipy')
  File "/home/certik/repos/spack/opt/unknown_arch/[email protected]/[email protected]/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 966, in add_subpackage
    caller_level = 2)
  File "/home/certik/repos/spack/opt/unknown_arch/[email protected]/[email protected]/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 935, in get_subpackage
    caller_level = caller_level + 1)
  File "/home/certik/repos/spack/opt/unknown_arch/[email protected]/[email protected]/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 872, in _get_configuration_from_setup_py
    config = setup_module.configuration(*args)
  File "scipy/setup.py", line 16, in configuration
    config.add_subpackage('linalg')
  File "/home/certik/repos/spack/opt/unknown_arch/[email protected]/[email protected]/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 966, in add_subpackage
    caller_level = 2)
  File "/home/certik/repos/spack/opt/unknown_arch/[email protected]/[email protected]/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 935, in get_subpackage
    caller_level = caller_level + 1)
  File "/home/certik/repos/spack/opt/unknown_arch/[email protected]/[email protected]/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 872, in _get_configuration_from_setup_py
    config = setup_module.configuration(*args)
  File "scipy/linalg/setup.py", line 18, in configuration
    raise NotFoundError('no lapack/blas resources found')
numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
==> Error: command '/home/certik/repos/spack/opt/unknown_arch/[email protected]/[email protected]/bin/python setup.py install --prefix=/home/certik/repos/spack/opt/unknown_arch/[email protected]/[email protected]' returned error code 1

Problem building with module-loaded compiler

I'm trying out spack for the first time and ran into trouble when I tried to install a package after loading a compiler with the module command:

$ gcc --version | head -1
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)
$ module show compilers/gcc/4.8.3
-------------------------------------------------------------------
/etc/modulefiles/compilers/gcc/4.8.3:

module-whatis    load GCC 4.8.3 environment 
module-whatis    Modifies: PATH, LD_LIBRARY_PATH, MANPATH 
prepend-path     PATH /projects/opt/gcc/4.8.3/bin 
prepend-path     LD_LIBRARY_PATH /projects/opt/gcc/4.8.3/lib64:/projects/opt/gcc/4.8.3/lib 
prepend-path     MANPATH /projects/opt/gcc/4.8.3/share/man 
setenv       CC gcc 
setenv       CXX g++ 
setenv       CPP cpp 
setenv       FC gfortran 
setenv       F77 gfortran 
setenv       F90 gfortran 
-------------------------------------------------------------------

$ module load compilers/gcc/4.8.3
$ gcc --version | head -1
gcc (GCC) 4.8.3
$ spack compilers
==> Available compilers
-- gcc ----------------------------------------------------------
[email protected]
$ spack compiler add
==> Added 1 new compiler to /home/pakin/.spackconfig
[email protected]
$ spack install libelf
==> Installing libelf
==> Trying to fetch from http://www.mr511.de/software/libelf-0.8.12.tar.gz
######################################################################## 100.0%
==> Staging archive: /home/pakin/spack/var/spack/stage/[email protected]%[email protected]=unknown_arch/libelf-0.8.12.tar.gz
==> Created stage in /home/pakin/spack/var/spack/stage/[email protected]%[email protected]=unknown_arch.
==> No patches needed for libelf.
==> Building libelf.
creating cache ./config.cache
checking whether make sets ${MAKE}... yes
checking for gcc... cc
checking whether the C compiler (cc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
Traceback (most recent call last):
  File "/home/pakin/spack/lib/spack/spack/package.py", line 754, in do_install
self.install(self.spec, self.prefix)
  File "/home/pakin/spack/var/spack/packages/libelf/package.py", line 43, in install
"--disable-debug")
  File "/home/pakin/spack/lib/spack/spack/util/executable.py", line 83, in __call__
% (" ".join(cmd), proc.returncode))
spack.util.executable.ProcessError: command './configure --prefix=/home/pakin/spack/opt/unknown_arch/[email protected]/[email protected] --enable-shared --disable-dependency-tracking --disable-debug' returned error code 1
$ cat /tmp/spack-stage/spack-stage-J87_JC/libelf-0.8.12/config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:582: checking whether make sets ${MAKE}
configure:611: checking for gcc
configure:724: checking whether the C compiler (cc  ) works
configure:740: cc -o conftest    conftest.c  1>&5
/projects/opt/gcc/4.8.3/packages/gcc-4.8.3/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.8.3/cc1: error while loading shared libraries: libmpc.so.3: cannot open shared object file: No such file or directory
configure: failed program was:

#line 735 "configure"
#include "confdefs.h"

main(){return(0);}
$ ldd /projects/opt/gcc/4.8.3/packages/gcc-4.8.3/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.8.3/cc1
    linux-vdso.so.1 =>  (0x00007fff5b9ff000)
    libmpc.so.3 => /projects/opt/gcc/4.8.3/lib/libmpc.so.3 (0x00002ad3b51d7000)
    libmpfr.so.4 => /projects/opt/gcc/4.8.3/lib/libmpfr.so.4 (0x00002ad3b53ef000)
    libgmp.so.10 => /projects/opt/gcc/4.8.3/lib/libgmp.so.10 (0x00002ad3b564b000)
    libdl.so.2 => /lib64/libdl.so.2 (0x0000003167000000)
    libz.so.1 => /lib64/libz.so.1 (0x0000003167400000)
    libstdc++.so.6 => /projects/opt/gcc/4.8.3/lib64/libstdc++.so.6 (0x00002ad3b58e3000)
    libm.so.6 => /lib64/libm.so.6 (0x0000003166800000)
    libgcc_s.so.1 => /projects/opt/gcc/4.8.3/lib64/libgcc_s.so.1 (0x00002ad3b5bed000)
    libc.so.6 => /lib64/libc.so.6 (0x0000003166400000)
    /lib64/ld-linux-x86-64.so.2 (0x0000003166000000)

It looks like spack is discarding my LD_LIBRARY_PATH. Is there a way to tell it not to?

— Scott

develop: "spack mirror create" with multiple packages

Hi,

I tried the "mirror create" feature on the develop branch.
It works when I invoke the command for one package, e.g.
$ spack mirror create [email protected]

But as soon as it fetches several files only the first is really stored in the mirror directory, e.g.
$ spack mirror create hwloc
will keep only the first version 1.11.0

In addition the optional way with a file does not work for me
$ spack mirror create -f specs.txt
Traceback (most recent call last):
File "/home/pruvost/work/gitwc/spack-morse/bin/spack", line 146, in
main()
File "/home/pruvost/work/gitwc/spack-morse/bin/spack", line 127, in main
return_val = command(parser, args)
File "/home/pruvost/work/gitwc/spack-morse/lib/spack/spack/cmd/mirror.py", line 170, in mirror
actionargs.mirror_command
File "/home/pruvost/work/gitwc/spack-morse/lib/spack/spack/cmd/mirror.py", line 127, in mirror_create
specs = _read_specs_from_file(args.file)
File "/home/pruvost/work/gitwc/spack-morse/lib/spack/spack/cmd/mirror.py", line 111, in _read_specs_from_file
args.specs.append(s)
NameError: global name 'args' is not defined

My file looks like this:
pruvost@hp9470m:~/work/gitwc/spack-llnl-fpruvost$ cat specs.txt
[email protected]
[email protected]

Any idea?
Thanks,
Florent

Python and bzip2

Python is not building the bz2 module because it is trying to link to the bzip2 package's .a file which was not compiled -fpic. The bzip2 package does build a shared library, but only appears to generate versioned .so files/links, i.e., libbz2.so.1.0 and libbz2.so.1.0.6 and not the generic libbz2.so.

Allow prefix != spack source tree

When developing, I'm going to have many spack trees, so it'd be nice to locate the prefix and staging directory somewhere other than the spack source tree.

I have local edits for it right now, but plumbing a command line argument down should be the way to do it (similar for other settings in lib/spack/spack/__init__.py while that's going on anyways).

Spack fails to build python on OSX 10.9

I ran into issues building python using spack on OSX 10.9, using either gcc or clang (Xcode 5.1) see below for the gory details, here is one solution to the problem:

If I explicitly set the MACOSX_DEPLOYMENT_TARGET env var to my OSX version (10.9), I avoid the problem. Given this solution, I am not sure if this is something that should go into the spack python package script, or if it could be resolved better in your compiler wrappers. In build_visit, we always set the osx deployment target to avoid issues with various libraries - it may be good practice also to do so in the spack compiler wrappers.

Here is the main symptom that occurs: python’s configure checks fail and report the size of all of the integer types :

checking for uid_t in sys/types.h... yes
checking for uint32_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint64_t... yes
checking for int32_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for int64_t... yes
checking for ssize_t... yes
checking size of int... 0
checking size of long... 0
checking size of void *... 0
checking size of short... 0
checking size of float... 0
checking size of double... 0
checking size of fpos_t... 0
checking size of size_t... configure: error: in /private/var/folders/wj/jjhjt_0d3kg1vmk56d5bq_38001kr8/T/spack-stage/spack-stage-r5wJGI/Python-2.7.8': configure: error: cannot compute sizeof (size_t) Seeconfig.log' for more details
==> Error: command './configure --prefix=/Users/harrison37/Work/uberenv/spack/opt/macosx_10.9_x86_64/[email protected]/[email protected] --without-gcc --enable-shared' returned error code 77

add mpi compiler options

Hi,

I have a package based on gnu makefiles to build which requires to add specific mpif90 options like:

$ MPIFC := /usr/bin/mpif90  -ffree-form -ffree-line-length-0 -I/usr/lib/openmpi/include -I/usr/lib/openmpi/lib
$ FC := $(MPIFC)

Unfortunately, It seems that when Spack intercepts the compiler it removes these options.

Is there a way to add MPI compiler options in the package?

Thanks,
Florent

Spack continues building even if a package (dependency) fails to build

Here the package fails, but spack continues building another package, and at the end if fails with a random Python stacktrace.

/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_nw.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(e_rc5.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(m_md2.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(evp_fips.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(v3_asid.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(v3_addr.o) has no symbols
making all in crypto/krb5...
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o krb5_asn.o krb5_asn.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
ar  r ../../libcrypto.a krb5_asn.o
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ebcdic.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(fips_ers.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp224.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp256.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp521.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistputil.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_win.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_os2.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_nw.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(e_rc5.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(m_md2.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(evp_fips.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(v3_asid.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(v3_addr.o) has no symbols
/usr/bin/ranlib ../../libcrypto.a || echo Never mind.
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ebcdic.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(fips_ers.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp224.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp256.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp521.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistputil.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_win.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_os2.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_nw.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(e_rc5.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(m_md2.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(evp_fips.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(v3_asid.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(v3_addr.o) has no symbols
making all in crypto/cms...
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o cms_lib.o cms_lib.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o cms_asn1.o cms_asn1.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o cms_att.o cms_att.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o cms_io.o cms_io.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o cms_smime.o cms_smime.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o cms_err.o cms_err.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o cms_sd.o cms_sd.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o cms_dd.o cms_dd.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o cms_cd.o cms_cd.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o cms_env.o cms_env.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o cms_enc.o cms_enc.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o cms_ess.o cms_ess.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o cms_pwri.o cms_pwri.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
ar  r ../../libcrypto.a cms_lib.o cms_asn1.o cms_att.o cms_io.o cms_smime.o cms_err.o cms_sd.o cms_dd.o cms_cd.o cms_env.o cms_enc.o cms_ess.o cms_pwri.o
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ebcdic.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(fips_ers.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp224.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp256.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp521.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistputil.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_win.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_os2.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_nw.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(e_rc5.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(m_md2.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(evp_fips.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(v3_asid.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(v3_addr.o) has no symbols
/usr/bin/ranlib ../../libcrypto.a || echo Never mind.
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ebcdic.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(fips_ers.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp224.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp256.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp521.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistputil.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_win.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_os2.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_nw.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(e_rc5.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(m_md2.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(evp_fips.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(v3_asid.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(v3_addr.o) has no symbols
making all in crypto/pqueue...
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o pqueue.o pqueue.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
ar  r ../../libcrypto.a pqueue.o
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ebcdic.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(fips_ers.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp224.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp256.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp521.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistputil.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_win.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_os2.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_nw.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(e_rc5.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(m_md2.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(evp_fips.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(v3_asid.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(v3_addr.o) has no symbols
/usr/bin/ranlib ../../libcrypto.a || echo Never mind.
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ebcdic.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(fips_ers.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp224.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp256.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp521.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistputil.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_win.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_os2.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_nw.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(e_rc5.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(m_md2.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(evp_fips.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(v3_asid.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(v3_addr.o) has no symbols
making all in crypto/ts...
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o ts_err.o ts_err.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o ts_req_utils.o ts_req_utils.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o ts_req_print.o ts_req_print.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o ts_rsp_utils.o ts_rsp_utils.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o ts_rsp_print.o ts_rsp_print.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o ts_rsp_sign.o ts_rsp_sign.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o ts_rsp_verify.o ts_rsp_verify.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o ts_verify_ctx.o ts_verify_ctx.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o ts_lib.o ts_lib.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o ts_conf.o ts_conf.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o ts_asn1.o ts_asn1.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
ar  r ../../libcrypto.a ts_err.o ts_req_utils.o ts_req_print.o ts_rsp_utils.o ts_rsp_print.o ts_rsp_sign.o ts_rsp_verify.o ts_verify_ctx.o ts_lib.o ts_conf.o ts_asn1.o
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ebcdic.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(fips_ers.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp224.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp256.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp521.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistputil.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_win.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_os2.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_nw.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(e_rc5.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(m_md2.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(evp_fips.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(v3_asid.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(v3_addr.o) has no symbols
/usr/bin/ranlib ../../libcrypto.a || echo Never mind.
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ebcdic.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(fips_ers.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp224.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp256.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp521.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistputil.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_win.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_os2.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_nw.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(e_rc5.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(m_md2.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(evp_fips.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(v3_asid.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(v3_addr.o) has no symbols
making all in crypto/srp...
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o srp_lib.o srp_lib.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o srp_vfy.o srp_vfy.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
ar  r ../../libcrypto.a srp_lib.o srp_vfy.o
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ebcdic.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(fips_ers.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp224.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp256.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp521.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistputil.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_win.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_os2.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_nw.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(e_rc5.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(m_md2.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(evp_fips.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(v3_asid.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(v3_addr.o) has no symbols
/usr/bin/ranlib ../../libcrypto.a || echo Never mind.
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ebcdic.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(fips_ers.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp224.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp256.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp521.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistputil.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_win.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_os2.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_nw.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(e_rc5.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(m_md2.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(evp_fips.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(v3_asid.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(v3_addr.o) has no symbols
making all in crypto/cmac...
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o cmac.o cmac.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o cm_ameth.o cm_ameth.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM   -c -o cm_pmeth.o cm_pmeth.c
clang: warning: argument unused during compilation: '-L/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib'
ar  r ../../libcrypto.a cmac.o cm_ameth.o cm_pmeth.o
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ebcdic.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(fips_ers.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp224.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp256.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp521.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistputil.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_win.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_os2.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_nw.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(e_rc5.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(m_md2.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(evp_fips.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(v3_asid.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(v3_addr.o) has no symbols
/usr/bin/ranlib ../../libcrypto.a || echo Never mind.
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ebcdic.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(fips_ers.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp224.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp256.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistp521.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(ecp_nistputil.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_win.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_os2.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(rand_nw.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(e_rc5.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(m_md2.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(evp_fips.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(v3_asid.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../../libcrypto.a(v3_addr.o) has no symbols
if [ -n "libcrypto.1.0.0.dylib libssl.1.0.0.dylib" ]; then \
        (cd ..; /Library/Developer/CommandLineTools/usr/bin/make libcrypto.1.0.0.dylib); \
    fi
[ -z "" ] || cc -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -Iinclude \
        -DFINGERPRINT_PREMAIN_DSO_LOAD -o fips_premain_dso  \
        fips_premain.c fipscanister.o \
        libcrypto.a -lz
ld: warning: ignoring file /Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib/libz.so, file was built for x86_64 which is not the architecture being linked (i386): /Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected]/lib/libz.so
Undefined symbols for architecture i386:
  "_deflate", referenced from:
      _bio_zlib_write in libcrypto.a(c_zlib.o)
      _bio_zlib_ctrl in libcrypto.a(c_zlib.o)
      _zlib_stateful_compress_block in libcrypto.a(c_zlib.o)
  "_deflateEnd", referenced from:
      _bio_zlib_free in libcrypto.a(c_zlib.o)
      _zlib_stateful_finish in libcrypto.a(c_zlib.o)
  "_deflateInit_", referenced from:
      _bio_zlib_write in libcrypto.a(c_zlib.o)
      _zlib_stateful_init in libcrypto.a(c_zlib.o)
  "_inflate", referenced from:
      _bio_zlib_read in libcrypto.a(c_zlib.o)
      _zlib_stateful_expand_block in libcrypto.a(c_zlib.o)
  "_inflateEnd", referenced from:
      _bio_zlib_free in libcrypto.a(c_zlib.o)
      _zlib_stateful_finish in libcrypto.a(c_zlib.o)
  "_inflateInit_", referenced from:
      _bio_zlib_read in libcrypto.a(c_zlib.o)
      _zlib_stateful_init in libcrypto.a(c_zlib.o)
  "_zError", referenced from:
      _bio_zlib_write in libcrypto.a(c_zlib.o)
      _bio_zlib_read in libcrypto.a(c_zlib.o)
      _bio_zlib_ctrl in libcrypto.a(c_zlib.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [link_a.darwin] Error 1
make[3]: *** [do_darwin-shared] Error 2
make[2]: *** [libcrypto.1.0.0.dylib] Error 2
make[1]: *** [shared] Error 2
make: *** [build_crypto] Error 1
==> Error: command 'make' returned error code 2
==> Already downloaded /Users/certik/repos/spack/var/spack/stage/[email protected]%[email protected]=macosx_10.10_x86_64-f26712e1/Python-2.7.8.tar.xz.
==> Already staged python in /Users/certik/repos/spack/var/spack/stage/[email protected]%[email protected]=macosx_10.10_x86_64-f26712e1.
==> No patches needed for python.
==> Building python.
checking build system type... x86_64-apple-darwin14.1.0
checking host system type... x86_64-apple-darwin14.1.0
checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... darwin
checking EXTRAPLATDIR... $(PLATMACDIRS)
checking for --without-gcc... no
checking for gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking for --with-cxx-main=<compiler>... no
checking how to run the C preprocessor... cc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for --with-suffix... 
checking for case-insensitive build directory... yes
checking LIBRARY... libpython$(VERSION).a
checking LINKCC... $(PURIFY) $(MAINCC)
checking for GNU ld... no
checking for --enable-shared... yes
checking for --enable-profiling... no
checking LDLIBRARY... libpython$(VERSION).dylib
checking for ranlib... ranlib
checking for ar... ar
checking for svnversion... found
checking for hg... not-found
checking for a BSD-compatible install... /usr/bin/install -c
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for --with-pydebug... no
checking whether cc accepts -fno-strict-aliasing... yes
checking whether cc accepts -OPT:Olimit=0... yes
checking whether gcc supports ParseTuple __format__... no
checking whether pthreads are available without options... no
checking whether cc accepts -Kpthread... no
checking whether cc accepts -Kthread... no
checking whether cc accepts -pthread... no
checking whether c++ also accepts flags for thread support... no
checking for ANSI C header files... (cached) yes
checking asm/types.h usability... no
checking asm/types.h presence... no
checking for asm/types.h... no
checking conio.h usability... no
checking conio.h presence... no
checking for conio.h... no
checking direct.h usability... no
checking direct.h presence... no
checking for direct.h... no
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.h... no
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking libintl.h usability... no
checking libintl.h presence... no
checking for libintl.h... no
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking process.h usability... no
checking process.h presence... no
checking for process.h... no
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking shadow.h usability... no
checking shadow.h presence... no
checking for shadow.h... no
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for stdint.h... (cached) yes
checking stropts.h usability... no
checking stropts.h presence... no
checking for stropts.h... no
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking thread.h usability... no
checking thread.h presence... no
checking for thread.h... no
checking for unistd.h... (cached) yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking sys/audioio.h usability... no
checking sys/audioio.h presence... no
checking for sys/audioio.h... no
checking sys/bsdtty.h usability... no
checking sys/bsdtty.h presence... no
checking for sys/bsdtty.h... no
checking sys/epoll.h usability... no
checking sys/epoll.h presence... no
checking for sys/epoll.h... no
checking sys/event.h usability... yes
checking sys/event.h presence... yes
checking for sys/event.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/loadavg.h usability... no
checking sys/loadavg.h presence... no
checking for sys/loadavg.h... no
checking sys/lock.h usability... yes
checking sys/lock.h presence... yes
checking for sys/lock.h... yes
checking sys/mkdev.h usability... no
checking sys/mkdev.h presence... no
checking for sys/mkdev.h... no
checking sys/modem.h usability... no
checking sys/modem.h presence... no
checking for sys/modem.h... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking for sys/stat.h... (cached) yes
checking sys/termio.h usability... no
checking sys/termio.h presence... no
checking for sys/termio.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking for sys/types.h... (cached) yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking pty.h usability... no
checking pty.h presence... no
checking for pty.h... no
checking libutil.h usability... no
checking libutil.h presence... no
checking for libutil.h... no
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking netpacket/packet.h usability... no
checking netpacket/packet.h presence... no
checking for netpacket/packet.h... no
checking sysexits.h usability... yes
checking sysexits.h presence... yes
checking for sysexits.h... yes
checking bluetooth.h usability... no
checking bluetooth.h presence... no
checking for bluetooth.h... no
checking bluetooth/bluetooth.h usability... no
checking bluetooth/bluetooth.h presence... no
checking for bluetooth/bluetooth.h... no
checking linux/tipc.h usability... no
checking linux/tipc.h presence... no
checking for linux/tipc.h... no
checking spawn.h usability... yes
checking spawn.h presence... yes
checking for spawn.h... yes
checking util.h usability... yes
checking util.h presence... yes
checking for util.h... yes
checking alloca.h usability... yes
checking alloca.h presence... yes
checking for alloca.h... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... no
checking whether sys/types.h defines makedev... no
checking for sys/mkdev.h... (cached) no
checking sys/sysmacros.h usability... no
checking sys/sysmacros.h presence... no
checking for sys/sysmacros.h... no
checking for linux/netlink.h... no
checking for clock_t in time.h... yes
checking for makedev... no
checking Solaris LFS bug... no
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for uint32_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint64_t... yes
checking for int32_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for int64_t... yes
checking for ssize_t... yes
checking size of int... 0
checking size of long... 0
checking size of void *... 0
checking size of short... 0
checking size of float... 0
checking size of double... 0
checking size of fpos_t... 0
checking size of size_t... configure: error: in `/private/var/folders/v2/2yr8bj8j1tj8wy4jmm3kq1k4000fsc/T/spack-stage/spack-stage-85kfsM/Python-2.7.8':
configure: error: cannot compute sizeof (size_t)
See `config.log' for more details
==> Error: command './configure --prefix=/Users/certik/repos/spack/opt/macosx_10.10_x86_64/[email protected]/[email protected] --with-threads --enable-shared' returned error code 77
==> Trying to fetch from https://pypi.python.org/packages/source/s/setuptools/setuptools-11.3.1.tar.gz
######################################################################## 100.0%
==> Staging archive: /Users/certik/repos/spack/var/spack/stage/[email protected]%[email protected]=macosx_10.10_x86_64-deb121c8/setuptools-11.3.1.tar.gz
==> Created stage in /Users/certik/repos/spack/var/spack/stage/[email protected]%[email protected]=macosx_10.10_x86_64-deb121c8.
==> No patches needed for py-setuptools.
==> Building py-setuptools.
Traceback (most recent call last):
  File "/Users/certik/repos/spack/lib/spack/spack/build_environment.py", line 268, in fork
    function()
  File "/Users/certik/repos/spack/lib/spack/spack/package.py", line 833, in real_work
    self.install(self.spec, self.prefix)
  File "/Users/certik/repos/spack/var/spack/packages/py-setuptools/package.py", line 13, in install
    python('setup.py', 'install', '--prefix=%s' % prefix)
  File "/Users/certik/repos/spack/lib/spack/spack/util/executable.py", line 77, in __call__
    stdout=subprocess.PIPE if return_output else sys.stdout)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in __init__
    errread, errwrite)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

share/spack/setup-env.sh fails when executed indirectly from a symlink

Hi,

I find that share/spack/setup-env.sh fails when executed indirectly from a symlink, say, from /etc/profile.d/spack-setup.sh

This is easily fixed by changing line 155 of setup-env.sh to use the readlink function:

_sp_source_file=$(readlink -f "${BASH_SOURCE[0]}")  # Bash's location of last sourced file.

Agreed?

I tested in zsh too.

I promise I will get with the pull-requests soon.

~Malcolm

develop, GCC : g++ seems to fail at linking time

I have issues using the g++ compiler directly from the command line (during spack builds where it's wrapped seems to work fine):

$ cat main.cpp
#include<iostream>
#include<vector>

using namespace std;

int main(){
  vector<int> a;
  a.push_back(2);
  cout <<"Hello world!"<< endl;
  return0;
}

$ module av

--------------------------------------------------------------------------/home/culpo/github/spack-llnl/share/spack/modules/unknown_arch ---------------------------------------------------------------------------

[email protected]%[email protected] [email protected]%[email protected]     [email protected]%[email protected]    [email protected]%[email protected] [email protected]%[email protected]     [email protected]%[email protected]

$ module load [email protected]%[email protected]

$ gcc --version
gcc (GCC)4.9.2
Copyright(C)2014FreeSoftwareFoundation,Inc.
Thisis free software; see the source for copying conditions.  Thereis NO
warranty;not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ g++--version
g++(GCC)4.9.2
Copyright(C)2014FreeSoftwareFoundation,Inc.
Thisis free software; see the source for copying conditions.  Thereis NO
warranty;not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ g++ main.cpp
/home/culpo/github/spack-llnl/opt/spack/unknown_arch/gcc-4.9.3/binutils-2.25-47dzbj6ozowvfpefw7hktxzcmmht5ikz/bin/ld:/tmp/ccGE5tZp.o:undefined reference to symbol '_Unwind_Resume@@GCC_3.0'
/home/culpo/github/spack-llnl/opt/spack/unknown_arch/gcc-4.9.3/gcc-4.9.2-hiw2pofremm7dvfe6h5jnyeh5kvjfthj/lib64/libgcc_s.so.1: error adding symbols: DSO missing from
command line
collect2: error: ld returned 1exit status

The issue seems related to wrong path passed to the linker (which I assume tries to link with system libraries somehow). In fact:

$ g++ main.cpp /home/culpo/github/spack-llnl/opt/spack/unknown_arch/gcc-4.9.3/gcc-4.9.2-hiw2pofremm7dvfe6h5jnyeh5kvjfthj/lib64/libgcc_s.so.1
$ ./a.out
Hello world!

I can reproduce the issue on :

$ uname -a
Linux nuvolari 3.16.0-49-generic #65~14.04.1-Ubuntu SMP Wed Sep 9 10:03:23 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
$ uname -a
Linux bellatrix 2.6.32-431.29.2.el6.x86_64 #1 SMP Sun Jul 27 15:55:46 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux

`spack load` doesn't load right module when refined by dependency

Issue reported by @AlbertDeFusco et al.:

$ spack load metis      
==> Error: Multiple matches for spec metis.  Choose one:
[email protected]%[email protected]=haswell
     ^[email protected]%[email protected]=haswell
[email protected]%[email protected]=haswell
     ^[email protected]%[email protected]=haswell
$ spack load metis ^openmpi
==> Error: Multiple matches for spec metis^openmpi.  Choose one:
[email protected]%[email protected]=haswell
     ^[email protected]%[email protected]=haswell
[email protected]%[email protected]=haswell
     ^[email protected]%[email protected]=haswell

The second of these should definitely work and load the openmpi version.

This is on this dev branch.

configure: error: C++ compiler missing or inoperational

I downloaded spack and immediately proceeded to install GCC version 4.8.4 with:

spack install [email protected]

Notice that I'm on Ubuntu, and I have GCC version 4.8.2 already installed.

When Spack runs, I get the following error: configure: error: C++ compiler missing or inoperational.

However, if I type which g++ or which c++ I do get the compilers. As I mentioned before, I have GCC version 4.8.2 installed. I'm trying to install version 4.8.4 using Spack.

Inspecting the directory spack-master/lib/spack/env/case-insensitive/ I noticed that the environment variable c++ points to cc, which I think is what causes the error. Furthermore, every single symbolic link in this directory points to cc. Is there a reason for this?

Once I corrected these symbolic links, my installation worked.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.