Build failure with USE_BLAS=blas in Arch linux


#1

Hi. I’m using Arch linux. With USE_BLAS=blas (and opencv enabled / cuda disabled), the build fails with the following errors

/usr/bin/ld: build/src/operator/tensor/la_op.o: undefined reference to symbol 'cblas_ssyrk'
/usr/lib/libcblas.so.3: error adding symbols: DSO missing from command line

The library file libblas.so dose not have the symbol cblas_ssyrk but libcblas.so have it. So adding -lcblas as a LDFLAGS solves the problem. I’m not sure whether this is a Arch linux specific problem. Please consider to the -lcblas flag.