Build of lapack with android toolchain

The build took 00h 01m 12s and was NOT successful.

The program in this build is written in the following languages, according to sloccount:

SLOCLanguage
524,705 fortran
163,089 ansic
4,063 makefile
269 python
692,126 total

The process tree of the build process is here.

Several sub-process invocations were improper; see the process tree for details. Summary:

Log

To avoid scrolling, you may jump to the last line of the invocation of makepkg that was used to build this package.

Removed vanilla repositories from pacman.conf and added:
# [tuscan]
# Server = file:///var/cache/pacman/pkg/

CMD: pacman -Syy --noconfirm
# :: Synchronizing package databases...
# downloading tuscan.db...

Copied permanent toolchain into container-local sysroot
# /toolchain_root/arm-linux-androideabi --> /sysroot/arm-linux-androideabi
# /toolchain_root/COPYING3.LIB --> /sysroot/COPYING3.LIB
# /toolchain_root/sysroot --> /sysroot/sysroot
# /toolchain_root/COPYING.RUNTIME --> /sysroot/COPYING.RUNTIME
# /toolchain_root/lib --> /sysroot/lib
# /toolchain_root/SOURCES --> /sysroot/SOURCES
# /toolchain_root/lib64 --> /sysroot/lib64
# /toolchain_root/share --> /sysroot/share
# /toolchain_root/bin --> /sysroot/bin
# /toolchain_root/COPYING --> /sysroot/COPYING
# /toolchain_root/COPYING3 --> /sysroot/COPYING3
# /toolchain_root/COPYING.LIB --> /sysroot/COPYING.LIB
# /toolchain_root/include --> /sysroot/include
# /toolchain_root/libexec --> /sysroot/libexec

CMD: sudo -u tuscan PATH=/sysroot/bin:/sysroot/libexec/gcc/arm-linux-androideabi/4.8:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=arm-linux-androideabi-gcc CXX=arm-linux-androideabi-g++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
# ==> Making package: lapack 3.6.1-1 (Tue Apr 4 21:33:32 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# -- The Fortran compiler identification is unknown
# -- Check for working Fortran compiler: /usr/sbin/gfortran
# -- Check for working Fortran compiler: /usr/sbin/gfortran -- broken
# CMake Error at /usr/share/cmake-3.5/Modules/CMakeTestFortranCompiler.cmake:54 (message):
# The Fortran compiler "/usr/sbin/gfortran" is not able to compile a simple
# test program.
#
# It fails with the following output:
#
# Change Dir: /tmp/lapack/src/build/CMakeFiles/CMakeTmp
#
#
#
# Run Build Command:"/usr/sbin/make" "cmTC_f83d1/fast"
#
# /usr/sbin/make -f CMakeFiles/cmTC_f83d1.dir/build.make
# CMakeFiles/cmTC_f83d1.dir/build
#
# make[1]: Entering directory '/tmp/lapack/src/build/CMakeFiles/CMakeTmp'
#
# Building Fortran object CMakeFiles/cmTC_f83d1.dir/testFortranCompiler.f.o
#
# /usr/sbin/gfortran -c
# /tmp/lapack/src/build/CMakeFiles/CMakeTmp/testFortranCompiler.f -o
# CMakeFiles/cmTC_f83d1.dir/testFortranCompiler.f.o
#
# /s: unrecognized option '--64'
#
# make[1]: *** [CMakeFiles/cmTC_f83d1.dir/build.make:66:
# CMakeFiles/cmTC_f83d1.dir/testFortranCompiler.f.o] Error 1
#
# make[1]: Leaving directory '/tmp/lapack/src/build/CMakeFiles/CMakeTmp'
#
# make: *** [Makefile:126: cmTC_f83d1/fast] Error 2
#
#
#
#
#
# CMake will not be able to correctly generate this project.
# Call Stack (most recent call first):
# CMakeLists.txt:2 (project)
#
#
# -- Configuring incomplete, errors occurred!
# See also "/tmp/lapack/src/build/CMakeFiles/CMakeOutput.log".
# See also "/tmp/lapack/src/build/CMakeFiles/CMakeError.log".
# ==> ERROR: A failure occurred in build().
# Aborting...

Printing Cmake errors

CMD: Cmake errors '/tmp/lapack/src/build/CMakeFiles/CMakeError.log'
# Compiling the Fortran compiler identification source file "CMakeFortranCompilerId.F" failed.
# Compiler: /usr/sbin/gfortran
# Build flags:
# Id flags: -v
#
# The output was:
# 1
# Driving: /usr/sbin/gfortran -v CMakeFortranCompilerId.F -l gfortran -l m -shared-libgcc
# Using built-in specs.
# COLLECT_GCC=/usr/sbin/gfortran
# COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/lto-wrapper
# Target: x86_64-pc-linux-gnu
# Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --disable-multilib --disable-werror --enable-checking=release
# Thread model: posix
# gcc version 6.1.1 20160602 (GCC)
# COLLECT_GCC_OPTIONS='-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
# /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/f951 CMakeFortranCompilerId.F -ffixed-form -cpp=/tmp/ccRxumAV.f90 -quiet -v CMakeFortranCompilerId.F -quiet -dumpbase CMakeFortranCompilerId.F -mtune=generic -march=x86-64 -auxbase CMakeFortranCompilerId -version -fintrinsic-modules-path /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/finclude -o /tmp/ccESTlga.s
# GNU Fortran (GCC) version 6.1.1 20160602 (x86_64-pc-linux-gnu)
# compiled by GNU C version 6.1.1 20160602, GMP version 6.1.0, MPFR version 3.1.4-p1, MPC version 1.0.3, isl version 0.15
# warning: GMP header version 6.1.0 differs from library version 6.1.1.
# GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
# ignoring nonexistent directory "/usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/../../../../x86_64-pc-linux-gnu/include"
# #include "..." search starts here:
# #include <...> search starts here:
# /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/finclude
# /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/include
# /usr/local/include
# /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/include-fixed
# /usr/include
# End of search list.
# GNU Fortran2008 (GCC) version 6.1.1 20160602 (x86_64-pc-linux-gnu)
# compiled by GNU C version 6.1.1 20160602, GMP version 6.1.0, MPFR version 3.1.4-p1, MPC version 1.0.3, isl version 0.15
# warning: GMP header version 6.1.0 differs from library version 6.1.1.
# GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
# COLLECT_GCC_OPTIONS='-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
# as -v --64 -o /tmp/cceMWT1o.o /tmp/ccESTlga.s
# GNU assembler version 2.24.90 (arm-linux-androideabi) using BFD version (GNU Binutils) 2.24.90
# /s: unrecognized option '--64'
#
#
# Compiling the Fortran compiler identification source file "CMakeFortranCompilerId.F" failed.
# Compiler: /usr/sbin/gfortran
# Build flags:
# Id flags:
#
# The output was:
# 1
# /s: unrecognized option '--64'
#
#
# Compiling the Fortran compiler identification source file "CMakeFortranCompilerId.F" failed.
# Compiler: /usr/sbin/gfortran
# Build flags:
# Id flags: -c
#
# The output was:
# 1
# /s: unrecognized option '--64'
#
#
# Compiling the Fortran compiler identification source file "CMakeFortranCompilerId.F" failed.
# Compiler: /usr/sbin/gfortran
# Build flags:
# Id flags: -fpp
#
# The output was:
# 1
# gfortran: error: unrecognized command line option '-fpp'; did you mean '-cpp'?
#
#
# Checking whether the Fortran compiler is Compaq using "-what" did not match "Compaq Visual Fortran":
# gfortran: error: unrecognized command line option '-what'; did you mean '-gnat'?
# gfortran: fatal error: no input files
# compilation terminated.
# Checking whether the Fortran compiler is NAG using "-V" did not match "NAG Fortran Compiler":
# gfortran: error: unrecognized command line option '-V'
# gfortran: fatal error: no input files
# compilation terminated.
# Determining if the Fortran compiler works failed with the following output:
# Change Dir: /tmp/lapack/src/build/CMakeFiles/CMakeTmp
#
# Run Build Command:"/usr/sbin/make" "cmTC_f83d1/fast"
# /usr/sbin/make -f CMakeFiles/cmTC_f83d1.dir/build.make CMakeFiles/cmTC_f83d1.dir/build
# make[1]: Entering directory '/tmp/lapack/src/build/CMakeFiles/CMakeTmp'
# Building Fortran object CMakeFiles/cmTC_f83d1.dir/testFortranCompiler.f.o
# /usr/sbin/gfortran -c /tmp/lapack/src/build/CMakeFiles/CMakeTmp/testFortranCompiler.f -o CMakeFiles/cmTC_f83d1.dir/testFortranCompiler.f.o
# /s: unrecognized option '--64'
# make[1]: *** [CMakeFiles/cmTC_f83d1.dir/build.make:66: CMakeFiles/cmTC_f83d1.dir/testFortranCompiler.f.o] Error 1
# make[1]: Leaving directory '/tmp/lapack/src/build/CMakeFiles/CMakeTmp'
# make: *** [Makefile:126: cmTC_f83d1/fast] Error 2
#
#

Printing Cmake output

CMD: Cmake output '/tmp/lapack/src/build/CMakeFiles/CMakeOutput.log'
# The system is: Linux - 4.10.6-1-ARCH - x86_64
# Determining if the Fortran compiler is GNU succeeded with the following output:
# # 1 "/usr/share/cmake-3.5/Modules/CMakeTestGNU.c"
# # 1 ""
# # 1 ""
# # 31 ""
# # 1 "/usr/include/stdc-predef.h" 1 3 4
# # 32 "" 2
# # 1 "/usr/share/cmake-3.5/Modules/CMakeTestGNU.c"
#
# void THIS_IS_GNU();
#