spack: Installing gcc@6.2: `configure: error: cannot compute sizeof (long long)`
Trying to build gcc@6.2.0 on Centos 7.2 x64 and get
configure: error: cannot compute sizeof (long long)
This error resulted from doing the following:
$ yum install gcc gcc-g++ autoconf autotools libtool bzip2 xz
...
$ spack compiler add
==> Added 1 new compiler to /home/will/.spack/compilers.yaml
gcc@4.8.5
$ spack install gcc@6.2.0
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Reactions: 1
- Comments: 18 (16 by maintainers)
Yes @adamjstewart that is what I meant gcc+binutils doesn’t work but gcc~binutils does
@willfurnass Fortran compilers are not necessary to build GCC. GCC should be able to build with 4.4.7/4.8.5 which are available on Centos 6/7.
Recommend trying
spack install gcc@6.2.0~binutilson Centos 7For some bizarre reason I had:
This may be due to me having a home dir shared between two clusters and having tried using spack on the older RHEL6 one previously.
I deleted
~/.spack, ranspack compiler rm gcc@4.4.7to ditch the unwanted version of GCC then re-ranspack install gcc@6.2.0but the install failed in the same way as before.