[Slackbuilds-users] need help with openblas.

Christoph Willing chris.willing at iinet.net.au
Mon Apr 17 22:06:24 UTC 2017


On 18/04/17 05:44, Fernando Lopez wrote:
> It is not compiling on my machine =\
> 
> OpenBLAS-0.2.11/utest/test_fork.c
> OpenBLAS-0.2.11/utest/test_rot.c
> OpenBLAS-0.2.11/utest/test_rotmg.c
> OpenBLAS-0.2.11/utest/test_swap.c
> OpenBLAS-0.2.11/version.h
> getarch_2nd.c: In function 'main':
> getarch_2nd.c:12:35: error: 'SGEMM_DEFAULT_UNROLL_M' undeclared (first
> use in this function)
>      printf("SGEMM_UNROLL_M=%d\n", SGEMM_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)
>      printf("SGEMM_UNROLL_N=%d\n", SGEMM_DEFAULT_UNROLL_N);
>                                    ^
> getarch_2nd.c:14:35: error: 'DGEMM_DEFAULT_UNROLL_M' undeclared (first
> use in this function)
>      printf("DGEMM_UNROLL_M=%d\n", DGEMM_DEFAULT_UNROLL_M);
>                                    ^
> getarch_2nd.c:15:35: error: 'DGEMM_DEFAULT_UNROLL_N' undeclared (first
> use in this function)
>      printf("DGEMM_UNROLL_N=%d\n", DGEMM_DEFAULT_UNROLL_N);
>                                    ^
> getarch_2nd.c:19:35: error: 'CGEMM_DEFAULT_UNROLL_M' undeclared (first
> use in this function)
>      printf("CGEMM_UNROLL_M=%d\n", CGEMM_DEFAULT_UNROLL_M);
>                                    ^
> getarch_2nd.c:20:35: error: 'CGEMM_DEFAULT_UNROLL_N' undeclared (first
> use in this function)
>      printf("CGEMM_UNROLL_N=%d\n", CGEMM_DEFAULT_UNROLL_N);
>                                    ^
> getarch_2nd.c:21:35: error: 'ZGEMM_DEFAULT_UNROLL_M' undeclared (first
> use in this function)
>      printf("ZGEMM_UNROLL_M=%d\n", ZGEMM_DEFAULT_UNROLL_M);
>                                    ^
> getarch_2nd.c:22:35: error: 'ZGEMM_DEFAULT_UNROLL_N' undeclared (first
> use in this function)
>      printf("ZGEMM_UNROLL_N=%d\n", ZGEMM_DEFAULT_UNROLL_N);
>                                    ^
> getarch_2nd.c:67:50: error: 'SGEMM_DEFAULT_Q' undeclared (first use in
> this function)
>      printf("#define SLOCAL_BUFFER_SIZE\t%ld\n", (SGEMM_DEFAULT_Q *
> SGEMM_DEFAULT_UNROLL_N * 4 * 1 *  sizeof(float)));
>                                                   ^
> getarch_2nd.c:68:50: error: 'DGEMM_DEFAULT_Q' undeclared (first use in
> this function)
>      printf("#define DLOCAL_BUFFER_SIZE\t%ld\n", (DGEMM_DEFAULT_Q *
> DGEMM_DEFAULT_UNROLL_N * 2 * 1 *  sizeof(double)));
>                                                   ^
> getarch_2nd.c:69:50: error: 'CGEMM_DEFAULT_Q' undeclared (first use in
> this function)
>      printf("#define CLOCAL_BUFFER_SIZE\t%ld\n", (CGEMM_DEFAULT_Q *
> CGEMM_DEFAULT_UNROLL_N * 4 * 2 *  sizeof(float)));
>                                                   ^
> getarch_2nd.c:70:50: error: 'ZGEMM_DEFAULT_Q' undeclared (first use in
> this function)
>      printf("#define ZLOCAL_BUFFER_SIZE\t%ld\n", (ZGEMM_DEFAULT_Q *
> ZGEMM_DEFAULT_UNROLL_N * 2 * 2 *  sizeof(double)));
>                                                   ^
> make: *** [getarch_2nd] Error 1
> Makefile:131: *** OpenBLAS: Detecting CPU failed. Please set TARGET
> explicitly, e.g. make TARGET=your_cpu_target. Please read README for the
> detail..  Stop.
> 
> OpenBLAS:
> Would you like to continue processing the rest of the
> queue or would you like to abort?  If this failed
> package is a dependency of another package in the queue
> then it may not make sense to continue.
> 
> (Y)es to continue, (N)o to abort, (R)etry the build?:
> 

OpenBLAS-0.2.11 was released August 2014 so maybe your CPU is newer and
therefore unsupported (although it happens to build OK here). There have
been several releases since then (latest is 0.2.19 Sept., 2016) which
may support your CPU. Perhaps the maintainer (Cc'd) could update the
SlackBuild.

In the meantime, using DOWNLOAD url of:

https://github.com/xianyi/OpenBLAS/archive/v0.2.19/OpenBLAS-0.2.19.tar.gz
gives a saner tarball name than the style produced by the url in the
current .info file.

chris


More information about the SlackBuilds-users mailing list