Found local metadata for openblas-0.2.19.p0 Attempting to download package OpenBLAS-0.2.19.tar.gz from mirrors http://mirrors.mit.edu/sage/spkg/upstream/openblas/OpenBLAS-0.2.19.tar.gz [......................................................................] openblas-0.2.19.p0 ==================================================== Setting up build directory for openblas-0.2.19.p0 Finished extraction Applying patches from ../patches... Applying ../patches/4998e19869636ceca28e158e1da28f0a4e1df5ee.patch patching file kernel/x86_64/dgemm_kernel_4x8_sandy.S Applying ../patches/openblas-0.2.19-MAKE.patch patching file Makefile Applying ../patches/openblas-0.2.19-OSX_DEPLOY.patch patching file Makefile.system Applying ../patches/openblas-0.2.19-SMP_conditional.patch patching file Makefile.system Hunk #1 succeeded at 299 (offset 2 lines). Hunk #2 succeeded at 845 (offset 2 lines). Hunk #3 succeeded at 1046 (offset 2 lines). Hunk #4 succeeded at 1054 (offset 2 lines). Applying ../patches/openblas-0.2.19-utest_ldflags.patch patching file utest/Makefile **************************************************** Host system: Linux archdavid 4.11.9-1-ARCH #1 SMP PREEMPT Wed Jul 5 18:23:08 CEST 2017 x86_64 GNU/Linux **************************************************** C compiler: gcc C compiler version: Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/7.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 7.1.1 20170621 (GCC) **************************************************** Building OpenBLAS: make USE_THREAD=0 make[3]: Entering directory '/home/djlowry/sage/local/var/tmp/sage/build/openblas-0.2.19.p0/src' getarch_2nd.c: In function 'main': getarch_2nd.c:12:35: error: 'SGEMM_DEFAULT_UNROLL_M' undeclared (first use in this function); did you mean 'XGEMM_DEFAULT_UNROLL_M'? printf("SGEMM_UNROLL_M=%d\n", SGEMM_DEFAULT_UNROLL_M); ^~~~~~~~~~~~~~~~~~~~~~ XGEMM_DEFAULT_UNROLL_M getarch_2nd.c:12:35: note: each undeclared identifier is reported only once for each function it appears in getarch_2nd.c:13:35: error: 'SGEMM_DEFAULT_UNROLL_N' undeclared (first use in this function); did you mean 'SGEMM_DEFAULT_UNROLL_M'? printf("SGEMM_UNROLL_N=%d\n", SGEMM_DEFAULT_UNROLL_N); ^~~~~~~~~~~~~~~~~~~~~~ SGEMM_DEFAULT_UNROLL_M getarch_2nd.c:14:35: error: 'DGEMM_DEFAULT_UNROLL_M' undeclared (first use in this function); did you mean 'SGEMM_DEFAULT_UNROLL_M'? printf("DGEMM_UNROLL_M=%d\n", DGEMM_DEFAULT_UNROLL_M); ^~~~~~~~~~~~~~~~~~~~~~ SGEMM_DEFAULT_UNROLL_M getarch_2nd.c:15:35: error: 'DGEMM_DEFAULT_UNROLL_N' undeclared (first use in this function); did you mean 'DGEMM_DEFAULT_UNROLL_M'? printf("DGEMM_UNROLL_N=%d\n", DGEMM_DEFAULT_UNROLL_N); ^~~~~~~~~~~~~~~~~~~~~~ DGEMM_DEFAULT_UNROLL_M getarch_2nd.c:19:35: error: 'CGEMM_DEFAULT_UNROLL_M' undeclared (first use in this function); did you mean 'DGEMM_DEFAULT_UNROLL_M'? printf("CGEMM_UNROLL_M=%d\n", CGEMM_DEFAULT_UNROLL_M); ^~~~~~~~~~~~~~~~~~~~~~ DGEMM_DEFAULT_UNROLL_M getarch_2nd.c:20:35: error: 'CGEMM_DEFAULT_UNROLL_N' undeclared (first use in this function); did you mean 'CGEMM_DEFAULT_UNROLL_M'? printf("CGEMM_UNROLL_N=%d\n", CGEMM_DEFAULT_UNROLL_N); ^~~~~~~~~~~~~~~~~~~~~~ CGEMM_DEFAULT_UNROLL_M getarch_2nd.c:21:35: error: 'ZGEMM_DEFAULT_UNROLL_M' undeclared (first use in this function); did you mean 'CGEMM_DEFAULT_UNROLL_M'? printf("ZGEMM_UNROLL_M=%d\n", ZGEMM_DEFAULT_UNROLL_M); ^~~~~~~~~~~~~~~~~~~~~~ CGEMM_DEFAULT_UNROLL_M getarch_2nd.c:22:35: error: 'ZGEMM_DEFAULT_UNROLL_N' undeclared (first use in this function); did you mean 'ZGEMM_DEFAULT_UNROLL_M'? printf("ZGEMM_UNROLL_N=%d\n", ZGEMM_DEFAULT_UNROLL_N); ^~~~~~~~~~~~~~~~~~~~~~ ZGEMM_DEFAULT_UNROLL_M getarch_2nd.c:69:50: error: 'SGEMM_DEFAULT_Q' undeclared (first use in this function); did you mean 'SGEMM_DEFAULT_UNROLL_N'? printf("#define SLOCAL_BUFFER_SIZE\t%ld\n", (SGEMM_DEFAULT_Q * SGEMM_DEFAULT_UNROLL_N * 4 * 1 * sizeof(float))); ^~~~~~~~~~~~~~~ SGEMM_DEFAULT_UNROLL_N getarch_2nd.c:70:50: error: 'DGEMM_DEFAULT_Q' undeclared (first use in this function); did you mean 'SGEMM_DEFAULT_Q'? printf("#define DLOCAL_BUFFER_SIZE\t%ld\n", (DGEMM_DEFAULT_Q * DGEMM_DEFAULT_UNROLL_N * 2 * 1 * sizeof(double))); ^~~~~~~~~~~~~~~ SGEMM_DEFAULT_Q getarch_2nd.c:71:50: error: 'CGEMM_DEFAULT_Q' undeclared (first use in this function); did you mean 'DGEMM_DEFAULT_Q'? printf("#define CLOCAL_BUFFER_SIZE\t%ld\n", (CGEMM_DEFAULT_Q * CGEMM_DEFAULT_UNROLL_N * 4 * 2 * sizeof(float))); ^~~~~~~~~~~~~~~ DGEMM_DEFAULT_Q getarch_2nd.c:72:50: error: 'ZGEMM_DEFAULT_Q' undeclared (first use in this function); did you mean 'CGEMM_DEFAULT_Q'? printf("#define ZLOCAL_BUFFER_SIZE\t%ld\n", (ZGEMM_DEFAULT_Q * ZGEMM_DEFAULT_UNROLL_N * 2 * 2 * sizeof(double))); ^~~~~~~~~~~~~~~ CGEMM_DEFAULT_Q make[3]: *** [Makefile.prebuild:58: getarch_2nd] Error 1 Makefile:123: *** OpenBLAS: Detecting CPU failed. Please set TARGET explicitly, e.g. make TARGET=your_cpu_target. Please read README for the detail.. Stop. make[3]: Leaving directory '/home/djlowry/sage/local/var/tmp/sage/build/openblas-0.2.19.p0/src' Error building OpenBLAS real 0m0.289s user 0m0.238s sys 0m0.053s ************************************************************************ Error installing package openblas-0.2.19.p0 ************************************************************************ Please email sage-devel (http://groups.google.com/group/sage-devel) explaining the problem and including the log file /home/djlowry/sage/logs/pkgs/openblas-0.2.19.p0.log Describe your computer, operating system, etc. If you want to try to fix the problem yourself, *don't* just cd to /home/djlowry/sage/local/var/tmp/sage/build/openblas-0.2.19.p0 and type 'make' or whatever is appropriate. Instead, the following commands setup all environment variables correctly and load a subshell for you to debug the error: (cd '/home/djlowry/sage/local/var/tmp/sage/build/openblas-0.2.19.p0' && '/home/djlowry/sage/sage' --sh) When you are done debugging, you can type "exit" to leave the subshell. ************************************************************************