flang-compiler / flang

Flang is a Fortran language front-end designed for integration with LLVM.
Other
808 stars 137 forks source link

flang fails to build on vanilla Ubuntu 16.04 with spack #355

Open adamryczkowski opened 6 years ago

adamryczkowski commented 6 years ago

To reproduce:

Create a new LXC container with Ubuntu 16.04

sudo lxd init # On the prompt you can accept the defaults. Perhaps you would also need to logout & loigin
lxc launch ubuntu:16.04 myflang
lxc list # Note the ip address of the container
ssh <ip address of the container>

Inside the container:

sudo apt install build-essential unzip python-minimal
git clone https://github.com/spack/spack
. spack/share/spack/setup-env.sh
spack install flang

And the error message:

==> pkgconf is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/pkgconf-1.3.10-a7n3wh7j7ps4f6dvu6sn2tw2l43i25zv
==> ncurses is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/ncurses-6.0-nxkp7kslgelgkl5orm7la6fir7b7r547
==> zlib is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/zlib-1.2.11-5nus6knzumx4ik2yl44jxtgtsl7d54xb
==> openssl is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/openssl-1.0.2n-sk7ayvjtajl6mhmj3t4mnilyj5ekabqk
==> cmake is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/cmake-3.10.0-y5ddruzqvl7x253ravmdivxzl7h6tmvs
==> libsigsegv is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/libsigsegv-2.11-fypapcprssrj3nstp6njprskeyynsgaz
==> m4 is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/m4-1.4.18-r5envx3kqctwwflhd4qax4ahqtt6x43a
==> bison is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/bison-3.0.4-7rxlb6jpuoooda7rg3lv3ahalk23hg53
==> bzip2 is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/bzip2-1.0.6-ufczdvsqt6edesm36xiucyry7myhj7e7
==> xz is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/xz-5.2.3-htnq7wqdrqtof6uxqicdj3f7oe3xz6pw
==> libxml2 is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/libxml2-2.9.4-sxk64lvcxhqjflzesnf3ye4wakovwi45
==> tar is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/tar-1.29-22xotf4z4ufezcxcsq3v5ptqrf4uf2iu
==> gettext is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/gettext-0.19.8.1-6oy6fuc3no4tc6nmwwahrgacmci7tcms
==> help2man is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/help2man-1.47.4-4vix2xqqdzgm4y6t5btrs4f7bkbadlmu
==> flex is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/flex-2.6.4-xfjjookriacftolgesqntg4wxjpiyvgu
==> binutils is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/binutils-2.28-q4vtw4iako63xwmlg2z4hqkmnrowjf4l
==> libedit is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/libedit-3.1-20170329-dnnmvcsm3jgqowesn3wy6mzsi6n5smll
==> readline is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/readline-7.0-gys53zdfur4qv5y3e5q5s734sbziuv5q
==> sqlite is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/sqlite-3.21.0-ko2dhvsk46pewxy7zi2ibjknn3ammegv
==> python is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/python-2.7.14-33jx2wj6b37x3e6bwzy6nxmqxjmed3yk
==> py-appdirs is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/py-appdirs-1.4.3-jxviyvbr6uqkmedb62quw5luzluhxhnv
==> py-pyparsing is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/py-pyparsing-2.2.0-dlop5ca3ejcw72bgcbfkgakso2g2ubqy
==> py-six is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/py-six-1.10.0-l2qik3wy3ok3ko7sje4ujizgpa4ymij5
==> py-packaging is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/py-packaging-16.8-vimpihnlyyh3hmgjnxbplm6y7tx3t3rg
==> py-setuptools is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/py-setuptools-35.0.2-e2kpk5fpwsyplda2eewmdkkfzl6hpbel
==> py-lit is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/py-lit-0.5.0-6q3aj22k7fa3fydquiqkbn3prbzlpnh2
==> pcre is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/pcre-8.40-gjox7azkobxzvmrc6dq7p4v6lotgwew2
==> swig is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/swig-3.0.12-aesojijskjojkimyvmtnqiknjul3sqq7
==> llvm is already installed in /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/llvm-5.0.0-lj7y4kim5pafmvur2ljnhcce2t545o3q
==> Installing flang
==> Trying to clone git repository: https://github.com/flang-compiler/flang on branch master
==> No checksum needed when fetching with git
==> Already staged flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3 in /home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3
==> No patches needed for flang
==> Building flang [CMakePackage]
==> Executing phase: 'cmake'
==> Executing phase: 'build'
==> Error: ProcessError: Command exited with status 2:
    'make' '-j8'

5 errors found in build log:
     [ ... ]
     1554  [ 37%] Building Fortran object runtime/flang/CMakeFiles/flang_static.dir/iso_fortran_env.f90.o
     1555  cd /tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/runtime/flang && /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/llvm-5.0.0-lj7y4kim5pafmvur2ljnhcce2t545o3q/bin/flang -DGTEST_HAS_RTTI=0 -DLINUX -DMAXCPUS=256 -DMAXCPUSL=8 -DMAXCPUSR=8 -DNATIVE_FPCVT -DPGF90 -DPGFLANG -DPGI_LITTLE_ENDIAN -DTARGET_LINUX -DTARGET_LINUX_X8664 -DTARGET_LLVM -DTARGET_X8664 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DHAVE_LONG_LONG_INT -DINT32PTR64 -DTM_I8 -I/home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/include -I/tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/include -I/home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/llvm-5.0.0-lj7y4kim5pafmvur2ljnhcce2t545o3q/include -I/home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/runtime/include -I/home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/runtime/flang -I/tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/runtime/flang  -B /tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/./bin  -O2 -g -DNDEBUG -J../../include   -fPIC -Mreentrant -c /home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/runtime/flang/iso_fortran_env.f90 -o CMakeFiles/flang_static.dir/iso_fortran_env.f90.o
     1556  [ 38%] Building Fortran object runtime/flang/CMakeFiles/flang_static.dir/omp_lib.F95.o
     1557  cd /tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/runtime/flang && /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/llvm-5.0.0-lj7y4kim5pafmvur2ljnhcce2t545o3q/bin/flang -DGTEST_HAS_RTTI=0 -DLINUX -DMAXCPUS=256 -DMAXCPUSL=8 -DMAXCPUSR=8 -DNATIVE_FPCVT -DPGF90 -DPGFLANG -DPGI_LITTLE_ENDIAN -DTARGET_LINUX -DTARGET_LINUX_X8664 -DTARGET_LLVM -DTARGET_X8664 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/include -I/tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/include -I/home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/llvm-5.0.0-lj7y4kim5pafmvur2ljnhcce2t545o3q/include -I/home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/runtime/include -I/home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/runtime/flang -I/tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/runtime/flang  -B /tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/./bin  -O2 -g -DNDEBUG -J../../include   -fPIC -Mreentrant -c /home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/runtime/flang/omp_lib.F95 -o CMakeFiles/flang_static.dir/omp_lib.F95.o
     1558  F90-F-0004-Corrupt or Old Module file ../../include/omp_lib_kinds.mod (/home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/runtime/flang/omp_lib.F95: 447)
     1559  F90/x86-64 Linux Flang - 1.5 2017-05-01: compilation aborted
  >> 1560  runtime/flang/CMakeFiles/flang_shared.dir/build.make:4241: recipe for target 'runtime/flang/CMakeFiles/flang_shared.dir/omp_lib.F95.o' failed
  >> 1561  make[2]: *** [runtime/flang/CMakeFiles/flang_shared.dir/omp_lib.F95.o] Error 1
     1562  make[2]: *** Waiting for unfinished jobs....
     1563  [ 38%] Building C object runtime/flang/CMakeFiles/flang_static.dir/abort3f.c.o
     1564  cd /tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/runtime/flang && /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/llvm-5.0.0-lj7y4kim5pafmvur2ljnhcce2t545o3q/bin/clang -DGTEST_HAS_RTTI=0 -DLINUX -DMAXCPUS=256 -DMAXCPUSL=8 -DMAXCPUSR=8 -DNATIVE_FPCVT -DPGF90 -DPGFLANG -DPGI_LITTLE_ENDIAN -DTARGET_LINUX -DTARGET_LINUX_X8664 -DTARGET_LLVM -DTARGET_X8664 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/include -I/tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/include -I/home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/llvm-5.0.0-lj7y4kim5pafmvur2ljnhcce2t545o3q/include -I/home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/runtime/include -I/home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/runtime/flang -I/tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/runtime/flang  -fPIC -Werror=date-time -w -ffunction-sections -fdata-sections -O2 -g -DNDEBUG   -fPIC -o CMakeFiles/flang_static.dir/abort3f.c.o   -c /home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/runtime/flang/abort3f.c
     1565  [ 38%] Building C object runtime/flang/CMakeFiles/flang_static.dir/access3f.c.o
     1566  cd /tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/runtime/flang && /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/llvm-5.0.0-lj7y4kim5pafmvur2ljnhcce2t545o3q/bin/clang -DGTEST_HAS_RTTI=0 -DLINUX -DMAXCPUS=256 -DMAXCPUSL=8 -DMAXCPUSR=8 -DNATIVE_FPCVT -DPGF90 -DPGFLANG -DPGI_LITTLE_ENDIAN -DTARGET_LINUX -DTARGET_LINUX_X8664 -DTARGET_LLVM -DTARGET_X8664 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/include -I/tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/include -I/home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/llvm-5.0.0-lj7y4kim5pafmvur2ljnhcce2t545o3q/include -I/home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/runtime/include -I/home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/runtime/flang -I/tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/runtime/flang  -fPIC -Werror=date-time -w -ffunction-sections -fdata-sections -O2 -g -DNDEBUG   -fPIC -o CMakeFiles/flang_static.dir/access3f.c.o   -c /home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/runtime/flang/access3f.c
     1567  [ 38%] Building C object runtime/flang/CMakeFiles/flang_static.dir/acos.c.o
     [ ... ]
     1660  [ 42%] Building C object runtime/flang/CMakeFiles/flang_static.dir/dasind.c.o
     1661  cd /tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/runtime/flang && /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/llvm-5.0.0-lj7y4kim5pafmvur2ljnhcce2t545o3q/bin/clang -DGTEST_HAS_RTTI=0 -DLINUX -DMAXCPUS=256 -DMAXCPUSL=8 -DMAXCPUSR=8 -DNATIVE_FPCVT -DPGF90 -DPGFLANG -DPGI_LITTLE_ENDIAN -DTARGET_LINUX -DTARGET_LINUX_X8664 -DTARGET_LLVM -DTARGET_X8664 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/include -I/tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/include -I/home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/llvm-5.0.0-lj7y4kim5pafmvur2ljnhcce2t545o3q/include -I/home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/runtime/include -I/home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/runtime/flang -I/tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/runtime/flang  -fPIC -Werror=date-time -w -ffunction-sections -fdata-sections -O2 -g -DNDEBUG   -fPIC -o CMakeFiles/flang_static.dir/dasin.c.o   -c /home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/runtime/flang/dasin.c
     1662  cd /tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/runtime/flang && /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/llvm-5.0.0-lj7y4kim5pafmvur2ljnhcce2t545o3q/bin/clang -DGTEST_HAS_RTTI=0 -DLINUX -DMAXCPUS=256 -DMAXCPUSL=8 -DMAXCPUSR=8 -DNATIVE_FPCVT -DPGF90 -DPGFLANG -DPGI_LITTLE_ENDIAN -DTARGET_LINUX -DTARGET_LINUX_X8664 -DTARGET_LLVM -DTARGET_X8664 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/include -I/tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/include -I/home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/llvm-5.0.0-lj7y4kim5pafmvur2ljnhcce2t545o3q/include -I/home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/runtime/include -I/home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/runtime/flang -I/tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/runtime/flang  -fPIC -Werror=date-time -w -ffunction-sections -fdata-sections -O2 -g -DNDEBUG   -fPIC -o CMakeFiles/flang_static.dir/dasind.c.o   -c /home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/runtime/flang/dasind.c
     1663  [ 42%] Building C object runtime/flang/CMakeFiles/flang_static.dir/datan2.c.o
     1664  cd /tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/runtime/flang && /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/llvm-5.0.0-lj7y4kim5pafmvur2ljnhcce2t545o3q/bin/clang -DGTEST_HAS_RTTI=0 -DLINUX -DMAXCPUS=256 -DMAXCPUSL=8 -DMAXCPUSR=8 -DNATIVE_FPCVT -DPGF90 -DPGFLANG -DPGI_LITTLE_ENDIAN -DTARGET_LINUX -DTARGET_LINUX_X8664 -DTARGET_LLVM -DTARGET_X8664 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/include -I/tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/include -I/home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/llvm-5.0.0-lj7y4kim5pafmvur2ljnhcce2t545o3q/include -I/home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/runtime/include -I/home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/runtime/flang -I/tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/runtime/flang  -fPIC -Werror=date-time -w -ffunction-sections -fdata-sections -O2 -g -DNDEBUG   -fPIC -o CMakeFiles/flang_static.dir/datan2.c.o   -c /home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/runtime/flang/datan2.c
     1665  make[2]: Leaving directory '/tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build'
  >> 1666  CMakeFiles/Makefile2:555: recipe for target 'runtime/flang/CMakeFiles/flang_shared.dir/all' failed
  >> 1667  make[1]: *** [runtime/flang/CMakeFiles/flang_shared.dir/all] Error 2
     1668  make[1]: *** Waiting for unfinished jobs....
     1669  [ 42%] Building C object runtime/flang/CMakeFiles/flang_static.dir/datan.c.o
     1670  cd /tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/runtime/flang && /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/llvm-5.0.0-lj7y4kim5pafmvur2ljnhcce2t545o3q/bin/clang -DGTEST_HAS_RTTI=0 -DLINUX -DMAXCPUS=256 -DMAXCPUSL=8 -DMAXCPUSR=8 -DNATIVE_FPCVT -DPGF90 -DPGFLANG -DPGI_LITTLE_ENDIAN -DTARGET_LINUX -DTARGET_LINUX_X8664 -DTARGET_LLVM -DTARGET_X8664 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/include -I/tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/include -I/home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/llvm-5.0.0-lj7y4kim5pafmvur2ljnhcce2t545o3q/include -I/home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/runtime/include -I/home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/runtime/flang -I/tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/runtime/flang  -fPIC -Werror=date-time -w -ffunction-sections -fdata-sections -O2 -g -DNDEBUG   -fPIC -o CMakeFiles/flang_static.dir/datan.c.o   -c /home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/runtime/flang/datan.c
     1671  [ 42%] Building C object runtime/flang/CMakeFiles/flang_static.dir/datan2d.c.o
     1672  cd /tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/runtime/flang && /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/llvm-5.0.0-lj7y4kim5pafmvur2ljnhcce2t545o3q/bin/clang -DGTEST_HAS_RTTI=0 -DLINUX -DMAXCPUS=256 -DMAXCPUSL=8 -DMAXCPUSR=8 -DNATIVE_FPCVT -DPGF90 -DPGFLANG -DPGI_LITTLE_ENDIAN -DTARGET_LINUX -DTARGET_LINUX_X8664 -DTARGET_LLVM -DTARGET_X8664 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/include -I/tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/include -I/home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/llvm-5.0.0-lj7y4kim5pafmvur2ljnhcce2t545o3q/include -I/home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/runtime/include -I/home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/runtime/flang -I/tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build/runtime/flang  -fPIC -Werror=date-time -w -ffunction-sections -fdata-sections -O2 -g -DNDEBUG   -fPIC -o CMakeFiles/flang_static.dir/datan2d.c.o   -c /home/aryczkowski/spack/var/spack/stage/flang-develop-ba6t57tgqaf3vgpnj3jpcyccakg2dis3/flang/runtime/flang/datan2d.c
     1673  [ 42%] Building C object runtime/flang/CMakeFiles/flang_static.dir/datand.c.o
     [ ... ]
     2455  /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/binutils-2.28-q4vtw4iako63xwmlg2z4hqkmnrowjf4l/bin/ar qc ../../lib/libflang.a  CMakeFiles/flang_static.dir/abort3f.c.o CMakeFiles/flang_static.dir/access3f.c.o CMakeFiles/flang_static.dir/acos.c.o CMakeFiles/flang_static.dir/acosd.c.o CMakeFiles/flang_static.dir/alarm3f.c.o CMakeFiles/flang_static.dir/amod.c.o CMakeFiles/flang_static.dir/asin.c.o CMakeFiles/flang_static.dir/asind.c.o CMakeFiles/flang_static.dir/atan2.c.o CMakeFiles/flang_static.dir/atan2d.c.o CMakeFiles/flang_static.dir/atan.c.o CMakeFiles/flang_static.dir/atand.c.o CMakeFiles/flang_static.dir/besj03f.c.o CMakeFiles/flang_static.dir/besj13f.c.o CMakeFiles/flang_static.dir/besjn3f.c.o CMakeFiles/flang_static.dir/besy03f.c.o CMakeFiles/flang_static.dir/besy13f.c.o CMakeFiles/flang_static.dir/besyn3f.c.o CMakeFiles/flang_static.dir/cabs.c.o CMakeFiles/flang_static.dir/ccos.c.o CMakeFiles/flang_static.dir/cdabs.c.o CMakeFiles/flang_static.dir/cdcos.c.o CMakeFiles/flang_static.dir/cddivd.c.o CMakeFiles/flang_static.dir/cdexp.c.o CMakeFiles/flang_static.dir/cdivr.c.o CMakeFiles/flang_static.dir/cdlog.c.o CMakeFiles/flang_static.dir/cdpowcd.c.o CMakeFiles/flang_static.dir/cdpowi.c.o CMakeFiles/flang_static.dir/cdpowk.c.o CMakeFiles/flang_static.dir/cdsin.c.o CMakeFiles/flang_static.dir/cdsqrt.c.o CMakeFiles/flang_static.dir/cexp.c.o CMakeFiles/flang_static.dir/chdir3f.c.o CMakeFiles/flang_static.dir/chmod3f.c.o CMakeFiles/flang_static.dir/clog.c.o CMakeFiles/flang_static.dir/commitqq3f.c.o CMakeFiles/flang_static.dir/cos.c.o CMakeFiles/flang_static.dir/cosd.c.o CMakeFiles/flang_static.dir/cosh.c.o CMakeFiles/flang_static.dir/cpowc.c.o CMakeFiles/flang_static.dir/cpowi.c.o CMakeFiles/flang_static.dir/cpowk.c.o CMakeFiles/flang_static.dir/csin.c.o CMakeFiles/flang_static.dir/csqrt.c.o CMakeFiles/flang_static.dir/ctime3f.c.o CMakeFiles/flang_static.dir/cvt.c.o CMakeFiles/flang_static.dir/dacos.c.o CMakeFiles/flang_static.dir/dacosd.c.o CMakeFiles/flang_static.dir/dasin.c.o CMakeFiles/flang_static.dir/dasind.c.o CMakeFiles/flang_static.dir/datan2.c.o CMakeFiles/flang_static.dir/datan2d.c.o CMakeFiles/flang_static.dir/datan.c.o CMakeFiles/flang_static.dir/datand.c.o CMakeFiles/flang_static.dir/date3f.c.o CMakeFiles/flang_static.dir/dbesj03f.c.o CMakeFiles/flang_static.dir/dbesj13f.c.o CMakeFiles/flang_static.dir/dbesjn3f.c.o CMakeFiles/flang_static.dir/dbesy03f.c.o CMakeFiles/flang_static.dir/dbesy13f.c.o CMakeFiles/flang_static.dir/dbesyn3f.c.o CMakeFiles/flang_static.dir/dcos.c.o CMakeFiles/flang_static.dir/dcosd.c.o CMakeFiles/flang_static.dir/dcosh.c.o CMakeFiles/flang_static.dir/delfilesqq3f.c.o CMakeFiles/flang_static.dir/derf3f.c.o CMakeFiles/flang_static.dir/derfc3f.c.o CMakeFiles/flang_static.dir/dexp.c.o CMakeFiles/flang_static.dir/dlog10.c.o CMakeFiles/flang_static.dir/dlog.c.o CMakeFiles/flang_static.dir/dmod.c.o CMakeFiles/flang_static.dir/drandm3f.c.o CMakeFiles/flang_static.dir/dsecnds3f.c.o CMakeFiles/flang_static.dir/dsin.c.o CMakeFiles/flang_static.dir/dsind.c.o CMakeFiles/flang_static.dir/dsinh.c.o CMakeFiles/flang_static.dir/dsqrt.c.o CMakeFiles/flang_static.dir/dtan.c.o CMakeFiles/flang_static.dir/dtand.c.o CMakeFiles/flang_static.dir/dtanh.c.o CMakeFiles/flang_static.dir/dtime3f.c.o CMakeFiles/flang_static.dir/erf3f.c.o CMakeFiles/flang_static.dir/erfc3f.c.o CMakeFiles/flang_static.dir/etime3f.c.o CMakeFiles/flang_static.dir/exit3f.c.o CMakeFiles/flang_static.dir/exp.c.o CMakeFiles/flang_static.dir/fdate3f.c.o CMakeFiles/flang_static.dir/fgetc3f.c.o CMakeFiles/flang_static.dir/findfileqq3f.c.o CMakeFiles/flang_static.dir/flush3f.c.o CMakeFiles/flang_static.dir/fork3f.c.o CMakeFiles/flang_static.dir/fpcvt.c.o CMakeFiles/flang_static.dir/fputc3f.c.o CMakeFiles/flang_static.dir/free3f.c.o CMakeFiles/flang_static.dir/fseek3f.c.o CMakeFiles/flang_static.dir/fseek643f.c.o CMakeFiles/flang_static.dir/fstat3f.c.o CMakeFiles/flang_static.dir/fstat643f.c.o CMakeFiles/flang_static.dir/fsync3f.c.o CMakeFiles/flang_static.dir/ftell3f.c.o CMakeFiles/flang_static.dir/ftell643f.c.o CMakeFiles/flang_static.dir/ftn64.c.o CMakeFiles/flang_static.dir/ftnbitsup.c.o CMakeFiles/flang_static.dir/ftncharsup.c.o CMakeFiles/flang_static.dir/ftnhdr.F.o CMakeFiles/flang_static.dir/ftni64.c.o CMakeFiles/flang_static.dir/ftni64bitsup.c.o CMakeFiles/flang_static.dir/ftni64misc.c.o CMakeFiles/flang_static.dir/ftnmiscsup.c.o CMakeFiles/flang_static.dir/ftnncharsup.c.o CMakeFiles/flang_static.dir/fullpathqq3f.c.o CMakeFiles/flang_static.dir/gather.c.o CMakeFiles/flang_static.dir/gathscat.c.o CMakeFiles/flang_static.dir/gerror3f.c.o CMakeFiles/flang_static.dir/getarg3f.c.o CMakeFiles/flang_static.dir/getc3f.c.o CMakeFiles/flang_static.dir/getcwd3f.c.o CMakeFiles/flang_static.dir/getdat3f.c.o CMakeFiles/flang_static.dir/getdrivedirqq3f.c.o CMakeFiles/flang_static.dir/getenv3f.c.o CMakeFiles/flang_static.dir/getenvqq3f.c.o CMakeFiles/flang_static.dir/getfd3f.c.o CMakeFiles/flang_static.dir/getfileinfoqq3f.c.o CMakeFiles/flang_static.dir/getfileinfoqqi83f.c.o CMakeFiles/flang_static.dir/getgid3f.c.o CMakeFiles/flang_static.dir/getlog3f.c.o CMakeFiles/flang_static.dir/getpid3f.c.o CMakeFiles/flang_static.dir/gettim3f.c.o CMakeFiles/flang_static.dir/getuid3f.c.o CMakeFiles/flang_static.dir/getvolinfo3f.c.o CMakeFiles/flang_static.dir/gmtime3f.c.o CMakeFiles/flang_static.dir/hostnm3f.c.o CMakeFiles/flang_static.dir/i1shft.c.o CMakeFiles/flang_static.dir/i2powi.c.o CMakeFiles/flang_static.dir/idate3f.c.o CMakeFiles/flang_static.dir/ierrno3f.c.o CMakeFiles/flang_static.dir/iishft.c.o CMakeFiles/flang_static.dir/ileadz.c.o CMakeFiles/flang_static.dir/ileadzi.c.o CMakeFiles/flang_static.dir/intrin.c.o CMakeFiles/flang_static.dir/ioinit3f.c.o CMakeFiles/flang_static.dir/ipopcnt.c.o CMakeFiles/flang_static.dir/ipopcnti.c.o CMakeFiles/flang_static.dir/ipoppar.c.o CMakeFiles/flang_static.dir/ipoppari.c.o CMakeFiles/flang_static.dir/irand3f.c.o CMakeFiles/flang_static.dir/irandm3f.c.o CMakeFiles/flang_static.dir/isatty3f.c.o CMakeFiles/flang_static.dir/isinfd3f.c.o CMakeFiles/flang_static.dir/isinff3f.c.o CMakeFiles/flang_static.dir/isnand3f.c.o CMakeFiles/flang_static.dir/isnanf3f.c.o CMakeFiles/flang_static.dir/itime3f.c.o CMakeFiles/flang_static.dir/kabs.c.o CMakeFiles/flang_static.dir/kidim.c.o CMakeFiles/flang_static.dir/kill3f.c.o CMakeFiles/flang_static.dir/kisign.c.o CMakeFiles/flang_static.dir/kleadz.c.o CMakeFiles/flang_static.dir/kmax.c.o CMakeFiles/flang_static.dir/kmin.c.o CMakeFiles/flang_static.dir/kpopcnt.c.o CMakeFiles/flang_static.dir/kpoppar.c.o CMakeFiles/flang_static.dir/link3f.c.o CMakeFiles/flang_static.dir/lnblnk3f.c.o CMakeFiles/flang_static.dir/loc3f.c.o CMakeFiles/flang_static.dir/long3f.c.o CMakeFiles/flang_static.dir/lstat3f.c.o CMakeFiles/flang_static.dir/lstat643f.c.o CMakeFiles/flang_static.dir/ltime3f.c.o CMakeFiles/flang_static.dir/malloc3f.c.o CMakeFiles/flang_static.dir/mclock3f.c.o CMakeFiles/flang_static.dir/mod.c.o CMakeFiles/flang_static.dir/mvbits3f.c.o CMakeFiles/flang_static.dir/nargs3f.c.o CMakeFiles/flang_static.dir/omp_lib.F95.o CMakeFiles/flang_static.dir/outstr3f.c.o CMakeFiles/flang_static.dir/packtimeqq3f.c.o CMakeFiles/flang_static.dir/perror3f.c.o CMakeFiles/flang_static.dir/putc3f.c.o CMakeFiles/flang_static.dir/putenv3f.c.o CMakeFiles/flang_static.dir/pxffileno3f.c.o CMakeFiles/flang_static.dir/qsort3f.c.o CMakeFiles/flang_static.dir/rand3f.c.o CMakeFiles/flang_static.dir/random3f.c.o CMakeFiles/flang_static.dir/range3f.c.o CMakeFiles/flang_static.dir/red.c.o CMakeFiles/flang_static.dir/red_all.c.o CMakeFiles/flang_static.dir/red_any.c.o CMakeFiles/flang_static.dir/red_count.c.o CMakeFiles/flang_static.dir/red_iany.c.o CMakeFiles/flang_static.dir/red_findloc.c.o CMakeFiles/flang_static.dir/red_maxloc.c.o CMakeFiles/flang_static.dir/red_minloc.c.o CMakeFiles/flang_static.dir/red_maxval.c.o CMakeFiles/flang_static.dir/red_minval.c.o CMakeFiles/flang_static.dir/red_sum.c.o CMakeFiles/flang_static.dir/reduct.c.o CMakeFiles/flang_static.dir/rename3f.c.o CMakeFiles/flang_static.dir/renamefileqq3f.c.o CMakeFiles/flang_static.dir/rindex3f.c.o CMakeFiles/flang_static.dir/rtc3f.c.o CMakeFiles/flang_static.dir/runqq3f.c.o CMakeFiles/flang_static.dir/scatter.c.o CMakeFiles/flang_static.dir/scatter_maxval.c.o CMakeFiles/flang_static.dir/scatter_minval.c.o CMakeFiles/flang_static.dir/secnds3f.c.o CMakeFiles/flang_static.dir/setenvqq3f.c.o CMakeFiles/flang_static.dir/setfileaakeFiles/flang_static.dir/scatter_maxval.c.o CMakeFiles/flang_static.dir/scatter_minval.c.o CMakeFiles/flang_static.dir/secnds3f.c.o CMakeFiles/flang_static.dir/setenvqq3f.c.o CMakeFiles/flang_static.dir/setfileaccessqq3f.c.o CMakeFiles/flang_static.dir/setfiletimeqq3f.c.o CMakeFiles/flang_static.dir/setvbuf3f.c.o CMakeFiles/flang_static.dir/short3f.c.o CMakeFiles/flang_static.dir/signal3f.c.o CMakeFiles/flang_static.dir/signalqq3f.c.o CMakeFiles/flang_static.dir/sign.c.o CMakeFiles/flang_static.dir/sin.c.o CMakeFiles/flang_static.dir/sind.c.o CMakeFiles/flang_static.dir/sinh.c.o CMakeFiles/flang_static.dir/sleep3f.c.o CMakeFiles/flang_static.dir/sleepqq3f.c.o CMakeFiles/flang_static.dir/splitpathqq3f.c.o CMakeFiles/flang_static.dir/sqrt.c.o CMakeFiles/flang_static.dir/srand3f.c.o CMakeFiles/flang_static.dir/stat3f.c.o CMakeFiles/flang_static.dir/stat643f.c.o CMakeFiles/flang_static.dir/stime3f.c.o CMakeFiles/flang_static.dir/symlnk3f.c.o CMakeFiles/flang_static.dir/system3f.c.o CMakeFiles/flang_static.dir/systemqq3f.c.o CMakeFiles/flang_static.dir/tan.c.o CMakeFiles/flang_static.dir/tand.c.o CMakeFiles/flang_static.dir/tanh.c.o CMakeFiles/flang_static.dir/time3f.c.o CMakeFiles/flang_static.dir/timef3f.c.o CMakeFiles/flang_static.dir/times3f.c.o CMakeFiles/flang_static.dir/ttynam3f.c.o CMakeFiles/flang_static.dir/unlink3f.c.o CMakeFiles/flang_static.dir/unpacktimeqq3f.c.o CMakeFiles/flang_static.dir/utils3f.c.o CMakeFiles/flang_static.dir/wait3f.c.o CMakeFiles/flang_static.dir/bcopy.c.o CMakeFiles/flang_static.dir/bcopys.c.o CMakeFiles/flang_static.dir/buffer.c.o CMakeFiles/flang_static.dir/chn1t1.c.o CMakeFiles/flang_static.dir/chn1tn.c.o CMakeFiles/flang_static.dir/chnbcst_loop.c.o CMakeFiles/flang_static.dir/chnmerge.c.o CMakeFiles/flang_static.dir/const.c.o CMakeFiles/flang_static.dir/cprof2.c.o CMakeFiles/flang_static.dir/cprof.c.o CMakeFiles/flang_static.dir/curdir.c.o CMakeFiles/flang_static.dir/genlist.c.o CMakeFiles/flang_static.dir/hand.c.o CMakeFiles/flang_static.dir/heapinit.c.o CMakeFiles/flang_static.dir/map.c.o CMakeFiles/flang_static.dir/stat.c.o CMakeFiles/flang_static.dir/trace2.c.o CMakeFiles/flang_static.dir/trace.c.o CMakeFiles/flang_static.dir/usrio_smp.c.o CMakeFiles/flang_static.dir/xfer_heap_dum.c.o CMakeFiles/flang_static.dir/aligned.c.o CMakeFiles/flang_static.dir/allo.c.o CMakeFiles/flang_static.dir/assign.c.o CMakeFiles/flang_static.dir/async.c.o CMakeFiles/flang_static.dir/atol.c.o CMakeFiles/flang_static.dir/backspace.c.o CMakeFiles/flang_static.dir/close.c.o CMakeFiles/flang_static.dir/cnfg.c.o CMakeFiles/flang_static.dir/comm.c.o CMakeFiles/flang_static.dir/copy.c.o CMakeFiles/flang_static.dir/cplxf.c.o CMakeFiles/flang_static.dir/csect.c.o CMakeFiles/flang_static.dir/cshift.c.o CMakeFiles/flang_static.dir/dbug.c.o CMakeFiles/flang_static.dir/defs.c.o CMakeFiles/flang_static.dir/desc.c.o CMakeFiles/flang_static.dir/dist.c.o CMakeFiles/flang_static.dir/dsign.c.o CMakeFiles/flang_static.dir/dynam.c.o CMakeFiles/flang_static.dir/encodefmt.c.o CMakeFiles/flang_static.dir/endfile.c.o CMakeFiles/flang_static.dir/entry.c.o CMakeFiles/flang_static.dir/eoshift.c.o CMakeFiles/flang_static.dir/error.c.o CMakeFiles/flang_static.dir/exch.c.o CMakeFiles/flang_static.dir/fill.c.o CMakeFiles/flang_static.dir/flush.c.o CMakeFiles/flang_static.dir/fmtconv.c.o CMakeFiles/flang_static.dir/fmtgetnum.c.o CMakeFiles/flang_static.dir/fmtread.c.o CMakeFiles/flang_static.dir/fmtwrite.c.o CMakeFiles/flang_static.dir/format-double.c.o CMakeFiles/flang_static.dir/ftn.c.o CMakeFiles/flang_static.dir/ftnexit.c.o CMakeFiles/flang_static.dir/gather_cmplx16.F95.o CMakeFiles/flang_static.dir/gather_cmplx8.F95.o CMakeFiles/flang_static.dir/gather_real4.F95.o CMakeFiles/flang_static.dir/gather_real8.F95.o CMakeFiles/flang_static.dir/getarg.c.o CMakeFiles/flang_static.dir/grad.c.o CMakeFiles/flang_static.dir/descIntrins.c.o CMakeFiles/flang_static.dir/descFioUtil.c.o CMakeFiles/flang_static.dir/descRW.c.o CMakeFiles/flang_static.dir/ieee_arithmetic.F95.o CMakeFiles/flang_static.dir/ieee_exceptions.F95.o CMakeFiles/flang_static.dir/ieee_features.F95.o CMakeFiles/flang_static.dir/initpar.c.o CMakeFiles/flang_static.dir/inquire.c.o CMakeFiles/flang_static.dir/iso_c_bind.F95.o CMakeFiles/flang_static.dir/iso_fortran_env.f90.o CMakeFiles/flang_static.dir/ldread.c.o CMakeFiles/flang_static.dir/ldwrite.c.o CMakeFiles/flang_static.dir/linux_dummy.c.o CMakeFiles/flang_static.dir/malloc.c.o CMakeFiles/flang_static.dir/mget.c.o CMakeFiles/flang_static.dir/misc.c.o CMakeFiles/flang_static.dir/miscsup_com.c.o CMakeFiles/flang_static.dir/mmul.c.o CMakeFiles/flang_static.dir/mmcmplx16.c.o CMakeFiles/flang_static.dir/mmcmplx8.c.o CMakeFiles/flang_static.dir/mmreal4.c.o CMakeFiles/flang_static.dir/mmreal8.c.o CMakeFiles/flang_static.dir/mmulcplx16.c.o CMakeFiles/flang_static.dir/mmul_cplx16contmxm.F95.o CMakeFiles/flang_static.dir/mmul_cplx16contmxv.F95.o CMakeFiles/flang_static.dir/mmul_cplx16contvxm.F95.o CMakeFiles/flang_static.dir/mmul_cplx16str1.F95.o CMakeFiles/flang_static.dir/mmul_cplx16str1_t.F95.o CMakeFiles/flang_static.dir/mmulcplx16_t.c.o CMakeFiles/flang_static.dir/mmulcplx8.c.o CMakeFiles/flang_static.dir/mmul_cplx8contmxm.F95.o CMakeFiles/flang_static.dir/mmul_cplx8contmxv.F95.o CMakeFiles/flang_static.dir/mmul_cplx8contvxm.F95.o CMakeFiles/flang_static.dir/mmul_cplx8str1.F95.o CMakeFiles/flang_static.dir/mmul_cplx8str1_t.F95.o CMakeFiles/flang_static.dir/mmulcplx8_t.c.o CMakeFiles/flang_static.dir/mmulint1.c.o CMakeFiles/flang_static.dir/mmul_int1contmxm.F95.o CMakeFiles/flang_static.dir/mmul_int1contmxv.F95.o CMakeFiles/flang_static.dir/mmul_int1contvxm.F95.o CMakeFiles/flang_static.dir/mmul_int1str1.F95.o CMakeFiles/flang_static.dir/mmulint2.c.o CMakeFiles/flang_static.dir/mmul_int2contmxm.F95.o CMakeFiles/flang_static.dir/mmul_int2contmxv.F95.o CMakeFiles/flang_static.dir/mmul_int2contvxm.F95.o CMakeFiles/flang_static.dir/mmul_int2str1.F95.o CMakeFiles/flang_static.dir/mmulint4.c.o CMakeFiles/flang_static.dir/mmul_int4contmxm.F95.o CMakeFiles/flang_static.dir/mmul_int4contmxv.F95.o CMakeFiles/flang_static.dir/mmul_int4contvxm.F95.o CMakeFiles/flang_static.dir/mmul_int4str1.F95.o CMakeFiles/flang_static.dir/mmulint8.c.o CMakeFiles/flang_static.dir/mmul_int8contmxm.F95.o CMakeFiles/flang_static.dir/mmul_int8contmxv.F95.o CMakeFiles/flang_static.dir/mmul_int8contvxm.F95.o CMakeFiles/flang_static.dir/mmul_int8str1.F95.o CMakeFiles/flang_static.dir/mmullog1.c.o CMakeFiles/flang_static.dir/mmul_log1contmxm.F95.o CMakeFiles/flang_static.dir/mmul_log1contmxv.F95.o CMakeFiles/flang_static.dir/mmul_log1contvxm.F95.o CMakeFiles/flang_static.dir/mmullog2.c.o CMakeFiles/flang_static.dir/mmul_log2contmxm.F95.o CMakeFiles/flang_static.dir/mmul_log2contmxv.F95.o CMakeFiles/flang_static.dir/mmul_log2contvxm.F95.o CMakeFiles/flang_static.dir/mmullog4.c.o CMakeFiles/flang_static.dir/mmul_log4contmxm.F95.o CMakeFiles/flang_static.dir/mmul_log4contmxv.F95.o CMakeFiles/flang_static.dir/mmul_log4contvxm.F95.o CMakeFiles/flang_static.dir/mmullog8.c.o CMakeFiles/flang_static.dir/mmul_log8contmxm.F95.o CMakeFiles/flang_static.dir/mmul_log8contmxv.F95.o CMakeFiles/flang_static.dir/mmul_log8contvxm.F95.o CMakeFiles/flang_static.dir/mmulreal4.c.o CMakeFiles/flang_static.dir/mmul_real4contmxm.F95.o CMakeFiles/flang_static.dir/mmul_real4contmxv.F95.o CMakeFiles/flang_static.dir/mmul_real4contvxm.F95.o CMakeFiles/flang_static.dir/mmul_real4str1.F95.o CMakeFiles/flang_static.dir/mmul_real4str1_t.F95.o CMakeFiles/flang_static.dir/mmulreal4_t.c.o CMakeFiles/flang_static.dir/mmulreal8.c.o CMakeFiles/flang_static.dir/mmul_real8contmxm.F95.o CMakeFiles/flang_static.dir/mmul_real8contmxv.F95.o CMakeFiles/flang_static.dir/mmul_real8contvxm.F95.o CMakeFiles/flang_static.dir/mmul_real8str1.F95.o CMakeFiles/flang_static.dir/mmul_real8str1_t.F95.o CMakeFiles/flang_static.dir/mmulreal8_t.c.o CMakeFiles/flang_static.dir/mnaxnb_cmplx16.F95.o CMakeFiles/flang_static.dir/mnaxnb_cmplx8.F95.o CMakeFiles/flang_static.dir/mnaxnb_real4.F95.o CMakeFiles/flang_static.dir/mnaxnb_real8.F95.o CMakeFiles/flang_static.dir/mnaxtb_cmplx16.F95.o CMakeFiles/flang_static.dir/mnaxtb_cmplx8.F95.o CMakeFiles/flang_static.dir/mnaxtb_real4.F95.o CMakeFiles/flang_static.dir/mnaxtb_real8.F95.o CMakeFiles/flang_static.dir/mtaxnb_cmplx16.F95.o CMakeFiles/flang_static.dir/mtaxnb_cmplx8.F95.o CMakeFiles/flang_static.dir/mtaxnb_real4.F95.o CMakeFiles/flang_static.dir/mtaxnb_real8.F95.o CMakeFiles/flang_static.dir/mtaxtb_cmplx16.F95.o CMakeFiles/flang_static.dir/mtaxtb_cmplx8.F95.o CMakeFiles/flang_static.dir/mtaxtb_real4.F95.o CMakeFiles/flang_static.dir/mtaxtb_real8.F95.o CMakeFiles/flang_static.dir/mvmul_cmplx16.F95.o CMakeFiles/flang_static.dir/mvmul_cmplx8.F95.o CMakeFiles/flang_static.dir/mvmul_real4.F95.o CMakeFiles/flang_static.dir/mvmul_real8.F95.o CMakeFiles/flang_static.dir/nmlread.c.o CMakeFiles/flang_static.dir/nmlwrite.c.o CMakeFiles/flang_static.dir/nmlutil.c.o CMakeFiles/flang_static.dir/olap.c.o CMakeFiles/flang_static.dir/open.c.o CMakeFiles/flang_static.dir/pack.c.o CMakeFiles/flang_static.dir/fiodf.c.o CMakeFiles/flang_static.dir/ptr.c.o CMakeFiles/flang_static.dir/query.c.o CMakeFiles/flang_static.dir/rdst.c.o CMakeFiles/flang_static.dir/reshape.c.o CMakeFiles/flang_static.dir/rewind.c.o CMakeFiles/flang_static.dir/rnum.c.o CMakeFiles/flang_static.dir/rw.c.o CMakeFiles/flang_static.dir/scalar_copy.c.o CMakeFiles/flang_static.dir/scal.c.o CMakeFiles/flang_static.dir/spread.c.o CMakeFiles/flang_static.dir/stat_linux.c.o CMakeFiles/flang_static.dir/transfer.c.o CMakeFiles/flang_static.dir/transpose_cmplx16.F95.o CMakeFiles/flang_static.dir/transpose_cmplx8.F95.o CMakeFiles/flang_static.dir/transpose_real4.F95.o CMakeFiles/flang_static.dir/transpose_real8.F95.o CMakeFiles/flang_static.dir/type.c.o CMakeFiles/flang_static.dir/unf.c.o CMakeFiles/flang_static.dir/util.c.o CMakeFiles/flang_static.dir/utils.c.o CMakeFiles/flang_static.dir/utilsi64.c.o CMakeFiles/flang_static.dir/version.c.o CMakeFiles/flang_static.dir/vmmul_cmplx16.F95.o CMakeFiles/flang_static.dir/vmmul_cmplx8.F95.o CMakeFiles/flang_static.dir/vmmul_real4.F95.o CMakeFiles/flang_static.dir/vmmul_real8.F95.o CMakeFiles/flang_static.dir/wait.c.o CMakeFiles/flang_static.dir/xfer.c.o CMakeFiles/flang_static.dir/init.c.o CMakeFiles/flang_static.dir/xfer_rpm1.c.o CMakeFiles/flang_static.dir/__/shared/cdiv.c.o CMakeFiles/flang_static.dir/__/shared/cddiv.c.o
     2456  /home/aryczkowski/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-5.4.0/binutils-2.28-q4vtw4iako63xwmlg2z4hqkmnrowjf4l/bin/ranlib ../../lib/libflang.a
     2457  make[2]: Leaving directory '/tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build'
     2458  [ 69%] Built target flang_static
     2459  make[1]: Leaving directory '/tmp/aryczkowski/spack-stage/spack-stage-KGZtjx/flang/spack-build'
     2460  Makefile:132: recipe for target 'all' failed
  >> 2461  make: *** [all] Error 2
naromero77 commented 4 years ago

I just updated the Flang Spack package. Give it a try.