Files needed to build a gcc compiler, binutils, and curl via Spack.
Create a root software stack directory <stack_root>
per directions in stack-spack.
./install-gcc.sh <stack-root>
where <stack_root>
is root directory of the desired software stack. For example:
$ ./install-gcc.sh ../stack-2019.03
If there is no internet access on the target machine that you wish to install gcc, you need to secure the needed tarballs and manually transfer them to the target machine.
If you have this need, see tarballs-gcc.
On the target machine, perform the following:
cd <stack_root>
source 1-setup-spack.sh
./scripts/install-compiler-gcc.sh
This will install 32 software packages, including 8 packages installed by the new spack-gcc compiler. This can be confirmed via executing spack find
.
version: 2019.03.29