-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Spack is installing unnecessary build dependencies #7695
Copy link
Copy link
Closed
Description
When installing a package, Spack is installing transitive build dependencies even though they are no longer needed.
Expected Result
I would expect Spack to only install the packages that are necessary.
Actual Result
If I have the following packages installed:
$ spack spec -I gcc
...
[email protected]%[email protected]~binutils languages=c,c++,fortran patches=d72db78262ecde2d471c83f7c6f440838bd362b29f4f1115d6f339a79b110715,ecc5ac43951b34cbc5db15f585b4e704c42e2e487f9ed4c24fadef3f3857930b ~piclibs~strip arch=darwin-highsierra-x86_64
[+] ^[email protected]%[email protected] arch=darwin-highsierra-x86_64
^[email protected]%[email protected] arch=darwin-highsierra-x86_64
[+] ^[email protected]%[email protected] patches=3877ab548f88597ab2327a2230ee048d2d07ace1062efe81fc92e91b7f39cd00 +sigsegv arch=darwin-highsierra-x86_64
[+] ^[email protected]%[email protected] arch=darwin-highsierra-x86_64
[+] ^[email protected]%[email protected]+cpanm+shared arch=darwin-highsierra-x86_64
^[email protected]%[email protected] arch=darwin-highsierra-x86_64
[+] ^[email protected]%[email protected] arch=darwin-highsierra-x86_64
[+] ^[email protected]%[email protected] arch=darwin-highsierra-x86_64
[+] ^[email protected]%[email protected] arch=darwin-highsierra-x86_64
[+] ^[email protected]%[email protected] arch=darwin-highsierra-x86_64
[+] ^[email protected]%[email protected]+optimize+pic+shared arch=darwin-highsierra-x86_64 and I try to install GCC, Spack first installs autoconf and automake. These packages are no longer necessary as gmp has already been successfully installed.
Steps to reproduce the issue
Haven't tested this, but presumably one could reproduce this issue by running:
$ spack install gmp
$ spack uninstall automake
$ spack uninstall autoconf
$ spack install gccReactions are currently unavailable