{"action":"created","issue":{"url":"https://api.github.com/repos/LLNL/spack/issues/1899","repository_url":"https://api.github.com/repos/LLNL/spack","labels_url":"https://api.github.com/repos/LLNL/spack/issues/1899/labels{/name}","comments_url":"https://api.github.com/repos/LLNL/spack/issues/1899/comments","events_url":"https://api.github.com/repos/LLNL/spack/issues/1899/events","html_url":"https://github.com/LLNL/spack/issues/1899","id":180949104,"number":1899,"title":"gcc install failure: --enable-cxx","user":{"login":"behlendorf","id":148917,"avatar_url":"https://avatars.githubusercontent.com/u/148917?v=3","gravatar_id":"","url":"https://api.github.com/users/behlendorf","html_url":"https://github.com/behlendorf","followers_url":"https://api.github.com/users/behlendorf/followers","following_url":"https://api.github.com/users/behlendorf/following{/other_user}","gists_url":"https://api.github.com/users/behlendorf/gists{/gist_id}","starred_url":"https://api.github.com/users/behlendorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/behlendorf/subscriptions","organizations_url":"https://api.github.com/users/behlendorf/orgs","repos_url":"https://api.github.com/users/behlendorf/repos","events_url":"https://api.github.com/users/behlendorf/events{/privacy}","received_events_url":"https://api.github.com/users/behlendorf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-10-04T17:00:56Z","updated_at":"2016-10-04T18:02:31Z","closed_at":null,"body":"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.\r\n\r\n```\r\n$ sudo ./bin/spack install gcc\r\n==> Installing gcc\r\n==> Installing gmp\r\n==> Installing m4\r\n==> Installing libsigsegv\r\n==> Trying to fetch from file:///home/ec2-user/spack/var/spack/cache/libsigsegv/libsigsegv-2.10.tar.gz\r\ncurl: (37) Couldn't open file /home/ec2-user/spack/var/spack/cache/libsigsegv/libsigsegv-2.10.tar.gz\r\n==> Fetching from file:///home/ec2-user/spack/var/spack/cache/libsigsegv/libsigsegv-2.10.tar.gz failed.\r\n==> Trying to fetch from ftp://ftp.gnu.org/gnu/libsigsegv/libsigsegv-2.10.tar.gz\r\n######################################################################## 100.0%\r\n==> Staging archive: /home/ec2-user/spack/var/spack/stage/libsigsegv-2.10-4ztqjpi2ehos3tf54udul4czzkykpiej/libsigsegv-2.10.tar.gz\r\n==> Created stage in /home/ec2-user/spack/var/spack/stage/libsigsegv-2.10-4ztqjpi2ehos3tf54udul4czzkykpiej\r\n==> No patches needed for libsigsegv\r\n==> Building libsigsegv\r\n==> Successfully installed libsigsegv\r\n  Fetch: 1.52s.  Build: 9.66s.  Total: 11.17s.\r\n[+] /home/ec2-user/spack/opt/spack/linux--x86_64/gcc-4.8.3/libsigsegv-2.10-4ztqjpi2ehos3tf54udul4czzkykpiej\r\n==> Warning: Dependency missing due to corrupt install directory:\r\n  /home/ec2-user/spack/opt/spack/linux--x86_64/gcc-4.8.3/libsigsegv-2.10-4ztqjpi2ehos3tf54udul4czzkykpiej\r\n  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!\r\n==> Trying to fetch from file:///home/ec2-user/spack/var/spack/cache/m4/m4-1.4.17.tar.gz\r\ncurl: (37) Couldn't open file /home/ec2-user/spack/var/spack/cache/m4/m4-1.4.17.tar.gz\r\n==> Fetching from file:///home/ec2-user/spack/var/spack/cache/m4/m4-1.4.17.tar.gz failed.\r\n==> Trying to fetch from ftp://ftp.gnu.org/gnu/m4/m4-1.4.17.tar.gz\r\n######################################################################## 100.0%\r\n==> Staging archive: /home/ec2-user/spack/var/spack/stage/m4-1.4.17-oxe4a6liobrh6qz3j5awwpcohljdl2ja/m4-1.4.17.tar.gz\r\n==> Created stage in /home/ec2-user/spack/var/spack/stage/m4-1.4.17-oxe4a6liobrh6qz3j5awwpcohljdl2ja\r\n==> Applied patch pgi.patch\r\n==> Building m4\r\n==> Successfully installed m4\r\n  Fetch: 1.58s.  Build: 25.08s.  Total: 26.66s.\r\n[+] /home/ec2-user/spack/opt/spack/linux--x86_64/gcc-4.8.3/m4-1.4.17-oxe4a6liobrh6qz3j5awwpcohljdl2ja\r\n==> Warning: Dependency missing due to corrupt install directory:\r\n  /home/ec2-user/spack/opt/spack/linux--x86_64/gcc-4.8.3/m4-1.4.17-oxe4a6liobrh6qz3j5awwpcohljdl2ja\r\n  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!\r\n==> Trying to fetch from file:///home/ec2-user/spack/var/spack/cache/gmp/gmp-6.1.1.tar.bz2\r\ncurl: (37) Couldn't open file /home/ec2-user/spack/var/spack/cache/gmp/gmp-6.1.1.tar.bz2\r\n==> Fetching from file:///home/ec2-user/spack/var/spack/cache/gmp/gmp-6.1.1.tar.bz2 failed.\r\n==> Trying to fetch from https://gmplib.org/download/gmp/gmp-6.1.1.tar.bz2\r\n######################################################################## 100.0%\r\n==> Staging archive: /home/ec2-user/spack/var/spack/stage/gmp-6.1.1-vxnivf7riwxn43pjftk74qoeyi7kfntg/gmp-6.1.1.tar.bz2\r\n==> Created stage in /home/ec2-user/spack/var/spack/stage/gmp-6.1.1-vxnivf7riwxn43pjftk74qoeyi7kfntg\r\n==> No patches needed for gmp\r\n==> Building gmp\r\n==> Error: Command exited with status 1:\r\n'./configure' '--prefix=/home/ec2-user/spack/opt/spack/linux--x86_64/gcc-4.8.3/gmp-6.1.1-vxnivf7riwxn43pjftk74qoeyi7kfntg' '--enable-cxx'\r\n\r\nSee build log for details:\r\n  /tmp/root/spack-stage/spack-stage-O_Vu6D/gmp-6.1.1/spack-build.out\r\n\r\n/home/ec2-user/spack/var/spack/repos/builtin/packages/gmp/package.py:44, in install:\r\n     42       def install(self, spec, prefix):\r\n     43           configure('--prefix={0}'.format(prefix),\r\n  >> 44                     '--enable-cxx')\r\n     45   \r\n     46           make()\r\n     47           make('check')\r\n     48           make('install')\r\n==> Error: Installation process had nonzero exit code : 256\r\n```"},"comment":{"url":"https://api.github.com/repos/LLNL/spack/issues/comments/251465283","html_url":"https://github.com/LLNL/spack/issues/1899#issuecomment-251465283","issue_url":"https://api.github.com/repos/LLNL/spack/issues/1899","id":251465283,"user":{"login":"adamjstewart","id":12021217,"avatar_url":"https://avatars.githubusercontent.com/u/12021217?v=3","gravatar_id":"","url":"https://api.github.com/users/adamjstewart","html_url":"https://github.com/adamjstewart","followers_url":"https://api.github.com/users/adamjstewart/followers","following_url":"https://api.github.com/users/adamjstewart/following{/other_user}","gists_url":"https://api.github.com/users/adamjstewart/gists{/gist_id}","starred_url":"https://api.github.com/users/adamjstewart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamjstewart/subscriptions","organizations_url":"https://api.github.com/users/adamjstewart/orgs","repos_url":"https://api.github.com/users/adamjstewart/repos","events_url":"https://api.github.com/users/adamjstewart/events{/privacy}","received_events_url":"https://api.github.com/users/adamjstewart/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T18:02:31Z","updated_at":"2016-10-04T18:02:31Z","body":"Note that you will likely have to rebuild your `~/.spack/compilers.yaml` file as the syntax has changed since then."}}
{"actor":{"display_login":"adamjstewart"}}