Commit graph

7822 commits

Author SHA1 Message Date
scheibelp
0b27a7e13d Detect when OS updates affect compiler selection (#3410)
Fixes #1476

Concretization uses compilers defined in config files and if those
are not available defaults to searching typical paths where the
detected operating system would have a compiler. If there is an OS
update, the detected OS can change; in this case all compilers
defined in the config files would no longer match (because they would
be associated with the previous OS version). The error message in
this case was too vague. This commit adds logic for detecting when it
is likely that the OS has been updated (in particular when that
affects compiler concretization) and improves the information provided
to the user in the error message.
2017-03-16 21:08:13 -07:00
scheibelp
5936ad2ca7 Dont propagate flags between different compilers (#3379)
* Dont propagate flags between different compilers

Fixes #2786

Previously when a spec had no parents with an equivalent compiler,
Spack would default to adding the compiler flags associated with the
root of the DAG. This eliminates that default.

* added test for compiler flag propagation

* simplify compiler flag propagation logic
2017-03-16 21:07:35 -07:00
Todd Gamblin
328b2142f5 Fix Qt4 build on Yosemite (10.11) (#3444) 2017-03-16 17:55:06 -07:00
Erik Schnetter
4f05fb4b3f gasnet: Convert to AutotoolsPackage, update (#3455)
* gasnet: Convert to AutotoolsPackage, update

- convert to AutotoolsPackage
- add new version 1.28.0
- create variants for IB and MPI support

* gasnet: Don’t specify prefix explicitly

* gasnet: Add missing variant descriptions

* gasnet: Correct syntax error
2017-03-16 18:12:25 -05:00
scheibelp
9a27dec8e8 Dont auto-init compiler conf for 'compiler find' (#3439)
Fixes #3428

Users can run 'spack compiler find' to automatically initialize their
compilers.yaml configuration file. It also turns out that Spack will
implicitly initialize the compilers configuration file as part of
detecting compilers if none are found (so if a user were to attempt to
concretize a spec without running 'spack compiler find' it would not
fail). However, in this case Spack was overlooking its own implicit
initialization of the config files and would report that no new
compilers were found. This commit removes implicit initialization when
the user calls 'spack compiler find'.

This did not surface until #2999 because the 'spack compiler' command
defaulted to using a scope 'user/platform' that was not accounted for
in get_compiler_config (where the implicit initialization logic
predates the addition of this new scope); #2999 removed the scope
specification when checking through config files, leading to the
implicit initialization.
2017-03-16 11:24:34 -07:00
Adam J. Stewart
99ef28b5d2 Add latest version of lmod (#3467) 2017-03-16 12:50:30 -05:00
Adam J. Stewart
4c7a721341 Add latest version of git, convert to AutotoolsPackage (#3466) 2017-03-16 12:50:10 -05:00
Erik Schnetter
2eda08f192 julia: New variant +simd (#3458) 2017-03-16 11:49:37 -05:00
Erik Schnetter
83fe65e121 hwloc: Add missing dependencies (#3457)
* hwloc: Add missing dependencies

- add several missing dependencies
- add variants for various features
- add new version 1.11.6

* hwloc: Add descriptions to variants
2017-03-16 11:48:39 -05:00
Erik Schnetter
53ca628d8b qthreads: New version 1.12 (#3464) 2017-03-16 10:08:48 -05:00
Erik Schnetter
a609d22b95 pocl: Introduce virtual package “opencl” (#3461)
OpenCL is a standard like MPI, with several versions and several implementations.
2017-03-16 09:47:46 -05:00
Erik Schnetter
d6a7000aee py-numpy: Correct typos in comment (#3462) 2017-03-16 09:45:09 -05:00
Erik Schnetter
19a90ccc19 py-scipy: New version 0.19.0 (#3463) 2017-03-16 09:39:26 -05:00
Javier
9e1e3a203a Adding new package: py-jpype (#3402)
* Adding new package: py-jpype

* Moving jdk dependency
2017-03-16 06:37:09 -05:00
Adam J. Stewart
4518ff0150 Add latest version of lua (#3454) 2017-03-15 21:28:56 -05:00
Adam J. Stewart
a40ccc24d6 Add latest version of pcre (#3453) 2017-03-15 21:28:29 -05:00
Adam J. Stewart
72890f4840 Add latest version of readline (#3452) 2017-03-15 20:36:24 -05:00
Adam J. Stewart
caf209bdd7 Add latest version of libiconv (#3451) 2017-03-15 20:08:01 -05:00
Gregory Lee
d0060bc318 added parallel studio composer edition 2017.2 (#3450) 2017-03-15 18:51:18 -05:00
Adam J. Stewart
7be728d551 Add latest version of libsigsegv (#3449) 2017-03-15 18:00:17 -05:00
Adam J. Stewart
9f1af5913b Add latest version of cURL (#3447) 2017-03-15 16:01:10 -05:00
Adam J. Stewart
41114c3e76 Add latest version of Intel Parallel Studio (#3445) 2017-03-15 13:46:48 -05:00
健美猫
9af7bef10b Add version 4.0 for foam-extend. (#3442) 2017-03-15 13:02:36 -05:00
Adam J. Stewart
dca4d2b15e Consistent docs and usage of env mod methods (#3351) 2017-03-14 22:26:44 -07:00
Denis Davydov
560d28ac7f fix automatic mixing of clang with gfortran 6.3.0 on macOS (#3427)
* fix automatic mixing of clang with gfortran 6.3.0 on macOS
* automatically mix any gfortran with any clang on macOS
* adjust the unit test
2017-03-14 09:48:27 -07:00
Massimiliano Culpo
8c3edfd36f test/file_cache.py: ported to pytest (#3429) 2017-03-14 09:07:04 -07:00
Adam J. Stewart
64bd7adefa Fix vim ~gui behavior (#3432) 2017-03-14 07:45:17 -07:00
Adam J. Stewart
5430d45db1 Add latest version of openpyxl and missing dependencies (#3431) 2017-03-14 07:44:46 -07:00
Adam J. Stewart
b203058891 Fix zlib %pgi build (#3436) 2017-03-14 07:43:54 -07:00
Erik Schnetter
415c9398d2 ncurses: Use gawk as awk (#3425) 2017-03-14 07:43:02 -07:00
Todd Gamblin
d11e262b36 Fix from_sourcing_files(): decode json input as utf-8 (#3433) 2017-03-13 15:52:36 -07:00
Erik Schnetter
9121599145 New package pocl (#3413)
* New package pocl

* pocl: Update dependencies, add self-test

* pocl: Don't require LLVM shared libraries

LLVM build fails with shared libraries.

* Add patch

* Update

* Update

* Make build and install work; install test still fails

* Split pocl into pocl proper and pocl-test

* Add debug output

* pocl: Update to 0.14-rc

* pocl: Correct flake8 error

* pocl: Heed code review recommendations

* pocl: Add newline at end of file

* pocl: Correct flake8 error

I don’t want to use an even longer line by putting the whole variant declaration onto a single line, nor do I think that having an overlong line and adding `# noqa` at the end is more readable than splitting a string over three lines.

* pocl: Correct dependency type for libtool
2017-03-12 12:52:18 -05:00
Denis Davydov
0b948da74c gnuplot: fixed broken package and add variants (#3185)
* gnuplot: fix conflict in header via a simple patch; add variants

* gtkplus: fix missing dependency

* wx: fix build on macOS; switch to AutotoolsPackage

* gnuplot: add missing dependencies

* wx: put back parallel build
2017-03-12 09:37:26 -05:00
Erik Schnetter
d8f1446265 julia: New version 0.5.1 (#3418)
* julia: New version 0.5.1

* julia: Define url on a single line
2017-03-11 21:04:44 -06:00
Erik Schnetter
9a14597493 autoconf: Correct m4 dependency declaration (#3415)
* autoconf: Correct m4 dependency declaration

Closes #3406.

* autoconf: Correct m4 dependency type

* autoconf: Update comment
2017-03-11 21:04:18 -06:00
Erik Schnetter
02db630985 hwloc: Disable OpenCL (#2854)
* hwloc: Disable OpenCL

* hwloc: Convert `install` to `configure_args`
2017-03-11 20:59:06 -06:00
Erik Schnetter
41a3957540 libxsmm: Add header-only variant (#3419)
* libxsmm: Add header-only variant

* libxsmm: Implement requestes from code review

* libxsmm: Correct error in previous simplification

* libxsmm: Raise error if `header-only` variant is not supported by version

* libxsmm: Correct flake8 errors
2017-03-11 16:00:47 -06:00
Erik Schnetter
18ac76b320 bison: Declare m4 dependency correctly (#3424)
* bison: Declare m4 dependency correctly

* bison: Declare m4 as run-time dependency
2017-03-11 15:58:57 -06:00
Erik Schnetter
23d4a60639 funhpc: New package (#3421)
* funhpc: New package

* funhpc: Rename development version to “develop”

* funhpc: Try to make flake8 happy

* funhpc: Correct flake8 error
2017-03-11 15:58:09 -06:00
Erik Schnetter
63a8f79980 Correct inconsistency in comment (#3414) 2017-03-11 12:52:08 -06:00
Erik Schnetter
7e3eaba899 hdf5-blosc: Update compiler selection in self-test (#3417) 2017-03-11 12:50:54 -06:00
Erik Schnetter
093ffdfa45 cuda: Allow using unknown compilers (#3416)
* cuda: Allow using unknown compilers

* cuda: Correct flake8 error
2017-03-11 12:42:02 -06:00
Erik Schnetter
b30637e1ce py-yt: New version 3.3.4 (#3420) 2017-03-11 12:39:33 -06:00
Erik Schnetter
48640cf2fa binutils: Add gettext dependency (#3423) 2017-03-11 12:38:51 -06:00
Elsa Gonsiorowski
eef2021d91 pdsh basic package (#3408)
* added basic pdsh package

* need link to actual archive file
2017-03-11 09:12:26 -06:00
Todd Gamblin
e3101808ae Make multimethods work with inheritance. (#3411)
Previously, this would fail with a NoSuchMethodError:

    class Package(object):
        # this is the default implementation
        def some_method(self):
            ...

    class Foo(Package):
        @when('platform=cray')
        def some_method(self):
            ...

        @when('platform=linux')
        def some_method(self):
            ...

This fixes the implementation of `@when` so that the superclass method
will be invoked when no subclass method matches.

Adds tests to ensure this works, as well.
2017-03-11 05:48:36 -08:00
Mario Melara
15f80ed15c Add paths to PKG_CONFIG_PATH to find cray .pc file (#3378)
* Add paths to PKG_CONFIG_PATH to find cray .pc file

Adds two paths: /usr/lib64/pkgconfig and /usr/local/lib64/pkgconfig.

cray pkg-config looks at two different paths which are not included
in PKG_CONFIG_PATH environment variable. This PR addresses #3167.

* Flake8 fixes

* flake8 fix again
2017-03-10 16:29:20 -08:00
scheibelp
e727f56d89 Features/compiler config consistency (#2999)
* default scope for config command is made consistent with cmd/__init__ default

* dont specify a scope when looking for compilers with a matching spec (since compiler concretization is scope-independent)

* config edit should default to platform-specific file only for compilers

* when duplicate compiler specs are detected, the exception raised now points the user to the files where the duplicates appear

* updated error message to emphasize that a spec is duplicated (since multiple specs can reference the same compiler)

* 'spack compilers' is now also broken down into sections by os and target

* Added tests for new compiler methods
2017-03-10 13:58:48 -08:00
Javier
68f5b9adf8 Adding new package: py-lxml (#3403)
* Adding new package: py-lxml

* Adding missing version
2017-03-10 13:18:17 -06:00
Javier
a1e8644f63 Adding new package: py-elasticsearch (#3398)
* Adding new package: py-elasticsearch

* Adding missing dependency
2017-03-10 12:48:41 -06:00