spack: gcc install failure: --enable-cxx

Using version v0.8.17-4048-ge9d4780 (e9d4780) I encountered the following failure when trying to install gcc in a stock Amazon Linux instance. This was the next issue encountered after #1853 was fixed.

$ sudo ./bin/spack install gcc
==> Installing gcc
==> Installing gmp
==> Installing m4
==> Installing libsigsegv
==> Trying to fetch from file:///home/ec2-user/spack/var/spack/cache/libsigsegv/libsigsegv-2.10.tar.gz
curl: (37) Couldn't open file /home/ec2-user/spack/var/spack/cache/libsigsegv/libsigsegv-2.10.tar.gz
==> Fetching from file:///home/ec2-user/spack/var/spack/cache/libsigsegv/libsigsegv-2.10.tar.gz failed.
==> Trying to fetch from ftp://ftp.gnu.org/gnu/libsigsegv/libsigsegv-2.10.tar.gz
######################################################################## 100.0%
==> Staging archive: /home/ec2-user/spack/var/spack/stage/libsigsegv-2.10-4ztqjpi2ehos3tf54udul4czzkykpiej/libsigsegv-2.10.tar.gz
==> Created stage in /home/ec2-user/spack/var/spack/stage/libsigsegv-2.10-4ztqjpi2ehos3tf54udul4czzkykpiej
==> No patches needed for libsigsegv
==> Building libsigsegv
==> Successfully installed libsigsegv
  Fetch: 1.52s.  Build: 9.66s.  Total: 11.17s.
[+] /home/ec2-user/spack/opt/spack/linux--x86_64/gcc-4.8.3/libsigsegv-2.10-4ztqjpi2ehos3tf54udul4czzkykpiej
==> Warning: Dependency missing due to corrupt install directory:
  /home/ec2-user/spack/opt/spack/linux--x86_64/gcc-4.8.3/libsigsegv-2.10-4ztqjpi2ehos3tf54udul4czzkykpiej
  Specs libsigsegv@2.10%gcc@4.8.3 arch=linux--x86_64 and libsigsegv@2.10%gcc@4.8.3 arch=linux-None-x86_64 have the same SHA-1 prefix!
==> Trying to fetch from file:///home/ec2-user/spack/var/spack/cache/m4/m4-1.4.17.tar.gz
curl: (37) Couldn't open file /home/ec2-user/spack/var/spack/cache/m4/m4-1.4.17.tar.gz
==> Fetching from file:///home/ec2-user/spack/var/spack/cache/m4/m4-1.4.17.tar.gz failed.
==> Trying to fetch from ftp://ftp.gnu.org/gnu/m4/m4-1.4.17.tar.gz
######################################################################## 100.0%
==> Staging archive: /home/ec2-user/spack/var/spack/stage/m4-1.4.17-oxe4a6liobrh6qz3j5awwpcohljdl2ja/m4-1.4.17.tar.gz
==> Created stage in /home/ec2-user/spack/var/spack/stage/m4-1.4.17-oxe4a6liobrh6qz3j5awwpcohljdl2ja
==> Applied patch pgi.patch
==> Building m4
==> Successfully installed m4
  Fetch: 1.58s.  Build: 25.08s.  Total: 26.66s.
[+] /home/ec2-user/spack/opt/spack/linux--x86_64/gcc-4.8.3/m4-1.4.17-oxe4a6liobrh6qz3j5awwpcohljdl2ja
==> Warning: Dependency missing due to corrupt install directory:
  /home/ec2-user/spack/opt/spack/linux--x86_64/gcc-4.8.3/m4-1.4.17-oxe4a6liobrh6qz3j5awwpcohljdl2ja
  Specs m4@1.4.17%gcc@4.8.3+sigsegv arch=linux--x86_64^libsigsegv@2.10%gcc@4.8.3 arch=linux--x86_64 and m4@1.4.17%gcc@4.8.3+sigsegv arch=linux-None-x86_64^libsigsegv@2.10%gcc@4.8.3 arch=linux-None-x86_64 have the same SHA-1 prefix!
==> Trying to fetch from file:///home/ec2-user/spack/var/spack/cache/gmp/gmp-6.1.1.tar.bz2
curl: (37) Couldn't open file /home/ec2-user/spack/var/spack/cache/gmp/gmp-6.1.1.tar.bz2
==> Fetching from file:///home/ec2-user/spack/var/spack/cache/gmp/gmp-6.1.1.tar.bz2 failed.
==> Trying to fetch from https://gmplib.org/download/gmp/gmp-6.1.1.tar.bz2
######################################################################## 100.0%
==> Staging archive: /home/ec2-user/spack/var/spack/stage/gmp-6.1.1-vxnivf7riwxn43pjftk74qoeyi7kfntg/gmp-6.1.1.tar.bz2
==> Created stage in /home/ec2-user/spack/var/spack/stage/gmp-6.1.1-vxnivf7riwxn43pjftk74qoeyi7kfntg
==> No patches needed for gmp
==> Building gmp
==> Error: Command exited with status 1:
'./configure' '--prefix=/home/ec2-user/spack/opt/spack/linux--x86_64/gcc-4.8.3/gmp-6.1.1-vxnivf7riwxn43pjftk74qoeyi7kfntg' '--enable-cxx'

See build log for details:
  /tmp/root/spack-stage/spack-stage-O_Vu6D/gmp-6.1.1/spack-build.out

/home/ec2-user/spack/var/spack/repos/builtin/packages/gmp/package.py:44, in install:
     42       def install(self, spec, prefix):
     43           configure('--prefix={0}'.format(prefix),
  >> 44                     '--enable-cxx')
     45   
     46           make()
     47           make('check')
     48           make('install')
==> Error: Installation process had nonzero exit code : 256

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 16 (11 by maintainers)

Most upvoted comments

Maybe we should add checks/warnings when compilers are configured without C or C++ (or Fortran really…)