This is a continuation of the discussion in #5564 since it seems to be a different issue.
It might be a duplicate of #5578.
As mentioned in #5564, patching my tree to add configure_args() to the mpfr package and building mpfr generated this warning:
[+] /isilon/scratch/hartzelg/spack-mpfr-debug/opt/spack/linux-centos7-x86_64/gcc-4.8.3/mpfr-3.1.5-ejbuuahwm3gwrqf3bfj7f7xvu3jgfki7
==> Warning: Dependency missing due to corrupt install directory:
/isilon/scratch/hartzelg/spack-mpfr-debug/opt/spack/linux-centos7-x86_64/gcc-4.8.3/mpfr-3.1.5-ejbuuahwm3gwrqf3bfj7f7xvu3jgfki7
Specs mpfr@3.1.5%gcc@4.8.3 patches=dfd62a42a239c427bb44087b4a520edbcd65bae6ad1fbe07303c96ee8696afbd,88dfefa6d39c9fd5a26a40d9bbc73df8da93f946c65c06038026261d78d919f5 arch=linux-centos7-x86_64 ^autoconf@2.69%gcc@4.8.3 arch=linux-centos7-x86_64 ^automake@1.15.1%gcc@4.8.3 arch=linux-centos7-x86_64 ^gdbm@1.13%gcc@4.8.3 arch=linux-centos7-x86_64 ^gmp@6.1.2%gcc@4.8.3 arch=linux-centos7-x86_64 ^libsigsegv@2.11%gcc@4.8.3 arch=linux-centos7-x86_64 ^libtool@2.4.6%gcc@4.8.3 arch=linux-centos7-x86_64 ^m4@1.4.18%gcc@4.8.3 patches=3877ab548f88597ab2327a2230ee048d2d07ace1062efe81fc92e91b7f39cd00 +sigsegv arch=linux-centos7-x86_64 ^ncurses@6.0%gcc@4.8.3 patches=f84b2708a42777aadcc7f502a261afe10ca5646a51c1ef8b5e60d2070d926b57 ~symlinks arch=linux-centos7-x86_64 ^perl@5.24.1%gcc@4.8.3+cpanm+shared arch=linux-centos7-x86_64 ^pkg-config@0.29.2%gcc@4.8.3+internal_glib arch=linux-centos7-x86_64 ^readline@7.0%gcc@4.8.3 arch=linux-centos7-x86_64 and mpfr@3.1.5%gcc@4.8.3 patches=dfd62a42a239c427bb44087b4a520edbcd65bae6ad1fbe07303c96ee8696afbd,88dfefa6d39c9fd5a26a40d9bbc73df8da93f946c65c06038026261d78d919f5 arch=linux-centos7-x86_64 ^gmp@6.1.2%gcc@4.8.3 arch=linux-centos7-x86_64 have the same SHA-1 prefix!
In a fit of optimism, I tried to build gcc@5.4.0 but ended up with an error:
hartzelg@rpbuchop001:spack-mpfr-debug (bug/fix-mpfr-build)$ spack build gcc@5.4.0
==> Checking dependencies for ['gcc@5.4.0']
==> gmp is already installed in /isilon/scratch/hartzelg/spack-mpfr-debug/opt/spack/linux-centos7-x86_64/gcc-4.8.3/gmp-6.1.2-yttyaes254rx44dkpsfco2pgx3togxqp
==> Installing mpfr
==> Using cached archive: /isilon/scratch/hartzelg/spack-mpfr-debug/var/spack/cache/mpfr/mpfr-3.1.5.tar.bz2
==> Staging archive: /isilon/scratch/hartzelg/spack-mpfr-debug/var/spack/stage/mpfr-3.1.5-ejbuuahwm3gwrqf3bfj7f7xvu3jgfki7/mpfr-3.1.5.tar.bz2
==> Created stage in /isilon/scratch/hartzelg/spack-mpfr-debug/var/spack/stage/mpfr-3.1.5-ejbuuahwm3gwrqf3bfj7f7xvu3jgfki7
==> Applied patch vasprintf.patch
==> Applied patch strtofr.patch
==> Building mpfr [AutotoolsPackage]
==> Executing phase: 'autoreconf'
==> Executing phase: 'configure'
==> Executing phase: 'build'
==> Executing phase: 'install'
==> Warning: Module file already exists : skipping creation
file : /isilon/scratch/hartzelg/spack-mpfr-debug/share/spack/modules/linux-centos7-x86_64/mpfr-3.1.5-gcc-4.8.3-ejbuuah
spec : mpfr@3.1.5%gcc@4.8.3 patches=dfd62a42a239c427bb44087b4a520edbcd65bae6ad1fbe07303c96ee8696afbd,88dfefa6d39c9fd5a26a40d9bbc73df8da93f946c65c06038026261d78d919f5 arch=linux-centos7-x86_64 ^autoconf@2.69%gcc@4.8.3 arch=linux-centos7-x86_64 ^automake@1.15.1%gcc@4.8.3 arch=linux-centos7-x86_64 ^gdbm@1.13%gcc@4.8.3 arch=linux-centos7-x86_64 ^gmp@6.1.2%gcc@4.8.3 arch=linux-centos7-x86_64 ^libsigsegv@2.11%gcc@4.8.3 arch=linux-centos7-x86_64 ^libtool@2.4.6%gcc@4.8.3 arch=linux-centos7-x86_64 ^m4@1.4.18%gcc@4.8.3 patches=3877ab548f88597ab2327a2230ee048d2d07ace1062efe81fc92e91b7f39cd00 +sigsegv arch=linux-centos7-x86_64 ^ncurses@6.0%gcc@4.8.3 patches=f84b2708a42777aadcc7f502a261afe10ca5646a51c1ef8b5e60d2070d926b57 ~symlinks arch=linux-centos7-x86_64 ^perl@5.24.1%gcc@4.8.3+cpanm+shared arch=linux-centos7-x86_64 ^pkg-config@0.29.2%gcc@4.8.3+internal_glib arch=linux-centos7-x86_64 ^readline@7.0%gcc@4.8.3 arch=linux-centos7-x86_64
==> Warning: Module file already exists : skipping creation
file : /isilon/scratch/hartzelg/spack-mpfr-debug/share/spack/dotkit/linux-centos7-x86_64/mpfr-3.1.5-gcc-4.8.3-ejbuuah.dk
spec : mpfr@3.1.5%gcc@4.8.3 patches=dfd62a42a239c427bb44087b4a520edbcd65bae6ad1fbe07303c96ee8696afbd,88dfefa6d39c9fd5a26a40d9bbc73df8da93f946c65c06038026261d78d919f5 arch=linux-centos7-x86_64 ^autoconf@2.69%gcc@4.8.3 arch=linux-centos7-x86_64 ^automake@1.15.1%gcc@4.8.3 arch=linux-centos7-x86_64 ^gdbm@1.13%gcc@4.8.3 arch=linux-centos7-x86_64 ^gmp@6.1.2%gcc@4.8.3 arch=linux-centos7-x86_64 ^libsigsegv@2.11%gcc@4.8.3 arch=linux-centos7-x86_64 ^libtool@2.4.6%gcc@4.8.3 arch=linux-centos7-x86_64 ^m4@1.4.18%gcc@4.8.3 patches=3877ab548f88597ab2327a2230ee048d2d07ace1062efe81fc92e91b7f39cd00 +sigsegv arch=linux-centos7-x86_64 ^ncurses@6.0%gcc@4.8.3 patches=f84b2708a42777aadcc7f502a261afe10ca5646a51c1ef8b5e60d2070d926b57 ~symlinks arch=linux-centos7-x86_64 ^perl@5.24.1%gcc@4.8.3+cpanm+shared arch=linux-centos7-x86_64 ^pkg-config@0.29.2%gcc@4.8.3+internal_glib arch=linux-centos7-x86_64 ^readline@7.0%gcc@4.8.3 arch=linux-centos7-x86_64
==> Successfully installed mpfr
Fetch: 0.01s. Build: 15.15s. Total: 15.16s.
[+] /isilon/scratch/hartzelg/spack-mpfr-debug/opt/spack/linux-centos7-x86_64/gcc-4.8.3/mpfr-3.1.5-ejbuuahwm3gwrqf3bfj7f7xvu3jgfki7
==> gmp is already installed in /isilon/scratch/hartzelg/spack-mpfr-debug/opt/spack/linux-centos7-x86_64/gcc-4.8.3/gmp-6.1.2-yttyaes254rx44dkpsfco2pgx3togxqp
==> gmp is already installed in /isilon/scratch/hartzelg/spack-mpfr-debug/opt/spack/linux-centos7-x86_64/gcc-4.8.3/gmp-6.1.2-yttyaes254rx44dkpsfco2pgx3togxqp
==> Error: Specs mpfr@3.1.5%gcc@4.8.3 patches=dfd62a42a239c427bb44087b4a520edbcd65bae6ad1fbe07303c96ee8696afbd,88dfefa6d39c9fd5a26a40d9bbc73df8da93f946c65c06038026261d78d919f5 arch=linux-centos7-x86_64 ^autoconf@2.69%gcc@4.8.3 arch=linux-centos7-x86_64 ^automake@1.15.1%gcc@4.8.3 arch=linux-centos7-x86_64 ^gdbm@1.13%gcc@4.8.3 arch=linux-centos7-x86_64 ^gmp@6.1.2%gcc@4.8.3 arch=linux-centos7-x86_64 ^libsigsegv@2.11%gcc@4.8.3 arch=linux-centos7-x86_64 ^libtool@2.4.6%gcc@4.8.3 arch=linux-centos7-x86_64 ^m4@1.4.18%gcc@4.8.3 patches=3877ab548f88597ab2327a2230ee048d2d07ace1062efe81fc92e91b7f39cd00 +sigsegv arch=linux-centos7-x86_64 ^ncurses@6.0%gcc@4.8.3 patches=f84b2708a42777aadcc7f502a261afe10ca5646a51c1ef8b5e60d2070d926b57 ~symlinks arch=linux-centos7-x86_64 ^perl@5.24.1%gcc@4.8.3+cpanm+shared arch=linux-centos7-x86_64 ^pkg-config@0.29.2%gcc@4.8.3+internal_glib arch=linux-centos7-x86_64 ^readline@7.0%gcc@4.8.3 arch=linux-centos7-x86_64 and mpfr@3.1.5%gcc@4.8.3 patches=dfd62a42a239c427bb44087b4a520edbcd65bae6ad1fbe07303c96ee8696afbd,88dfefa6d39c9fd5a26a40d9bbc73df8da93f946c65c06038026261d78d919f5 arch=linux-centos7-x86_64 ^gmp@6.1.2%gcc@4.8.3 arch=linux-centos7-x86_64 have the same SHA-1 prefix!
It's a little funny that it build mpfr again, since I'd just built it by hand (though perhaps that warning resulted in nothing being installed.
This is a continuation of the discussion in #5564 since it seems to be a different issue.
It might be a duplicate of #5578.
As mentioned in #5564, patching my tree to add configure_args() to the mpfr package and building mpfr generated this warning:
In a fit of optimism, I tried to build
gcc@5.4.0but ended up with an error:It's a little funny that it build
mpfragain, since I'd just built it by hand (though perhaps that warning resulted in nothing being installed.