You might to add --with-blas4 to the CONFIGURE_ARGS since configure is going to pick the generic libblas.so that is built with 32-bit integers